oracle 19c 补丁回退,19c新环境安装补丁(三)_推荐

1) 权限修改

$ ls -lrt /u01/app/oraInventory/ContentsXML/oui-patch.xml-rw-r----- grid oinstall Aug : /u01/app/oraInventory/ContentsXML/oui-patch.xml

$ chmod 777 /u01/app/oraInventory/ContentsXML/oui-patch.xml

2)直接打补丁,报错后回滚

节点1操作

#/u01/app/oracle/product/19.0.0/db_1/OPatch/opatchauto apply /u01/soft/31326451 -oh /u01/app/oracle/product/19.0.0/db_1

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.

查询日志

[Aug 12, 2020 4:04:19 PM] [INFO] Prerequisite check "CheckActiveFilesAndExecutables" failed.

The details are:

Following active executables are not used by opatch process :

Following active executables are used by opatch process :

/u01/app/oracle/product/19.0.0/db_1/lib/libclntsh.so.19.1

/u01/app/oracle/product/19.0.0/db_1/lib/libsqlplus.so

[Aug 12, 2020 4:04:19 PM] [INFO] UtilSession failed: Prerequisite check "CheckActiveFilesAndExecutables" failed.

[Aug 12, 2020 4:04:19 PM] [SEVERE] OUI-67073:UtilSession failed: Prerequisite check "CheckActiveFilesAndExecutables" failed.

#/u01/app/oracle/product/19.0.0/db_1/OPatch/opatchauto rollback /u01/soft/31326451 -oh /u01/app/oracle/product/19.0.0/db_1

3)停CRS 及TFA

# /u01/app/19.0.0/grid/bin/crsctl stop crs

$ /u01/app/19.0.0/grid/bin/tfactl status

.----------------------------------------------------------------------------------------------.

| Host | Status of TFA | PID | Port | Version | Build ID | Inventory Status |

+--------+---------------+-------+------+------------+----------------------+------------------+

| w1 | RUNNING | 30174 | 5000 | 20.1.3.0.0 | 201300202004291616 | COMPLETE |

| w2 | RUNNING | 55888 | 5000 | 20.1.3.0.0 | 201300202004291616 | COMPLETE |

'--------+---------------+-------+------+------------+----------------------+------------------'

# /u01/app/19.0.0/grid/bin/tfactl stop

Stopping TFA from the Command Line

Stopped OSWatcher

Nothing to do !

Killing TFA running with pid 30174

. . .

Successfully stopped TFA..

4)根据报错指定的文件,通过fuser 找到对应的进程,kill

# fuser /u01/app/oracle/product/19.0.0/db_1/lib/libclntsh.so.19.1

/u01/app/oracle/product/19.0.0/db_1/lib/libclntsh.so.19.1: 9912m

# ps -ef|grep 9912 |grep -v grep

oracle 9912 5796 0 14:57 pts/3 00:00:00 sqlplus as sysdba

# fuser /u01/app/oracle/product/19.0.0/db_1/lib/libsqlplus.so

/u01/app/oracle/product/19.0.0/db_1/lib/libsqlplus.so: 9912m

# kill -9 9912

5)补丁安装

#/u01/app/oracle/product/19.0.0/db_1/OPatch/opatchauto apply /u01/soft/31326451 -oh /u01/app/oracle/product/19.0.0/db_1

6)启动TFA 及 CRS

# /u01/app/19.0.0/grid/bin/tfactl start

# /u01/app/19.0.0/grid/bin/crsctl start crs

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值