Ticker

6/recent/ticker-posts

#Dica - Erro na coleta após migração para o 12c - ORA-20000: Unable to gather statistics concurrently: Resource Manager is not enabled.

Durante a execução de uma coleta de estatística na versão 12.2 tivemos a ocorrência do erro ORA-20000: Unable to gather statistics concurrently: Resource Manager is not enabled. 
Ao verificar o mesmo, identificamos que este erro é comum em ambiente igrados de 11g para 12c. (DOC ID 2049013.1), exatamente o mesmo cenário que tínhamos. 
SQL> begin
dbms_stats.gather_schema_stats(
ownname=>'LAMIM',
options=>'GATHER',
method_opt => 'FOR ALL COLUMNS SIZE AUTO',
degree=>5) ;
end;  2    3    4    5    6    7
  8  /
begin
*
ERROR at line 1:
ORA-20000: Unable to gather statistics concurrently: Resource Manager is not
enabled.
ORA-06512: at "SYS.DBMS_STATS", line 35980
ORA-06512: at line 2
Afim de evitar o erro, basta habilitarmos o resource Manager ou desabilitar as estatísticas concorrentes. Para a efetivação das alterações, será necessário realizar um restart da instância.

Enable Resource Manager:

SQL> alter system set resource_manager_plan = 'DEFAULT_PLAN' scope=spfile;

Disable concurrent statistics gathering by setting the CONCURRENT preference to OFF:

SQL> exec dbms_stats.set_global_prefs('CONCURRENT', 'FALSE');

Unable To Gather Statistics, Receive "ORA-20000: Resource Manager Plan Is Not Active or is not managing CPU usage" Error Following Upgrade to 12c (Doc ID 2049013.1)

Postar um comentário

0 Comentários