Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Oracle Tools > Re: Recompiling...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 8 of 13 Topic 2680 of 2786
Post > Topic >>

Re: Recompiling invalid objects with a batch file

by "Shakespeare" <whatsin@[EMAIL PROTECTED] > Jun 4, 2008 at 12:59 PM

"gazzag" <gareth@[EMAIL PROTECTED]
> schreef in bericht 
news:f32a36ab-08f8-4dd4-9bca-7b0657f081f4@[EMAIL PROTECTED]
> On 3 Jun, 20:35, Ubiquitous <web...@[EMAIL PROTECTED]
> wrote:
>>
>> I asked because I was unable to find them, but it might be because I 
>> don't
>> have rights on those objects here.
>
> The syntax you're after is:
>
> ALTER <object_type> <object_name> RECOMPILE;
>
> So, in answer to your OP, you could refine the following script:
>
> SELECT 'ALTER '||object_type||' '||object_name||' COMPILE;'
> FROM user_objects
> WHERE status != 'VALID';
>
> Spool the output to a file.  This will become your recompile script.
>
> HTH
>
> -g

But you would have to run this script serveral times when objects have 
dependencies......

Shakespeare
 




 13 Posts in Topic:
Recompiling invalid objects with a batch file
Ubiquitous <weberm@[EM  2007-12-05 00:24:04 
Re: Recompiling invalid objects with a batch file
DA Morgan <damorgan@[E  2007-12-04 22:01:27 
Re: Recompiling invalid objects with a batch file
Ubiquitous <weberm@[EM  2008-06-02 11:09:39 
Re: Recompiling invalid objects with a batch file
DA Morgan <damorgan@[E  2008-06-02 12:47:08 
Re: Recompiling invalid objects with a batch file
Ubiquitous <weberm@[EM  2008-06-03 15:35:12 
Re: Recompiling invalid objects with a batch file
gazzag <gareth@[EMAIL   2008-06-02 09:14:20 
Re: Recompiling invalid objects with a batch file
gazzag <gareth@[EMAIL   2008-06-04 02:51:21 
Re: Recompiling invalid objects with a batch file
"Shakespeare" &  2008-06-04 12:59:22 
Re: Recompiling invalid objects with a batch file
gazzag <gareth@[EMAIL   2008-06-04 03:01:31 
Re: Recompiling invalid objects with a batch file
"Gerard H. Pille&quo  2008-06-10 23:00:49 
Re: Recompiling invalid objects with a batch file
gazzag <gareth@[EMAIL   2008-06-04 04:03:03 
Re: Recompiling invalid objects with a batch file
santosh.gaikwad@[EMAIL PR  2008-07-11 07:20:47 
Re: Recompiling invalid objects with a batch file
DA Morgan <damorgan@[E  2008-07-11 07:45:09 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Aug 21 20:18:46 CDT 2008.