| 
		
			| invalid dba_objects: do I need to care/repair? [message #541456] | Tue, 31 January 2012 08:11  |  
			| 
				
				|  | 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 #541478 is a reply to message #541474] | Tue, 31 January 2012 10:26   |  
			| 
				
				
					| cookiemonster Messages: 13973
 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:50oranooob wrote on Tue, 31 January 2012 15:29Howto 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   |  
			| 
				
				|  | 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 |  
	|  |  | 
	|  | 
	|  |