ora-凯发app官方网站

凯发app官方网站-凯发k8官网下载客户端中心 | | 凯发app官方网站-凯发k8官网下载客户端中心
  • 博客访问: 3502530
  • 博文数量: 718
  • 博客积分: 1860
  • 博客等级: 上尉
  • 技术积分: 7790
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-07 08:51
个人简介

偶尔有空上来看看

文章分类

全部博文(718)

文章存档

2024年(4)

2023年(74)

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

2021-11-05 21:49:20

前一阵测试oracle 19.12补丁,没注意后台日志还报了个错

  1. 2021-09-13t07:50:09.558237-07:00
  2. unable to obtain current patch information due to error: 20001, ora-20001: latest xml inventory is not loaded into table
  3. ora-06512: at "sys.dbms_qopatch", line 2327
  4. ora-06512: at "sys.dbms_qopatch", line 854
  5. ora-06512: at "sys.dbms_qopatch", line 937
  6. ora-06510: pl/sql: unhandled user-defined exception
  7. ora-06512: at "sys.dbms_qopatch", line 932
  8. ora-29913: error in executing odciexttablefetch callout
  9. ora-29400: data cartridge error
  10. kup-04020: found record longer than buffer size supported, 8388608, in /u01/app/oracle/product/19.0.0/dbhome_1/qopatch/qopiprep.bat (offset=0)
  11. ora-06512: at "sys.dbms_qopatch", line 919
  12. ora-06512: at "sys.dbms_qopatch", line 2286
  13. ora-06512: at "sys.dbms_qopatch", line 817
  14. ora-06512: at "sys.dbms_qopatch", line 2309

  15. ===========================================================
  16. dumping current patch information
  17. ===========================================================
  18. unable to obtain current patch information due to error: 20001
  19. ===========================================================

根据具体提示,好像跟xml格式的inventory信息有关,与上次看到的lang=c导致的问题现象不一样,后来看官方文档(doc id 1948198.1)说是外部表 opatch_xml_inv 被损坏或不存在,需要做如下处理:

  1. sql*plus: release 19.0.0.0.0 - production on fri nov 5 06:31:16 2021
  2. version 19.12.0.0.0

  3. 凯发app官方网站 copyright (c) 1982, 2021, oracle. all rights reserved.


  4. connected to:
  5. oracle database 19c enterprise edition release 19.0.0.0.0 - production
  6. version 19.12.0.0.0

  7. sys@orcl:primary:38> select * from opatch_xml_inv;
  8. error:
  9. ora-29913: error in executing odciexttablefetch callout
  10. ora-29400: data cartridge error
  11. kup-04020: found record longer than buffer size supported, 8388608, in /u01/app/oracle/product/19.0.0/dbhome_1/qopatch/qopiprep.bat (offset=0)



  12. no rows selected

  13. sys@orcl:primary:38> desc sys.opatch_xml_inv ;
  14.  name null? type
  15.  ----------------------------------------------------------------------------------- -------- --------------------------------------------------------
  16.  xml_inventory clob

  17. sys@orcl:primary:38> drop table sys.opatch_xml_inv;

  18. table dropped.

  19. sys@orcl:primary:38> create table opatch_xml_inv
  20.   2 (
  21.   3 xml_inventory clob
  22.   4 )
  23.   5 organization external
  24.   6 (
  25.   7 type oracle_loader
  26.   8 default directory opatch_script_dir
  27.   9 access parameters
  28.  10 (
  29.  11 records delimited by newline
  30.  12 readsize 67108864
  31.  13 preprocessor opatch_script_dir:'qopiprep.bat'
  32.  14 badfile opatch_script_dir:'qopatch_bad.bad'
  33.  15 logfile opatch_log_dir:'qopatch_log.log'
  34.  16 fields terminated by 'uijsvtboeizbeffqbl'
  35.  17 missing field values are null
  36.  18 reject rows with all null fields
  37.  19 (
  38.  20 xml_inventory char(100000000)
  39.  21 )
  40.  22 )
  41.  23 location(opatch_script_dir:'qopiprep.bat')
  42.  24 )
  43.  25 parallel 1
  44.  26 reject limit unlimited;

  45. table created.

  46. sys@orcl:primary:38> alter package sys.dbms_qopatch compile body ;

  47. package body altered.

  48. sys@orcl:primary:38> select owner, object_name,object_type,status from dba_objects where object_name in ('dbms_qopatch' ,'opatch_xml_inv');

  49. owner
  50. --------------------
  51. object_name
  52. ------------------------------------------------------------------------------------------------------------------------------------------------------
  53. object_type status
  54. ---------------------------------------------- --------------
  55. sys
  56. dbms_qopatch
  57. package valid

  58. sys
  59. dbms_qopatch
  60. package body valid

  61. sys
  62. opatch_xml_inv
  63. table valid


  64. sys@orcl:primary:38> col object_name for a32
  65. sys@orcl:primary:38> select comp_id, status, version from dba_registry;

  66. comp_id status
  67. ------------------------------------------------------------ ----------------------------------------------------------------------------------------
  68. version
  69. ------------------------------------------------------------
  70. catalog valid
  71. 19.0.0.0.0

  72. catproc valid
  73. 19.0.0.0.0

  74. rac option off
  75. 19.0.0.0.0

  76. javavm valid
  77. 19.0.0.0.0

  78. xml valid
  79. 19.0.0.0.0

  80. catjava valid
  81. 19.0.0.0.0

  82. aps valid
  83. 19.0.0.0.0

  84. xdb valid
  85. 19.0.0.0.0

  86. owm valid
  87. 19.0.0.0.0

  88. context valid
  89. 19.0.0.0.0

  90. ordim valid
  91. 19.0.0.0.0

  92. sdo valid
  93. 19.0.0.0.0

  94. xoq valid
  95. 19.0.0.0.0

  96. ols valid
  97. 19.0.0.0.0

  98. dv valid
  99. 19.0.0.0.0


  100. 15 rows selected.

  101. sys@orcl:primary:38> exit
  102. disconnected from oracle database 19c enterprise edition release 19.0.0.0.0 - production
  103. version 19.12.0.0.0
  104. [oracle@bjdb boot]$ env|grep home
  105. oracle_home=/u01/app/oracle/product/19.0.0/dbhome_1
  106. home=/home/oracle
  107. [oracle@bjdb boot]$ find /u01 -name datapatch*
  108. /u01/app/oracle/product/19.0.0/dbhome_1/opatch_bak/datapatch
  109. /u01/app/oracle/product/19.0.0/dbhome_1/opatch/datapatch
  110. /u01/app/oracle/product/19.0.0/dbhome_1/opatch/datapatch.bat
  111. [oracle@bjdb boot]$ cd /u01/app/oracle/product/19.0.0/dbhome_1/opatch/
  112. [oracle@bjdb opatch]$ ./datapatch
  113. sql patching tool version 19.12.0.0.0 production on fri nov 5 06:33:17 2021
  114. 凯发app官方网站 copyright (c) 2012, 2021, oracle. all rights reserved.

  115. log file for this invocation: /u01/app/oracle/cfgtoollogs/sqlpatch/sqlpatch_3548_2021_11_05_06_33_17/sqlpatch_invocation.log

  116. connecting to database...ok
  117. gathering database info...done
  118. bootstrapping registry and package to current versions...done
  119. determining current state...done

  120. current state of interim sql patches:
  121. interim patch 32876380 (ojvm release update: 19.12.0.0.210720 (32876380)):
  122.   binary registry: installed
  123.   sql registry: not installed

  124. current state of release update sql patches:
  125.   binary registry:
  126.     19.12.0.0.0 release_update 210716141810: installed
  127.   sql registry:
  128.     applied 19.3.0.0.0 release_update 190410122720 successfully on 13-sep-21 07.05.02.955102 am

  129. adding patches to installation queue and performing prereq checks...done
  130. installation queue:
  131.   no interim patches need to be rolled back
  132.   patch 32904851 (database release update : 19.12.0.0.210720 (32904851)):
  133.     apply from 19.3.0.0.0 release_update 190410122720 to 19.12.0.0.0 release_update 210716141810
  134.   the following interim patches will be applied:
  135.     32876380 (ojvm release update: 19.12.0.0.210720 (32876380))

  136. installing patches...
  137. patch installation complete. total patches installed: 2

  138. validating logfiles...done
  139. patch 32904851 apply: success
  140.   logfile: /u01/app/oracle/cfgtoollogs/sqlpatch/32904851/24343243/32904851_apply_orcl_2021nov05_06_34_24.log (no errors)
  141. patch 32876380 apply: success
  142.   logfile: /u01/app/oracle/cfgtoollogs/sqlpatch/32876380/24269510/32876380_apply_orcl_2021nov05_06_33_45.log (no errors)
  143. sql patching tool complete on fri nov 5 06:40:49 2021
再次重启实例,不再提示ora-20001错误。
kup-04020 这个报错说明是外部表相关的问题,类似的有ora-  tns- crs- ,现在多见ins- asm-opatch- 等开头的报错。
阅读(1411) | 评论(0) | 转发(0) |
0

上一篇:

下一篇:

给主人留下些什么吧!~~
")); function link(t){ var href= $(t).attr('href'); href ="?url=" encodeuricomponent(location.href); $(t).attr('href',href); //setcookie("returnouturl", location.href, 60, "/"); }
网站地图