ORA-06576 error during Drop User (文档 ID 1498610.1)
2017-03-22 16:30
981 查看
metlink引用文档
In this Document
Oracle Server - Enterprise Edition - Version 10.2.0.1 and later
Information in this document applies to any platform.
Dropping a user schema results in below errors:
A DDL trigger is defined on the drop statement.
Next query will get you the definition of the DDL Triggers in the system.
Get an errorstack for ORA-06576 error:
When executing 'drop user gg_admin', the resultant trace file shows the failing statement is a call to wmsys.no_vm_drop_proc('USER', 'GG_ADMIN', '').
From errorstack trace file we could observe the following:
The triggers enabled for this were in this case NO_VM_DDL and NO_VM_DROP_A
Check if there are any DROP BEFORE triggers enabled. Once you drop the trigger, it will allow you to drop the user.
Workaround would be:
NOTE:75206.1 - OERR: ORA-6576 not a function or procedure
ORA-06576 error during Drop User (文档 ID 1498610.1) |
Symptoms |
Cause |
Solution |
References |
APPLIES TO:
Oracle Server - Enterprise Edition - Version 10.2.0.1 and laterInformation in this document applies to any platform.
SYMPTOMS
Dropping a user schema results in below errors:SQL> drop user GG_ADMIN; DROP USER "GG_ADMIN" Error at line 2 ORA-00604: error occurred at recursive SQL level 1 ORA-06576: not a valid function or procedure name ORA-06512: at line 21 gg_admin cascade;
CAUSE
A DDL trigger is defined on the drop statement.Next query will get you the definition of the DDL Triggers in the system.
SQL> connect / as sysdba SQL> SELECT a.obj#, a.sys_evts, b.name FROM trigger$ a,obj$ b WHERE a.sys_evts > 0 AND a.obj#=b.obj# AND baseobject = 0; OBJ# SYS_EVTS NAME ---------- ---------- ------------------------------ 81794 8 LOGON_DATE 81795 8416 NO_VM_DDL 81796 128 NO_VM_DROP_A 13177 8192 AW_REN_TRG 13179 128 AW_DROP_TRG 11990 524256 LOGMNRGGC_TRIGGER 13175 4096 AW_TRUNC_TRG 71787 1 MGMT_STARTUP
Get an errorstack for ORA-06576 error:
SQL> alter system set events='6576 trace name errorstack level 3';
SQL> drop user <username>
When executing 'drop user gg_admin', the resultant trace file shows the failing statement is a call to wmsys.no_vm_drop_proc('USER', 'GG_ADMIN', '').
From errorstack trace file we could observe the following:
if (s_event='CREATE') then execute immediate 'call wmsys.no_vm_create_proc(''' || sys.dictionary_obj_type || ''', ''' || sys.dictionary_obj_name || ''', ''' || sys.dictionary_obj_owner || ''')' ; elsif (s_event='DROP') then execute immediate 'call wmsys.no_vm_drop_proc(''' || sys.dictionary_obj_type || ''', ''' || sys.dictionary_obj_name || ''', ''' || sys.dictionary_obj_owner || ''')' ;
The triggers enabled for this were in this case NO_VM_DDL and NO_VM_DROP_A
SOLUTION
Check if there are any DROP BEFORE triggers enabled. Once you drop the trigger, it will allow you to drop the user.Workaround would be:
SQL> ALTER TRIGGER NO_VM_DDL DISABLE; SQL> ALTER TRIGGER NO_VM_DROP_A DISABLE; SQL> drop user gg_admin;
REFERENCES
NOTE:75206.1 - OERR: ORA-6576 not a function or procedure
相关文章推荐
- Impdp Fails with ORA-39126 ORA-911 During Create Function (文档 ID 1254246.1)
- ORA-00604 ORA-00376 Unable to Drop a tablespace in GoldenGate (文档 ID 1930964.1)
- ORA-03137: TTC Protocol Internal Error : [12333] Using JDBC Driver (文档 ID 752297.1)
- Ora-29913: Error In Executing Odciexttableopen Callout (文档 ID 353642.1)
- ORA-03137: TTC Protocol Internal Error : [12333] Using JDBC Driver (文档 ID 752297.1)
- drop user error ORA-00604 ORA-01418
- Ora-955 Error Running Utl_Recomp.Recomp_Serial (文档 ID 1274504.1)
- drop user error ORA-00604 ORA-01418
- ERROR:ORA-01940: cannot drop a user that is currently connected
- DataPump Import (IMPDP) Fails With Error ORA-39083 Object Type INDEX_STATISTICS (文档 ID 1454880.1)
- ORA-07445 [kksumc] And ORA-600 [17087] During Insert Into Table (文档 ID 580347.1)
- Diagnosing and Resolving Error ORA-04031 on the Shared Pool or Other Memory Pools (文档 ID 146599.1)
- "ld: 0711-317 ERROR: Undefined symbol:.xxxx" error when doing a relink of the binaries (文档 ID 156611
- ORA-01940: cannot drop a user that is currently connected
- Solaris查看磁盘小知识 ORA-15025 ORA-27041 文档 ID 1300393.1
- ORA-01940: cannot drop a user that is currently connected
- OS Watcher User's Guide (文档 ID 1531223.1)
- Missing pdksh-5.2.14 package during Oracle 11.2.0.4 install on Oracle Linux 7 (文档 ID 1962046.1)
- ORA-01940:cannot drop a user that is currently connected
- ORA-01555 "Snapshot too old" - Detailed Explanation (文档 ID 40689.1)