[20120120]startup nomount訪問引數檔案的順序.txt
檢查startup nomount訪問引數檔案的順序.
export ORACLE_SID=noexist
strace -o noexist.txt sqlplus sys as sysdba
$ rlsqlplus
SQL*Plus: Release 11.2.0.1.0 Production on Fri Jan 20 08:48:12 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter password:
Connected to an idle instance.
08:48:14 SQL> exit
Disconnected
$ export ORACLE_SID=noexist
$ strace -o noexist.txt sqlplus sys as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Fri Jan 20 08:50:04 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter password:
Connected to an idle instance.
08:50:05 SQL> startup nomount
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u01/app/oracle/product/11.2.0/db_1/dbs/initnoexist.ora'
08:50:11 SQL> quit
Disconnected
$egrep -i "noexist|spfile" noexist.txt
--沒有結果!why?在沒有執行startup nomount之前觀察,發現
$ ps -ef
...
oracle 3825 3248 0 09:13 pts/0 00:00:00 sqlplus as sysdba
oracle 3828 3825 0 09:13 ? 00:00:00 oraclenoexist (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
...
sqlplus會派生一個oraclenoexist經常.
$strace -o noexist1.txt -p 3828
再執行startup nomount,退出後.執行如下:
# egrep -i "noexist|spfile" noexist1.txt
stat("/u01/app/oracle/product/11.2.0/db_1/dbs/spfilenoexist.ora", 0x7fff12a3a8a8) = -1 ENOENT (No such file or directory)
stat("/u01/app/oracle/product/11.2.0/db_1/dbs/spfile.ora", 0x7fff12a3a8a8) = -1 ENOENT (No such file or directory)
open("/u01/app/oracle/product/11.2.0/db_1/dbs/initnoexist.ora", O_RDONLY) = -1 ENOENT (No such file or directory)
可以確定startup nomount啟動引數檔案的查詢順序是:
dbs目錄下的:
spfile.ora => spfile.ora => init.ora
瞭解這個順序對於定位啟動問題很重要.
export ORACLE_SID=noexist
strace -o noexist.txt sqlplus sys as sysdba
$ rlsqlplus
SQL*Plus: Release 11.2.0.1.0 Production on Fri Jan 20 08:48:12 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter password:
Connected to an idle instance.
08:48:14 SQL> exit
Disconnected
$ export ORACLE_SID=noexist
$ strace -o noexist.txt sqlplus sys as sysdba
SQL*Plus: Release 11.2.0.1.0 Production on Fri Jan 20 08:50:04 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter password:
Connected to an idle instance.
08:50:05 SQL> startup nomount
ORA-01078: failure in processing system parameters
LRM-00109: could not open parameter file '/u01/app/oracle/product/11.2.0/db_1/dbs/initnoexist.ora'
08:50:11 SQL> quit
Disconnected
$egrep -i "noexist|spfile" noexist.txt
--沒有結果!why?在沒有執行startup nomount之前觀察,發現
$ ps -ef
...
oracle 3825 3248 0 09:13 pts/0 00:00:00 sqlplus as sysdba
oracle 3828 3825 0 09:13 ? 00:00:00 oraclenoexist (DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))
...
sqlplus會派生一個oraclenoexist經常.
$strace -o noexist1.txt -p 3828
再執行startup nomount,退出後.執行如下:
# egrep -i "noexist|spfile" noexist1.txt
stat("/u01/app/oracle/product/11.2.0/db_1/dbs/spfilenoexist.ora", 0x7fff12a3a8a8) = -1 ENOENT (No such file or directory)
stat("/u01/app/oracle/product/11.2.0/db_1/dbs/spfile.ora", 0x7fff12a3a8a8) = -1 ENOENT (No such file or directory)
open("/u01/app/oracle/product/11.2.0/db_1/dbs/initnoexist.ora", O_RDONLY) = -1 ENOENT (No such file or directory)
可以確定startup nomount啟動引數檔案的查詢順序是:
dbs目錄下的:
spfile.ora => spfile.ora => init.ora
瞭解這個順序對於定位啟動問題很重要.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-715126/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【STARTUP】Oracle資料庫啟動過程中引數檔案的使用的順序及注意事項Oracle資料庫
- Oracle RAC 環境 引數檔案的啟動順序Oracle
- [20180131]啟動時引數檔案的優先順序.txt
- oracle啟動例項時使用引數檔案的順序Oracle
- startup,startup mount,startup nomount之間的區別
- C/C++多引數函式引數的計算順序與壓棧順序C++函式
- Mysql關於my.cnf引數檔案的讀取順序及各項配置的覆蓋優先順序MySql
- python描述器的訪問順序Python
- oracle startup(nomount mount open restrict)OracleREST
- mysql 多個引數選項檔案my.cnf優先順序研究MySql
- struts檔案配置順序
- NLS引數優先順序解析
- HttpClient和HttpGet 引數的優先順序HTTPclient
- C++ 順序容器中訪問元素C++
- 引數匹配順序——Python學習之引數(三)Python
- Oracle在啟動時會按以下的順序查詢引數檔案(WINDOWS平臺):OracleWindows
- 資料庫易混淆引數名以及引數檔案啟動資料庫到nomount狀態資料庫
- Oracle RAC引數設定優先順序別問題分析Oracle
- js中同名變數或者引數的優先順序JS變數
- SpringBoot配置檔案優先順序載入順序Spring Boot
- 臨時檔案的順序和絕對檔案號
- oracle控制檔案及引數檔案問題Oracle
- 繼承中引數傳遞及呼叫順序繼承
- 一款免費使用的PDF檔案批次合併工具,可操作pdf檔案順序,按順序合併pdf檔案。
- 一款免費使用的PDF檔案批量合併工具,可操作pdf檔案順序,按順序合併pdf檔案。
- 資料庫不能startup nomount ora-00600資料庫
- C++ 標頭檔案的包含順序研究C++
- 大型專案開發: 標頭檔案順序
- nls引數、環境變數以及函式等起作用的順序!變數函式
- 引數檔案
- 引數檔案/口令檔案
- oracle的引數檔案Oracle
- web.xml 檔案 配置載入順序WebXML
- [springboot]配置檔案載入順序Spring Boot
- 同名函式的 帶 params 引數 與 不帶 params 引數的執行優先順序函式
- Oracle引數檔案解析——引數檔案分析獲取Oracle
- udev控制磁碟引導順序dev
- 佇列順序性引發的思考佇列