安装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!安装成功




 

--------------------------------------------------------------------------------------------

版权所有,转载请注明作者及原文链接,否则追究法律责任!

QQ:      584307876

作者:    Seven

原文链接:http://blog.csdn.net/sunjiapeng/article/details/9368519

邮箱:     [email protected]

 

 

你可能感兴趣的:(sha)