建立控制檔案副本出現錯誤ORA-00205: error in identifying control file
測試環境:OEL6.5+Oracle 11g R2
在做多路複用控制檔案的實驗時,建立控制檔案總是會報錯誤:ORA-00205: error in identifying control file, check alert log for more info
下面是當時的操作過程:
看上去似乎沒有錯誤,於是開始檢視alert日誌,在日誌中看到的內容如下:
根據提示來看是說檔案或路徑不存在,而且是在資料庫從nomount階段啟動到mount階段的過程中遇到了檔案或路徑不存在的錯誤,而從nomount轉換到mount階段,是例項根據引數檔案中的control_files來定位控制檔案的,這樣一來可以定位錯誤就在下面的語句當中:
可是上面明明提示這據SQL更改成功了,為什麼會出錯呢?思來想去可能問題出在後面的引數值的格式上,於是將這句SQL改為:
果然是格式的問題,那麼將單引號改為雙引號會怎樣?
也能成功,在此處的control_files引數是單引號和雙引號之間沒有區別。那麼把失敗的情況換成雙引號結果會怎樣?
同樣還是失敗,也就是說,在修改此引數時,一個單/雙引號裡的內容均會被認為是一個完整的路徑,要想指定多個路徑,必須以單/雙引號分別指定路徑,路徑之間以逗號隔開,當然,全部是西文字元。
在做多路複用控制檔案的實驗時,建立控制檔案總是會報錯誤:ORA-00205: error in identifying control file, check alert log for more info
下面是當時的操作過程:
點選(此處)摺疊或開啟
-
SYS@ORCL> show parameter control_files;
-
-
NAME TYPE VALUE
-
------------------------------------ ----------- ------------------------------
-
control_files string /u01/app/oracle/oradata/ORCL/c
-
ontrol01.ctl, /u01/app/oracle/
-
fast_recovery_area/ORCL/contro
-
l02.ctl
-
SYS@ORCL> shutdown immediate;
-
Database closed.
-
Database dismounted.
-
ORACLE instance shut down.
-
SYS@ORCL> ! cp /u01/app/oracle/oradata/ORCL/control01.ctl /home/oracle/control03.ctl
-
-
SYS@ORCL> startup nomount;
-
ORACLE instance started.
-
-
Total System Global Area 1653518336 bytes
-
Fixed Size 2253784 bytes
-
Variable Size 1006636072 bytes
-
Database Buffers 637534208 bytes
-
Redo Buffers 7094272 bytes
-
SYS@ORCL> alter system set control_files='/u01/app/oracle/oradata/ORCL/control01.ctl,/u01/app/oracle/fast_recovery_area/ORCL/control02.ctl /home/oracle/control03.ctl' scope=spfile;
-
-
System altered.
-
-
SYS@ORCL> startup force;
-
ORACLE instance started.
-
-
Total System Global Area 1653518336 bytes
-
Fixed Size 2253784 bytes
-
Variable Size 1006636072 bytes
-
Database Buffers 637534208 bytes
-
Redo Buffers 7094272 bytes
- ORA-00205: error in identifying control file, check alert log for more info
看上去似乎沒有錯誤,於是開始檢視alert日誌,在日誌中看到的內容如下:
點選(此處)摺疊或開啟
- Mon Feb 01 23:44:54 2016
- ALTER DATABASE MOUNT
- ORA-00210: cannot open the specified control file
- ORA-00202: control file: '/u01/app/oracle/oradata/ORCL/control01.ctl,/u01/app/oracle/fast_recovery_area/ORCL/control02.ctl /home/oracle/control03.ctl'
- ORA-27037: unable to obtain file status
- Linux-x86_64 Error: 2: No such file or directory
- Additional information: 3
- ORA-205 signalled during: ALTER DATABASE MOUNT...
點選(此處)摺疊或開啟
- SYS@ORCL> alter system set control_files='/u01/app/oracle/oradata/ORCL/control01.ctl,/u01/app/oracle/fast_recovery_area/ORCL/control02.ctl /home/oracle/control03.ctl' scope=spfile;
可是上面明明提示這據SQL更改成功了,為什麼會出錯呢?思來想去可能問題出在後面的引數值的格式上,於是將這句SQL改為:
點選(此處)摺疊或開啟
-
SYS@ORCL> alter system set control_files='/u01/app/oracle/oradata/ORCL/control01.ctl','/u01/app/oracle/fast_recovery_area/ORCL/control02.ctl','/home/oracle/control03.ctl' scope=spfile;
-
-
System altered.
-
-
SYS@ORCL> startup force;
-
ORACLE instance started.
-
-
Total System Global Area 1653518336 bytes
-
Fixed Size 2253784 bytes
-
Variable Size 1006636072 bytes
-
Database Buffers 637534208 bytes
-
Redo Buffers 7094272 bytes
-
Database mounted.
-
Database opened.
-
SYS@ORCL> show parameter control_files;
-
-
NAME TYPE VALUE
-
------------------------------------ ----------- ------------------------------
-
control_files string /u01/app/oracle/oradata/ORCL/c
-
ontrol01.ctl, /u01/app/oracle/
-
fast_recovery_area/ORCL/contro
-
l02.ctl, /home/oracle/control0
- 3.ctl
點選(此處)摺疊或開啟
-
SYS@ORCL> alter system set control_files="/u01/app/oracle/oradata/ORCL/control01.ctl","/u01/app/oracle/fast_recovery_area/ORCL/control02.ctl","/home/oracle/control03.ctl" scope=spfile;
-
-
System altered.
-
-
SYS@ORCL> startup force;
-
ORACLE instance started.
-
-
Total System Global Area 1653518336 bytes
-
Fixed Size 2253784 bytes
-
Variable Size 1006636072 bytes
-
Database Buffers 637534208 bytes
-
Redo Buffers 7094272 bytes
-
Database mounted.
-
Database opened.
-
SYS@ORCL> show parameter control_files;
-
-
NAME TYPE VALUE
-
------------------------------------ ----------- ------------------------------
-
control_files string /u01/app/oracle/oradata/ORCL/c
-
ontrol01.ctl, /u01/app/oracle/
-
fast_recovery_area/ORCL/contro
-
l02.ctl, /home/oracle/control0
- 3.ctl
也能成功,在此處的control_files引數是單引號和雙引號之間沒有區別。那麼把失敗的情況換成雙引號結果會怎樣?
點選(此處)摺疊或開啟
-
SYS@ORCL> alter system set control_files="/u01/app/oracle/oradata/ORCL/control01.ctl,/u01/app/oracle/fast_recovery_area/ORCL/control02.ctl /home/oracle/control03.ctl" scope=spfile;
-
-
System altered.
-
-
SYS@ORCL> startup force;
-
ORACLE instance started.
-
-
Total System Global Area 1653518336 bytes
-
Fixed Size 2253784 bytes
-
Variable Size 1006636072 bytes
-
Database Buffers 637534208 bytes
-
Redo Buffers 7094272 bytes
- ORA-00205: error in identifying control file, check alert log for more info
同樣還是失敗,也就是說,在修改此引數時,一個單/雙引號裡的內容均會被認為是一個完整的路徑,要想指定多個路徑,必須以單/雙引號分別指定路徑,路徑之間以逗號隔開,當然,全部是西文字元。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29067253/viewspace-1985416/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORA-00205: error in identifying control file, check alert log for more infoErrorIDE
- ORA-00205 error in identifying control file 問題解決一例ErrorIDE
- 控制檔案-control file
- control file(控制檔案)
- 重建控制檔案 recreate control file
- ORA-00205 error in identifying controlfileErrorIDE
- Oracle Control File(控制檔案)的內容Oracle
- Oracle 快照控制檔案(snapshot control file)Oracle
- Oracle快照控制檔案(snapshot control file)Oracle
- 透過Snapshot Control File 恢復控制檔案
- 通過Snapshot Control File 恢復控制檔案
- ORA-00205,控制檔案問題
- oracle啟動時出現ORA-00205錯誤的方法Oracle
- android 打包出現錯誤Error: ResourceNameAndroidError
- sloaris 出現“mount: I/O error”錯誤Error
- 控制檔案相關 -- MAXLOGHISTORY ,control_file_record_keep_time
- oracle檔案管理之 control fileOracle
- ORA-00205錯誤分析
- oracle控制檔案重建、複用 ORA-00205Oracle
- 26、控制檔案相關 -- MAXLOGHISTORY ,control_file_record_keep_time
- /usr/bin/xauth: error in locking authority file錯誤Error
- TNS-04414 file error 錯誤解決Error
- 詳述Oracle 多路複用的控制檔案——增加一個控制檔案副本Oracle
- [鴻蒙開發]真機轉模擬機執行出現錯誤: ERROR: Failed to find the incremental input file:鴻蒙ErrorAIREM
- ORA-01565: error in identifying file '+DATA/devdb/spfiledevdb.ora'ErrorIDEdev
- ORA-01565: error in identifying file '+DATA/rac/dataile/datfile/system'ErrorIDEAI
- ORACLE 控制檔案(Control Files)概述Oracle
- 建立多路控制檔案
- 手工建立控制檔案
- MysqL錯誤之_ERROR! MySQL server PID file could not be found!MySqlErrorServer
- 自動生成sqlldr 控制檔案的指令碼(Script To Generate SQL*Loader Control File)SQL指令碼
- Oracle 11gR2 RMAN 配置控制檔案自動備份(control file autobackup)Oracle
- RMAN備份報錯ORA-27040: skgfrcre: 建立錯誤,無法建立檔案
- Camstar 登入時出現單個Error的錯誤提示Error
- pycharm建立臨時檔案scatch filePyCharm
- AIX環境dd遷移控制檔案出現ORA-202和ORA-27047錯誤AI
- rman恢復控制檔案的一個小錯誤
- 移動檔案出現 invalid cross-device link 錯誤ROSdev