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


錯誤示范:

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.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM