Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3541332
  • 博文数量: 715
  • 博客积分: 1860
  • 博客等级: 上尉
  • 技术积分: 7745
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-07 08:51
个人简介

偶尔有空上来看看

文章分类

全部博文(715)

文章存档

2023年(75)

2022年(134)

2021年(238)

2020年(115)

2019年(11)

2018年(9)

2017年(9)

2016年(17)

2015年(7)

2014年(4)

2013年(1)

2012年(11)

2011年(27)

2010年(35)

2009年(11)

2008年(11)

最近访客

分类: Oracle

2022-05-05 15:46:43

rac 升级补丁,执行datapatch报错:

  1. [oracle@db1-[orcl19c1]-/oracle/app/oracle/product/19.3.0/db_1/OPatch]$ ./datapatch -verbose
  2. SQL Patching tool version 19.14.0.0.0 Production on Thu Apr 28 19:24:51 2022
  3. Copyright (c) 2012, 2021, Oracle. All rights reserved.

  4. Log file for this invocation: /oracle/app/oracle/cfgtoollogs/sqlpatch/sqlpatch_4141_2022_04_28_19_24_51/sqlpatch_invocation.log

  5. Connecting to database...OK
  6. Gathering database info...done
  7. Bootstrapping registry and package to current versions...done
  8. Determining current state...done

  9. Current state of interim SQL patches:
  10. Interim patch 33561310 (OJVM RELEASE UPDATE: 19.14.0.0.220118 (33561310)):
  11.   Binary registry: Installed
  12.   SQL registry: Not installed

  13. Current state of release update SQL patches:
  14.   Binary registry:
  15.     No release update patches installed
  16.   SQL registry:
  17.     Applied 19.6.0.0.0 Release_Update 191217155004 successfully on 01-MAR-21 11.34.56.633243 AM

  18. Error: prereq checks
  19.   patch 30484981: Error reading descriptor from registry: Couldn't open encmap gbk.enc:
  20. No such file or directory
  21.  at /oracle/app/oracle/product/19.3.0/db_1/perl/lib/site_perl/5.28.1/x86_64-linux-thread-multi/XML/Parser.pm line 187.
  22. XML::Simple called at /oracle/app/oracle/product/19.3.0/db_1/sqlpatch/sqlpatch.pm line 8123.

  23.   patch 30557433: Error reading descriptor from registry: Couldn't open encmap gbk.enc:
  24. No such file or directory
  25.  at /oracle/app/oracle/product/19.3.0/db_1/perl/lib/site_perl/5.28.1/x86_64-linux-thread-multi/XML/Parser.pm line 187.
  26. XML::Simple called at /oracle/app/oracle/product/19.3.0/db_1/sqlpatch/sqlpatch.pm line 8123.

  27. Prereq check failed, exiting without installing any patches.

  28. Please refer to MOS Note 1609718.1 and/or the invocation log
  29. /oracle/app/oracle/cfgtoollogs/sqlpatch/sqlpatch_4141_2022_04_28_19_24_51/sqlpatch_invocation.log
  30. for information on how to resolve the above errors.

  31. SQL Patching tool complete on Thu Apr 28 19:25:14 2022
不知道为何不能打开gbk.enc,的确没有这个文件,解决方法比较奇葩

  1. create restore point rp1 guarantee flashback database; --为防止出现问题,加了个还原点以便回退

  2. create table registry$sqlpatch_org as select * from registry$sqlpatch;
  3. create table registry$sqlpatch_ru_info_org as select * from registry$sqlpatch_ru_info;
  4. drop table registry$sqlpatch;
  5. drop table registry$sqlpatch_ru_info;
  6. @?/rdbms/admin/catsqlreg.sql

  --然后再执行
  1. ./datapatch -verbose

  2. --确认没有问题后,删掉还原点
  3. drop restore point rp1;

怀疑还是xml信息解析时导致

这个看起来很像

解决方案给的是删除这些表后重建,执行datapatch时再填入最新的补丁信息。

参考:Doc ID 2645981.1
阅读(1833) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~