需求情况:开发需要使用DBMS_NETWORK_ACL_ADMIN包,进行邮件发送的配置,授权使用时发现该包不存在

GRANT EXECUTE ON  SYS.DBMS_NETWORK_ACL_ADMIN TO IBPS;
ERROR at line 1:
ORA-04042: procedure, function, package, or package body does not exist

检查环境:
set pagesize 1000
col owner format a8
col object_name format a35
select owner, object_name, object_type, status from dba_objects where status = 'INVALID' and owner = 'SYS';

确认非失效原因,需要安装XDB,以下为11GR2简要安装/删除步骤:

XDB Installation

@?/rdbms/admin/catqm.sql xdb SYSAUX TEMP YES           

@?/rdbms/admin/utlrp.sql

GRANT EXECUTE ON  SYS.DBMS_NETWORK_ACL_ADMIN TO IBPS;
安装后重新授权成功

XDB Removal

@?/rdbms/admin/catnoqm.sql
@?/rdbms/admin/catproc.sql
@?/rdbms/admin/utlrp.sql

删除或安装后注意重启,各版本具体操作可参考官方文档Doc ID 1269470.1

Related Posts