Invalid Objects after done import [message #441110] |
Thu, 28 January 2010 21:22 |
madhavamanohar
Messages: 58 Registered: February 2009
|
Member |
|
|
Hello friends,
There is a problem with Invalid obejcts.
Plase find the brief abt problem
---------------------------------
I have imported the dump into database, It was completed with warnings.
Then after I could see the aroung 280 invalid objects , I execute the utlrp.sql to recompile the invalid objects , but still there are aroung 40 invalid sysman objects and 2 sys user's views and some other also..
I tyied to complile them by manually but I got warnings.
There are no invalid objects in source database ( From which I took export).
IN ONE ARTICAL I SAW THAT , IF WE EXECUTE THE catproc.sql script again it will complie all the invalid objects.
I executed that catproc.sql ..it was hung in middle of execution.
----------------------------
My doubt is... is there any problem by exectuting the catproc.sql after import has done ?
What is the best way to recompile the INVALID objects.
Please suggest me on this..
Thanks
Manoar
|
|
|
|
|
|
|
|
|
|
Re: Invalid Objects after done import [message #441135 is a reply to message #441132] |
Thu, 28 January 2010 23:40 |
|
ramoradba
Messages: 2457 Registered: January 2009 Location: AndhraPradesh,Hyderabad,I...
|
Senior Member |
|
|
select owner||','||OBJECT_NAME||','||OBJECT_TYPE||','||STATUS
from dba_objects
where STATUS <> 'VALID';
if any package is invalid compile its body.
alter package <package name> compile body;
any warning...
check for dependent objects also(if they were invalid).
How you performed this full import.
Invalid objects
sriram
[Updated on: Thu, 28 January 2010 23:47] Report message to a moderator
|
|
|
Re: Invalid Objects after done import [message #441138 is a reply to message #441113] |
Thu, 28 January 2010 23:51 |
madhavamanohar
Messages: 58 Registered: February 2009
|
Member |
|
|
SQL> show error
Errors for PACKAGE BODY SYSMAN.MGMT_LOCK_UTIL:
LINE/COL ERROR
-------- -----------------------------------------------------------------
0/0 PL/SQL: Compilation unit analysis terminated
1/14 PLS-00304: cannot compile body of 'MGMT_LOCK_UTIL' without its
specification
1/14 PLS-00905: object SYSMAN.MGMT_LOCK_UTIL is invalid
SQL> alter alter PACKAGE sysman.MGMT_LOCK_UTIL compile;
alter alter PACKAGE sysman.MGMT_LOCK_UTIL compile
*
ERROR at line 1:
ORA-00940: invalid ALTER command
SQL> alter PACKAGE sysman.MGMT_LOCK_UTIL compile;
Warning: Package altered with compilation errors.
SQL> show error
Errors for PACKAGE SYSMAN.MGMT_LOCK_UTIL:
LINE/COL ERROR
-------- -----------------------------------------------------------------
4/30 PL/SQL: Declaration ignored
4/49 PLS-00201: identifier 'DBMS_LOCK' must be declared
5/30 PL/SQL: Declaration ignored
5/49 PLS-00201: identifier 'DBMS_LOCK' must be declared
6/30 PL/SQL: Declaration ignored
6/49 PLS-00201: identifier 'DBMS_LOCK' must be declared
7/30 PL/SQL: Declaration ignored
7/49 PLS-00201: identifier 'DBMS_LOCK' must be declared
8/30 PL/SQL: Declaration ignored
8/49 PLS-00201: identifier 'DBMS_LOCK' must be declared
9/30 PL/SQL: Declaration ignored
LINE/COL ERROR
-------- -----------------------------------------------------------------
9/49 PLS-00201: identifier 'DBMS_LOCK' must be declared
Please look at the above eror and please suggest me on this
|
|
|
|
Re: Invalid Objects after done import [message #441143 is a reply to message #441139] |
Fri, 29 January 2010 00:37 |
madhavamanohar
Messages: 58 Registered: February 2009
|
Member |
|
|
SQL> select OBJECT_NAME,OWNER,OBJECT_TYPE from dba_objects where STATUS='INVALID';
OBJECT_NAME OWNER OBJECT_TYPE
------------------------------ ------------------------------ -------------------
ALL_USERS KI VIEW
MGMT_LOCK_UTIL SYSMAN PACKAGE
EMD_LOADER SYSMAN PACKAGE BODY
MGMT_JOB_ENGINE SYSMAN PACKAGE BODY
MGMT_BLACKOUT_ENGINE SYSMAN PACKAGE BODY
MGMT_JOBS SYSMAN PACKAGE BODY
MGMT_USER SYSMAN PACKAGE BODY
MGMT_LOCK_UTIL SYSMAN PACKAGE BODY
STATSPACK PERFSTAT PACKAGE BODY
9 rows selected.
SQL> alter package EMD_LOADER compile body;
alter package EMD_LOADER compile body
*
ERROR at line 1:
ORA-04043: object EMD_LOADER does not exist
SQL> alter package sysman.EMD_LOADER compile body;
Warning: Package Body altered with compilation errors.
SQL> show error
Errors for PACKAGE BODY SYSMAN.EMD_LOADER:
LINE/COL ERROR
-------- -----------------------------------------------------------------
1360/3 PL/SQL: Statement ignored
1360/3 PLS-00201: identifier 'DBMS_REDEFINITION' must be declared
1366/3 PL/SQL: Statement ignored
1366/3 PLS-00201: identifier 'DBMS_REDEFINITION' must be declared
1449/3 PL/SQL: Statement ignored
1449/3 PLS-00201: identifier 'DBMS_REDEFINITION' must be declared
1455/3 PL/SQL: Statement ignored
1455/3 PLS-00201: identifier 'DBMS_REDEFINITION' must be declared
1540/3 PL/SQL: Statement ignored
1540/3 PLS-00201: identifier 'DBMS_REDEFINITION' must be declared
1546/3 PL/SQL: Statement ignored
LINE/COL ERROR
-------- -----------------------------------------------------------------
1546/3 PLS-00201: identifier 'DBMS_REDEFINITION' must be declared
3110/5 PL/SQL: Statement ignored
3111/11 PLS-00905: object SYSMAN.MGMT_LOCK_UTIL is invalid
3124/5 PL/SQL: Statement ignored
3125/11 PLS-00905: object SYSMAN.MGMT_LOCK_UTIL is invalid
By Connecteing to SYS user I am executing ..
But I did not executed utlproc ..shall I execute it..?
Thanks
Manohar..
|
|
|
|
|
|
Re: Invalid Objects after done import [message #441154 is a reply to message #441148] |
Fri, 29 January 2010 01:15 |
|
ramoradba
Messages: 2457 Registered: January 2009 Location: AndhraPradesh,Hyderabad,I...
|
Senior Member |
|
|
Quote:SQL> select OBJECT_NAME,OWNER,OBJECT_TYPE from dba_objects where STATUS='INVALID';
OBJECT_NAME OWNER OBJECT_TYPE
------------------------------ ------------------------------ -------------------
ALL_USERS KI VIEW
Just curious Who`s this owner KI here?
What ever the object invalid you have are dependent on each with one another.And even whats your source version?
Try with Michel solution...But normally while trying this we will drop and recrete the roles and users not the Packages...So i dont think it`s a solution.
sriram
[Updated on: Fri, 29 January 2010 01:48] Report message to a moderator
|
|
|