Oracle 11g初始化參數檔案修複

來源:互聯網
上載者:User

參考文檔http://hi.baidu.com/javatechliu/item/5b37bd2230fad8856f2cc3db裡面這一條設定,想開啟歸檔記錄模式,並修改歸檔日誌的預設路徑。

alter system set log_archive_dest="location=/u01/app/Oracle/baklog" scope=spfile;

執行之後出問題,關閉資料庫之後,起不來了,

------------------------------------------------------------------------------------
SQL> startup nomount;

ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance

ORA-16032: parameter LOG_ARCHIVE_DEST destination string cannot be translated

ORA-07286: sksagdi: cannot obtain device information.

Linux-x86_64 Error: 2: No such file or directory
-------------------------------------------------------------------------------------
原因是,log_archive_dest 是早期版本的參數,已經是個廢棄的參數,不能用LOCATION SERVICE等關鍵字,新的版本設定為路徑log_archive_dest_N(N可以是1,2,3,4) 10G支援10個路徑 11G支援到31個。

問題解決過程。由於我的資料庫是安裝在ASM磁碟組上,所以不能用
create pfile='/tmp/init.ora' from spfile  這條命令匯出spfile檔案,注意spfile檔案是二進位檔案,不能直接編輯。如果安裝資料庫是在檔案系統上,那麼直接執行這句就可以。

我的環境需要執行create pfile='/tmp/init.ora' from spfile='+DATA/orcl/spfileorcl.ora'
意思就是說,將spfile檔案匯出到/tmp/init.ora檔案中,

然後查看init.ora檔案,找到錯誤的一行,修改正確
---------------------------------------------------------------------------------

[oracle@oracle ~]$ cat /tmp/init.ora

orcl.__db_cache_size=637534208

orcl.__java_pool_size=16777216

orcl.__large_pool_size=16777216

orcl.__oracle_base='/u01/app/oracle'#ORACLE_BASE set from environment

orcl.__pga_aggregate_target=671088640

orcl.__sga_target=989855744

orcl.__shared_io_pool_size=0

orcl.__shared_pool_size=301989888

orcl.__streams_pool_size=0

*.audit_file_dest='/u01/app/oracle/admin/orcl/adump'

*.audit_trail='db'

*.compatible='11.2.0.0.0'

*.control_files='+DATA/orcl/controlfile/current.260.790263943','+FRA/orcl/controlfile/current.256.790263943'

*.db_block_size=8192

*.db_create_file_dest='+DATA'

*.db_domain=''

*.db_name='orcl'

*.db_recovery_file_dest='+FRA'

*.db_recovery_file_dest_size=4070572032

*.diagnostic_dest='/u01/app/oracle'

*.dispatchers='(PROTOCOL=TCP) (SERVICE=orclXDB)'

*.log_archive_dest='location=/u01/app/oracle/baklog'  注意這一行

*.memory_target=1655701504

*.nls_language='SIMPLIFIED CHINESE'

*.nls_territory='CHINA'

*.open_cursors=300

*.processes=150

*.remote_login_passwordfile='EXCLUSIVE'

*.undo_tablespace='UNDOTBS1'

  • 1
  • 2
  • 下一頁

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.