ORA--1730 [message #63088] |
Wed, 08 September 2004 22:08 |
Sam
Messages: 255 Registered: April 2000
|
Senior Member |
|
|
HI All, i have a problem.
HI, i have some invalid objects in my database and i am unable to compile these procedures and views. I am getting ORA-01730 error.
Is this a bug if so is there any work around?
Thanx in advance.
Sam.
|
|
|
|
Re: ORA--1730 [message #63106 is a reply to message #63089] |
Thu, 09 September 2004 12:03 |
Sam
Messages: 255 Registered: April 2000
|
Senior Member |
|
|
Hi Maaher, thanx for the help. it helped me resolve the invalidity of views. but what abt the invalid procedures, how to trouble shoot them?
Thanx in advance
Sam.
|
|
|
Re: ORA--1730 [message #63111 is a reply to message #63106] |
Thu, 09 September 2004 22:08 |
|
Maaher
Messages: 7065 Registered: December 2001
|
Senior Member |
|
|
Try recompiling them one by one. Or, you could do it by batch. Here's a recompilation procedure. If you need a script, copy and paste the next piece of code in a text file, save it as 'recompile.sql' and run it.
----------------------------------------------------------------------
set feedback off
set verify off
set echo off
set pagesize 0
set heading off
spool compile.sql
select 'alter ' ||
decode(object_type, 'PACKAGE BODY', 'package', object_type) ||
' ' ||
object_name||
' compile' ||
decode(object_type, 'PACKAGE BODY', ' body;', ';')
from dba_objects
where status = 'INVALID'
/
spool off
set feedback on
set verify on
set heading on
set pagesize 40
@compile
----------------------------------------------------------------------
HTH,
MHE
|
|
|