Home » RDBMS Server » Server Administration » invalid dba_objects: do I need to care/repair? (Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi)
invalid dba_objects: do I need to care/repair? [message #541456] Tue, 31 January 2012 08:11 Go to next message
oranooob
Messages: 88
Registered: May 2009
Member
Hi

There are so much invalid dba_objects. Do I need to care/repair? We are missing no functionality...

  SELECT owner, COUNT (*)
    FROM dba_objects
   WHERE status != 'VALID'
GROUP BY ROLLUP (OWNER)


output

ZIM4_RO	71
ZIM4	73
PUBLIC	16
SYS	35
	195
Re: invalid dba_objects: do I need to care/repair? [message #541459 is a reply to message #541456] Tue, 31 January 2012 08:18 Go to previous messageGo to next message
Michel Cadot
Messages: 68716
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
Add object_type in your query.
Anyway, we can answer only on SYS ones, your own user schemas is out of our scope.

Regards
Michel
Re: invalid dba_objects: do I need to care/repair? [message #541462 is a reply to message #541456] Tue, 31 January 2012 08:38 Go to previous messageGo to next message
oranooob
Messages: 88
Registered: May 2009
Member
SELECT owner,
       object_name,
       object_type,
       status
  FROM dba_objects
 WHERE status != 'VALID' AND owner = 'SYS'


output

SYS	DBMS_DEFER_SYS	PACKAGE BODY	INVALID
SYS	DBMS_DEFER_IMPORT_INTERNAL	PACKAGE BODY	INVALID
SYS	DBMS_SNAPSHOT_UTL	PACKAGE BODY	INVALID
SYS	DBMS_IREFRESH	PACKAGE BODY	INVALID
SYS	DBMS_DEFERGEN_WRAP	PACKAGE BODY	INVALID
SYS	DBMS_DEFER_QUERY_UTL	PACKAGE BODY	INVALID
SYS	DBMS_DEFER_ENQ_UTL	PACKAGE	INVALID
SYS	DBMS_DEFER_ENQ_UTL	PACKAGE BODY	INVALID
SYS	DBMS_ASYNCRPC_PUSH	PACKAGE BODY	INVALID
SYS	DBMS_DEFER_INTERNAL_QUERY	PACKAGE BODY	INVALID
SYS	DBMS_DEFER_INTERNAL_SYS	PACKAGE BODY	INVALID
SYS	DBMS_DEFER	PACKAGE BODY	INVALID
SYS	DBMS_REPCAT_UTL	PACKAGE BODY	INVALID
SYS	DBMS_REPCAT_SNA_UTL	PACKAGE BODY	INVALID
SYS	DBMS_REPCAT_UNTRUSTED	PACKAGE BODY	INVALID
SYS	DBMS_DEFER_REPCAT	PACKAGE BODY	INVALID
SYS	DBMS_OFFLINE_RGT	PACKAGE BODY	INVALID
SYS	DBMS_REPCAT_CONF	PACKAGE BODY	INVALID
SYS	DBMS_REPCAT_MAS	PACKAGE BODY	INVALID
SYS	DBMS_REPCAT	PACKAGE BODY	INVALID
SYS	DBMS_INTERNAL_REPCAT	PACKAGE BODY	INVALID
SYS	DBMS_REPCAT_RPC	PACKAGE BODY	INVALID
SYS	DBMS_REPCAT_UTL2	PACKAGE BODY	INVALID
SYS	DBMS_REPCAT_UTL3	PACKAGE BODY	INVALID
SYS	DBMS_REPCAT_MIG_INTERNAL	PACKAGE BODY	INVALID
SYS	DBMS_REPCAT_FLA_MAS	PACKAGE BODY	INVALID
SYS	DBMS_REPCAT_RQ	PACKAGE BODY	INVALID
SYS	DBMS_REPCAT_ADD_MASTER	PACKAGE BODY	INVALID
SYS	DBMS_OFFLINE_INTERNAL	PACKAGE BODY	INVALID
SYS	DBMS_OFFLINE_OG	PACKAGE BODY	INVALID
SYS	DBMS_REPCAT_RGT_UTL	PACKAGE BODY	INVALID
SYS	DBMS_REPCAT_RGT	PACKAGE BODY	INVALID
SYS	DBMS_REPCAT_RGT_ALT	PACKAGE BODY	INVALID
SYS	DBMS_REPCAT_RGT_CUST2	PACKAGE BODY	INVALID
SYS	DBMS_IAS_MT_INST	PACKAGE BODY	INVALID


why are they invalid?
Re: invalid dba_objects: do I need to care/repair? [message #541464 is a reply to message #541462] Tue, 31 January 2012 08:40 Go to previous messageGo to next message
Michel Cadot
Messages: 68716
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
Please ALIGN the columns!

Post (with columns aligned):
select comp_id, status, schema, version 
from dba_registry order by 1;

Regards
Michel

[Updated on: Tue, 31 January 2012 08:41]

Report message to a moderator

Re: invalid dba_objects: do I need to care/repair? [message #541467 is a reply to message #541464] Tue, 31 January 2012 09:29 Go to previous messageGo to next message
oranooob
Messages: 88
Registered: May 2009
Member
Michel Cadot wrote on Tue, 31 January 2012 08:40
Please ALIGN the columns!

Post (with columns aligned)


Howto ALIGN columns in Toad?


  SELECT comp_id,
         status,
         schema,
         version
    FROM dba_registry
ORDER BY 1;


output

CATALOG	VALID	SYS	10.2.0.4.0
CATJAVA	VALID	SYS	10.2.0.4.0
CATPROC	VALID	SYS	10.2.0.4.0
EXF	VALID	EXFSYS	10.2.0.4.0
JAVAVM	VALID	SYS	10.2.0.4.0
OWM	VALID	WMSYS	10.2.0.4.3
XML	VALID	SYS	10.2.0.4.0
Re: invalid dba_objects: do I need to care/repair? [message #541472 is a reply to message #541467] Tue, 31 January 2012 09:50 Go to previous messageGo to next message
cookiemonster
Messages: 13959
Registered: September 2008
Location: Rainy Manchester
Senior Member
oranooob wrote on Tue, 31 January 2012 15:29

Howto ALIGN columns in Toad?

use sqlplus instead
Re: invalid dba_objects: do I need to care/repair? [message #541474 is a reply to message #541472] Tue, 31 January 2012 10:03 Go to previous messageGo to next message
oranooob
Messages: 88
Registered: May 2009
Member
cookiemonster wrote on Tue, 31 January 2012 09:50
oranooob wrote on Tue, 31 January 2012 15:29

Howto ALIGN columns in Toad?

use sqlplus instead


Toad is more user friendly than SQL*Plus. I use SQL*Plus only in shell scripts.
Re: invalid dba_objects: do I need to care/repair? [message #541477 is a reply to message #541474] Tue, 31 January 2012 10:22 Go to previous messageGo to next message
Michel Cadot
Messages: 68716
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
Maybe but when you have to post something use SQL*Plus. Full stop.

Search in $ORACLE_HOME/rdbms/admin in which scripts these packages are created and rerun them.
At first glance, there should not be more than 2.

Regards
Michel
Re: invalid dba_objects: do I need to care/repair? [message #541478 is a reply to message #541474] Tue, 31 January 2012 10:26 Go to previous messageGo to next message
cookiemonster
Messages: 13959
Registered: September 2008
Location: Rainy Manchester
Senior Member
oranooob wrote on Tue, 31 January 2012 16:03
cookiemonster wrote on Tue, 31 January 2012 09:50
oranooob wrote on Tue, 31 January 2012 15:29

Howto ALIGN columns in Toad?

use sqlplus instead


Toad is more user friendly than SQL*Plus.

Not when you want to post data here it isn't. You use sqlplus and you can just copy and paste the output with no alterations in one go. Can't do that with TOAD.
Re: invalid dba_objects: do I need to care/repair? [message #541482 is a reply to message #541462] Tue, 31 January 2012 11:26 Go to previous messageGo to next message
LNossov
Messages: 318
Registered: July 2011
Location: Germany
Senior Member
You can use the following script to find out the reason of invalidation.

-- E. Nossova, Product TuTool : www.tutool.de

set heading on
set pagesize 1000
set verify off
set feedback off
set linesize 1000

col object_name format a30
col subobject_name format a30
col temporary format a9
col generated format a9
col secondary format a9
col owner format a20
col error_text format a60

clear breaks
break on owner on object_type on object_name on subobject_name 

/* reports invalid objects*/

select o.owner, o.object_type, o.object_name, o.subobject_name, o.status, decode(e.text,null,'','line '||
ltrim(to_char(e.line,'99999999'))||' : '||substr(e.text,1,230)) 
error_text
from sys.dba_errors e, sys.dba_objects o
where
status != 'VALID' and
o.owner = e.owner (+) and
o.object_name = e.name (+) and
o.object_type = e.type (+)
order by o.owner, o.object_type, o.object_name, o.subobject_name, e.line
/

set linesize 80

[Updated on: Tue, 31 January 2012 11:28] by Moderator

Report message to a moderator

Re: invalid dba_objects: do I need to care/repair? [message #541483 is a reply to message #541482] Tue, 31 January 2012 11:29 Go to previous messageGo to next message
Michel Cadot
Messages: 68716
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
Not very useful on wrapped code...

Regards
Michel
Re: invalid dba_objects: do I need to care/repair? [message #541493 is a reply to message #541483] Tue, 31 January 2012 12:55 Go to previous message
LNossov
Messages: 318
Registered: July 2011
Location: Germany
Senior Member
I know, you don't like it, but you can unwrap the code Wink.

Regards
Leonid
Previous Topic: ora 12701 create database character set is not known
Next Topic: about initialization parameter file
Goto Forum:
  


Current Time: Fri Nov 29 02:27:32 CST 2024