zoukankan      html  css  js  c++  java
  • OERR: ORA-32004 "obsolete or deprecated parameter(s) specified for %s instance"

    Oracle 11gR2通过Memory创建动态参数文件后,通过SPFILE启动,提示

    ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance

    原因是因为参数文件里面含有弃用(deprecated )的参数,重新编辑删除它们即可。

    操作提示

    SQL> create spfile from memory;
    
    File created.
    
    SQL> startup force;
    ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance
    ORACLE instance started.
    
    Total System Global Area  830930944 bytes
    Fixed Size               2232920 bytes
    Variable Size            629149096 bytes
    Database Buffers         197132288 bytes
    Redo Buffers              2416640 bytes
    Database mounted.
    Database opened.

    解决方案

    查询日志,显示哪些参数被弃用。

    Deprecated system parameters with specified values:
      background_dump_dest
      user_dump_dest

    生成静态参数文件

    SQL> create pfile from spfile;
    
    File created.

    进行编辑

    [oracle@henry dbs]$ vim initPROD1.ora

    删除里面有弃用标记的两行参数

    *.user_dump_dest='/u01/app/oracle/diag/rdbms/prod1/PROD1/trace'#Deprecate parameter
    *.background_dump_dest='/u01/app/oracle/diag/rdbms/prod1/PROD1/trace'#Deprecate parameter

    通过静态参数文件创建SPFILE

    [oracle@henry dbs]$ sqlplus / as sysdba
    
    SQL*Plus: Release 11.2.0.3.0 Production on Tue May 28 00:20:31 2019
    
    Copyright (c) 1982, 2011, Oracle.  All rights reserved.
    
    Connected to an idle instance.
    
    SQL> create spfile from pfile;
    
    File created.

    启动数据库(默认使用SPFILE),将不再有的ORA-32004错误。

    SQL> startup
    ORACLE instance started.
    
    Total System Global Area  830930944 bytes
    Fixed Size               2232920 bytes
    Variable Size            629149096 bytes
    Database Buffers         197132288 bytes
    Redo Buffers              2416640 bytes
    Database mounted.
    Database opened.

    官方DETAILS

    Error Text, Cause and Action from Message File/s for ORA-32004

    Versions 11.2, 12.1
    
    Error:  ORA-32004 obsolete or deprecated parameter(s) specified for %s instance 
    -------------------------------------------------------
    Cause:  Obsolete or deprecated parameters 
    for this instance type 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.
    Versions 9.2, 10.1, 10.2, 11.1
    
    Error:  ORA-32004 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.
  • 相关阅读:
    C++文件流类与文件流对象
    当java出现异常,应如何进行处理
    C语言函数的声明以及函数原型
    MySQL的create table as 与 like区别
    java中BigDecimal加减乘除基本用法
    项目小结
    自动化测试 如何快速提取Json数据
    Java Map 集合类在selenium自动化测试设计中的应用
    UFT对于PDF 文档的操作方法 VBS代码
    Selenium 自动化测试中对页面元素的value比较验证 java语言
  • 原文地址:https://www.cnblogs.com/askscuti/p/10934602.html
Copyright © 2011-2022 走看看