将数据库升级到 Oracle Database 12c 错误
upgrade your database to Oracle Database 12c ERROR
我已将我的数据库升级到 Oracle Database 12c 第 1 版 (12.1),然后将其插入 CDB,自动 SQL Tuning Advisor 生成以下错误:
ORA-65040: operation not allowed from within a pluggable database
可能是什么问题?
连接到您看到自动 SQL Tuning Advisor 的 ORA-65040 错误的 PDB,使用 DBMS_SCHEDULER.DROP_PROGRAM('AUTO_SQL_TUNING_PROG') 过程删除现有的旧 AUTO_SQL_TUNING_PROG 程序,然后 运行 execsqlt.sql 脚本重新创建它。您可以在 ORACLE_HOME/admin 目录中找到该脚本。
来自Orcale docs 3.24.1.4 Bug 16654392:
Workaround: Connect to the PDB where you see the ORA-65040 error for
the automatic SQL Tuning Advisor, use the
DBMS_SCHEDULER.DROP_PROGRAM('AUTO_SQL_TUNING_PROG') procedure to
delete the existing old AUTO_SQL_TUNING_PROG program, and then run the
execsqlt.sql script to re-create it. You can find the script in the
ORACLE_HOME/admin directory.
Automatic SQL Tuning Advisor can be configured at the CDB level only.
You can configure the following automated maintenance tasks at the CDB
or PDB level:
- Optimizer Statistics gathering
- Segment Advisor
我已将我的数据库升级到 Oracle Database 12c 第 1 版 (12.1),然后将其插入 CDB,自动 SQL Tuning Advisor 生成以下错误:
ORA-65040: operation not allowed from within a pluggable database
可能是什么问题?
连接到您看到自动 SQL Tuning Advisor 的 ORA-65040 错误的 PDB,使用 DBMS_SCHEDULER.DROP_PROGRAM('AUTO_SQL_TUNING_PROG') 过程删除现有的旧 AUTO_SQL_TUNING_PROG 程序,然后 运行 execsqlt.sql 脚本重新创建它。您可以在 ORACLE_HOME/admin 目录中找到该脚本。
来自Orcale docs 3.24.1.4 Bug 16654392:
Workaround: Connect to the PDB where you see the ORA-65040 error for the automatic SQL Tuning Advisor, use the DBMS_SCHEDULER.DROP_PROGRAM('AUTO_SQL_TUNING_PROG') procedure to delete the existing old AUTO_SQL_TUNING_PROG program, and then run the execsqlt.sql script to re-create it. You can find the script in the ORACLE_HOME/admin directory.
Automatic SQL Tuning Advisor can be configured at the CDB level only.
You can configure the following automated maintenance tasks at the CDB or PDB level:
- Optimizer Statistics gathering
- Segment Advisor