Very next day on the prodction box It looks some procedres/packages got invlidated. What command I should give to know how many packges are invalidated. If suppose thousands are the packages invalidated then what command I should Issut to get then validated.

Questions by agarwalk_2000   answers by agarwalk_2000

Showing Answers 1 - 16 of 16 Answers

Parveeb Ahuja

  • Mar 29th, 2006
 

Use dbms_utility.compile_schema procedure to compile all the functions,procedure and packages for a schema.exec dbms_utility.compile_schema('schema_name');

Ritesh Singh

  • Jul 7th, 2006
 

select object_name,object_type,status from dba_objects

where status='INVALID';

you can run utlrp.sql residing in $ORACLE_HOME/rdbms/admin

and it will try to validate all the objects

GIGI GEORGE

  • Oct 3rd, 2006
 

select 'alter '|| DECODE(object_type, 'PACKAGE BODY', 'PACKAGE', object_type)||' '||object_name||' compile;' from user_objects where status<>'VALID' order by object_type try ot this...  then copy and paste on sql prompt..cheersbye

Chiranjeevi Manne

  • Mar 30th, 2007
 

The best way to check for the number of invalid objects is using the "UTLRP.SQL" which compiles all the objects source code and lists the number of invalid objects. One after getting the number of invalid objects query v$BH table to get the name of all the invalid objects

  Was this answer useful?  Yes

vaddapalli

  • May 2nd, 2009
 

we can use the  @?/rdbms/admin/utlrp.sql

The below listed are the scripts that were executed to valid the DBMS_STAT on particular databses.


@?/rdbms/admin/dbmsstat.sql

@?/rdbms/admin/prvtstas.plb

@?/rdbms/admin/prvtstat.plb

  Was this answer useful?  Yes

Sharath

  • Jul 27th, 2011
 

you just validate it.. by using validate procedure and validate package commands.. ok don't worry

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions