oracle參數檔案的本質

來源:互聯網
上載者:User

環境:

SQL> select * from v$version where rownum=1;BANNER----------------------------------------------------------------Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - ProdSQL> !uname -r2.6.18-308.el5xen

          參數檔案的根本作用就是“覆蓋參數的預設值”,以便刻畫出一個最適合自己應用情境的環境
          因此參數檔案中記錄的都是我們調研的,與預設值存在不同
          通過刪除pfile參數檔案中的的參數,可達到恢複參數為其預設值的目的
          下面用一個實驗來測試一下:
          db_recovery_file_dest_size參數的作用是限制閃回恢複區可存放檔案總大小
          一旦將參數db_recovery_file_dest_size設定為非零值後“很難”恢複為預設值“0”。

          這裡我們用reset對spfile操作,來恢複為0

sys@ORCL> show parameter db_recovery_file_dest_sizeNAME                                 TYPE        VALUE------------------------------------ ----------- ------------------------------db_recovery_file_dest_size           big integer 2Gsys@ORCL> alter system reset db_recovery_file_dest_size scope=spfile sid='*';System altered.sys@ORCL> shutdown immediateDatabase closed.Database dismounted.ORACLE instance shut down.sys@ORCL> create pfile from spfile;編輯pfile 去掉DB_RECOVERY_FILE_DESTSQL> startup pfile='/u01/app/oracle/product/10.2.0/db_1/dbs/initorcl.ora';ORACLE instance started.Total System Global Area  419430400 bytesFixed Size                  1219760 bytesVariable Size             146801488 bytesDatabase Buffers          268435456 bytesRedo Buffers                2973696 bytesDatabase mounted.Database opened.SQL> show parameter db_recovery_file_dest_sizeNAME                                 TYPE        VALUE------------------------------------ ----------- ------------------------------db_recovery_file_dest_size           big integer 0

 

good luck

  by Think

2012/11/5

*****the end*******

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.