ORACLE11G ORA-32004 報錯處理方法(總結)

一、第一種原因:Oracle ORA-32004 解決辦法,造成這個錯誤的原因是因爲指定了已經廢棄的參數:parallel_automatic_tuning

可以查看alert日誌,在啓動加載參數文件的時候。

System parameterswith non-default values:

processes                = 150

__shared_pool_size       = 121634816

__large_pool_size        = 4194304

__java_pool_size         = 4194304

__streams_pool_size      = 0

...................................

Deprecated systemparameters with specified values:

parallel_automatic_tuning

End of deprecatedsystem parameter listing

如提示因爲設置了parallel_automatic_tuning而導致ORA-32004錯誤。

執行下列命令即可重置參數值。

alter system reset parallel_automatic_tuning scope=spfile sid='*' ;

注意:集羣環境保持參數一致性。

可以查看alert日誌,在啓動加載參數文件的時候。

System parameterswith non-default values:

processes                = 150

__shared_pool_size       = 121634816

__large_pool_size        = 4194304

__java_pool_size         = 4194304

__streams_pool_size      = 0

...................................

Deprecated systemparameters with specified values:

parallel_automatic_tuning

End of deprecatedsystem parameter listing

如提示因爲設置了

可以查看alert日誌,在啓動加載參數文件的時候。

System parameterswith non-default values:

processes                = 150

__shared_pool_size       = 121634816

__large_pool_size        = 4194304

__java_pool_size         = 4194304

__streams_pool_size      = 0

...................................

Deprecated systemparameters with specified values:

parallel_automatic_tuning

End of deprecatedsystem parameter listing

如提示因爲設置了

可以查看alert日誌,在啓動加載參數文件的時候。

System parameterswith non-default values:

processes                = 150

__shared_pool_size       = 121634816

__large_pool_size        = 4194304

__java_pool_size         = 4194304

__streams_pool_size      = 0

...................................

Deprecated systemparameters with specified values:

parallel_automatic_tuning

End of deprecatedsystem parameter listing

如提示因爲設置了parallel_automatic_tuning而導致ORA-32004錯誤。

執行下列命令即可重置參數值。

alter system reset parallel_automatic_tuning scope=spfile sid='*' ;

注意:集羣環境保持參數一致性。

而導致ORA-32004錯誤。

執行下列命令即可重置參數值。

alter system reset parallel_automatic_tuning scope=spfile sid='*' ;

注意:集羣環境保持參數一致性。

而導致ORA-32004錯誤。

執行下列命令即可重置參數值。

alter system reset parallel_automatic_tuning scope=spfile sid='*' ;

注意:集羣環境保持參數一致性。

二、第二種原因:Oracle ORA-32004 解決辦法,造成這個錯誤的原因是因爲指定了已經廢棄的參數:log_archive_start

在Oracle 11g中手工設置了log_archive_start 爲true,在啓動時就會出現ORA-32004

從10g以後當數據庫爲歸檔模式時,oracle會自動啓動歸檔進程

三、第三種原因:參數文件不一致導致

startup">sys@ORCL>startup
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORACLE 例程已經啓動。

Total System Global Area 289406976 bytes
Fixed Size 1248600 bytes
Variable Size 104858280 bytes
Database Buffers 180355072 bytes
Redo Buffers 2945024 bytes
數據庫裝載完畢。
數據庫已經打開。
看來是過期參數引起的。
查了一下alert.log

Deprecated system parameters with specified values:
log_archive_start 
sql_trace 
End of deprecated system parameter listing

log_archive_start有問題。準備重置。

ALTER">sys@ORCL>ALTER SYSTEM RESET log_archive_start SCOPE=SPFILE SID='ORCL';
系統已更改。
Startup">sys@ORCL>startup
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORACLE 例程已經啓動。

Total System Global Area 289406976 bytes
Fixed Size 1248600 bytes
Variable Size 104858280 bytes
Database Buffers 180355072 bytes
Redo Buffers 2945024 bytes
數據庫裝載完畢。
數據庫已經打開。
仍然報錯。
sql>startup pfile='E:\oracle\product\10.2.0\admin\orcl\pfile\init.ora.8202008145910'
ORACLE 例程已經啓動。

Total System Global Area 289406976 bytes
Fixed Size 1248600 bytes
Variable Size 104858280 bytes
Database Buffers 180355072 bytes
Redo Buffers 2945024 bytes
數據庫裝載完畢。
數據庫已經打開。
正常。
鬱悶!
經仔細查資料和學習,有三個參數文件:
1.E:\oracle\product\10.2.0\db_1\database\SPFILEORCL.ORA
2.E:\oracle\product\10.2.0\db_1\dbs\SPFILEORCL.ORA
3.E:\oracle\product\10.2.0\admin\orcl\pfile\init.ora.8202008145910
難道是兩個spfile文件有問題,一看果然是。
sql>startup
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORACLE 例程已經啓動。

Total System Global Area 289406976 bytes
Fixed Size 1248600 bytes
Variable Size 104858280 bytes
Database Buffers 180355072 bytes
Redo Buffers 2945024 bytes
數據庫裝載完畢。
數據庫已經打開。
仍然報錯。

show parameter plife
E:\oracle\product\10.2.0\db_1\database\SPFILEORCL.ORA
關閉數據庫。
create spfile='E:\oracle\product\10.2.0\db_1\database\SPFILEORCL.ORA'
from plife='E:\oracle\product\10.2.0\admin\orcl\pfile\init.ora.8202008145910';
文件已創建
create spfile='E:\oracle\product\10.2.0\dbs\database\SPFILEORCL.ORA'
from plife='E:\oracle\product\10.2.0\admin\orcl\pfile\init.ora.8202008145910'
;
文件已創建
shut downimmediate
startup">sys@ORCL>startup
ORACLE 例程已經啓動。

Total System Global Area 289406976 bytes
Fixed Size 1248600 bytes
Variable Size 104858280 bytes
Database Buffers 180355072 bytes
Redo Buffers 2945024 bytes
數據庫裝載完畢。
數據庫已經打開。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章