重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛

标题: Unable To Compile SYS Object In Production Database [打印本页]

作者: 刘泽宇    时间: 2025-8-24 18:35
标题: Unable To Compile SYS Object In Production Database
现象:
The following are invalid under SYS and cannot be compiled:

SQL> select object_name,owner,object_type,status from dba_objects where object_name like 'DRILOAD';

OBJECT_NAME OWNER OBJECT_TYPE STATUS
-------------------- -------------------------------------------------------------------------------------------------------------------------------- ----------------------- -------
DRILOAD SYS PACKAGE VALID
DRILOAD SYS PACKAGE BODY INVALID <==
DRILOAD CTXSYS PACKAGE VALID
DRILOAD CTXSYS PACKAGE BODY VALID


原因:
This is a expected result as DRILOAD can only be owned by CTXSYS.

处理方法:
You can drop the object with the following commands:

connect / as sysdba
drop package body SYS.DRILOAD;







欢迎光临 重庆思庄Oracle、KingBase、PostgreSQL、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2