• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

getting error while droping the user in oracle.

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have created some new users in the database.
I want to drop the user that i have created earlier.But i am getting the following error.

SQL> drop user cms_common cascade;
drop user cms_common cascade
*
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-00942: table or view does not exist

Can you pls help me out for this problem as soon as possible.
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There should be an "after servererror" trigger on the database and it is also committing in it.

use the following query to find that trigger name.

select owner, trigger_name
from dba_triggers
where trigger_type = 'AFTER EVENT';

What you can do is, either drop that trigger or you can make it as an Autonomus Transaction.

For all this you should have the required previliges or a DBA role assigned.
 
Perumalla LakshmanaRao
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sachin,

Whatever query that you have provided,we tried with that one and we got the following rows for that query

SQL> conn system/******@fiu;
Connected.
SQL> select owner, trigger_name
2 from dba_triggers
3 where trigger_type = 'AFTER EVENT';

OWNER TRIGGER_NAME
------------------------------ ------------------------------
SYS AURORA$SERVER$STARTUP
SYS AW_DROP_TRG
SYS CDC_CREATE_CTABLE_AFTER
SYS SYS_LOGON
MDSYS SDO_DROP_USER

After that i tried to drop the triggers.But i am getting the following error for each trigger.

SQL> drop trigger AURORA$SERVER$STARTUP;
drop trigger AURORA$SERVER$STARTUP
*
ERROR at line 1:
ORA-04080: trigger 'AURORA$SERVER$STARTUP' does not exist


SQL> drop trigger AW_DROP_TRG;
drop trigger AW_DROP_TRG
*
ERROR at line 1:
ORA-04080: trigger 'AW_DROP_TRG' does not exist


SQL> drop trigger CDC_CREATE_CTABLE_AFTER;
drop trigger CDC_CREATE_CTABLE_AFTER
*
ERROR at line 1:
ORA-04080: trigger 'CDC_CREATE_CTABLE_AFTER' does not exist


SQL> drop trigger SYS_LOGON;
drop trigger SYS_LOGON
*
ERROR at line 1:
ORA-04080: trigger 'SYS_LOGON' does not exist


SQL> drop trigger SDO_DROP_USER;
drop trigger SDO_DROP_USER
*
ERROR at line 1:
ORA-04080: trigger 'SDO_DROP_USER' does not exist

Can you please suggest me what we will do now.
 
Perumalla LakshmanaRao
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sachin,

Whatever query that you have provided,we tried with that one and we got the following rows for that query

SQL> conn system/******@fiu;
Connected.
SQL> select owner, trigger_name
2 from dba_triggers
3 where trigger_type = 'AFTER EVENT';

OWNER TRIGGER_NAME
------------------------------ ------------------------------
SYS AURORA$SERVER$STARTUP
SYS AW_DROP_TRG
SYS CDC_CREATE_CTABLE_AFTER
SYS SYS_LOGON
MDSYS SDO_DROP_USER

After that i tried to drop the triggers.But i am getting the following error for each trigger.

SQL> drop trigger AURORA$SERVER$STARTUP;
drop trigger AURORA$SERVER$STARTUP
*
ERROR at line 1:
ORA-04080: trigger 'AURORA$SERVER$STARTUP' does not exist


SQL> drop trigger AW_DROP_TRG;
drop trigger AW_DROP_TRG
*
ERROR at line 1:
ORA-04080: trigger 'AW_DROP_TRG' does not exist


SQL> drop trigger CDC_CREATE_CTABLE_AFTER;
drop trigger CDC_CREATE_CTABLE_AFTER
*
ERROR at line 1:
ORA-04080: trigger 'CDC_CREATE_CTABLE_AFTER' does not exist


SQL> drop trigger SYS_LOGON;
drop trigger SYS_LOGON
*
ERROR at line 1:
ORA-04080: trigger 'SYS_LOGON' does not exist


SQL> drop trigger SDO_DROP_USER;
drop trigger SDO_DROP_USER
*
ERROR at line 1:
ORA-04080: trigger 'SDO_DROP_USER' does not exist

Can you please suggest me what we will do now.
 
sachin K Kansal
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Bounce your database and then try.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic