Re: Query on exchanged partition

  • From: hrishy <hrishys@xxxxxxxxxxx>
  • To: oracle-l@xxxxxxxxxxxxx, paul.baumgartel@xxxxxxx
  • Date: Mon, 8 Nov 2010 08:46:40 +0000 (GMT)

Hi

Partition 
exchange occurs immediately, query uses blocks formerly in the exchanged
 partition but now in the table that was exchanged

Because partition exchange under the covers is just changing pointers

--- On Fri, 5/11/10, paul.baumgartel@xxxxxxx <paul.baumgartel@xxxxxxx> wrote:

From: paul.baumgartel@xxxxxxx <paul.baumgartel@xxxxxxx>
Subject: Query on exchanged partition
To: oracle-l@xxxxxxxxxxxxx
Date: Friday, 5 November, 2010, 18:42




 
 
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




 

-----Inline Attachment Follows-----

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: