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: Jared Still <jkstill_at_gmail.com>
Date: Tue, 28 Jun 2005 00:52:02 +0100
Message-ID: <bf463805062716527b35bfb3@mail.gmail.com>


The kernel is likely taking a ddl lock and updating DD for the table and partition when the partition is dropped.

This would invalidate the procedure.

I have not built a test case, I have left that for you. :)

Jared

PS. Check the LAST_DDL_TIME column in the DBA_OBJECTS view

On 6/27/05, Deepak Sharma <sharmakdeep_oracle_at_yahoo.com> wrote:
>
> I have a table, say T1, having 3 partitions P1, P2 and
> P3.
>
> There exists a PL/SQL procedure that declares
> variables as :
>
> col1 T1.col1%TYPE
>
> When I drop a partition P1 of table T1, the PL/SQL
> procedure becomes INVALID.
>
> The PL/SQL doesn't reference the partition P1 at all.
>
>
>
> ____________________________________________________
> Yahoo! Sports
> Rekindle the Rivalries. Sign up for Fantasy Football
> http://football.fantasysports.yahoo.com
> --
> http://www.freelists.org/webpage/oracle-l
>

-- 
Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist

--
http://www.freelists.org/webpage/oracle-l
Received on Mon Jun 27 2005 - 19:57:22 CDT

Original text of this message

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