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: Package becomes INVALID when a partiiton is dropped

RE: Package becomes INVALID when a partiiton is dropped

From: Mercadante, Thomas F (LABOR) <Thomas.Mercadante_at_labor.state.ny.us>
Date: Tue, 28 Jun 2005 13:02:10 -0400
Message-ID: <ABB9D76E187C5146AB5683F5A07336FF16E75D@EXCNYSM0A1AJ.nysemail.nyenet>


Deepak,

Something else you can do. Change your package so that it does not *directly* depend on the table. You could use dynamic SQL to perform your queries against the table. This way, Oracle does not know that the package is related to the table and will not mark it as invalid.

Tom

-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Deepak Sharma Sent: Tuesday, June 28, 2005 12:52 PM
To: Eric List
Cc: oracle-l_at_freelists.org
Subject: Re: Package becomes INVALID when a partiiton is dropped

We are on 9.2.0.6 .

As you said, the package is actively being used when the DDL happens.

Right now I am manually co-ordinating with the application group so that I drop the partition(s) when the application is not running. After dropping I inform the group to run their application. This is a pain, as the table has about 180 daily partitions, and I need to do this every day.

Thanks,
Deepak

> Deepak,
>
> It does not become clear which version of Oracle you
> are using.
> In the attached log it all seems OK when the package
> becomes invalid
> after partition manipulation. Like Thomas mentioned,
> the package will
> be recompiled next time it is used. A problem may
> arise when there
> is a session that is still actively using the
> package. That's whether
> you have a (potential) problem really depends on.
> Otherwise I
> wouldn't worry either.
>
> regards
> Eric Valk
>



Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
--
http://www.freelists.org/webpage/oracle-l
--
http://www.freelists.org/webpage/oracle-l
Received on Tue Jun 28 2005 - 13:07:37 CDT

Original text of this message

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