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: Ghost index prevents DROP USER CASCADE

Re: Ghost index prevents DROP USER CASCADE

From: Andy Hassall <andy_at_andyh.co.uk>
Date: Wed, 16 Jul 2003 23:55:29 +0100
Message-ID: <adlbhvg0n8unaoh14u4m4sl4801vcu4k27@4ax.com>


On Wed, 16 Jul 2003 23:05:56 +0200, "Sybrand Bakker" <postbus_at_sybrandb.demon.nl> wrote:

>> -----------------------------------------------------
>> SQL> drop user testcolo cascade;
>> drop user testcolo cascade
>> *
>> ERROR at line 1:
>> ORA-00604: error occurred at recursive SQL level 1
>> ORA-01418: specified index does not exist
>>
>> -----------------------------------------------------
>
>Looking at the name of the index, it is either a primary or an unique key
>constraint. To drop those indexes, you'll need to drop the constraint by
>using alter table drop constraint <constraint_name>. Dba_constraints will
>show the associated table.

 If that were the case, he'd get 'ORA-02429: cannot drop index used for enforcement of unique/primary key', not 'ORA-01418 specified index does not exist'.

>You can drop an user by issuing
>drop user <username> cascade.

 See above. That was the statement that initially caused the problem. You can't drop the user when hitting this problem.

--
Andy Hassall (andy@andyh.co.uk) icq(5747695) (http://www.andyh.co.uk)
Space: disk usage analysis tool (http://www.andyhsoftware.co.uk/space)
Received on Wed Jul 16 2003 - 17:55:29 CDT

Original text of this message

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