恢複控制檔案故障詳細步驟,檔案故障詳細步驟

來源:互聯網
上載者:User

恢複控制檔案故障詳細步驟,檔案故障詳細步驟

如果控制檔案丟失或損壞,則執行個體通常會中止。然後,您必須執行以下步驟:

1.關閉執行個體(如果它仍處於開啟狀態)。

2.通過複製現有控制檔案還原缺失的控制檔案。 3.啟動執行個體。
實驗:
1.查看當前控制檔案情況
   show parameter control_files

2.類比控制檔案丟失故障
   !rm /home/oracle/control_bak/control03.ctl
  
   show parameter control_files  --被刪除的控制檔案仍然存在

3.觸發檢查點操作
   alter system checkpoint;

4.檢查alert log的輸出結果
   select * from v$diag_info;

   在alert中查看
   /u01/app/oracle/diag/rdbms/orcl/ORCL/trace
   
   adrci --在Oracle使用者下

   adrci> show homepath
   ADR Homes:
   diag/rdbms/orcl/ORCL
   adrci> set homepath diag/rdbms/orcl/ORCL
   adrci> show homepath
   ADR Homes:
   diag/rdbms/orcl/ORCL
   adrci>
   adrci> help show alert
   adrci> show alert -tail 20
   --報錯
Errors in file /u01/app/oracle/diag/rdbms/orcl/ORCL/trace/ORCL_m000_22432.trc:
ORA-00210: cannot open the specified control file
……
Linux-x86_64 Error: 2: No such file or directory
   --相關報錯日誌

5.強制關閉資料庫
   SYS@ORCL>shutdown immediate  --關閉資料庫報錯
   ORA-00210: cannot open the specified control file
   ORA-00202: control file: '/home/oracle/control_bak/control03.ctl'
   ORA-27041: unable to open file
   Linux-x86_64 Error: 2: No such file or directory
   Additional information: 3

   SYS@ORCL>shutdown abort
   ORACLE instance shut down.

   SYS@ORCL>startup  --啟動資料庫時仍然報錯
   ORACLE instance started.

   Total System Global Area  839282688 bytes
   Fixed Size                  2257880 bytes
   Variable Size             507513896 bytes
   Database Buffers          327155712 bytes
   Redo Buffers                2355200 bytes
   ORA-00205: error in identifying control file, check alert log for more info
  --無法開啟資料庫

6.將另外的控制檔案替代此控制檔案
   [oracle@Demon control_bak]$ cp    /u01/app/oracle/oradata/ORCL/controlfile/o1_mf_b0fh9927_.ctl

control03.ctl
   [oracle@Demon control_bak]$ ls
   control03.ctl

7.啟動資料庫
   SYS@ORCL>startup
           --成功啟庫


怎用故障修復主控台來恢複系統檔案?

1.我把2000光碟片放入光碟機之後,調出控制台,但不能確定到底哪個才是光碟機盤符,請問能不能通過像定位系統硬碟一樣,用類似%systemroot% 的字眼去定位光碟機?
答:調出控制台後,光碟機盤符仍然按WINDOWS中的盤符排序。假定你最後一個硬碟分區是E,那麼光碟機盤符就是F。關於定位讀取運行在第2問中回答較為合適。
2.我的系統檔案丟失了,檔案是\windows\system32\config\system ,請問這個檔案可以用故障修復主控台複製解決嗎?
答:不能。因為I386中有4個檔案system.ad_, system.dr_, system.in_, system.md_,我們無法確定它們與\windows\system32\config\system 的關係,所以定位讀取運行這4個檔案是盲目的。如果你確實想恢複這個系統檔案,建議你插入WIN2000安裝光碟片 / 運行,輸入CMD / 在彈出的命令列介面輸入SFC/SCANNOW ,斷行符號以後就是等待系統自動補充丟失的檔案和修複損壞的檔案。
3.我看到有人說XP的故障控制台裡有個I386檔案夾,裡面放著幾乎所有的系統檔案備份,請問2000也有這樣的檔案夾嗎?檔案夾的名字又叫什麼呢?
答:有。檔案夾的名字也叫I386,但是沒有XP的I386好用,檔案不能與硬碟上的系統一一對應,所以不能定位運行,只能靠系統安裝或系統修複來自動讀取。
關於你的補充:
單行版的安裝盤都會有I386這個檔案夾的,拼盤版或工具盤的WIN2000可能就沒有了。
 
怎進入系統故障修復主控台,要詳細的操作步驟

要支援啟動的安裝光碟片。其他的盤類似。
啟動,
負載檔案
詢問是修複系統,還是安裝系統,選修複
然後會讓你選擇是自動修複安裝,還是手動進入故障修復主控台。

vista沒有這個控制台了。
 

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.