這篇文章主要為大家展示了“數(shù)據(jù)庫(kù)中如何手動(dòng)創(chuàng)建控制文件”,內(nèi)容簡(jiǎn)而易懂,條理清晰,希望能夠幫助大家解決疑惑,下面讓小編帶領(lǐng)大家一起研究并學(xué)習(xí)一下“數(shù)據(jù)庫(kù)中如何手動(dòng)創(chuàng)建控制文件”這篇文章吧。
成都創(chuàng)新互聯(lián)公司主要從事網(wǎng)站制作、做網(wǎng)站、網(wǎng)頁(yè)設(shè)計(jì)、企業(yè)做網(wǎng)站、公司建網(wǎng)站等業(yè)務(wù)。立足成都服務(wù)漳縣,十多年網(wǎng)站建設(shè)經(jīng)驗(yàn),價(jià)格優(yōu)惠、服務(wù)專業(yè),歡迎來(lái)電咨詢建站服務(wù):13518219792
背景描述:
一套o(hù)racle數(shù)據(jù)庫(kù)從window遷移到Linux上,
在Windows上進(jìn)行備份,在Linux上進(jìn)行恢復(fù),但是恢復(fù)出來(lái)的控制文件中包含有Windows上的歸檔,在Linux上不能繼續(xù)刪除,需要重建控制文件
RMAN> crosscheck archivelog all;
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=592 device type=DISK
validation succeeded for archived log
archived log file name=/oradata/orabak/O1_MF_1_12714_DNK7Y6DG_.ARC RECID=72
RMAN-03009: failure of crosscheck command on ORA_DISK_1 channel at 06/20/2017 15:50:44
ORA-19633: control file record 1 is out of sync with recovery catalog
對(duì)oracle數(shù)據(jù)庫(kù)先進(jìn)行備份
rman>backup database;
rman>backup current controlfile;
cd /u01/app/oracle/diag/rdbms/orcl/orcl/trace
tail -100f alert*
alter database backup controlfile to trace;
sql>startup nomount;
sql>CREATE CONTROLFILE REUSE DATABASE "ORCL" NORESETLOGS ARCHIVELOG
MAXLOGFILES 16
MAXLOGMEMBERS 3
MAXDATAFILES 100
MAXINSTANCES 8
MAXLOGHISTORY 292
LOGFILE
GROUP 11 '/oradata/orcl/redo11.log' SIZE 50M BLOCKSIZE 512,
GROUP 12 '/oradata/orcl/redo12.log' SIZE 50M BLOCKSIZE 512,
GROUP 13 '/oradata/orcl/redo13.log' SIZE 50M BLOCKSIZE 512
-- STANDBY LOGFILE
DATAFILE
'/oradata/orcl/SYSTEM01.DBF',
'/oradata/orcl/SYSAUX01.DBF',
'/oradata/orcl/UNDOTBS01.DBF',
'/oradata/orcl/USERS01.DBF',
'/oradata/orcl/JINYI.DBF'
CHARACTER SET AL32UTF8
;
sql>alter database open;
以上是“數(shù)據(jù)庫(kù)中如何手動(dòng)創(chuàng)建控制文件”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對(duì)大家有所幫助,如果還想學(xué)習(xí)更多知識(shí),歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!