ORA-12091: cannot online redefine table “%s”.”%s” with materialized views

http://inthirties.com:90/viewthread.jsp?tid=1381&frombbs=1



ORA-12091: cannot online redefine table “TEST”.”T” with materialized views

[oracle@solaris ~]oerr ora 12091
12091, 00000, “cannot online redefine table /”%s/”./”%s/” with materialized views”
// *Cause: An attempt was made to online redefine a table that had
// materialized views defined on it or had a materialized view log
// defined on it or is a master.
// *Action: Drop all materialized views and materialized view logs before
// attempting to online redefine the table.
//

先abort,然后在重新start,这里多半是已经start过了。所以已经有了materialized view log了
可以drop materialized view log on tablename,或者直接abort_redef_table
SQL> exec dbms_redefinition.abort_redef_table(’TEST’,'T’,'T_NEW’);
PL/SQL procedure successfully completed.
  • 提供Oracle管理/故障处理/优化/安装/RAC/备份恢复技术服务,提供专业的Oracle培训和咨询服务。
  • 邮件: [email protected]
  • MSN: [email protected]
  • QQ: [email protected]
  • 电话: 13828706466
  • 技术博客 http://blog.csdn.net/inthirties
  • 个人站点 http://blog.inthirties.com

你可能感兴趣的:(oracle,Solaris,table,咨询,action,电话)