如:在Oracle 11g中手工设置了log_archive_start 为true,在启动时就会出现ORA-32004
从10g以后当数据库为归档模式时,oracle会自动启动归档进程。不在需要设置log_archive_start参数。
下面我们模拟故障现象:
查询数据库版本,实验数据库为11G的,是不需要设置log_archive_start参数的
alter system reset log_archive_start scope=spfile;
SQL> select * from v$version;
BANNER
--------------------------------------------------------------------------------
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
查询log_archive_start参数目前信息,我们目前是FALSE,需要修改。
SQL> show parameter log_archive_start
NAME TYPE VALUE
------------------------- -------- --------
log_archive_start boolean FALSE
修改为true
SQL> alter system set log_archive_start=true scope=spfile;
系统已更改。
我们现在重启数据库,发现启动数据库产生了我们想要的告。
SQL> shutdown immediate
数据库已经关闭。
已经卸载数据库。
ORACLE 例程已经关闭。
SQL> startup
ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
ORACLE 例程已经启动。
Total System Global Area 535662592 bytes
Fixed Size 1375792 bytes
Variable Size 272630224 bytes
Database Buffers 255852544 bytes
Redo Buffers 5804032 bytes
数据库装载完毕。
数据库已经打开。
重置log_archive_start参数
SQL> alter system reset log_archive_start scope=spfile;
系统已更改。
启停数据库发现故障已经解决了。
SQL> shutdown immediate;
数据库已经关闭。
已经卸载数据库。
ORACLE 例程已经关闭。
SQL> startup
ORACLE 例程已经启动。
Total System Global Area 535662592 bytes
Fixed Size 1375792 bytes
Variable Size 272630224 bytes
Database Buffers 255852544 bytes
Redo Buffers 5804032 bytes
数据库装载完毕。
数据库已经打开。
SQL>