91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

oracle中出現ORA-01122錯誤怎么辦

發布時間:2021-11-11 17:05:54 來源:億速云 閱讀:1182 作者:小新 欄目:關系型數據庫

小編給大家分享一下oracle中出現ORA-01122錯誤怎么辦,希望大家閱讀完這篇文章之后都有所收獲,下面讓我們一起去探討吧!

現象:

在做表空間恢復演練時,遇到如下錯誤提示:

SQL> alter database datafile 4 online;
alter database datafile 4 online      
*                                     
ERROR at line 1:                      
ORA-01122: database file 4 failed verification check
ORA-01110: data file 4: '/ora/app/oracle/oradata/orcl/users01.dbf'
ORA-01210: data file header is media corrupt

解決方法:

分析原因:

[oracle@test hotback]$ oerr ora 1122
01122, 00000, "database file %s failed verification check"
// *Cause:  The information in this file is inconsistent with information
//         from the control file. See accompanying message for reason.
// *Action: Make certain that the db files and control files are the correct
//         files for this database.
[oracle@test hotback]$ oerr ora 1110
01110, 00000, "data file %s: '%s'"
// *Cause:  Reporting file name for details of another error. The reported
//          name can be of the old file if a data file move operation is
//          in progress.
// *Action: See associated error message.
[oracle@test hotback]$ oerr ora 1210
01210, 00000, "data file header is media corrupt"
// *Cause: The file header block is internally inconsistent. The beginning
//         of the block has a header with a checksum and other data for
//         insuring the consistancy of the block. It is possible that
//         the last disk write did not operate correctly. The most likely
//         problem is that this is not a datafile for any database.
// *Action: Have operating system make correct file available to database.
//         If the trace file dump indicates that only the checksum is wrong,
//         restore from a backup and do media recovery.

基本可知,還原的數據文件是不正確的。認真檢查后,果然是:

ho cp '/ora/app/oracle/backup/hotback/con01.ctl' '/ora/app/oracle/oradata/orcl/users01.dbf'

把備份的控制文件當數據文件給還原回去了!

重新還原:

SQL>  ho cp '/ora/app/oracle/backup/hotback/users01.dbf' '/ora/app/oracle/oradata/orcl/users01.dbf'

后續步驟正確執行。

看完了這篇文章,相信你對“oracle中出現ORA-01122錯誤怎么辦”有了一定的了解,如果想了解更多相關知識,歡迎關注億速云行業資訊頻道,感謝各位的閱讀!

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

嘉祥县| 麟游县| 咸宁市| 安仁县| 溆浦县| 阳曲县| 榆树市| 曲阜市| 祁连县| 丰台区| 岢岚县| 晋州市| 静安区| 高碑店市| 通化县| 乌海市| 阳城县| 通江县| 中江县| 开原市| 丁青县| 巨野县| 南涧| 云霄县| 田林县| 农安县| 泾阳县| 庄河市| 乳山市| 肥城市| 岑巩县| 巴林右旗| 汉川市| 合山市| 湖南省| 日喀则市| 宽甸| 交口县| 普兰县| 台安县| 都江堰市|