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> ALTER SYSTEM SET SQL_TRACE=TRUE;
 
System altered.
 
SQL> shutdown immediate;
Database closed.
Database dismounted.
ORACLE instance shut down.
SQL> startup
ORA-32004: obsolete and/or deprecated parameter(s) specified
ORACLE instance started.
 
Total System Global Area 1090519040 bytes
Fixed Size                  1218920 bytes
Variable Size             234882712 bytes
Database Buffers          838860800 bytes
Redo Buffers               15556608 bytes
Database mounted.
Database opened.
SQL> 

修改SQL_TRACE参数的值后,关闭实例,重启实例是报错:ORA-32004,一般如果遇到ORA-32004错误时,首先查看告警日志记录,你会发现在告警日志里面有这么一段信息。

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

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

SQL> SELECT  NAME, DESCRIPTION FROM V$PARAMETER V WHERE V.ISDEPRECATED='TRUE';
 
NAME                                                                DESCRIPTION
-----------------                 -------------------------------------------------------------------------------
lock_name_space                        lock name space used for generating lock names for standby/clone database
buffer_pool_keep                       Number of database blocks/latches in keep buffer pool
buffer_pool_recycle                    Number of database blocks/latches in recycle buffer pool
max_commit_propagation_delay           Max age of new snapshot in .01 seconds
remote_archive_enable                  remote archival enable setting
log_archive_start                      start archival process on SGA initialization
parallel_server                        if TRUE startup in parallel server mode
parallel_server_instances              number of instances to use for sizing OPS SGA structures
fast_start_io_target                   Upper bound on recovery reads
logmnr_max_persistent_sessions         maximum number of threads to mine
serial_reuse                           reuse the frame segments
max_enabled_roles                      max number of roles a user can have enabled
global_context_pool_size               Global Application Context Pool Size in Bytes
plsql_compiler_flags                   PL/SQL compiler flags
sql_trace                              enable SQL trace
parallel_automatic_tuning              enable intelligent defaults for parallel execution parameters
drs_start                              start DG Broker monitor (DMON process)
 
17 rows selected

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

SQL> ALTER SYSTEM SET LOG_ARCHIVE_START=TRUE SCOPE=SPFILE;

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

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

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

SQL> alter system reset log_archive_start scope=spfile sid='*';
 
System altered.
时间: 2024-07-31 20:33:08

ORA-32004: obsolete and/or deprecated parameter(s) specified的相关文章

obsolete and/or deprecated parameter(s) specified

obsolete and/or deprecated parameter(s) specified SQL> startup ORA-32004: obsolete and/or deprecated parameter(s) specified ORACLE instance started. Total System Global Area  599785472 bytes Fixed Size              2098112 bytes Variable Size        

ORA-32004 的错误处理

--======================= -- ORA-32004 的错误处理 --=======================       启动数据库时,收到了ORA-32004 的错误,错误多是一些过时且在当前版本中不在使用的参数,如果碰到类似的错误,只需要将其 reset即可.   1.出现的错误提示        sys@ORCL> startup     ORA-32004: obsolete and/or deprecated parameter(s) specified

启用用户进程跟踪

--======================== -- 启用用户进程跟踪 --========================   一.用户进程跟踪文件     用户跟踪文件在根据需要跟踪会话实际操作的时候根据要求产生     通常用于帮助调整应用程序,比如检查由SQL的不良写法所致的相关问题等等     由用户进程发出,服务器进程产生该类文件     包含跟踪SQL命令的统计信息.包含用户的错误信息     缺省情况下当用户出现会话错误时产生     位置由user_dump_dest设定

在windows下查看oracle错误的方法

我们总会遇到形形色色的ora 错误,在windows系统下可以这样查看, c:\>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 si

Oracle静态监听注册详解

网上有很多关于oracle 监听静态注册的文章,但大多都是简单说说,并没有详细的例子,这里,将结合linux as4 下的oracle 10gR2.0.1 举一个具体的例子 1.在 $ORACLE_HOME/network/admin/listener.ora 文件中加入一个静态注册的节点 [oracle@prudent oracle]$ cd $ORACLE_HOME/network/admin [oracle@prudent admin]$ vi listener.ora # listene

Oracle 静态监听注册详解

Oracle 静态监听注册详解        网上有很多关于oracle 监听静态注册的文章,但大多都是简单说说,并没有详细的例子,这里,将结合linux as4 下的oracle 10gR2.0.1 举一个具体的例子 1.在 $ORACLE_HOME/network/admin/listener.ora 文件中加入一个静态注册的节点 [oracle@prudent oracle]$ cd $ORACLE_HOME/network/admin [oracle@prudent admin]$ vi

ORA-00439的解决

今天用gc配置了stream后,重启数据库后发现有以下的问题   SQL> startup ORA-00439: feature not enabled: Real Application Clusters   我这个库PROD不是rac环境,单实例的.   开始以为是stream的什么参数有问题. 然后从参数文件里面全部删掉,重启数据库还是一样的问题. 查看alert日志   ALTER SYSTEM SET job_queue_processes=10 SCOPE=BOTH; Fri Oct

监听的instance status blocked分析

对于处于NOMOUNT状态的数据库,PMON还没有将服务注册到监听上,这个时候服务的状态是BLOCKED的,对于来自远程的任何连接都会报ORA-12528错误.如下: [oracle@dbtest ~]$ export ORACLE_SID=orcl[oracle@dbtest ~]$ sqlplus / as sysdba SQL*Plus: Release 10.2.0.4.0 - Production on Thu Nov 15 14:39:52 2012 Copyright (c) 19

数据库一致性备份

本文主要讲解数据库一致性备份的执行步骤,备份数据库是指备份数据库的所有数据文件和控制文件,另外还有参数文件和口令文件.注意:备份数据库时 不需备份重做日志文件. 数据库的一致性备份是指:数据库一致性备份是指关闭了数据库后备份所有数据文件和控制文件的方法.当使用SHUTDOWN 命令正常关闭了数据库之后,所有数据库文件的当前SCN 值完全一致,所以关闭后的数据库备份被称为数据库一致性备份或者冷备份.适用:ARCHIVELOG.NOARCHIVELOG 一 列出要备份的数据文件和控制文件. SQL>