Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Invalid objects

Re: Invalid objects

From: <Winnie_Liu_at_infonet.com>
Date: Wed, 18 Oct 2000 11:04:30 -0700
Message-Id: <10653.119676@fatcity.com>


Ruth,

I would have to modified your script a little because the way to compile the package and package body is different.

it's

select 'alter '||object_type||' '||owner||','||object_name||' compile;' from dba_objects
where object_type not !='PACKAGE BODY' and status='INVALID' union all
select 'alter package '||owner||'.'||object_name||' compile body;' from dba_objects
where object_type='PACKAGE BODY' and status='INVALID';

WInnie

"Ruth Gramolini" <rgramolini_at_tax.state.vt.us>@fatcity.com on 10/18/2000 11:50:24 AM

Please respond to ORACLE-L_at_fatcity.com

Sent by: root_at_fatcity.com

To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> cc:

Subject: Re: Invalid objects

select 'alter '||object_type||' '||owner||'.'||object_name||' compile;' from
dba_objects where status ='INVALID';

Spool the output of this query ( or cut and paste) and run it. It will compile all invalid objects if there are no other problems.

HTH,
Ruth
----- Original Message -----
To: "Multiple recipients of list ORACLE-L" <ORACLE-L_at_fatcity.com> Sent: Wednesday, October 18, 2000 1:55 PM

>
> How can you fix invalid stored procedures?
>
> -----
> Sent using MailStart.com ( http://MailStart.Com/welcome.html )
> The FREE way to access your mailbox via any web browser, anywhere!
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author:
> INET: cemail_at_sprintmail.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Ruth Gramolini
  INET: rgramolini_at_tax.state.vt.us

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
Received on Wed Oct 18 2000 - 13:04:30 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US