Oracle 升级数据库到12c时生成ORA-12012 ORA-13717

如果自己搞不定可以找诗檀软件专业ORACLE数据库修复团队成员帮您恢复!

诗檀软件专业数据库修复团队

服务热线 : 13764045638 QQ号:47079569 邮箱:[email protected]

 

适用于:

Oracle Database – Standard Edition – 版本 12.1.0.1 及以上
本文信息适用于任何平台。

症状

Oracle Database Standard EditionSQL Tuning advisory遇到以下错误:

Errors in file /ora/u01/app/oracle/diag/rdbms/rdecm01/RDECM01/trace/RDECM01_j002_17710.trc:
ORA-12012: error on auto execute of job “SYS”.”ORA$AT_SQ_SQL_SW_2511″
ORA-13717: Tuning Package License is needed for using this feature.
ORA-06512: at “SYS.PRVT_SMGUTIL”, line 52
ORA-06512: at “SYS.PRVT_SMGUTIL”, line 37
ORA-06512: at “SYS.PRVT_ADVISOR”, line 7382
ORA-06512: at “SYS.PRVT_ADVISOR”, line 7432
ORA-06512: at “SYS.PRVT_ADVISOR”, line 7485
ORA-06512: at “SYS.DBMS_ADVISOR”, line 238
ORA-06512: at “SYS.DBMS_SQLTUNE”, line 937
ORA-06512: at line 4

更改

 数据库从12c以前的版本升级到12.1.0.1

原因

由于这是标准版本,SQL Tuning advisory12c之前的数据库中被默认禁用。

但升级数据库到12c后,SQL Tuning advisory变为“ENABLED”

SQL> select client_name,status from DBA_AUTOTASK_CLIENT;

CLIENT_NAME                                                      STATUS
—————————————————————- ——–
auto optimizer stats collection                                  ENABLED
auto space advisor                                               ENABLED
sql tuning advisor                                               ENABLED              =============> sql tuning advisor became “ENABLED” after upgrading

解决方案

解决方法:手动禁用sql tuing advisory autotask

BEGIN
dbms_auto_task_admin.disable(
client_name => ‘sql tuning advisor’,
operation => NULL,
window_name => NULL);
END;
/

参考

NOTE:756734.1 – 11g: Scheduler Maintenance Tasks or Autotasks


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *