ORA-12083:must user DROP MATERIALIZED VIEW ...

错误现象:
        9206上遇到一个问题:用drop materialized view 删除物化视图后,与视图同名的表没有自动删除(基表所在的远程 数据库 关闭)。于是发出Drop Table 命令,报错ORA-12083:must user DROP MATERIALIZED VIEW ... 。

CAUSE DETERMINATION
====================
This is because of the Bug 4287115.
This is a known issue in 9i , which is fixed in 10g .

POTENTIAL SOLUTION(S)
======================
To workaround the problem , connected as sys run the following update statement. The following update should update only one row. In case if it updates more than one row, then rollback the transaction, which means that this workaround does not apply to your case.

connect sys/ as sysdba
update tab$ set property = property - 100663296 where obj# in (select obj# from obj$ where name='OT_CR_ITEM_X' and owner# in (select USER_ID from all_users where USERNAME=''));
commit;

alter system flush shared_pool;
alter system flush shared_pool;
alter system flush shared_pool;

connect /
Now try dropping the table & it should go through fine.

FROM:http://haochunpeng.itpub.net/post/385/189303

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/15489979/viewspace-732119/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/15489979/viewspace-732119/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值