ORA-12035: could not use materialized view log on “string”.”string” ORACLE 报错 故障修复 远程处理
文档解释
ORA-12035: could not use materialized view log on “string”.”string”
Cause: The materialized view log did not exist or could not be used.
Action: Use just REFRESH, which will reinstantiate the entire table. If a materialized view log exists and the form of the materialized view allows the use of a materialized view log, REFRESH FAST will be available starting the next time the materialized view is refreshed.
ORA-12035错误是指无法使用材料化视图日志。
官方解释
应用程序可能会遇到ORA-12035错误,当尝试使用现有的材料化视图日志(MLOG)时。 如果无法新建MLOG,则可能会看到此错误消息,以及ORA-12003错误消息,这意味着无法使用MLOG。 这有可能是因为:
• 材料化视图日志损坏,使其无法使用。
• 材料化视图日志不可用。
常见案例
用户可能在创建材料化视图(MVIEW)时遇到ORA-12035错误,如下面的例子所示:
SQL> CREATE MYSCHEMA.MVIEW MYMVIEW REFRESH FAST START WITH (sysdate-1)
NEXT (sysdate+1)
WITH ROWID AS SELECT * FROM MYSCHEMA.MYTABLE;
CREATE MVIEW或材料化视图日志失败:ORA-12035: 无法使用材料化视图日志
正常处理方法及步骤
1. 确定MLOG的原因。 突出MLOG失败的原因,如下所示:
SELECT * FROM dba_mview_logs;
2. 更改MLOG数据库段大小,如下所示:
ALTER DATABASE SEGMENT LOGIN LOG DEFAULT STORAGE (INITIAL 8192)
3. 重新创建MLOG:
EXEC DBMS_MVIEW.REFRESH(‘”SCHEMA”.”MVIEW”‘,’C’);