Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

drop tables

864103Apr 15 2013 — edited Apr 15 2013
Hi all ,

oracle 11g.2 under OL 5.6

i'm try to drop all tables from my abs schema by using the below commands
select 'drop table '||table_name||' cascade constraints;' from user_tables;
and all the tables drop just one not dropped i don't know why ?

SQL> select * from tab;

TNAME                          TABTYPE  CLUSTERID
------------------------------ ------- ----------
tamim_ghlrbsvc                 TABLE

SQL>


SQL> drop table tamim_ghlrbsvc;
drop table tamim_ghlrbsvc
           *
ERROR at line 1:
ORA-00942: table or view does not exist


SQL> drop table tamim_ghlrbsvc purge;
drop table tamim_ghlrbsvc purge
           *
ERROR at line 1:
ORA-00942: table or view does not exist


SQL> select object_type from user_objects where object_name='tamim_ghlrbsvc';

OBJECT_TYPE
-------------------
TABLE


SQL> select * from tamim_ghlrbsvc;
select * from tamim_ghlrbsvc
              *
ERROR at line 1:
ORA-01775: looping chain of synonyms


SQL> drop synonym tamim_ghlrbsvc;
drop synonym tamim_ghlrbsvc
             *
ERROR at line 1:
ORA-01434: private synonym to be dropped does not exist


SQL> drop public synonym tamim_ghlrbsvc;

Synonym dropped.

SQL>
SQL>
SQL>
SQL>
SQL> select * from tab;

TNAME                          TABTYPE  CLUSTERID
------------------------------ ------- ---------
tamim_ghlrbsvc                 TABLE
SQL> drop table tamim_ghlrbsvc;
drop table tamim_ghlrbsvc
           *
ERROR at line 1:
ORA-00942: table or view does not exist                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 13 2013
Added on Apr 15 2013
12 comments
569 views