數據爲10g:
SQL> startup
ORA-32004: obsolete and/or deprecated parameter(s) specified --報錯,已廢棄的參數被啓用
ORACLE instance started.
Total System Global Area 167772160 bytes
Fixed Size 1218316 bytes
Variable Size 75499764 bytes
Database Buffers 88080384 bytes
Redo Buffers 2973696 bytes
Database mounted.
Database opened.
SQL> show erro
No errors.
SQL> host oerr ora 32004 --查看錯誤定義
32004, 00000, "obsolete and/or deprecated parameter(s) specified"
// *Cause: One or more obsolete and/or parameters were specified in
// the SPFILE or the PFILE on the server side.
// *Action: See alert log for a list of parameters that are obsolete. --提示去alert_ORCL.log中找相應的廢棄參數
// or deprecated. Remove them from the SPFILE or the server
// side PFILE.
[oracle@class155 bdump]$ pwd
/oracle/admin/ORCL/bdump ---文件路徑
[oracle@class155 bdump]$ vim alert_ORCL.log
Deprecated system parameters with specified values:
log_archive_start ---可以看到2個廢棄的參數被設置了
sql_trace
End of deprecated system parameter listing
PMON started with pid=2, OS id=2998
PSP0 started with pid=3, OS id=3000
MMAN started with pid=4, OS id=3002
DBW0 started with pid=5, OS id=3004
LGWR started with pid=6, OS id=3006
CKPT started with pid=7, OS id=3008
/Deprecated ---在vim中查找關鍵字Deprecated (這樣才能全部找到廢棄的參數被啓用的情況)
SQL> show parameter sql_trace;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
sql_trace boolean TRUE --默認爲false
SQL> alter system reset sql_trace scope=spfile sid='*'; --重置參數
System altered.
SQL> show parameter log_archive_start
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
log_archive_start boolean TRUE --默認爲FALSE
SQL> alter system reset log_archive_start scope=spfile sid='*';
System altered.
SQL> shutdown immediate
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORACLE instance started. --重啓後正常
Total System Global Area 167772160 bytes
Fixed Size 1218316 bytes
Variable Size 75499764 bytes
Database Buffers 88080384 bytes
Redo Buffers 2973696 bytes
Database mounted.
Database opened.
總結:要善於根據錯誤提示查找錯誤源,並根據日誌文件找到解決辦法;