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

Home -> Community -> Usenet -> c.d.o.server -> Re: PARTITIONS and GLOBAL INDEXES

Re: PARTITIONS and GLOBAL INDEXES

From: <Ranko.Mosic_at_gmail.com>
Date: 15 Oct 2006 08:18:03 -0700
Message-ID: <1160925483.338474.218990@e3g2000cwe.googlegroups.com>


You should be ok doing UPDATE GLOBAL INDEXES only as last step. Indexes will be unusable, but it ismaintenance window and will not prevent you from doing exchange.

Ranko.

ROAL wrote:
> Running Oracle 9.2.0.6 on Sun Solaris 9 Server
> The production database is a ticketing system and the primary table
> containing the ticket information has been partition (range) on
> timestamp. There are local indexes as well as global indexes on this
> table.
>
> I started a process to archive the older ticket data by exchanging the
> partition out to a separate table and then dropping the partition from
> the production table after the exchange.
>
> Question I have is due to the time that it takes to do the actual
> exchange which I am assuming is driven by by UPDATE GLOBAL INDEXES
> statement as part of the exchange command.
>
> Sample command:
> alter table XPARTITION_TABLE
> exchange partition CY2004_M4
> with table X_TABLE_CY2004_M4 update global indexes;
>
> If I wanted to exchange multiple months in one change window can I just
> run the exchange without the UPDATE GLOBAL INDEXES statement and
> include only on the very last partition I am exchanging?
>
> For instance I would exchange Jan, Feb and Mar partitions but only
> include the UPDATE GLOBAL INDEXES on the very last exchange statement
> for the month of Mar.
>
> The same question I have is related to a DROP PARTITION command. Could
> I drop many PARTITIONS and only include the UPDATE GLOBAL INDEXES on
> the last partition to be dropped during the change window on the
> production DB or is it required to have this statement in order to have
> indexes properly rebuilt?
>
> Appreciate anyone's advice/time on the subject.
Received on Sun Oct 15 2006 - 10:18:03 CDT

Original text of this message

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