• Oracle RU 19.21及 datapatch -sanity_checks


    参考文档:

    Oracle® Database Patch 35643107 - Database Release Update 19.21.0.0.231017

    Datapatch User Guide (Doc ID 2680521.1)

    datapatch fails with ORA-04061/ORA-4065/ORA-04045/ORA-04067 due to Golden Gate triggers. (Doc ID 2301658.1) 

     

    在19.21的RU的readme中,3.3.2 Load Modified SQL Files into the Database中多了一个可选的步骤。% ./datapatch -sanity_checks (optional)。

    read me中是这么说的

    Recommended: The datapatch -sanity_checks optional step runs a series of environment and database checks to validate if conditions are optimal for patching. Results are shown on screen with severity and potential actions to take. For more information, refer to the My Oracle Support document 2680521.1 Datapatch User Guide for additional information and actions. Oracle highly recommends that you perform this step.

    在安装过程中,测试了一下这个命令,过程如下:

    1. [oracle@19ctest OPatch]$ ./datapatch -sanity_checks
    2. SQL Patching sanity checks version 19.21.0.0.0 on Sat 28 Oct 2023 02:06:48 PM CST
    3. Copyright (c) 2021, 2023, Oracle. All rights reserved.
    4. Log file for this invocation: /u01/app/oracle/cfgtoollogs/sqlpatch/sanity_checks_20231028_140648_18861/sanity_checks_20231028_140648_18861.log
    5. Running checks
    6. Use of uninitialized value $pdb in concatenation (.) or string at /u01/app/oracle/product/19.0.0/db_1/sqlpatch/sqlpatch_sanity_checks.pm line 932.
    7. Use of uninitialized value $pdb in concatenation (.) or string at /u01/app/oracle/product/19.0.0/db_1/sqlpatch/sqlpatch_sanity_checks.pm line 932.
    8. Use of uninitialized value $pdb in concatenation (.) or string at /u01/app/oracle/product/19.0.0/db_1/sqlpatch/sqlpatch_sanity_checks.pm line 932.
    9. Use of uninitialized value $pdb in concatenation (.) or string at /u01/app/oracle/product/19.0.0/db_1/sqlpatch/sqlpatch_sanity_checks.pm line 932.
    10. Use of uninitialized value $pdb in concatenation (.) or string at /u01/app/oracle/product/19.0.0/db_1/sqlpatch/sqlpatch_sanity_checks.pm line 932.
    11. Use of uninitialized value $pdb in concatenation (.) or string at /u01/app/oracle/product/19.0.0/db_1/sqlpatch/sqlpatch_sanity_checks.pm line 932.
    12. Use of uninitialized value $pdb in concatenation (.) or string at /u01/app/oracle/product/19.0.0/db_1/sqlpatch/sqlpatch_sanity_checks.pm line 932.
    13. Use of uninitialized value $pdb in concatenation (.) or string at /u01/app/oracle/product/19.0.0/db_1/sqlpatch/sqlpatch_sanity_checks.pm line 932.
    14. Use of uninitialized value $pdb in concatenation (.) or string at /u01/app/oracle/product/19.0.0/db_1/sqlpatch/sqlpatch_sanity_checks.pm line 932.
    15. Use of uninitialized value $pdb in concatenation (.) or string at /u01/app/oracle/product/19.0.0/db_1/sqlpatch/sqlpatch_sanity_checks.pm line 932.
    16. Use of uninitialized value $pdb in concatenation (.) or string at /u01/app/oracle/product/19.0.0/db_1/sqlpatch/sqlpatch_sanity_checks.pm line 932.
    17. Use of uninitialized value $pdb in concatenation (.) or string at /u01/app/oracle/product/19.0.0/db_1/sqlpatch/sqlpatch_sanity_checks.pm line 932.
    18. Use of uninitialized value $pdb in concatenation (.) or string at /u01/app/oracle/product/19.0.0/db_1/sqlpatch/sqlpatch_sanity_checks.pm line 932.
    19. Use of uninitialized value $pdb in concatenation (.) or string at /u01/app/oracle/product/19.0.0/db_1/sqlpatch/sqlpatch_sanity_checks.pm line 942.
    20. Use of uninitialized value $pdb in hash element at /u01/app/oracle/product/19.0.0/db_1/sqlpatch/sqlpatch_sanity_checks.pm line 946.
    21. Use of uninitialized value $pdb in concatenation (.) or string at /u01/app/oracle/product/19.0.0/db_1/sqlpatch/sqlpatch_sanity_checks.pm line 932.
    22. Use of uninitialized value $pdb in concatenation (.) or string at /u01/app/oracle/product/19.0.0/db_1/sqlpatch/sqlpatch_sanity_checks.pm line 932.
    23. Use of uninitialized value $pdb in concatenation (.) or string at /u01/app/oracle/product/19.0.0/db_1/sqlpatch/sqlpatch_sanity_checks.pm line 932.
    24. Use of uninitialized value $pdb in concatenation (.) or string at /u01/app/oracle/product/19.0.0/db_1/sqlpatch/sqlpatch_sanity_checks.pm line 932.
    25. JSON report generated in /u01/app/oracle/cfgtoollogs/sqlpatch/sanity_checks_20231028_140648_18861/sqlpatch_sanity_checks_summary.json file
    26. Checks completed. Printing report:
    27. Check: Database component status - OK
    28. Check: PDB Violations - OK
    29. Check: Invalid System Objects - OK
    30. Check: Tablespace Status - OK
    31. Check: Backup jobs - OK
    32. Check: Temp file exists - OK
    33. Check: Temp file online - OK
    34. Check: Data Pump running - OK
    35. Check: Container status - OK
    36. Check: Oracle Database Keystore - OK
    37. Check: Dictionary statistics gathering - OK
    38. Check: Scheduled Jobs - OK
    39. Check: GoldenGate triggers - WARNING
    40. Datapatch execution may fail with ORA- errors when Oracle GoldenGate triggers are enabled in the database.
    41. At least one GoldenGate trigger is enabled in the database.
    42. Refer to MOS Note 2301658.1 on how to disable listed trigger(s) before patching.
    43. :
    44. | STATUS | TRIGGER_NAME |
    45. |---------+------------------------|
    46. | ENABLED | GGS_DDL_TRIGGER_BEFORE |
    47. |---------+------------------------|
    48. Check: Logminer DDL triggers - OK
    49. Check: Check sys public grants - OK
    50. Check: Statistics gathering running - OK
    51. Check: Optim dictionary upgrade parameter - OK
    52. Check: Symlinks on oracle home path - OK
    53. Check: Central Inventory - OK
    54. Check: Queryable Inventory dba directories - OK
    55. Check: Queryable Inventory locks - OK
    56. Check: Queryable Inventory package - OK
    57. Check: Queryable Inventory external table - OK
    58. Check: Imperva processes - OK
    59. Check: Guardium processes - OK
    60. Check: Locale - OK
    61. Refer to MOS Note 2680521.1 and debug log
    62. /u01/app/oracle/cfgtoollogs/sqlpatch/sanity_checks_20231028_140648_18861/sanity_checks_debug_20231028_140648_18861.log
    63. SQL Patching sanity checks completed on Sat 28 Oct 2023 02:08:41 PM CST
    64. [oracle@19ctest OPatch]$

    END

  • 相关阅读:
    java 企业工程管理系统软件源码+Spring Cloud + Spring Boot +二次开发+ MybatisPlus + Redis
    还在用递归?一文带你了解mysql数据库层面的树状查询
    MySQL系列2:InnoDB存储引擎
    Html5+CSS3:第三讲:弹性盒子flex
    IIC协议及其工程【FPGA】
    matlab abel变换图片处理
    算法设计(一) : 搜索算法实现八皇后问题
    隆云通PM2.5+PM10+TSP传感器
    WeTab--颜值与实力并存的浏览器插件
    C# 设计模式之代理模式
  • 原文地址:https://blog.csdn.net/xxzhaobb/article/details/134090963