"DROP USER" fails with error: ORA-00942 and ORA-00604 (二)
Drop User command fails with errors ORA-00604 and ORA-00942 [ID 375954.1]
--------------------------------------------------------------------------------
Applies to:
Oracle Server - Enterprise Edition - Version: 9.2.0.1 to 11.2.0.2 - Release: 9.2 to 11.2
Information in this document applies to any platform.
Checked for currency 06-Sep-10
Symptoms
When trying to drop a user, the command fails with errors ORA-00604 and ORA-00942
Oracle Server - Enterprise Edition - Version: 9.2.0.1 to 11.2.0.2 - Release: 9.2 to 11.2
Information in this document applies to any platform.
Checked for currency 06-Sep-10
Symptoms
When trying to drop a user, the command fails with errors ORA-00604 and ORA-00942
1. Example
SQL> drop user test ;
drop user test
*
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-00942: table or view does not exist
SQL> drop user test ;
drop user test
*
ERROR at line 1:
ORA-00604: error occurred at recursive SQL level 1
ORA-00942: table or view does not exist
2. sql trace
alter session set sql_trace=true;
alter session set events'10046 trace name context forever,level 4';
alter session set events'10046 trace name context forever,level 4';
SQL> drop user test ;
alter session set sql_trace=false;
SQL trace (10046) trace will show a dml operation performed on system.aq$_internet_agent_privs
table.
table.
----------------------------------------------------------------------------------------------------------
PARSE ERROR #5:len=78 dep=1 uid=0 ct=7 lid=0 tim=1416609304389 err=942
delete from system.aq$_internet_agent_privs WHERE db_username = NLS_UPPER(:1)
EXEC #1:c=70000,e=552054,p=148,cr=448,cu=0,mis=0,r=0,dep=0,og=4,tim=
1416609309213
ERROR #1:err=604 tim=145060793
STAT #2 id=1 cnt=0 pid=0 pos=1 bj=3490 p='TABLE ACCESS FULL OBJ#(3490) '
----------------------------------------------------------------------------------------------------------
PARSE ERROR #5:len=78 dep=1 uid=0 ct=7 lid=0 tim=1416609304389 err=942
delete from system.aq$_internet_agent_privs WHERE db_username = NLS_UPPER(:1)
EXEC #1:c=70000,e=552054,p=148,cr=448,cu=0,mis=0,r=0,dep=0,og=4,tim=
1416609309213
ERROR #1:err=604 tim=145060793
STAT #2 id=1 cnt=0 pid=0 pos=1 bj=3490 p='TABLE ACCESS FULL OBJ#(3490) '
----------------------------------------------------------------------------------------------------------
3.Cause
The table system.aq$_internet_agent_privs is missing.
The table system.aq$_internet_agent_privs is missing.
4.Solution
To implement the solution, execute the following steps:
To implement the solution, execute the following steps:
a) Check if system.aq$_internet_agent_privs exist.
SQL> conn / as sysdba
SQL> desc system.aq$_internet_agent_privs
SQL> desc system.aq$_internet_agent_privs
b) Make sure that the default tablespace of SYSTEM user is properly set to SYSTEM tablespace.
SQL> select default_tablespace from dba_users where username='SYSTEM';
DEFAULT_TABLESPACE
------------------------------
SYSTEM
------------------------------
SYSTEM
c)If system.aq$_internet_agent_privs does not exist, run $ORACLE_HOME/rdbms/admin/catqueue.sql
script. manually logged in as 'SYS AS SYSDBA'. This will create the system.aq$_internet_agent_privs
table
script. manually logged in as 'SYS AS SYSDBA'. This will create the system.aq$_internet_agent_privs
table
SQL> conn / as sysdba
SQL> @$ORACLE_HOME/rdbms/admin/catqueue.sql
SQL> exit
SQL> @$ORACLE_HOME/rdbms/admin/catqueue.sql
SQL> exit
d)Confirm that system.aq$_internet_agent_privs is created properly:
SQL> desc system.aq$_internet_agent_privs
Name Null? Type
----------- -------- ------------
AGENT_NAME NOT NULL VARCHAR2(30)
DB_USERNAME NOT NULL VARCHAR2(30)
----------- -------- ------------
AGENT_NAME NOT NULL VARCHAR2(30)
DB_USERNAME NOT NULL VARCHAR2(30)
5.Then execute the DROP USER command again.
參考文獻:
1. Drop User command fails with errors ORA-00604 and ORA-00942 [ID 375954.1]
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9252210/viewspace-696144/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- "DROP USER" fails with error: ORA-00942 and ORA-00604 (一)AIError
- maridb Error 'Operation DROP USER failed forErrorAI
- Oracle中drop user和drop user cascade的區別Oracle
- ora-00604 ora-00942 問題處理<轉>
- Drop Table Fails With ORA-600 [15264]AI
- 【故障處理】Bug : ASM FAILS WITH CHECKRESOURCE ERROR ERROR CODE = 139ASMAIError
- Drop Table Fails With ORA-600 [15264] [ID 338953.1]AI
- mysql中delete fro mysql.user where XX和drop user的不同MySqldelete
- Connection to x as user y failed: ERROR: Wrong password for userAIError
- drop物化檢視log表導致insert、delete、update報ORA-00942delete
- 資料庫審計(create/alter/drop table、user、tablespace)資料庫
- DROP USER過程中出現的奇怪的物件資訊物件
- Error accessing PRODUCT_USER_PROFILEError
- from v * ERROR at line 1: ORA-00942: table or view does not existErrorView
- drop user 報ORA-03113 問題處理
- DataPump Export (EXPDP) Fails With Error LPX-216 Invalid CharacterExportAIError
- Autoconfig On Db Tier Fails With Error - SP2-1503AIError
- Unable To Mount Or Drop A Diskgroup, Fails With Ora-15032 And Ora-15063_353423.1AI
- ERROR 1045 (28000): Access denied for userError
- Error: User gpmon is not allowed to login Command CenterError
- 案例學習Oracle錯誤: ORA-00604 error occurred at recursive SQL level stringOracleErrorSQL
- Oracle OCP 1Z0-053 Q85(DROP USER CASCADE)Oracle
- oracle10g中drop user造成ORA-07445 core dumpOracle
- GTID複製報錯處理:Last_Error: Error 'Can't drop database 'test';ASTErrorDatabase
- ORACLE下使用者無法順利刪除問題處理一則-ORA-00604和ORA-00942錯誤Oracle
- Error: User gpmon is not allowed to login Command Center.Error
- ERROR 1045 (28000): Access denied for user 'root'@'localhost'Errorlocalhost
- Error 1045(28000) Access Denied for user 'root'@'localhost'Errorlocalhost
- Fails to Start: PMON (ospid: nnnn): terminating the instance due to error 481AIError
- EM GC11.1.0.1 Agent Startup on AIX Fails with Error: nmectl_validate_1386861.1GCAIError
- adcfgclone.pl appsTier fails with error AC-50207GCAPPAIError
- 【問題處理】使用者無法順利刪除問題處理一則-ORA-00604和ORA-00942錯誤
- tidb Error: Operation aborted by user answer '' (cliutil.operation_aborted)TiDBError
- Mysql:ERROR 1045 (28000): Access denied for user 'root'@'localhost'MySqlErrorlocalhost
- DBLOGIN ERROR: Failed to open data source for user OGG.ErrorAI
- mysql can't connect error about privilege----not root userMySqlError
- Agent Install Fails with Error 'OUI-25031' Due to Environment Settings_380507.1AIErrorUI
- Oracle Database Fails to Start with Error ORA-12547 [ID 1307075.1]OracleDatabaseAIError