Unable to drop USERS tablespace.

Hi All,
I am trying to drop USERS tablespace and facing below error.
PLATFORM:
OS: Linux Ubuntu 9.04 LTS
SQL> select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE     10.2.0.1.0     Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
PROBLEM:
SQL> drop tablespace users including contents and datafiles cascade constraints;
drop tablespace users including contents and datafiles cascade constraints
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-24005: must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables
When I see, dba_queue_tables...
SQL> select owner, queue_table, object_type from dba_queue_tables;
OWNER               QUEUE_TABLE          OBJECT_TYPE
SYS               ALERT_QT           SYS.ALERT_TYPE
SYS               AQ$_MEM_MC
SYS               AQ_EVENT_TABLE          SYS.AQ$_EVENT_MESSAGE
SYS               AQ_SRVNTFN_TABLE      SYS.AQ$_SRVNTFN_MESSAGE
SYS               KUPC$DATAPUMP_QUETAB     SYS.KUPC$_MESSAGE
SYS               SCHEDULER$_EVENT_QTAB     SYS.SCHEDULER$_EVENT_INFO
SYS               SCHEDULER$_JOBQTAB     SYS.ANYDATA
SYS               SYS$SERVICE_METRICS_TAB     SYS.SYS$RLBTYP
SYSMAN               MGMT_NOTIFY_QTABLE     SYSMAN.MGMT_NOTIFY_NOTIFICATION
SYSTEM               DEF$_AQCALL
SYSTEM               DEF$_AQERROR
11 rows selected.
Also, there are no tables in USERS tablespace now, as I've moved all to other tablespace.
SQL> select count(*) from dba_tables where tablespace_name='USERS';
COUNT(*)
     0
USERS tablespace is not permanent tablespace as I've changed it to some other, still the problem.
SQL> select property_name, property_value from database_properties where PROPERTY_NAME = 'DEFAULT_PERMANENT_TABLESPACE'
PROPERTY_NAME          PROPERTY_VALUE
DEFAULT_PERMANENT_TABLESPACE DEV
Can you please help me drop the USERS tablespace.

Thanks Hemant,
I queried as below.
SQL> select count(*) from dba_segments where tablespace_name='USERS';
COUNT(*)
     7
SQL> SELECT owner, segment_name, segment_type from dba_segments where tablespace_name='USERS';
OWNER               SEGMENT_NAME
SEGMENT_TYPE
IX               SYS_IOT_TOP_62384
INDEX
IX               SYS_IOT_TOP_62386
INDEX
IX               SYS_IOT_TOP_62390
INDEX
IX               SYS_IOT_TOP_62392
INDEX
IX               SYS_IOT_TOP_62395
INDEX
IX               SYS_IOT_TOP_62397
INDEX
IX               SYS_IOT_TOP_62401
INDEX
7 rows selected.
SQL> drop user ix cascade;
drop user ix cascade
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-24005: must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables
Then connected as 'IX' user.
IX@devdb> exec sys.DBMS_AQADM.DROP_QUEUE_TABLE(queue_table=>'SYS_IOT_TOP_62384',force => TRUE);
BEGIN sys.DBMS_AQADM.DROP_QUEUE_TABLE(queue_table=>'SYS_IOT_TOP_62384',force => TRUE); END;
ERROR at line 1:
ORA-24002: QUEUE_TABLE IX.SYS_IOT_TOP_62384 does not exist
ORA-06512: at "SYS.DBMS_AQADM_SYS", line 4084
ORA-06512: at "SYS.DBMS_AQADM", line 197
ORA-06512: at line 1
IX@devdb> alter index SYS_IOT_TOP_62384 rebuild tablespace dev;
alter index SYS_IOT_TOP_62384 rebuild tablespace dev
ERROR at line 1:
ORA-28650: Primary index on an IOT cannot be rebuilt
IX@devdb> SELECT INDEX_TYPE,TABLE_NAME,TABLESPACE_NAME,STATUS FROM USER_INDEXES;
INDEX_TYPE          TABLE_NAME               TABLESPACE_NAME          STATUS
LOB               STREAMS_QUEUE_TABLE      DEV                    VALID
NORMAL               ORDERS_QUEUETABLE          DEV                    VALID
NORMAL               STREAMS_QUEUE_TABLE      DEV                    VALID
NORMAL               AQ$_ORDERS_QUEUETABLE_S     DEV                    VALID
NORMAL               AQ$_STREAMS_QUEUE_TABLE_C     DEV                    VALID
NORMAL               AQ$_STREAMS_QUEUE_TABLE_S     DEV                    VALID
LOB               STREAMS_QUEUE_TABLE      DEV                    VALID
LOB               ORDERS_QUEUETABLE          DEV                    VALID
IOT - TOP          AQ$_STREAMS_QUEUE_TABLE_T     USERS               VALID
IOT - TOP          AQ$_STREAMS_QUEUE_TABLE_I     USERS               VALID
IOT - TOP          AQ$_STREAMS_QUEUE_TABLE_H     USERS               VALID
IOT - TOP          AQ$_STREAMS_QUEUE_TABLE_C     USERS               VALID
IOT - TOP          AQ$_ORDERS_QUEUETABLE_T     USERS               VALID
IOT - TOP          AQ$_ORDERS_QUEUETABLE_I     USERS               VALID
IOT - TOP          AQ$_ORDERS_QUEUETABLE_H     USERS               VALID
15 rows selected.
IX@devdb> alter table AQ$_STREAMS_QUEUE_TABLE_T move tablespace dev;
alter table AQ$_STREAMS_QUEUE_TABLE_T move tablespace dev
ERROR at line 1:
ORA-08108: may not build or rebuild this type of index online

Similar Messages

  • How to drop users tablespace

    Hey to all
         I want to drop USER tablespace wid data file but as we know many oracle users Scott OE data reside in users. How can I protect their data. One method which I read on net to export and import once again is quite cumbersome I run this query
    SELECT
    owner
    , segment_name
    , segment_type
    FROM
    dba_segments
    WHERE
    tablespace_name='USERS'
    it give me two user OE and SCOTT. How can I protect their data before drop the user tablespace

    Hi..
    As you said direct load takes place, then the rows which are inserted are always inserted above the HWM.So the datafile size size kept on increasing.
    i read about segment advisor i run the advisor it shrink the segment but users tablespace size on OS still 200 GB could anyone tell why??You would have run alter table <table_name> shrink space; -- This statement will procede in two steps:
    - The first step makes the segment compact by moving rows further down to free blocks at the beginning of the segment.
    - The second step adjusts the high watermark. For this Oracle needs an exclusive table lock,but for a very short moment only.
    The HWM goes below, and table are now more well organized.This command doesn't resize the datafile at the OS level.So, the datafile sizes will remain the same.One thing which you can do is resize(decrease) the datafile.
    MINIMUM DATAFILE SIZE
    COLUMN block_size NEW_VALUE v_block_size
    SELECT TO_NUMBER(value) AS block_size
    FROM   v$parameter
    WHERE  name = 'db_block_size';
    COLUMN tablespace_name FORMAT A20
    COLUMN file_name FORMAT A50
    COLUMN current_bytes FORMAT 999999999999999
    COLUMN shrink_by_bytes FORMAT 999999999999999
    COLUMN resize_to_bytes FORMAT 999999999999999
    SET VERIFY OFF
    SET LINESIZE 200
    SELECT a.tablespace_name,
           a.file_name,
           a.bytes/1024/1024 AS current_MB,
           (a.bytes - b.resize_to)/1024/1024 AS shrink_by_MB,
           b.resize_to/1024/1024 AS resize_to_MB
    FROM   dba_data_files a,
           (SELECT file_id, MAX((block_id+blocks-1)*&v_block_size) AS resize_to
            FROM   dba_extents
            GROUP by file_id) b
    WHERE  a.file_id = b.file_id
    ORDER BY a.tablespace_name, a.file_name;Edited by: Anand... on Feb 17, 2009 12:01 PM

  • Unable to drop und tablespace

    Iam getting error when dropping undo tablespace
    drop tablespace undotbs1 including contents and datafiles;+
    ORA-01548: active rollback segment '_SYSSMU1$' found, terminate dropping tablespace+
    Version 10.2
    Thanks in Advance
    Abk

    as per the document
    http://www.dba-oracle.com/t_fix_undo_log_corruption.htm
    select
    segment_name,
    status
    from
    dba_rollback_segs
    where
    tablespace_name='undotbs1'
    and
    status = ‘NEEDS RECOVERY’;
    _SYSSMU1$
    _SYSSMU2$
    _SYSSMU3$
    _SYSSMU4$
    _SYSSMU5$
    _SYSSMU6$
    _SYSSMU7$
    _SYSSMU8$
    _SYSSMU9$
    _SYSSMU10$
    _SYSSMU11$                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Unable to drop user owf_mgr

    Hi,
    I get ORA-00600: internal error code, arguments: [kzdukl], [24], [], [], [], [], [], [] when I try to drop user owf_mgr cascade.
    I've just tried all the metalink suggestions about it, note 236989.1, 270336.1 etc.
    No OWF_MGR rules, rule sets, queues, queue_tables are still in the dictionary.
    DB version 9.2.0.3 - OWF 2.6.2 - Solaris platform
    Any suggestions?
    Thanks in advance
    Maurizio

    Hello,
    I have got the same error and I have tried metalink with out any success can some one please help me how to get ride of the given schema whcih contains Advanced queue tables and I have no idea which circumstances resulted this error.
    I have alter the session to set the context or to suppress the AQ tables or to suppress any internal algorithm.
    alter session set events '10851 trace name context forever, level 2';
    SQL> DROP USER AQUSER CASCADE;
    DROP USER AQUSER CASCADE
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [kzdukl], [24], [], [], [], [], [], []
    Content from the dump file generated by oracle in udump
    ksedmp: internal or fatal error
    ORA-00600: internal error code, arguments: [kzdukl], [24], [], [], [], [], [], []
    Current SQL statement for this session:
    drop user aquser cascade
    Thanks
    Chandra
    Message was edited by:
    user491558

  • Unable to drop user

    i am receiving the following error while dropping user..
    SQL> drop user ONAIR cascade;
    drop user ONAIR cascade
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-24005: must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables
    i queried dba_queue_tables but its showing that thr r no queue tables present..
    select queue_table from dba_queue_tables where owner ='ONAIR';
    no rows selected
    db version is 10.2.0.4.0 aix server

    Manually deleted all the tables but the following two tables arent getting dropped..
    SQL> select owner,table_name from dba_tables where owner='ONAIR';
    OWNER TABLE_NAME
    ONAIR FILTER_REP_QUEUE_DATA
    ONAIR JOB_QUEUE_DATA
    SQL> drop table ONAIR.JOB_QUEUE_DATA
    ERROR at line 1:
    ORA-24005: must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables..
    Then used DBMS_AQADM to drop the table but no luck..
    SQL> EXECUTE DBMS_AQADM.DROP_QUEUE_TABLE(queue_table => 'JOB_QUEUE_DATA', force => TRUE);
    BEGIN DBMS_AQADM.DROP_QUEUE_TABLE(queue_table => 'JOB_QUEUE_DATA', force => TRUE); END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00201: identifier 'DBMS_AQADM' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored

  • Cannot drop user -must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables

    Hi,
    I had this issue before, but forgot the command that should be used to flush some kind of a trash bin.
    Can someone assist me?
    Thanks!

    Hi,
    Use this link :
    Re: Unable to drop USERS tablespace.

  • Error when dropping a user/tablespace

    Hi
    I am trying to drop user/tablespaces, but I got the following error
    SQL> drop user SM92 cascade;
    drop user SM92 cascade
    ERROR at line 1:
    ORA-00604: error occurred at recursive SQL level 1
    ORA-00942: table or view does not exist
    Currently this user has not tables or view, the statement select * from all_tables where owner='SM92' return no row
    ANyone knows why I can't drop this user? What should I check?
    Thanks
    Li

    Hi, probably the user has dependency with other schemas, please review the Note:361576.1 into metalink site.
    Good luck.
    Regards.

  • How to drop Users DBF file in oracle 11g?

    Hi All
    I dropped the user and want to free the table space(To import another user(Which has more than 10 GB of record).
    the below is my query which i used to import the data and schema
    impdp system/test DIRECTORY=dump_dir DUMPFILE=exp_test.dmp FULL=Y LOGFILE=import_test.log REMAP_TABLESPACE=TEST_DATA:USERS
    After dropping my user i checked into the folder C:\oradata\orcl and i found two files USERS01.DBF(21.1GB,its 21.1 gb because i tried to cretae an another schema nd i got stuc up with low disk space.) and TEMP01.DBF(1.66GB).
    I tried to drop USERS tablespace and i could nt able to do it.
    Can any one help me to reduce the size of both two files?
    Thanks & Regards
    Vijay
    Edited by: Vijayamurugan on Jun 15, 2011 8:22 AM

    bobonacus wrote:
    shutdown immediate
    startup nomount
    alter database mount;
    why not just 'startup mount'?? Why the two-step?
    alter database rename file
    'e:\oracle\oradata\orcl\indx01.dbf',
    'e:\oracle\oradata\orcl\rbs01.dbf',
    'e:\oracle\oradata\orcl\system01.dbf',
    'e:\oracle\oradata\orcl\temp01.dbf',
    'e:\oracle\oradata\orcl\tools01.dbf',
    'e:\oracle\oradata\orcl\users01.dbf',
    'e:\oracle\oradata\orcl\file1.dbf',
    'e:\oracle\oradata\orcl\file2.dbf'
    to
    'd:\oracle\oradata\orcl\indx01.dbf',
    'd:\oracle\oradata\orcl\rbs01.dbf',
    'd:\oracle\oradata\orcl\system01.dbf',
    'd:\oracle\oradata\orcl\temp01.dbf',
    'd:\oracle\oradata\orcl\tools01.dbf',
    'd:\oracle\oradata\orcl\users01.dbf',
    'd:\oracle\oradata\orcl\file1.dbf',
    'd:\oracle\oradata\orcl\file2.dbf'
    ;I'm not sure the RENAME clause allows multiple files to be listed like that. In any event, just reduce the chance of error, I'd do it file by file.
    You forgot to mention that you need to actually move the files, at the os level. All the above does is change their entries in the control file. It doesn't do anything at all to the files themselves.
    >
    shutdown immediate
    startup
    No need for the shutdown. You could just ALTER DATBASE OPEN.
    >
    >
    you can get a full listing of files by
    alter database backup controlfile to trace;
    and you can then copy and paste from that ...
    Simpler, just select from dba_data_files.
    eta. of course assuming you mean move your database files rather than your installation
    Edited by: bobonacus on Jun 16, 2011 3:30 PM

  • Unable to drop database user

    Hi All,
    I am unable to drop database user and getting the folllowing error:
    " must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queue tables "
    I find 3 table with AQ prefix in the schema but unable to drop these table even by using "sys" user.
    Any idea how can I do that ?
    Regards,

    Hi,
    select object_name,object_type from dba_objects where owner='USERNAME' and object_name like '%AQ%';TO drop the queue table, login as the owner and
    exec DBMS_AQADM.DROP_QUEUE_TABLE(queue_table=>'PASTE_THE_OBJECT_NAME_FROM_ABOVE',force =>TRUE);Anand

  • Unable to create a tablespace under user scott despite of many privileges

    Hi,
    I use user scott to test a rdf database using oracle 11.2.0.2 contained in oracle developer days in my oracle linux enterprise guest system. However, I am unable to create a tablespace under scott. The error message says insufficient privilege. Actually, I granted all privilege in Roles, System Privileges, Object Privileges to scott in the OEM panel. I also granted resource, create session, create table, unlimited tablespace to scott in sqlplus as well. However, I am still unable to create the tablespace. The command I used for creating tablespace is below:
    create tablespace rdf_tblspace
    datafile '\home\oracle\app\oracle\oradata\rdf_tblspace.dat' size 14m reuse
    autoextend on next 10m maxsize unlimited
    segment space management auto;
    Error at Command Line:1 Column:1
    Error report:
    SQL Error: ORA-01031: insufficient privileges
    01031. 00000 - "insufficient privileges"
    Any suggestions will be much appreciated. Thanks a lot in advance.

    user571093 wrote:
    Hi,
    Thanks for the helpful info. Can you pls show me how to grant REATE TABLESPACE system privilege to scott? The System Priveleges in OEM is not enough for scott? Thanks a lot.You should first go through [url http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_9013.htm] this  This link contains details of GRANT command.
    create tablespace is a system privilage granted to a user by the DBA in below way:
    grant create tablespace to scott;

  • Unable to drop schema-user with AQTables

    Hello,
    Due to dirty manipulation on a schema (Oracle 9ir2), somes queues tables had been deleted, and others aq$_ tables exist.
    I'm not able to drop the user ;-(
    Impossible to drop the user, ORA-00604 error occured at recursive SQL level 1 - ORA-24005 must use DBMS_AQADM.DROP_QUEUE_TABLE to drop queues tables.
    and using DROP_QUEUE_TABLE return queue_tables does not exist.
    Any idea to drop the schema ?
    Thanks
    Rafael.

    Hy
    I had a similar problem with 8i and drop user cascade.
    Try this:
    1) create the same queues in another schema
    2) search the 'missing' tables in the new schema
    3) rebuild this tables in the corrupted schema (you may use dbastudio to get the DDL)
    4) use stop_queue, drop_queue and drop_queue_table to drop
    Lars Tetzlaff

  • Unable to descripe the table and unable to drop the table

    Hi,
    I have a temp table that we use like staging table to import the data in to the main table through some scheduled procedures.And that will dropped every day and will be created through the script.
    Some how while I am trying to drop the table manually got hanged, There after I could not find that table in dba_objects, dba_tables or any where.
    But Now I am unable to create that table manually(Keep on running the create command with out giving any error), Even I am not getting any error (keep on running )if I give drop/desc of table.
    Can you please any one help on this ? Is it some where got stored the table in DB or do we any option to repair the table ?
    SQL> select OWNER,OBJECT_NAME,OBJECT_TYPE,STATUS from dba_objects where OBJECT_NAME like 'TEMP%';
    no rows selected
    SQL> desc temp
    Thank in advance.

    Hi,
    if this table drops then it moved DBA_RECYCLEBIN table. and also original name of its changed automatically by oracle.
    For example :
    SQL> create table tst (col varchar2(10), row_chng_dt date);
    Table created.
    SQL> insert into tst values ('Version1', sysdate);
    1 row created.
    SQL> select * from tst ;
    COL        ROW_CHNG
    Version1   16:10:03
    If the RECYCLEBIN initialization parameter is set to ON (the default in 10g), then dropping this table will place it in the recyclebin:
    SQL> drop table tst;
    Table dropped.
    SQL> select object_name, original_name, type, can_undrop as "UND", can_purge as "PUR", droptime
      2  from recyclebin
    SQL> /
    OBJECT_NAME                    ORIGINAL_NAME TYPE  UND PUR DROPTIME
    BIN$HGnc55/7rRPgQPeM/qQoRw==$0 TST           TABLE YES YES 2013-10-08:16:10:12
    All that happened to the table when we dropped it was that it got renamed. The table data is still there and can be queried just like a normal table:
    SQL> alter session set nls_date_format='HH24:MI:SS' ;
    Session altered.
    SQL> select * from "BIN$HGnc55/7rRPgQPeM/qQoRw==$0" ;
    COL        ROW_CHNG
    Version1   16:10:03
    Since the table data is still there, it's very easy to "undrop" the table. This operation is known as a "flashback drop". The command is FLASHBACK TABLE... TO BEFORE DROP, and it simply renames the BIN$... table to its original name:
    SQL> flashback table tst to before drop;
    Flashback complete.
    SQL> select * from tst ;
    COL        ROW_CHNG
    Version1   16:10:03
    SQL> select * from recyclebin ;
    no rows selected
    It's important to know that after you've dropped a table, it has only been renamed; the table segments are still sitting there in your tablespace, unchanged, taking up space. This space still counts against your user tablespace quotas, as well as filling up the tablespace. It will not be reclaimed until you get the table out of the recyclebin. You can remove an object from the recyclebin by restoring it, or by purging it from the recyclebin.
    SQL> select object_name, original_name, type, can_undrop as "UND", can_purge as "PUR", droptime
      2  from recyclebin
    SQL> /
    OBJECT_NAME                    ORIGINAL_NAME TYPE                      UND PUR DROPTIME
    BIN$HGnc55/7rRPgQPeM/qQoRw==$0 TST           TABLE                     YES YES 2006-09-01:16:10:12
    SQL> purge table "BIN$HGnc55/7rRPgQPeM/qQoRw==$0" ;
    Table purged.
    SQL> select * from recyclebin ;
    no rows selected
    Thank you
    And check this link:
    http://www.orafaq.com/node/968
    http://docs.oracle.com/cd/B28359_01/server.111/b28310/tables011.htm
    Thank you

  • Space not reclaimed afre dropping user

    hello all,
    OS:- RHEL 5.2
    database:- oracle 10.2.0.1
    i dropped a user from my database due to lack of space on partition.but it didn't reclaim space in database and keep telling the space space on partition...i tried alter tablespace colesce but same result as it is having multiple datafiles i am unable to know which datafile to resize..
    i also purge recyclebin, but no luck, how can i reclaim space on tablespace level???? i also tried resize for database but got
    ORA-32773: operation not supported for smallfile tablespace USERSso any suggestion will be appreciable, that user was occupying 4 GB of space and i dropped it, but still unable to reclaim space..how can i do that???
    thanks and regards
    VD

    hello,
    actually the tablespace_name is users i put it wrong there and it is generating lot of records....(5185) i cannot post all here.....total size of users tablespace is 50GB.....
    actually that was user i dropped and having size of 4 GB
    SQL> select segment_name,segment_type,(bytes/1024/1024)MB from dba_segments where tablespace_name='USERS'
      2  and owner='username'';
    no rows selectedi have got this script from asktom...can i directly run it on my server??? i think this will resize all datafiles which are candidate for reclaiming space...actually i have multiple datafiles in users tablespace that is the issue i don't know which datafile to resize ......
    set verify off
    column file_name format a50 word_wrapped
    column smallest format 999,990 heading "Smallest|Size|Poss."
    column currsize format 999,990 heading "Current|Size"
    column savings  format 999,990 heading "Poss.|Savings"
    break on report
    compute sum of savings on report
    column value new_val blksize
    select value from v$parameter where name = 'db_block_size'
    select file_name,
           ceil( (nvl(hwm,1)*&&blksize)/1024/1024 ) smallest,
           ceil( blocks*&&blksize/1024/1024) currsize,
           ceil( blocks*&&blksize/1024/1024) -
           ceil( (nvl(hwm,1)*&&blksize)/1024/1024 ) savings
    from dba_data_files a,
         ( select file_id, max(block_id+blocks-1) hwm
             from dba_extents
            group by file_id ) b
    where a.file_id = b.file_id(+)
    column cmd format a75 word_wrapped
    select 'alter database datafile '''||file_name||''' resize ' ||
           ceil( (nvl(hwm,1)*&&blksize)/1024/1024 )  || 'm;' cmd
    from dba_data_files a,
         ( select file_id, max(block_id+blocks-1) hwm
             from dba_extents
            group by file_id ) b
    where a.file_id = b.file_id(+)
      and ceil( blocks*&&blksize/1024/1024) -
          ceil( (nvl(hwm,1)*&&blksize)/1024/1024 ) > 0
    / thanks and regards
    VD
    Edited by: Dixit on Sep 14, 2009 12:06 AM
    Edited by: Dixit on Sep 14, 2009 12:07 AM

  • Why I got error ORA-02429 when I tried to drop a tablespace?

    I use the following command to drop the tablespace:
    drop tablespace users including contents and datafiles;The error message is below:
    Error report:
    SQL Error: ORA-00604: error occurred at recursive SQL level 1
    ORA-02429: cannot drop index used for enforcement of unique/primary key
    00604. 00000 -  "error occurred at recursive SQL level %s"
    *Cause:    An error occurred while processing a recursive SQL statement
               (a statement applying to internal dictionary tables).
    *Action:   If the situation described in the next error on the stack
               can be corrected, do so; otherwise contact Oracle Support.However, I have removed all the tables and indexes in this tablespace.
    Nothing found when I issued the following enquiries.
    select index_name from user_indexes where TABLESPACE_NAME = 'USERS';
    select table_name from user_tables where TABLESPACE_NAME = 'USERS';Is there anything I missed?
    Thanks in advance.

    999274 wrote:
    Could you please let me know how to purge recyclebin ?It's bad form to hijack someone else's thread for your own questions.
    As for your question
    =================================================
    Learning how to look things up in the documentation is time well spent investing in your career. To that end, you should drop everything else you are doing and do the following:
    Go to [url tahiti.oracle.com]tahiti.oracle.com.
    Locate the link for your Oracle product and version, and click on it.
    You are now at the entire documentation set for your selected Oracle product and version.
    <b><i><u>BOOKMARK THAT LOCATION</u></i></b>
    Spend a few minutes just getting familiar with what is available here. Take special note of the "books" and "search" tabs. Under the "books" tab (for 10.x) or the "Master Book List" link (for 11.x) you will find the complete documentation library.
    Spend a few minutes just getting familiar with what <b><i><u>kind</u></i></b> of documentation is available there by simply browsing the titles under the "Books" tab.
    Open the Reference Manual and spend a few minutes looking through the table of contents to get familiar with what <b><i><u>kind</u></i></b> of information is available there.
    Do the same with the SQL Reference Manual.
    Do the same with the Utilities manual.
    You don't have to read the above in depth. They are <b><i><u>reference</b></i></u> manuals. Just get familiar with <b><i><u>what</b></i></u> is there to <b><i><u>be</b></i></u> referenced. Ninety percent of the questions asked on this forum can be answered in less than 5 minutes by simply searching one of the above manuals.
    Then set yourself a plan to dig deeper.
    - Read a chapter a day from the Concepts Manual.
    - Take a look in your alert log. One of the first things listed at startup is the initialization parms with non-default values. Read up on each one of them (listed in your alert log) in the Reference Manual.
    - Take a look at your listener.ora, tnsnames.ora, and sqlnet.ora files. Go to the Network Administrators manual and read up on everything you see in those files.
    - When you have finished reading the Concepts Manual, do it again.
    Give a man a fish and he eats for a day. Teach a man to fish and he eats for a lifetime.
    =================================

  • Cannot drop a tablespace

    Hi,
    A datafile of my database has been deleted from the OS and cannot be recovered. The related tablespace exits in the database.
    I want to drop this tablespace, but oracle does not allow me to do so. I dont have the backup of the datafile.
    Can something be done.
    Regards
    ANiL.

    Hi
    If your database is in archivelog mode and u have all the archive files than u can recover this datafile
    no need to drop it or create the controlfile also.
    steps are ...
    [SUNSHINE ~]$ sqlplus
    SQL*Plus: Release 10.1.0.3.0 - Production on Wed Oct 11 16:14:20 2006
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Enter user-name: sys as sysdba
    Enter password:
    Connected to an idle instance.
    SQL> startup
    ORACLE instance started.
    Total System Global Area 209715200 bytes
    Fixed Size 778432 bytes
    Variable Size 191897408 bytes
    Database Buffers 16777216 bytes
    Redo Buffers 262144 bytes
    Database mounted.
    ORA-01157: cannot identify/lock data file 6 - see DBWR trace file
    ORA-01110: data file 6: '/home/oracle/orcl/data/abc.dbf'
    SQL> alter database create datafile '/home/oracle/orcl/data/abc.dbf' as '/home/oracle/orcl/data/abc.dbf';
    Database altered.
    SQL> alter database open;
    alter database open
    ERROR at line 1:
    ORA-01113: file 6 needs media recovery
    ORA-01110: data file 6: '/home/oracle/orcl/data/abc.dbf'
    SQL> recover database;
    Media recovery complete.
    SQL> alter database open;
    Database altered.
    SQL>
    Regards,
    Symal

Maybe you are looking for

  • Using a font embedded swf in mxml

    Hello, We need to load in fonts at runtime due to localization needs. I've got this working in an AS3 project in Flex by embedding the font in a class and then loading that swf into another class and registering the font. What I need now is to be abl

  • KVM Switch?  Is that what I need?

    Greetings, I've recently migrated to a fantastic MacPro after years using PC's. Don't know what took me so long, but I'm grateful to be where I am today! I have always used 2 monitors with my pc's and I'm currently using the same 2 monitors with the

  • How can I do to display the imported pictures' effects on my PC ?

    I took some pictures with my iPhone with an effect (black and white for example). Then I imported them to my computer and the pictures in black and white were on my computer without effect (in colour) ! As if I didn't take them in black and white but

  • JDBC Exception in OIM adapter

    I have added a new adapter and added a java resource in adapter in which i am using Oracle JDBC connection to get some data from the Database.. that was working fine i was able to get data from the database, but after some time it start giving me exc

  • Starting weblogic 6.0(for unix) but I find a error.

    Hi! everyone. Env: OS: Solaris 8 for IA (OEM Support) JDK: Sun JDK 1.3.1 WebAppServer: WebLogic server 6.0 C compiler: gcc 2.95.2 I install weblogic 6.0 on my OS. when I starting weblogic 6.0,I find a error: ####<2001-11-15 ÉÏÎç08ʱ53·Ö56Ãë> <Notice>