oracle报错3150,Oracle RAC 实例 升级后无法启动 ORA-01565,ORA-17503,ORA-12547 解决方法

news/2024/6/18 19:21:19

Oracle 18c RAC 环境,节点2数据库实例启动失败,报错如下:https://www.cndba.cn/cndba/dave/article/3150

[oracle@www.cndba.cn dbs]$ sqlplus / as sysdba

SQL*Plus: Release 18.0.0.0.0 - Production on Sun Nov 18 03:16:39 2018

Version 18.4.0.0.0

Copyright (c) 1982, 2018, Oracle. All rights reserved.

Connected to an idle instance.

SQL> startup

ORA-01078: failure in processing system parameters

LRM-00109: could not open parameter file '/u01/app/oracle/product/18.3.0/db_1/dbs/initcndba2.ora'

SQL> create pfile from spfile;

create pfile from spfile

*

ERROR at line 1:

ORA-01565: error in identifying file '?=/dbs/spfile@.ora'

ORA-27037: unable to obtain file status

Linux-x86_64 Error: 2: No such file or directory

Additional information: 7

SQL> create pfile from spfile='+DATA/CNDBA/PARAMETERFILE/spfile.278.986019415';

create pfile from spfile='+DATA/CNDBA/PARAMETERFILE/spfile.278.986019415'

*

ERROR at line 1:

ORA-01565: error in identifying file

'+DATA/CNDBA/PARAMETERFILE/spfile.278.986019415'

ORA-17503: ksfdopn:10 Failed to open file

+DATA/CNDBA/PARAMETERFILE/spfile.278.986019415

ORA-12547: TNS:lost contact

ORA-12547: TNS:lost contact

从这里看是不能识别到spfile,但实际上,spfile的配置并没有问题,在节点1查看:https://www.cndba.cn/cndba/dave/article/3150

[grid@www.cndba.cn .patch_storage]$ srvctl config database -d cndba -all

Database unique name: cndba

Database name: cndba

Oracle home: /u01/app/oracle/product/18.3.0/db_1

Oracle user: oracle

Spfile: +DATA/CNDBA/PARAMETERFILE/spfile.278.986019415

Password file: +DATA/CNDBA/PASSWORD/pwdcndba.257.986017503

Domain:

Start options: open

Stop options: immediate

Database role: PRIMARY

Management policy: AUTOMATIC

Server pools:

Disk Groups: DATA

Mount point paths:

Services: cndba_taf,pdb_taf

Type: RAC

Start concurrency:

Stop concurrency:

Database is enabled

Database is individually enabled on nodes:

Database is individually disabled on nodes:

OSDBA group: dba

OSOPER group: oper

Database instances: cndba1,cndba2

Configured nodes: rac1,rac2

CSS critical: no

CPU count: 0

Memory target: 0

Maximum memory: 0

Default network number for database services:

Database is administrator managed

[grid@www.cndba.cn .patch_storage]$

SQL> show parameter spfile

NAME TYPE VALUE

------------------------------------ ---------------------- ------------------------------

spfile string +DATA/CNDBA/PARAMETERFILE/spfi

le.278.986019415

SQL>

实际上是因为之前执行Patchauto过程中报权限不足,所有修改了GI HOME的权限,

https://www.cndba.cn/cndba/dave/article/3150https://www.cndba.cn/cndba/dave/article/3150

---------------------------Patching Failed---------------------------------

Command execution failed during patching in home: /u01/app/18.3.0/grid, host: rac2.

Command failed: /u01/app/18.3.0/grid/OPatch/opatchauto apply /u01/28659165 -oh /u01/app/18.3.0/grid -target_type cluster -binary -invPtrLoc /u01/app/18.3.0/grid/oraInst.loc -jre /u01/app/18.3.0/grid/OPatch/jre -persistresult /u01/app/18.3.0/grid/OPatch/auto/dbsessioninfo/sessionresult_rac2_crs.ser -analyzedresult /u01/app/18.3.0/grid/OPatch/auto/dbsessioninfo/sessionresult_analyze_rac2_crs.ser

Command failure output:

==Following patches FAILED in apply:

Patch: /u01/28659165/28547619

Log: /u01/app/18.3.0/grid/cfgtoollogs/opatchauto/core/opatch/opatch2018-11-17_14-46-37PM_1.log

Reason: Failed during Patching: oracle.opatch.opatchsdk.OPatchException: ApplySession failed in system modification phase... 'ApplySession::apply failed: mv: cannot move ‘/u01/app/18.3.0/grid/lib/libasmclntsh18.so’ to ‘/u01/app/18.3.0/grid/lib/libasmclntsh18.so.bak’: Permission denied

make: *** [update_patchrep] Error 1

'

After fixing the cause of failure Run opatchauto resume

]

OPATCHAUTO-68061: The orchestration engine failed.

OPATCHAUTO-68061: The orchestration engine failed with return code 1

OPATCHAUTO-68061: Check the log for more details.

OPatchAuto failed.

然后直接修改了GI HOME的目录权限:

https://www.cndba.cn/cndba/dave/article/3150

[root@www.cndba.cn grid]# chown -R grid:oinstall /u01/app/18.3.0/grid

之后数据库实例就无法正常启动。https://www.cndba.cn/cndba/dave/article/3150https://www.cndba.cn/cndba/dave/article/3150

https://www.cndba.cn/cndba/dave/article/3150

https://www.cndba.cn/cndba/dave/article/3150

这里最终的原因也就是bin/oracle权限引起,解决方法就是分别用GI和DB用户修改bin/oracle权限到6751即可: https://www.cndba.cn/cndba/dave/article/3150

[grid@www.cndba.cn bin]$ pwd

/u01/app/18.3.0/grid/bin

[grid@www.cndba.cn bin]$ chmod 6751 oracle

[oracle@www.cndba.cn ~]$ cd $ORACLE_HOME/bin

[oracle@www.cndba.cn bin]$ chmod 6751 oracle

然后就可以正常启动了:

SQL> startup

ORACLE instance started.

Total System Global Area 2768239832 bytes

Fixed Size 8899800 bytes

Variable Size 754974720 bytes

Database Buffers 1879048192 bytes

Redo Buffers 7876608 bytes

In-Memory Area 117440512 bytes

Database mounted.

Database opened.

SQL>

版权声明:本文为博主原创文章,未经博主允许不得转载。


http://www.niftyadmin.cn/n/3725925.html

相关文章

XMLHttpRequest对象的常用属性与方法

方法 一, open(); 书上解释: 用于设置请求的目标url请求方法, 以及其他参数信息 个人理解: 发送请求的页面在不刷新的情况能将参数传给一个服务器进行处理, 这个方法就是将这些个参数传送过去 参数: 1, method:用于指定请求的类型 "GET"或者"POST" 2, url…

让肉鸡难逃五指山---精品后门程序及思路分板

什么是后门程序 后门程序又称特洛伊木马,其用途在于潜伏在电脑中,从事搜集信息或便于黑客进入的动作。后程序和电脑病毒最大的差别,在于后门程序不一定有自我复制的动作,也就是后门程序不一定会“感染”其他电脑。 后门是一种登录…

XP终端服务远程登录批处理(邪恶八进制blog)

根据这里的一楼帖我们给出如下的batch文件... 代码echo REGEDIT4>C:/est.regecho. >>C:/est.regecho [HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Control/Terminal Server/Licensing Core]>>C:/est.regecho "EnableConcurrenSessions"dword:00000…

光速中国韩彦:我们看AI项目的方法,是根本不把它当AI项目来看

随着人工智能风口渐起,资本也开始对这个领域越发重视,无论是之前的互联网、智能硬件的创业潮还是今天的人工智能领域,资本对于创业者们的支持与影响都十分重要。 今年7月7日,由中国计算机学会(CCF)主办&…

键盘记录支持中文,3389(czy 原创)

键盘记录支持中文,3389(原创) czy 04.11.28挂接WH_CALLWNDPROC(WM_IME_COMPOSITION),WH_GETMESSAGE(WM_CHAR和WM_KEYUP),前者记录中文,后者记特殊按键和字母符号.中文在极品五笔和智能ABC中测试通过,另系统测试在2k,xp,2003下测试通过,同时包括 2kserver的3389中.(CMD中不能成…

大数据正在如何改变数据库格局?

提及“数据库”,大多数人会想到拥有30多年风光历史的RDBMS。然而,这可能很快就会发生改变。 一大批新的竞争者都在争夺这一块重要市场,他们的方法是多种多样的,却都有一个共同点:极其专注于大数据。 推动新的数据迭代衍…

用SoftICE进行reverse engineering的一个例子(转载)

转自http://dgdown.myetang.com/text/text24.htm,译者和原作者未知。Sub7中的公用密码的发现我们的目标是Sub7你认为,你在Sub7的服务端设置了一个密码,那么其他人就无法连接它了吗? 你犯了一个大错误!这儿我就向你展示…

网络虚拟化之FlowVisor:网络虚拟层(中)

一. 概念理解和回顾 上一篇博客说了,切片定义为一个虚拟网络的实例,而组成切片的流可以被当作有所有可能出现的数据包的包头构成的整个几何空间的一个子空间。举一个例子,OpenFlow的流表项会匹配一定的域,我们可以按照不同的域将整…