Skip to Main Content

Enterprise Manager

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Invalid object type: Package body on system owner

3026401Feb 24 2017 — edited Feb 24 2017

Hello,

I created a bunch of public synonyms and got the object package body invalid for the SYSTEM owner

OWNER                      OBJECT_TYPE     STATUS
SYS                        PACKAGE         VALID
SYS                        PACKAGE BODY    VALID
SYSTEM                     PACKAGE         VALID
SYSTEM                     PACKAGE BODY    INVALID

I get these errors when trying to use another user than SYS:

ERROR:

ORA-06550: line 1, column 7:

PLS-00201: identifier 'DBMS_OUTPUT.DISABLE' must be declared

ORA-06550: line 1, column 7:

PL/SQL: Statement ignored

ERROR:

ORA-06550: line 1, column 7:

PLS-00201: identifier 'DBMS_APPLICATION_INFO.SET_MODULE' must be declared

ORA-06550: line 1, column 7:

PL/SQL: Statement ignored

Error accessing package DBMS_APPLICATION_INFO

SP2-0575: Use of Oracle SQL feature not in SQL92 Entry Level

I have made the below in order to correct the errors

recreated DBMS_APPLICATION_INFO
1. dbmsapin.sql
2. prvtapin.plb

recreated DBMS_OUTPUT:
1. dbmsotpt.sql
2. prvtotpt.plb

exec DBMS_APPLICATION_INFO.SET_MODULE('SQL*plus', 'Testing DBMS_APPLICATION_INFO');

exec DBMS_OUTPUT.DISABLE;

After that it errors no longer appear but I am still seeing the Package Body invalid.

OWNER                      OBJECT_TYPE     STATUS
SYS                        PACKAGE         VALID
SYS                        PACKAGE BODY    VALID
SYSTEM                     PACKAGE         VALID
SYSTEM                     PACKAGE BODY    INVALID

DB: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production

Please advise,

Regards,

Daniel

This post has been answered by 3026401 on Feb 24 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 24 2017
Added on Feb 24 2017
3 comments
1,019 views