Return-Path: <root@fatcity.cts.com>
Received: from newsfeed.cts.com (newsfeed.cts.com [209.68.248.164])
 by naude.co.za (8.11.2/8.11.2) with SMTP id g89KT6515411
 for <oracle-l@naude.co.za>; Mon, 9 Sep 2002 16:29:06 -0400
Received: from fatcity.UUCP (uucp@localhost)
 by newsfeed.cts.com (8.9.3/8.9.3) with UUCP id NAA88463;
 Mon, 9 Sep 2002 13:29:11 -0700 (PDT)
Received: by fatcity.com (26-Feb-2001/v1.0g-b72/bab) via UUCP id 004CB6DE; Mon, 09 Sep 2002 13:24:43 -0800
Message-ID: <F001.004CB6DE.20020909132443@fatcity.com>
Date: Mon, 09 Sep 2002 13:24:43 -0800
To: Multiple recipients of list ORACLE-L <ORACLE-L@fatcity.com>
X-Comment: Oracle RDBMS Community Forum
X-Sender: "Seefelt, Beth" <Beth.Seefelt@TetleyUSA.com>
Sender: root@fatcity.com
Reply-To: ORACLE-L@fatcity.com
Errors-To: ML-ERRORS@fatcity.com
From: "Seefelt, Beth" <Beth.Seefelt@TetleyUSA.com>
Subject: RE: Disabling local partitioned indexes for load
Organization: Fat City Network Services, San Diego, California
X-ListServer: v1.0g, build 72; ListGuru (c) 1996-2001 Bruce A. Bergman
Precedence: bulk
Mime-Version: 1.0
Content-Type: text/plain;	charset="us-ascii"
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by naude.co.za id g89KT6515411


Hi,

I believe there is the caveat that it doesn't apply to pk indexes,
because they are required to enforce the integrity constaint, although I
can't find that in the documentation at the moment.

Beth

-----Original Message-----
Sent: Monday, September 09, 2002 5:03 PM
To: Multiple recipients of list ORACLE-L


Sorry...sent with the wrong heading......


-----Original Message-----
Sent: Monday, September 09, 2002 4:18 PM
To: Multiple recipients of list ORACLE-L


Hi all,

I have a large data load to run into a partitioned table.  With indexes
the
load takes over 24 hours, without on the order of 3 hours, obviously, I 
don't want to mess with the indexes until after the job completes.  So I

try to drop to local indexes and get ORA-14076.  Fair enough.  I go to 
metastink and see note 107976.1...exactly what I want.
So I try to use it...and get ORA-01502.  Has anybody done something like
this and found there's an extra caveat from the note?  Every other note 
oracle has seems to point back to the original one I am using.  I'm on 
Solaris 8/Oracle 9.0.1.3.

Any help would be appreciated.  Here's the output I'm getting...


SQL> select index_name, status from dba_ind_partitions where
partition_name
= 'TYPE13';

INDEX_NAME                     STATUS
------------------------------ --------
I_BUY_PR_PCE_TYPE_HIST_3       USABLE
I_BUY_PR_PCE_TYPE_HIST_2       USABLE
I_BUY_PR_PCE_TYPE_HIST_1       USABLE
PK_BUY_PRICE_PCE_TYPE_HISTORY  USABLE

SQL> ALTER TABLE buy_price_piece_type_history MODIFY PARTITION type13
 2   UNUSABLE LOCAL INDEXES;

Table altered.

SQL> select index_name, status from dba_ind_partitions where
partition_name
= 'TYPE13';

INDEX_NAME                     STATUS
------------------------------ --------
I_BUY_PR_PCE_TYPE_HIST_3       UNUSABLE
I_BUY_PR_PCE_TYPE_HIST_2       UNUSABLE
I_BUY_PR_PCE_TYPE_HIST_1       UNUSABLE
PK_BUY_PRICE_PCE_TYPE_HISTORY  UNUSABLE

SQL> ALTER SESSION SET skip_unusable_indexes = true;

Session altered.

SQL> insert into buy_price_piece_type_history partition (type13) select
*
from hold_type13; 
insert into buy_price_piece_type_history partition (type13) select *
from
hold_type13
*
ERROR at line 1:
ORA-01502: index 'RLADMIN.PK_BUY_PRICE_PCE_TYPE_HISTORY' or partition of
such
index is in unusable state

SQL> 

TIA,

John P Weatherman
Database Administrator
Replacements Ltd.
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: John Weatherman
  INET: john.weatherman@replacements.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Seefelt, Beth
  INET: Beth.Seefelt@TetleyUSA.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru@fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

