修改oracle系統參數spfile導致資料庫無法啟動解決

來源:互聯網
上載者:User

標籤:

錯誤示範:

SQL> alter system set nls_date_format=‘yyyy-mm-dd 24hh:mi:ss‘ scope=spfile;
System altered.
我更改了資料庫的日期格式後,重啟後,資料庫開啟不了了。
ORA-01821: date format not recognized,有沒有人知道怎麼改回去。
大意 hh24 寫成了24hh

解決步驟:

1.可能需要重配netca,啟動監聽到執行個體。

 

2.startup pfile=/u01/app/oracle/admin/orcl/pfile/init.ora.6272016162851;

 

ORACLE instance started.

Total System Global Area 672256000 bytes
Fixed Size 2216384 bytes
Variable Size 402656832 bytes
Database Buffers 264241152 bytes
Redo Buffers 3141632 bytes
Database mounted.
Database opened.


3.SQL> create spfile from pfile=‘/u01/app/oracle/admin/orcl/pfile/init.ora.6272016162851‘;  (重建spfile)

File created.

4.SQL> shutdown normal;


Database closed.
Database dismounted.
ORACLE instance shut down.


 5.SQL> startup;


ORACLE instance started.

Total System Global Area 672256000 bytes
Fixed Size 2216384 bytes
Variable Size 402656832 bytes
Database Buffers 264241152 bytes
Redo Buffers 3141632 bytes
Database mounted.
Database opened.

修改oracle系統參數spfile導致資料庫無法啟動解決

聯繫我們

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