今天Linux服務器機子重啓了下,Oracle啓動不起來,提示:解決ORA-00824: cannot set sga_target due to existing
看了不少解決方法,發現下面這個特別好,特別簡單
按照這種思路:
一、咱們徹底能夠先用pfile的配置參數啓動數據庫實例
二、經過pfile重建spfile文件(create spfile from pfile)
三、關閉數據庫實例
四、正常啓動數據庫實例
具體的操做以下:
su - oracle
[oracle@redhat pfile]$ sqlplus /nolog
SQL*Plus: Release 10.2.0.1.0 - Production on Tue Oct 20 00:20:19 2009
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL> conn /as sysdba
Connected to an idle instance.
SQL>lsnrctl start
這條語句運行後,會出現pfile文件,把這個文件弄出來備份,而後,再運行下面的語句
SQL> startup pfile='/home/oracle/admin/zgz/pfile/init.ora.82220096537'
--「經過pfile文件啓動oracle實例」
ORACLE instance started.
Total System Global Area 285212672 bytes
Fixed Size 1218968 bytes
Variable Size 88082024 bytes
Database Buffers 188743680 bytes
Redo Buffers 7168000 bytes
Database mounted.
Database opened.
SQL> create spfile from pfile='/home/oracle/admin/zgz/pfile/init.ora.82220096537';--「經過pfile重建spfile文件」
File created.
SQL> shutdown immediate
--"關閉數據庫實例"
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup --"經過spfile文件正常啓動oracle實例"
ORACLE instance started.
Total System Global Area 285212672 bytesFixed Size 1218968 bytesVariable Size 88082024 bytesDatabase Buffers 188743680 bytesRedo Buffers 7168000 bytesDatabase mounted.Database opened.SQL>