- 青島雅思—專家談雅思考試發(fā)展趨勢(shì)
- 河南2011上半年自考網(wǎng)上報(bào)名入口 點(diǎn)擊進(jìn)入
- 2011年廣東省護(hù)士資格考試報(bào)名現(xiàn)場(chǎng)確認(rèn)時(shí)間
- 2011上半年樂山五通橋區(qū)會(huì)計(jì)從業(yè)考試報(bào)名3月10日-4月1
- 哈爾濱香坊區(qū)2011護(hù)士資格考試報(bào)名現(xiàn)場(chǎng)確認(rèn)時(shí)間
- 2011什邡第一次會(huì)計(jì)從業(yè)資格考試報(bào)名3月1日-4月15日
- 2011什邡第二次會(huì)計(jì)從業(yè)資格考試報(bào)名7月1日-9月16日
- 2011年中山市護(hù)士資格考試報(bào)名工作的通知
- 長(zhǎng)安大學(xué)2011考研成績(jī)查詢?nèi)肟?點(diǎn)擊進(jìn)入
- 西華大學(xué)2011考研成績(jī)查詢?nèi)肟?點(diǎn)擊進(jìn)入
- 中國地質(zhì)大學(xué)(武漢)2011考研成績(jī)3月3日查詢
- 中南民族大學(xué)2011考研成績(jī)查詢3月4日開始
- 沈陽建筑大學(xué)2011考研成績(jī)查詢?nèi)肟?點(diǎn)擊進(jìn)入
- 沈陽工業(yè)大學(xué)2011考研成績(jī)查詢?nèi)肟?點(diǎn)擊進(jìn)入
Oracle控制件文件修復(fù)
來源:求學(xué)問校網(wǎng) 發(fā)表時(shí)間:2012-07-16 瀏覽 26 次
查看文件頭SCN號(hào):
SQL> select file#, checkpoint_change# from v$datafile_header;
FILE# CHECKPOINT_CHANGE#
---------- ------------------
1 18120070
2 18120070
3 18120070
4 18120070
5 18120070
6 18120070
7 18120070
8 18120070
9 18120070
10 18120070
11 18121207
FILE# CHECKPOINT_CHANGE#
---------- ------------------
12 18121196
12 rows selected.
查看控制文件SCN號(hào):
SQL> select file#, checkpoint_change# from v$datafile;
FILE# CHECKPOINT_CHANGE#
---------- ------------------
1 18120070
2 18120070
3 18120070
4 18120070
5 18120070
6 18120070
7 18120070
8 18120070
9 18120070
10 18120070
11 18121207
FILE# CHECKPOINT_CHANGE#
---------- ------------------
12 18121196
12 rows selected.
SQL>
當(dāng)數(shù)據(jù)文件SCN號(hào)大于控制文件scn號(hào),即會(huì)發(fā)生控制文件太久的提示,
當(dāng)數(shù)據(jù)文件SCN號(hào)小于控制文件scn號(hào)時(shí), 則提示mediea recovery提示
當(dāng)數(shù)據(jù)文件sCN號(hào)等于控制文件scn號(hào),正常啟動(dòng)實(shí)例
SQL> alter database backup controlfile to trace as '/u01/Oracle/admin/ora9i/udump/c.trc';
Database altered.
SQL>
/u01/Oracle/oradata/ora9i
[oracle@test ora9i]$ rm control0*
[oracle@test ora9i]$
SQL> shutdown immediate;
ORA-00210: cannot open the specified controlfile
ORA-00202: controlfile: '/u01/Oracle/oradata/ora9i/control01.ctl'
ORA-27041: unable to open file
Linux Error: 2: No such file or directory
Additional information: 3
SQL> shutdown abort;
ORACLE instance shut down.
SQL>
修改備份c.trc文件使用第一個(gè)sql
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "ORA9I" NORESETLOGS ARCHIVELOG
MAXLOGFILES 50
MAXLOGMEMBERS 5
MAXDATAFILES 100
MAXINSTANCES 1
MAXLOGHISTORY 226
LOGFILE
GROUP 1 '/u01/Oracle/oradata/ora9i/redo01.log' SIZE 100M,
GROUP 2 '/u01/Oracle/oradata/ora9i/redo02.log' SIZE 100M,
GROUP 3 '/u01/Oracle/oradata/ora9i/redo03.log' SIZE 100M
DATAFILE
'/u01/Oracle/oradata/ora9i/system01.dbf',
'/u01/Oracle/oradata/ora9i/undotbs01.dbf',
'/u01/Oracle/oradata/ora9i/cwmlite01.dbf',
'/u01/Oracle/oradata/ora9i/drsys01.dbf',
'/u01/Oracle/oradata/ora9i/example01.dbf',
'/u01/Oracle/oradata/ora9i/indx01.dbf',
'/u01/Oracle/oradata/ora9i/odm01.dbf',
'/u01/Oracle/oradata/ora9i/tools01.dbf',
'/u01/Oracle/oradata/ora9i/users01.dbf',
'/u01/Oracle/oradata/ora9i/xdb01.dbf',
'/u01/Oracle/oradata/ora9i/app2.dbf',
'/u01/Oracle/oradata/ora9i/app1_01.dbf'
CHARACTER SET ZHS16GBK
;
# Configure RMAN configuration record 1
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CONTROLFILE AUTOBACKUP','ON');
# Recovery is required if any of the datafiles are restored backups,
# or if the last shutdown was not normal or immediate.
RECOVER DATABASE
# All logs need archiving and a log switch is needed.
ALTER SYSTEM ARCHIVE LOG ALL;
# Database can now be opened normally.
ALTER DATABASE OPEN;
# Commands to add tempfiles to temporary tablespaces.
# Online tempfiles have complete space information.
# Other tempfiles may require adjustment.
ALTER TABLESPACE TEMP ADD TEMPFILE '/u01/Oracle/oradata/ora9i/temp01.dbf' REUSE;
# End of tempfile additions.
#
SQL> select file#, checkpoint_change# from v$datafile_header;
FILE# CHECKPOINT_CHANGE#
---------- ------------------
1 18120070
2 18120070
3 18120070
4 18120070
5 18120070
6 18120070
7 18120070
8 18120070
9 18120070
10 18120070
11 18121207
FILE# CHECKPOINT_CHANGE#
---------- ------------------
12 18121196
12 rows selected.
查看控制文件SCN號(hào):
SQL> select file#, checkpoint_change# from v$datafile;
FILE# CHECKPOINT_CHANGE#
---------- ------------------
1 18120070
2 18120070
3 18120070
4 18120070
5 18120070
6 18120070
7 18120070
8 18120070
9 18120070
10 18120070
11 18121207
FILE# CHECKPOINT_CHANGE#
---------- ------------------
12 18121196
12 rows selected.
SQL>
當(dāng)數(shù)據(jù)文件SCN號(hào)大于控制文件scn號(hào),即會(huì)發(fā)生控制文件太久的提示,
當(dāng)數(shù)據(jù)文件SCN號(hào)小于控制文件scn號(hào)時(shí), 則提示mediea recovery提示
當(dāng)數(shù)據(jù)文件sCN號(hào)等于控制文件scn號(hào),正常啟動(dòng)實(shí)例
SQL> alter database backup controlfile to trace as '/u01/Oracle/admin/ora9i/udump/c.trc';
Database altered.
SQL>
/u01/Oracle/oradata/ora9i
[oracle@test ora9i]$ rm control0*
[oracle@test ora9i]$
SQL> shutdown immediate;
ORA-00210: cannot open the specified controlfile
ORA-00202: controlfile: '/u01/Oracle/oradata/ora9i/control01.ctl'
ORA-27041: unable to open file
Linux Error: 2: No such file or directory
Additional information: 3
SQL> shutdown abort;
ORACLE instance shut down.
SQL>
修改備份c.trc文件使用第一個(gè)sql
STARTUP NOMOUNT
CREATE CONTROLFILE REUSE DATABASE "ORA9I" NORESETLOGS ARCHIVELOG
MAXLOGFILES 50
MAXLOGMEMBERS 5
MAXDATAFILES 100
MAXINSTANCES 1
MAXLOGHISTORY 226
LOGFILE
GROUP 1 '/u01/Oracle/oradata/ora9i/redo01.log' SIZE 100M,
GROUP 2 '/u01/Oracle/oradata/ora9i/redo02.log' SIZE 100M,
GROUP 3 '/u01/Oracle/oradata/ora9i/redo03.log' SIZE 100M
DATAFILE
'/u01/Oracle/oradata/ora9i/system01.dbf',
'/u01/Oracle/oradata/ora9i/undotbs01.dbf',
'/u01/Oracle/oradata/ora9i/cwmlite01.dbf',
'/u01/Oracle/oradata/ora9i/drsys01.dbf',
'/u01/Oracle/oradata/ora9i/example01.dbf',
'/u01/Oracle/oradata/ora9i/indx01.dbf',
'/u01/Oracle/oradata/ora9i/odm01.dbf',
'/u01/Oracle/oradata/ora9i/tools01.dbf',
'/u01/Oracle/oradata/ora9i/users01.dbf',
'/u01/Oracle/oradata/ora9i/xdb01.dbf',
'/u01/Oracle/oradata/ora9i/app2.dbf',
'/u01/Oracle/oradata/ora9i/app1_01.dbf'
CHARACTER SET ZHS16GBK
;
# Configure RMAN configuration record 1
VARIABLE RECNO NUMBER;
EXECUTE :RECNO := SYS.DBMS_BACKUP_RESTORE.SETCONFIG('CONTROLFILE AUTOBACKUP','ON');
# Recovery is required if any of the datafiles are restored backups,
# or if the last shutdown was not normal or immediate.
RECOVER DATABASE
# All logs need archiving and a log switch is needed.
ALTER SYSTEM ARCHIVE LOG ALL;
# Database can now be opened normally.
ALTER DATABASE OPEN;
# Commands to add tempfiles to temporary tablespaces.
# Online tempfiles have complete space information.
# Other tempfiles may require adjustment.
ALTER TABLESPACE TEMP ADD TEMPFILE '/u01/Oracle/oradata/ora9i/temp01.dbf' REUSE;
# End of tempfile additions.
#
武漢企業(yè)管理培訓(xùn)培訓(xùn)相關(guān)新聞
武漢企業(yè)管理培訓(xùn)相關(guān)課程
- 學(xué)電腦 獲文憑 包工作 ——??诤推诫娔X培訓(xùn)長(zhǎng)期優(yōu)惠招生
- 海口電腦維護(hù)維修與網(wǎng)絡(luò)工程師就業(yè)培訓(xùn)——和平建筑工程培訓(xùn)學(xué)校…
- 海南電腦維護(hù)維修與網(wǎng)絡(luò)工程師就業(yè)培訓(xùn)班火爆招生中!
- 海口和平教育物聯(lián)網(wǎng)智能化應(yīng)用培訓(xùn)
- 海南海口和平電腦零基礎(chǔ)培訓(xùn) 學(xué)習(xí)辦公軟件
- 海口淘寶網(wǎng)開店創(chuàng)業(yè)培訓(xùn)——和平建筑工程培訓(xùn)學(xué)校
- 海南海口和平美術(shù)畫室
- ??诎惭b預(yù)算培訓(xùn)班--和平建筑工程預(yù)算培訓(xùn)學(xué)校
- 海南CAD培訓(xùn)班
- 海口CAD繪圖培訓(xùn)學(xué)習(xí)——請(qǐng)到和平建筑工程培訓(xùn)學(xué)校
- 海口電腦培訓(xùn)
- 海南??诤推矫佬g(shù)畫室
- ??诤推絇S CDR CAD平面設(shè)計(jì)軟件專業(yè)培訓(xùn)
- 海南哪里有學(xué)工程預(yù)算——和平學(xué)校從零開始,學(xué)會(huì)為止
武漢企業(yè)管理培訓(xùn)相關(guān)機(jī)構(gòu)
武漢最新資訊
- 青島雅思—專家談雅思考試發(fā)展趨勢(shì)
- 河南2011上半年自考網(wǎng)上報(bào)名入口 點(diǎn)…
- 2011年廣東省護(hù)士資格考試報(bào)名現(xiàn)場(chǎng)確…
- 2011上半年樂山五通橋區(qū)會(huì)計(jì)從業(yè)考試…
- 哈爾濱香坊區(qū)2011護(hù)士資格考試報(bào)名現(xiàn)…
- 2011什邡第一次會(huì)計(jì)從業(yè)資格考試報(bào)名…
- 2011什邡第二次會(huì)計(jì)從業(yè)資格考試報(bào)名…
- 2011年中山市護(hù)士資格考試報(bào)名工作的…
- 長(zhǎng)安大學(xué)2011考研成績(jī)查詢?nèi)肟?點(diǎn)擊…
- 西華大學(xué)2011考研成績(jī)查詢?nèi)肟?點(diǎn)擊…
武漢推薦課程導(dǎo)航
雅思 | 口語 | 日語 | 韓語 | 德語 | 四六級(jí) | 商務(wù)英語 | 平面設(shè)計(jì) | 游戲動(dòng)漫 | 影視制作 | 室內(nèi)外設(shè)計(jì) | 動(dòng)畫設(shè)計(jì) | 網(wǎng)頁設(shè)計(jì) | 等級(jí)考試軟件工程 | 美容培訓(xùn) | 手機(jī)維修 | 廚師面點(diǎn) | 會(huì)計(jì)職稱 | 心理咨詢 | 人力資源