DML DDL 都報ORA-00600: [kntgMvLogObjn]的解決辦法
對錶進行DML 或DDL 都報ORA-00600: [kntgMvLogObjn]。
(1)先刪除materialized view log ,然後再對錶進行DML 或DDL 。
select * from dba_mviews;
select * from dba_mview_logs;
drop materialized view log on TABLE_NAME;
(2)如果第一步還不能解決,那麼就需要重建MATERIALIZED VIEW LOG。
一般是之前重新命名過使用者或表。可能是在obj$等資料字典中的資訊出現了不一致的情況。
可以參考 Doc ID 1612402.1 對於這類問題Oracle的一個建議就是使用重建物化檢視日誌,使用with rowid的方式來建立,然後刪除。
SELECT * FROM sys.MLOG$;
CREATE MATERIALIZED VIEW LOG ON TABLE_NAME WITH ROWID;
drop materialized view log ON TABLE_NAME;
官方的解釋如下:
Cause
Dictionary information related to a materialized view log defined on the table is partly missing due to a rename of a table while a materialized view log was still defined on it and afterwards trying to drop the table.
The MLOG$ entry didn't exist but the MLOG$_... segment in OBJ$ still existed, and the table referenced in its flags that it uses a materialized view log.
Solution
To implement a solution for this issue please execute the following steps in the given order:
drop the MLOG$_... segment from the database using a DROP TABLE command
create a new materialized view log using CREATE MATERIALIZED VIEW LOG ON <table> WITH ROWID;
drop the table with the materialized view log defined on it
(1)先刪除materialized view log ,然後再對錶進行DML 或DDL 。
select * from dba_mviews;
select * from dba_mview_logs;
drop materialized view log on TABLE_NAME;
(2)如果第一步還不能解決,那麼就需要重建MATERIALIZED VIEW LOG。
一般是之前重新命名過使用者或表。可能是在obj$等資料字典中的資訊出現了不一致的情況。
可以參考 Doc ID 1612402.1 對於這類問題Oracle的一個建議就是使用重建物化檢視日誌,使用with rowid的方式來建立,然後刪除。
SELECT * FROM sys.MLOG$;
CREATE MATERIALIZED VIEW LOG ON TABLE_NAME WITH ROWID;
drop materialized view log ON TABLE_NAME;
官方的解釋如下:
Cause
Dictionary information related to a materialized view log defined on the table is partly missing due to a rename of a table while a materialized view log was still defined on it and afterwards trying to drop the table.
The MLOG$ entry didn't exist but the MLOG$_... segment in OBJ$ still existed, and the table referenced in its flags that it uses a materialized view log.
Solution
To implement a solution for this issue please execute the following steps in the given order:
drop the MLOG$_... segment from the database using a DROP TABLE command
create a new materialized view log using CREATE MATERIALIZED VIEW LOG ON <table> WITH ROWID;
drop the table with the materialized view log defined on it
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10995764/viewspace-2149009/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- job都停了的解決辦法
- MySQL的DDL和DML操作語法MySql
- git報錯400的解決辦法Git
- sysctl -P 報錯解決辦法
- cnpm link 報錯解決辦法NPM
- 建庫時EM報錯的解決辦法
- DML、DDL、DCL區別
- DDL,DML,DCL區別
- Mybatis批量更新SQL報錯☞解決辦法MyBatisSQL
- 執行Docker命令報錯解決辦法Docker
- isNaN("abc")編譯報錯解決辦法NaN編譯
- oracle 10g emctl 報錯的解決辦法Oracle 10g
- kettle 報ORA-01461 解決辦法
- Could not resolve host: 'localhost 報錯解決辦法localhost
- 安裝sysbench過程報錯,解決辦法
- IOConsole Updater 報錯解決辦法
- Jsp Unescaped xml character報錯的解決辦法JSXML
- Docker Hello World容器執行報錯的解決辦法Docker
- 客戶系統報錯:soft lockup的解決辦法
- Perl CPAN安裝報錯CPAN::Modulelist的解決辦法
- DML操作 DDL觸發器觸發器
- OpenStack 的NAT解決辦法
- 公寓噪音的解決辦法
- EM報錯:需要HOST Credentials驗證,但輸入什麼都提示錯誤 解決辦法
- 安裝ionic 報錯 安裝canvas報錯 解決辦法Canvas
- 每次開啟Word都會彈出“巨集安全”的提示的解決辦法
- 關於npm install安裝報錯的解決辦法NPM
- Maven下載jar包慢,pom報錯的解決辦法MavenJAR
- PHP報錯“Parseerror:syntaxerror,unexpectedT_VARIABLE”的解決辦法PHPError
- npm報錯"A complete log of this run can be found in:"的解決辦法NPM
- myeclipse專案報錯終極解決辦法Eclipse
- sphinx :undefined reference to `libiconv' 報錯解決辦法Undefined
- VMware 啟動報錯 "Failed to lock the file"解決辦法AI
- DML, DDL操作的自動提交問題
- DDL、DML、DCL、DQL相關操作
- Mysql 基礎操作 DDL DML DCLMySql
- SVN被鎖的解決辦法
- ORA-28056的解決辦法