安装DBMS_SHARED_POOL包
安装DBMS_SHARED_POOL包
在安装10g gc的时候,会遇到The DBMS_SHARED_POOL package is not executed on the Existing Database这样的一个错误,意思是提示你DBMS_SHARED_POOL包没有安装;
下面提供此包的安装方法:
首先确认这个包是否在现有的库上已经被安装:
SQL> select count(*) from DBA_OBJECTS where object_name='DBMS_SHARED_POOL'; COUNT(*) ---------- 0
如果查询的值为0,就以SYSDBA身份登陆,安装DBMS_SHARED_POOL包,并且执行以下脚本:
SQL> @?/rdbms/admin/dbmspool.sql Package created. Grant succeeded. View created. Package body created. SQL> commit; Commit complete. SQL> @?/rdbms/admin/utlrp.sql
OK,下面验证以下DBMS_SHARED_POOL包是否安装成功:
SQL> select count(*) from DBA_OBJECTS where object_name='DBMS_SHARED_POOL'; COUNT(*) ---------- 2
OK!安装成功