標籤:parameter string 使用 start from select 相關 ram ack
ORACLE資料庫啟動以後。通過select * from v$parameter這個語句能夠查看到oracle資料庫使用的全部參數。
對於oracle的參數檔案,分為spfile 二進位檔案和pfile 文字檔。如今的資料庫一般都是使用spfile二進位檔案作為啟動oracle的參數檔案。對於spfile和pfile之間的差別:
1 spfile是二進位檔案(能夠通過 string spfileorcl.ora進行二進位的檔案查看),不能夠使用文字編輯器改動。僅僅能在sqlplus中使用命令動態改動參數。對於pfile是文字檔。能夠直接使用文字編輯器進行改動,重新啟動資料庫後生效
2 spfile必須儲存在服務端,通常是在$ORACLE_HOME/dbs檔案夾以下,對於pfile則是能夠儲存在client。能夠通過client的pfile啟動資料庫
3 spfile 和pfile之間能夠動態轉化 在sql命令下(無論是否已近啟動資料庫執行個體)
通過pfile建立spfile create pfile=’/u01/app/oracle/dbs/spfileorcl.ora’ from pfile=’/u01/app/oracle/dbs/initorcl.ora’(或者使用 create spfile from pfile)
4 假設啟動資料庫start 不指定參數檔案(假設sid是orcl),則會在$ORACLE_HOME/dbs 檔案夾下依次尋找參數檔案 spfileorcl.ora>initorcl.ora
5 我們能夠指定參數檔案來啟動資料庫(這裡僅僅能通過pfile檔案,不能是spfile檔案)
startup pfile=‘/u01/app/oracle/dbs/init.ora‘(使用pfile檔案)
6 對於參數檔案裡沒有指定的參數,均是採取相關參數的預設值
ORACLE 參數檔案介紹