permaculture playing cards*
The moose likes Oracle/OAS and the fly likes getting error while droping the user in oracle. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "getting error while droping the user in oracle." Watch "getting error while droping the user in oracle." New topic
Author

getting error while droping the user in oracle.

Perumalla LakshmanaRao
Greenhorn

Joined: Sep 03, 2006
Posts: 9
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.
sachin K Kansal
Greenhorn

Joined: Aug 18, 2006
Posts: 9
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.


Sachin Kumar Kansal
DBA (Oracle), Database Migration Consultant
Perumalla LakshmanaRao
Greenhorn

Joined: Sep 03, 2006
Posts: 9
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

Joined: Sep 03, 2006
Posts: 9
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

Joined: Aug 18, 2006
Posts: 9
Bounce your database and then try.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: getting error while droping the user in oracle.
 
Similar Threads
need to drop number of user from database
Not able to drop user Oracle10.2.0.3 Ent Ed.
Oracle acts out. Can't drop a user.
jpa problem
Need help on saving child object