RE: Query on exchanged partition

  • From: <paul.baumgartel@xxxxxxx>
  • To: <oracle-l@xxxxxxxxxxxxx>
  • Date: Fri, 5 Nov 2010 15:05:13 -0400

Thanks to Tim Gorman, I've found that the answer to the question below
is that the second statement is true.

Now, one more question. I want to drop the exchanged table as soon as I
can. Does the querying session's parse lock on the exchanged partition
move to the exchanged table after the exchange? If so, we could issue a
LOCK TABLE <exchanged table> IN EXCLUSIVE MODE WAIT, followed by DROP
TABLE <exchanged table>. The lock could be obtained as soon as the query
completed, and the drop right after that.


Paul Baumgartel
UBS AG
IB Accounting Solutions
400 Atlantic Street
Stamford, CT 06904

203.719.4368

paul.baumgartel@xxxxxxx
www.ubs.com



> _____________________________________________ 
> From:         Baumgartel, Paul  
> Sent: Friday, November 05, 2010 2:42 PM
> To:   oracle-l@xxxxxxxxxxxxx
> Subject:      Query on exchanged partition
> 
> If a query on a partitioned table is in flight, and alter
> table...exchange partition is issued against it, which, if any, of the
> following is (are) true?
> 
> *     Partition exchange waits for query completion, since it requires
> a DDL lock
> *     Partition exchange occurs immediately, query uses blocks
> formerly in the exchanged partition but now in the table that was
> exchanged
> *     Query fails when it reaches the partition, throwing "no longer
> exists" error
> *     Something else altogether
> 
> 
> Paul Baumgartel
> UBS AG
> IB Accounting Solutions
> 400 Atlantic Street
> Stamford, CT 06904
> 
> 203.719.4368
> 
> paul.baumgartel@xxxxxxx
> www.ubs.com
> 
> 
Visit our website at http://www.ubs.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.
        
E-mails are not encrypted and cannot be guaranteed to be secure or 
error-free as information could be intercepted, corrupted, lost, 
destroyed, arrive late or incomplete, or contain viruses.  The sender 
therefore does not accept liability for any errors or omissions in the 
contents of this message which arise as a result of e-mail transmission.  
If verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities 
or related financial instruments.

 
UBS reserves the right to retain all messages. Messages are protected
and accessed only in legally justified cases.

Other related posts: