摘要:本文主要向大家介绍了Oracle数据库之oracle数据库升级dbua操作阻塞解决方法(解决ORA-32004报错),通过具体的内容向大家展现,希望对大家学习Oracle数据库有所帮助。
本文主要向大家介绍了Oracle数据库之oracle数据库升级dbua操作阻塞解决方法(解决ORA-32004报错),通过具体的内容向大家展现,希望对大家学习Oracle数据库有所帮助。
操作环境
1、SuSE11sp3操作系统
2、oracle 11.2.0.3版本升级到11.2.0.4版本
问题现象
oracle 11.2.0.3版本升级到11.2.0.4版本时执行dbua命令在获取dabase信息步骤时提示输入pfile文件,无法next操作,升级阻塞。(不是在自己环境操作,暂无截图)
问题分析
oracle start mount步骤时会出现提示ORA-32004: obsolete or deprecated parameter(s) specified for RDBMS instance错误,按照之前的理解是不会影响oracle的使用,但是不确定这个问题是否是阻塞的原因。查看alert*.log看看启动时是否有报错。
1、登录oracle用户,利用find $ORACLE_BASE -name "alert*.log" 查找alert log日志。清空该日志文件或者使用tail -f alert*.log
2、重启oracle实例(shutdown immedate;start mount)
3、通过alert log日志看到有如下提示信息:
Deprecated system parameters with specified values:
remote_os_authent
End of deprecated system parameter listing
4、根据提示不赞成该参数值有默认值,利用show parameter remote_os_authent查看确实存在默认值为TRUE
5、利用如下SQL查看确实为过期参数,下一步就是要把这个参数去掉。
SQL> column name format a10;
SQL> column value format a10;
SQL> column isdefault format a10;
SQL> column descriptio format a10;
SQL>SELECT NAME,Value,isdefault,Description FROM v$parameter WHERE isdeprecated = ‘TRUE‘ And Name=‘remote_os_authent‘;
6、查看参数文件时spfile,不能直接修改,先生成品file文件
(1) 查看参数文件类型,有值表示使用的是spfile
SQL>show parameter spfile
(2)生成pfile文件。说明:/home/oracle是ORACLE用户家目录。可任意指定oracle可访问的路径。
create pfile=‘/home/oracle/pfile.ora‘ from spfile;
(3)打开pfile.ora文件,删除remote_os_authent参数所在行
(4)重启ORACLE实例,利用pfile.ora文件打开,重新生成spfile文件后再重启一下ORACLE使spfile文件生效(说明:由于这里在升级操作,只能启动到mount状态,startup mount)。
SQL> shutdown immedate;
SQL> startup mount pfile=‘/home/oracle/pfile.ora‘;
SQL> create spfile from pfile=‘/home/oracle/pfile.ora‘;
(5)重新执行dbua命令开始操作升级,问题解决,升级成功。
问题解决
参考问题分析步骤,实际上应该是ORA-32004提示会影响dbua操作,目标是解决这个ORA-32004提示即可。
其他
ORA-32004信息参考如下,给出了明确的操作方法,查看alert log,从spfile或者pfile文件删掉过期参数。
32004, 00000, "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.
本文由职坐标整理并发布,希望对同学们学习Oracle有所帮助,更多内容请关注职坐标数据库Oracle数据库频道!
您输入的评论内容中包含违禁敏感词
我知道了
请输入正确的手机号码
请输入正确的验证码
您今天的短信下发次数太多了,明天再试试吧!
我们会在第一时间安排职业规划师联系您!
您也可以联系我们的职业规划师咨询:
版权所有 职坐标-一站式IT培训就业服务领导者 沪ICP备13042190号-4
上海海同信息科技有限公司 Copyright ©2015 www.zhizuobiao.com,All Rights Reserved.
沪公网安备 31011502005948号