Evironment
Project: Zenni
Date: 2013-05-18
OS: Centos Linux
Oracle Version: Oracle Database 11g Release 11.2.0.1.0 - Production
Key Words
drop user ORA-00604 ORA-01418
Symptoms
When drop user use the follow sql the server reject the request.
"drop user username cascade"
ORA-00604: error occurred at recursive SQL level 1
ORA-01418: specified index does not exist
Cause
The metadata is error. Some indexes exists, but the tables which the indexes depend on are not exists. So we can't drop the index by nomal sql " Drop index index_name".
We named these indexes "problem index".
Solution
Modify the metadata to delete the "problem index" by the follow step:
- select user_id from dba_users where username='user"
- select * from obj$ where owner#='user_id';
- delete obj$ where owner#='user_id';
- commit;
- restart the database.
本文讨论了在使用OracleDatabase11gRelease11.2.0.1.0-Production时遇到的ORA-00604和ORA-01418错误,当尝试使用'dropuser username cascade'时服务器拒绝请求。分析原因在于元数据错误,一些索引存在但依赖的表不存在。提供了解决方案,包括修改元数据删除相关索引。
1042

被折叠的 条评论
为什么被折叠?



