运维联盟俱乐部

 找回密码
 立即注册
查看: 2557|回复: 0

[补丁升级] 单机19.7应用19.8psu

[复制链接]
  • TA的每日心情
    开心
    2023-8-9 11:05
  • 发表于 2020-7-21 16:13:58 | 显示全部楼层 |阅读模式
    1.查看19.8-200714
    1. [oracle@vm1 media]$ ls
    2. 31305339  p31305339_190000_Linux-x86-64.zip  PatchSearch.xml
    3. [oracle@vm1 media]$ cd 31305339/
    4. [oracle@vm1 31305339]$ ls
    5. 31281355  31304218  31305087  31335188  automation  bundle.xml  README.html  README.txt
    6. [oracle@vm1 31305339]$ cd 31281355/
    7. [oracle@vm1 31281355]$ ls
    8. custom  etc  files  README.html  README.txt
    复制代码

    2.查看当前变量


    1. [oracle@vm1 31281355]$ env | grep ORA
    2. ORACLE_SID=ora19
    3. ORACLE_BASE=/app/oracle/db
    4. ORACLE_HOME=/app/oracle/db/19.3.0/home1
    复制代码

    3.进行升级


    1. [oracle@vm1 31281355]$ $ORACLE_HOME/OPatch/opatch apply
    2. Oracle Interim Patch Installer version 12.2.0.1.21
    3. Copyright (c) 2020, Oracle Corporation.  All rights reserved.


    4. Oracle Home       : /app/oracle/db/19.3.0/home1
    5. Central Inventory : /app/oracle/oraInventory
    6.    from           : /app/oracle/db/19.3.0/home1/oraInst.loc
    7. OPatch version    : 12.2.0.1.21
    8. OUI version       : 12.2.0.7.0
    9. Log file location : /app/oracle/db/19.3.0/home1/cfgtoollogs/opatch/opatch2020-07-21_15-55-38PM_1.log

    10. Verifying environment and performing prerequisite checks...
    11. OPatch continues with these patches:   31281355  

    12. Do you want to proceed? [y|n]
    13. y
    14. User Responded with: Y
    15. All checks passed.

    16. Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
    17. (Oracle Home = '/app/oracle/db/19.3.0/home1')


    18. Is the local system ready for patching? [y|n]
    19. y
    20. User Responded with: Y
    21. Backing up files...
    22. Applying interim patch '31281355' to OH '/app/oracle/db/19.3.0/home1'
    23. ApplySession: Optional component(s) [ oracle.network.gsm, 19.0.0.0.0 ] , [ oracle.rdbms.ic, 19.0.0.0.0 ] , [ oracle.rdbms.tg4db2, 19.0.0.0.0 ] , [ oracle.tfa, 19.0.0.0.0 ] , [ oracle.oraolap.mgmt, 19.0.0.0.0 ] , [ oracle.xdk.parser.java.jaxb2, 19.0.0.0.0 ] , [ oracle.options.olap.awm, 19.0.0.0.0 ] , [ oracle.net.cman, 19.0.0.0.0 ] , [ oracle.assistants.asm, 19.0.0.0.0 ] , [ oracle.network.cman, 19.0.0.0.0 ] , [ oracle.sqlj, 19.0.0.0.0 ] , [ oracle.assistants.usm, 19.0.0.0.0 ] , [ oracle.options.olap, 19.0.0.0.0 ] , [ oracle.jdk, 1.8.0.191.0 ]  not present in the Oracle Home or a higher version is found.

    24. Patching component oracle.rdbms, 19.0.0.0.0...

    25. Patching component oracle.rdbms.util, 19.0.0.0.0...

    26. Patching component oracle.rdbms.rsf, 19.0.0.0.0...

    27. Patching component oracle.assistants.acf, 19.0.0.0.0...

    28. Patching component oracle.assistants.deconfig, 19.0.0.0.0...

    29. Patching component oracle.assistants.server, 19.0.0.0.0...

    30. Patching component oracle.buildtools.rsf, 19.0.0.0.0...

    31. Patching component oracle.ctx, 19.0.0.0.0...

    32. Patching component oracle.dbjava.ic, 19.0.0.0.0...

    33. Patching component oracle.ldap.rsf, 19.0.0.0.0...

    34. Patching component oracle.network.rsf, 19.0.0.0.0...

    35. Patching component oracle.rdbms.dbscripts, 19.0.0.0.0...

    36. Patching component oracle.rdbms.deconfig, 19.0.0.0.0...

    37. Patching component oracle.sdo, 19.0.0.0.0...

    38. Patching component oracle.sdo.locator.jrf, 19.0.0.0.0...

    39. Patching component oracle.sqlplus, 19.0.0.0.0...

    40. Patching component oracle.xdk, 19.0.0.0.0...

    41. Patching component oracle.rdbms.crs, 19.0.0.0.0...

    42. Patching component oracle.install.deinstalltool, 19.0.0.0.0...

    43. Patching component oracle.dbjava.ucp, 19.0.0.0.0...

    44. Patching component oracle.oraolap.dbscripts, 19.0.0.0.0...

    45. Patching component oracle.rdbms.lbac, 19.0.0.0.0...

    46. Patching component oracle.dbdev, 19.0.0.0.0...

    47. Patching component oracle.marvel, 19.0.0.0.0...

    48. Patching component oracle.network.listener, 19.0.0.0.0...

    49. Patching component oracle.precomp.rsf, 19.0.0.0.0...

    50. Patching component oracle.javavm.client, 19.0.0.0.0...

    51. Patching component oracle.precomp.common.core, 19.0.0.0.0...

    52. Patching component oracle.ldap.rsf.ic, 19.0.0.0.0...

    53. Patching component oracle.network.client, 19.0.0.0.0...

    54. Patching component oracle.ctx.atg, 19.0.0.0.0...

    55. Patching component oracle.ctx.rsf, 19.0.0.0.0...

    56. Patching component oracle.rdbms.drdaas, 19.0.0.0.0...

    57. Patching component oracle.duma, 19.0.0.0.0...

    58. Patching component oracle.javavm.server, 19.0.0.0.0...

    59. Patching component oracle.odbc, 19.0.0.0.0...

    60. Patching component oracle.rdbms.oci, 19.0.0.0.0...

    61. Patching component oracle.rdbms.rman, 19.0.0.0.0...

    62. Patching component oracle.rdbms.dv, 19.0.0.0.0...

    63. Patching component oracle.bali.ice, 11.1.1.7.0...

    64. Patching component oracle.ovm, 19.0.0.0.0...

    65. Patching component oracle.dbjava.jdbc, 19.0.0.0.0...

    66. Patching component oracle.oracore.rsf, 19.0.0.0.0...

    67. Patching component oracle.rdbms.scheduler, 19.0.0.0.0...

    68. Patching component oracle.rdbms.install.common, 19.0.0.0.0...

    69. Patching component oracle.ldap.owm, 19.0.0.0.0...

    70. Patching component oracle.ldap.security.osdt, 19.0.0.0.0...

    71. Patching component oracle.ons, 19.0.0.0.0...

    72. Patching component oracle.rdbms.install.plugins, 19.0.0.0.0...

    73. Patching component oracle.sdo.locator, 19.0.0.0.0...

    74. Patching component oracle.nlsrtl.rsf, 19.0.0.0.0...

    75. Patching component oracle.xdk.rsf, 19.0.0.0.0...

    76. Patching component oracle.sqlplus.ic, 19.0.0.0.0...

    77. Patching component oracle.oraolap, 19.0.0.0.0...

    78. Patching component oracle.xdk.parser.java, 19.0.0.0.0...

    79. Patching component oracle.rdbms.rsf.ic, 19.0.0.0.0...

    80. Patching component oracle.precomp.common, 19.0.0.0.0...

    81. Patching component oracle.precomp.lang, 19.0.0.0.0...

    82. Patching component oracle.jdk, 1.8.0.201.0...
    83. Patch 31281355 successfully applied.
    84. Sub-set patch [30869156] has become inactive due to the application of a super-set patch [31281355].
    85. Please refer to Doc ID 2161861.1 for any possible further required actions.
    86. Log file location: /app/oracle/db/19.3.0/home1/cfgtoollogs/opatch/opatch2020-07-21_15-55-38PM_1.log

    87. OPatch succeeded.
    复制代码

    4.升级数据库

    1. [oracle@vm1 31281355]$ sqlplus /nolog

    2. SQL*Plus: Release 19.0.0.0.0 - Production on Tue Jul 21 16:01:46 2020
    3. Version 19.8.0.0.0

    4. Copyright (c) 1982, 2020, Oracle.  All rights reserved.

    5. SQL> conn / as sysdba
    6. Connected to an idle instance.
    7. SQL> startup
    8. ORACLE instance started.

    9. Total System Global Area 4294963272 bytes
    10. Fixed Size                  8904776 bytes
    11. Variable Size             620756992 bytes
    12. Database Buffers         3657433088 bytes
    13. Redo Buffers                7868416 bytes
    14. Database mounted.
    15. Database opened.
    16. SQL> alter pluggable database all open;
    17. alter pluggable database all open
    18. *
    19. ERROR at line 1:
    20. ORA-65090: operation only allowed in a container database


    21. SQL> exit
    22. Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
    23. Version 19.8.0.0.0
    24. c[oracle@vm1 31281355]$ cd $ORACLE_HOME/OPatch
    25. [oracle@vm1 OPatch]$ ./datapatch -verbose
    26. SQL Patching tool version 19.8.0.0.0 Production on Tue Jul 21 16:02:54 2020
    27. Copyright (c) 2012, 2020, Oracle.  All rights reserved.

    28. Log file for this invocation: /app/oracle/db/cfgtoollogs/sqlpatch/sqlpatch_5091_2020_07_21_16_02_54/sqlpatch_invocation.log

    29. Connecting to database...OK
    30. Gathering database info...done
    31. Bootstrapping registry and package to current versions...done
    32. Determining current state...done

    33. Current state of interim SQL patches:
    34.   No interim patches found

    35. Current state of release update SQL patches:
    36.   Binary registry:
    37.     19.8.0.0.0 Release_Update 200703031501: Installed
    38.   SQL registry:
    39.     Applied 19.7.0.0.0 Release_Update 200404035018 successfully on 09-JUL-20 11.32.19.170754 AM

    40. Adding patches to installation queue and performing prereq checks...done
    41. Installation queue:
    42.   No interim patches need to be rolled back
    43.   Patch 31281355 (Database Release Update : 19.8.0.0.200714 (31281355)):
    44.     Apply from 19.7.0.0.0 Release_Update 200404035018 to 19.8.0.0.0 Release_Update 200703031501
    45.   No interim patches need to be applied

    46. Installing patches...
    47. Patch installation complete.  Total patches installed: 1

    48. Validating logfiles...done
    49. Patch 31281355 apply: SUCCESS
    50.   logfile: /app/oracle/db/cfgtoollogs/sqlpatch/31281355/23688465/31281355_apply_ORA19_2020Jul21_16_03_49.log (no errors)
    51. SQL Patching tool complete on Tue Jul 21 16:06:52 2020
    复制代码
    5.检查升级信息
    1. [oracle@vm1 OPatch]$ sqlplus / as sysdba

    2. SQL*Plus: Release 19.0.0.0.0 - Production on Tue Jul 21 16:07:33 2020
    3. Version 19.8.0.0.0

    4. Copyright (c) 1982, 2020, Oracle.  All rights reserved.


    5. Connected to:
    6. Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
    7. Version 19.8.0.0.0

    8. SQL> col action for a30
    9. SQL> col comp_name for a60
    10. SQL> col time for a30
    11. SQL> col comments for a30
    12. SQL> set linesize 180
    13. SQL>
    14. SQL> column action_time   format a19 heading 'Action Time'   
    15. SQL> column action        format a10  heading 'Action'        
    16. SQL> column namespace     format a10  heading 'Namespace'     
    17. SQL> column version       format a16 heading 'Version'      
    18. SQL> column id            format 999 heading 'ID'            
    19. SQL> column comments      format a25 heading 'Comments'      
    20. SQL> column bundle_series format a13 heading 'Bundle Series'
    21. SQL>
    22. SQL> select action, to_char(action_time, 'yyyy-mm-dd hh24:mi:ss') time, comments
    23.   2    from dba_registry_history;

    24. Action     TIME                           Comments
    25. ---------- ------------------------------ -------------------------
    26. BOOTSTRAP                                 RDBMS_19.8.0.0.0DBRU_LINU
    27.                                           X.X64_200702

    28. RU_APPLY   2020-07-09 11:30:42            Patch applied from 19.3.0
    29.                                           .0.0 to 19.7.0.0.0: Relea
    30.                                           se_Update - 200404035018

    31. RU_APPLY   2020-07-21 16:06:21            Patch applied from 19.7.0
    32.                                           .0.0 to 19.8.0.0.0: Relea
    33.                                           se_Update - 200703031501


    34. SQL>
    复制代码




    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    运维联盟俱乐部 ( 冀ICP备19036648号 )

    GMT+8, 2024-5-17 13:29 , Processed in 0.049411 second(s), 21 queries , Gzip On.

    Powered by Discuz! X3.4

    © 2001-2023 Discuz! Team.

    快速回复 返回顶部 返回列表