天天看点

ORA-32004: obsolete and/or deprecated parameter(s) specified

如果在启动数据库时遇到ORA-32004: obsolete and/or deprecated parameter(s) specified 错误,这个是因为数据库里面设置了过时或不推荐使用的参数,如下描述所示:

SQL> ho 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_TRACE参数的值后,关闭实例,重启实例是报错:ORA-32004,一般如果遇到ORA-32004错误时,首先查看告警日志记录,你会发现在告警日志里面有这么一段信息。

Deprecated system parameters with specified values:

  sql_trace               

End of deprecated system parameter listing

另外,你也可以通过下面SQL查看相关过时或不推荐设置的参数。

另外,我们来看看一个使用过时参数的案例,例如,在设置了参数log_archive_start后,重启就会遇到ORA-32004: obsolete and/or deprecated parameter(s) specified

此时查看告警日志,就会看到下面对应信息,那么就可以确认是参数log_archive_start的问题。

  log_archive_start

此时执行下面SQL语句,即可解决这个问题。