Go to the FreeLists Home Page Home Signup Help Login
 



[oracle-l] || [Date Prev] [12-2006 Date Index] [Date Next] || [Thread Prev] [12-2006 Thread Index] [Thread Next]

Re: Index unusable

  • From: "Radoulov, Dimitre" <cichomitiko@xxxxxxxxx>
  • To: "oracle-l" <oracle-l@xxxxxxxxxxxxx>
  • Date: Fri, 1 Dec 2006 17:12:46 +0100
> 2x this week a non-partitioned pk index has become unusable preventing
> inserts into the table.
> 
> there has been no ddl on the table.


Given the question, I suppose that the table is not partitioned too, so:


SQL> create table t(a number);

Table created.

SQL> alter table t add constraint t_pk primary key (a);

Table altered.

[...]

$ cat test.ctl 
LOAD DATA
INFILE *
INTO TABLE T
(a)
BEGINDATA
1
1
$ sqlldr test/test control=test.ctl direct=y

SQL*Loader: Release 10.2.0.2.0 - Production on Fri Dec 1 16:38:30 2006

Copyright (c) 1982, 2005, Oracle.  All rights reserved.


Load completed - logical record count 2.

SQL> select * from t;

         A
----------
         1
         1

SQL> select status from user_indexes where table_name='T';

STATUS
--------
UNUSABLE



Regards
Dimitre




[ Home | Signup | Help | Login | Archives | Lists ]

All trademarks and copyrights within the FreeLists archives are owned by their respective owners.
Everything else ©2007 Avenir Technologies, LLC.