Oracle 參數檔案介紹

來源:互聯網
上載者:User

Oracle 參數檔案介紹

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則是可以儲存在用戶端,可以通過用戶端的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 表的建立 及相關參數

從參數取值看Oracle OMF特性

Oracle 10g的隱含參數_complex_view_merging引發的效能問題

Oracle 11g RAC 中幾個重要參數的解釋

Oracle開啟歸檔模式及其相關參數

相關文章

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.