在 Oracle 10g 中,以前熟悉的一些参数已经 deprecated 了,有的时候很烦人。
SQL> STARTUP;
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORACLE instance started.
Total System Global Area 213909504 bytes
Fixed Size 778156 bytes
Variable Size 128983124 bytes
Database Buffers 83886080 bytes
Redo Buffers 262144 bytes
Database mounted.
Database opened.
SQL>
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.
// or deprecated. Remove them from the SPFILE or the server
// side PFILE.
SQL>
告诉我们去 alert log 中查看信息。查找...
Deprecated system parameters with specified values:
log_archive_start
End of deprecated system parameter listing
oops ,10g 不支持该参数了? 原来在 10g 中,当打开归档模式(archive log mode) ,则 ARCH 进程被隐性的自动设定。10g 中也就不会出现 9i 以前那种数据库已经在归档模式,但是自动归档没有被设定的情况了。这也算是 Oracle 修正的一个小Bug。如果是从 9i 升级到 10g 的话,不注意可能会有点小问题的。要解决该问题,需要重置 log_archive_start 参数。
IXDBA.NET技术社区
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 213909504 bytes
Fixed Size 778156 bytes
Variable Size 128983124 bytes
Database Buffers 83886080 bytes