暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

Oracle19.3单机升级到Oracle19.20

59


参考:

p35320081_190000_Linux-x86-64/35320081/README.html


一、下载opatch工具

    [oracle@dbserver ~]$ ls -lrt
    总用量 1860988
    drwxr-xr-x 5 oracle oinstall 105 7月 16 2023 35320081
    -rw-rw-r-- 1 oracle oinstall 1749054 7月 18 2023 PatchSearch.xml
    drwxr-x--- 15 oracle oinstall 4096 6月 28 15:32 OPatch
    -rw-r--r-- 1 oracle oinstall 1769419773 8月 23 15:42 p35320081_190000_Linux-x86-64.zip
    -rw-r--r-- 1 oracle oinstall 134471443 8月 23 15:43 p6880880_190000_Linux-x86-64.zip
    drwxr-xr-x 3 oracle oinstall 57 8月 23 15:51 1920
    [oracle@dbserver ~]$
    [oracle@dbserver ~]$
    [oracle@dbserver ~]$ cd OPatch/
    [oracle@dbserver OPatch]$ ls -lrt
    总用量 156
    drwxr-x--- 6 oracle oinstall 242 6月 22 00:02 jre
    -rw-r----- 1 oracle oinstall 27 6月 28 15:27 version.txt
    drwxr-x--- 2 oracle oinstall 183 6月 28 15:27 scripts
    -rw-r----- 1 oracle oinstall 2977 6月 28 15:27 README.txt
    drwxr-xr-x 2 oracle oinstall 112 6月 28 15:27 private
    -rw-r----- 1 oracle oinstall 3177 6月 28 15:27 operr_readme.txt
    -rwxr-x--- 1 oracle oinstall 4218 6月 28 15:27 operr.bat
    -rwxr-x--- 1 oracle oinstall 3159 6月 28 15:27 operr
    -rw-r----- 1 oracle oinstall 2551 6月 28 15:27 opatch.pl
    -rwxr-x--- 1 oracle oinstall 4290 6月 28 15:27 opatch_env.sh
    -rwxr-x--- 1 oracle oinstall 16633 6月 28 15:27 opatch.bat
    -rwxr-x--- 1 oracle oinstall 50933 6月 28 15:27 opatch
    drwxr-x--- 5 oracle oinstall 78 6月 28 15:27 ocm
    -rwxr-x--- 1 oracle oinstall 23550 6月 28 15:27 emdpatch.pl
    -rwxr-x--- 1 oracle oinstall 627 6月 28 15:27 datapatch.bat
    -rwxr-x--- 1 oracle oinstall 589 6月 28 15:27 datapatch
    drwxr-x--- 2 oracle oinstall 39 6月 28 15:27 config
    drwxr-x--- 4 oracle oinstall 78 6月 28 15:27 opatchprereqs
    drwxr-x--- 2 oracle oinstall 4096 6月 28 15:27 jlib
    drwxr-x--- 3 oracle oinstall 32 6月 28 15:32 plugins
    drwxr-x--- 3 oracle oinstall 29 6月 28 15:32 oracle_common
    drwxr-x--- 2 oracle oinstall 27 6月 28 15:32 oplan
    -rwxr-x--- 1 oracle oinstall 393 6月 28 15:32 opatchauto.cmd
    -rwxr-x--- 1 oracle oinstall 1763 6月 28 15:32 opatchauto
    drwxr-x--- 7 oracle oinstall 4096 6月 28 15:32 modules
    drwxr-x--- 2 oracle oinstall 110 6月 28 15:32 docs
    drwxr-x--- 7 oracle oinstall 107 6月 28 15:32 auto
    [oracle@dbserver OPatch]$ pwd
    /home/oracle/OPatch
    [oracle@dbserver OPatch]$

    二、检查冲突



      unzip p35320081_<version>_<platform>.zip


      cd 35320081


      opatch prereq CheckConflictAgainstOHWithDetail -ph ./


      三、关闭数据库,关闭监听器


      四、打程序补丁--10分钟

        [oracle@dbserver 35320081]$ home/oracle/OPatch/opatch apply
        Oracle 临时补丁程序安装程序版本 12.2.0.1.43
        版权所有 (c) 2024, Oracle Corporation。保留所有权利。




        Oracle 主目录 :/home/app/oracle/product/19.3.0/dbhome_1
        主产品清单:/home/ora11204/app/oracle/oraInventory
        来自 :/home/app/oracle/product/19.3.0/dbhome_1/oraInst.loc
        OPatch 版本 :12.2.0.1.43
        OUI 版本 :12.2.0.7.0
        日志文件位置:/home/app/oracle/product/19.3.0/dbhome_1/cfgtoollogs/opatch/opatch2024-08-23_15-53-23下午_1.log


        Verifying environment and performing prerequisite checks...
        OPatch continues with these patches: 35320081


        是否继续? [y|n]
        y
        User Responded with: Y
        All checks passed.


        请关闭本地系统上在此 ORACLE_HOME 之外运行的 Oracle 实例。
        (Oracle 主目录 = '/home/app/oracle/product/19.3.0/dbhome_1')




        本地系统是否已准备打补丁? [y|n]
        y
        User Responded with: Y
        Backing up files...
        正在将临时补丁程序 '35320081' 应用于 OH '/home/app/oracle/product/19.3.0/dbhome_1'
        ApplySession: Oracle 主目录中不存在可选组件 [ 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.rdbms.tg4msql, 19.0.0.0.0 ] , [ oracle.options.olap, 19.0.0.0.0 ] , [ oracle.ons.cclient, 19.0.0.0.0 ] , [ oracle.network.cman, 19.0.0.0.0 ] , [ oracle.rdbms.tg4ifmx, 19.0.0.0.0 ] , [ oracle.rdbms.tg4sybs, 19.0.0.0.0 ] , [ oracle.net.cman, 19.0.0.0.0 ] , [ oracle.rdbms.tg4tera, 19.0.0.0.0 ] , [ oracle.sdo.companion, 19.0.0.0.0 ] , [ oracle.oid.client, 19.0.0.0.0 ] , [ oracle.xdk.companion, 19.0.0.0.0 ] , [ oracle.ons.eons.bwcompat, 19.0.0.0.0 ] , [ oracle.options.olap.api, 19.0.0.0.0 ] , [ oracle.jdk, 1.8.0.191.0 ] , 或找到更高版本。


        正在为组件 oracle.rdbms, 19.0.0.0.0 打补丁...


        正在为组件 oracle.rdbms.util, 19.0.0.0.0 打补丁...


        正在为组件 oracle.rdbms.rsf, 19.0.0.0.0 打补丁...


        正在为组件 oracle.assistants.acf, 19.0.0.0.0 打补丁...


        正在为组件 oracle.assistants.deconfig, 19.0.0.0.0 打补丁...


        正在为组件 oracle.assistants.server, 19.0.0.0.0 打补丁...


        正在为组件 oracle.blaslapack, 19.0.0.0.0 打补丁...


        正在为组件 oracle.buildtools.rsf, 19.0.0.0.0 打补丁...


        正在为组件 oracle.ctx, 19.0.0.0.0 打补丁...


        正在为组件 oracle.dbdev, 19.0.0.0.0 打补丁...


        正在为组件 oracle.dbjava.ic, 19.0.0.0.0 打补丁...


        正在为组件 oracle.dbjava.jdbc, 19.0.0.0.0 打补丁...


        正在为组件 oracle.dbjava.ucp, 19.0.0.0.0 打补丁...


        正在为组件 oracle.duma, 19.0.0.0.0 打补丁...


        正在为组件 oracle.javavm.client, 19.0.0.0.0 打补丁...


        正在为组件 oracle.ldap.owm, 19.0.0.0.0 打补丁...


        正在为组件 oracle.ldap.rsf, 19.0.0.0.0 打补丁...


        正在为组件 oracle.ldap.security.osdt, 19.0.0.0.0 打补丁...


        正在为组件 oracle.marvel, 19.0.0.0.0 打补丁...


        正在为组件 oracle.network.rsf, 19.0.0.0.0 打补丁...


        正在为组件 oracle.odbc.ic, 19.0.0.0.0 打补丁...


        正在为组件 oracle.ons, 19.0.0.0.0 打补丁...


        正在为组件 oracle.ons.ic, 19.0.0.0.0 打补丁...


        正在为组件 oracle.oracore.rsf, 19.0.0.0.0 打补丁...


        正在为组件 oracle.perlint, 5.28.1.0.0 打补丁...


        正在为组件 oracle.precomp.common.core, 19.0.0.0.0 打补丁...


        正在为组件 oracle.precomp.rsf, 19.0.0.0.0 打补丁...


        正在为组件 oracle.rdbms.crs, 19.0.0.0.0 打补丁...


        正在为组件 oracle.rdbms.dbscripts, 19.0.0.0.0 打补丁...


        正在为组件 oracle.rdbms.deconfig, 19.0.0.0.0 打补丁...


        正在为组件 oracle.rdbms.oci, 19.0.0.0.0 打补丁...


        正在为组件 oracle.rdbms.rsf.ic, 19.0.0.0.0 打补丁...


        正在为组件 oracle.rdbms.scheduler, 19.0.0.0.0 打补丁...


        正在为组件 oracle.rhp.db, 19.0.0.0.0 打补丁...


        正在为组件 oracle.sdo, 19.0.0.0.0 打补丁...


        正在为组件 oracle.sdo.locator.jrf, 19.0.0.0.0 打补丁...


        正在为组件 oracle.sqlplus, 19.0.0.0.0 打补丁...


        正在为组件 oracle.sqlplus.ic, 19.0.0.0.0 打补丁...


        正在为组件 oracle.wwg.plsql, 19.0.0.0.0 打补丁...


        正在为组件 oracle.xdk.parser.java, 19.0.0.0.0 打补丁...


        正在为组件 oracle.ldap.ssl, 19.0.0.0.0 打补丁...


        正在为组件 oracle.ctx.rsf, 19.0.0.0.0 打补丁...


        正在为组件 oracle.rdbms.dv, 19.0.0.0.0 打补丁...


        正在为组件 oracle.rdbms.drdaas, 19.0.0.0.0 打补丁...


        正在为组件 oracle.network.client, 19.0.0.0.0 打补丁...


        正在为组件 oracle.rdbms.hsodbc, 19.0.0.0.0 打补丁...


        正在为组件 oracle.network.listener, 19.0.0.0.0 打补丁...


        正在为组件 oracle.ldap.rsf.ic, 19.0.0.0.0 打补丁...


        正在为组件 oracle.dbtoolslistener, 19.0.0.0.0 打补丁...


        正在为组件 oracle.nlsrtl.rsf, 19.0.0.0.0 打补丁...


        正在为组件 oracle.xdk.xquery, 19.0.0.0.0 打补丁...


        正在为组件 oracle.rdbms.install.common, 19.0.0.0.0 打补丁...


        正在为组件 oracle.ovm, 19.0.0.0.0 打补丁...


        正在为组件 oracle.oraolap, 19.0.0.0.0 打补丁...


        正在为组件 oracle.rdbms.rman, 19.0.0.0.0 打补丁...


        正在为组件 oracle.install.deinstalltool, 19.0.0.0.0 打补丁...


        正在为组件 oracle.rdbms.install.plugins, 19.0.0.0.0 打补丁...


        正在为组件 oracle.rdbms.lbac, 19.0.0.0.0 打补丁...


        正在为组件 oracle.sdo.locator, 19.0.0.0.0 打补丁...


        正在为组件 oracle.oraolap.dbscripts, 19.0.0.0.0 打补丁...


        正在为组件 oracle.oraolap.api, 19.0.0.0.0 打补丁...


        正在为组件 oracle.ctx.atg, 19.0.0.0.0 打补丁...


        正在为组件 oracle.javavm.server, 19.0.0.0.0 打补丁...


        正在为组件 oracle.rdbms.hs_common, 19.0.0.0.0 打补丁...


        正在为组件 oracle.xdk, 19.0.0.0.0 打补丁...


        正在为组件 oracle.xdk.rsf, 19.0.0.0.0 打补丁...


        正在为组件 oracle.ldap.client, 19.0.0.0.0 打补丁...


        正在为组件 oracle.mgw.common, 19.0.0.0.0 打补丁...


        正在为组件 oracle.odbc, 19.0.0.0.0 打补丁...


        正在为组件 oracle.precomp.lang, 19.0.0.0.0 打补丁...


        正在为组件 oracle.precomp.common, 19.0.0.0.0 打补丁...


        正在为组件 oracle.jdk, 1.8.0.201.0 打补丁...
        Patch 35320081 successfully applied.
        Sub-set patch [29517242] has become inactive due to the application of a super-set patch [35320081].
        Please refer to Doc ID 2161861.1 for any possible further required actions.
        Log file location: home/app/oracle/product/19.3.0/dbhome_1/cfgtoollogs/opatch/opatch2024-08-23_15-53-23下午_1.log


        OPatch succeeded.
        [oracle@dbserver 35320081]$ date
        20240823日 星期五 16:06:57 CST
        [oracle@dbserver 35320081]$


        [oracle@dbserver OPatch]$ ./datapatch -verbose
        SQL Patching tool version 19.20.0.0.0 Production on Fri Aug 23 16:35:27 2024
        Copyright (c) 2012, 2023, Oracle. All rights reserved.


        Log file for this invocation: home/app/oracle/cfgtoollogs/sqlpatch/sqlpatch_45942_2024_08_23_16_35_27/sqlpatch_invocation.log


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


        Current state of interim SQL patches:
        No interim patches found


        Current state of release update SQL patches:
        Binary registry:
        19.20.0.0.0 Release_Update 230715022800: Installed
        SQL registry:
        Applied 19.3.0.0.0 Release_Update 190410122720 successfully on 21-AUG-24 10.29.07.064565 PM


        Adding patches to installation queue and performing prereq checks...done
        Installation queue:
        No interim patches need to be rolled back
        Patch 35320081 (Database Release Update : 19.20.0.0.230718 (35320081)):
        Apply from 19.3.0.0.0 Release_Update 190410122720 to 19.20.0.0.0 Release_Update 230715022800
        No interim patches need to be applied


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


        Validating logfiles...done
        Patch 35320081 apply: SUCCESS
        logfile: home/app/oracle/cfgtoollogs/sqlpatch/35320081/25314491/35320081_apply_MESDB_2024Aug23_16_37_05.log (no errors)


        Automatic recompilation incomplete; run utlrp.sql to revalidate.
        SQL Patching tool complete on Fri Aug 23 16:45:01 2024
        [oracle@dbserver OPatch]$ pwd
        /home/oracle/OPatch



        五、启动数据库打datapatch 



          [oracle@dbserver OPatch]$ ./datapatch -verbose
          SQL Patching tool version 19.20.0.0.0 Production on Fri Aug 23 16:35:27 2024
          Copyright (c) 2012, 2023, Oracle. All rights reserved.


          Log file for this invocation: home/app/oracle/cfgtoollogs/sqlpatch/sqlpatch_45942_2024_08_23_16_35_27/sqlpatch_invocation.log


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


          Current state of interim SQL patches:
          No interim patches found


          Current state of release update SQL patches:
          Binary registry:
          19.20.0.0.0 Release_Update 230715022800: Installed
          SQL registry:
          Applied 19.3.0.0.0 Release_Update 190410122720 successfully on 21-AUG-24 10.29.07.064565 PM


          Adding patches to installation queue and performing prereq checks...done
          Installation queue:
          No interim patches need to be rolled back
          Patch 35320081 (Database Release Update : 19.20.0.0.230718 (35320081)):
          Apply from 19.3.0.0.0 Release_Update 190410122720 to 19.20.0.0.0 Release_Update 230715022800
          No interim patches need to be applied


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


          Validating logfiles...done
          Patch 35320081 apply: SUCCESS
          logfile: /home/app/oracle/cfgtoollogs/sqlpatch/35320081/25314491/35320081_apply_MESDB_2024Aug23_16_37_05.log (no errors)


          Automatic recompilation incomplete; run utlrp.sql to revalidate.
          SQL Patching tool complete on Fri Aug 23 16:45:01 2024
          [oracle@dbserver OPatch]$ pwd
          /home/oracle/OPatch


          六、检查dba_registry_sqlpatch视图有无问题。

          要确保status列的列值是SUCCESS

          七、启动监听器

          lsnrctl start

          文章转载自山东Oracle用户组,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

          评论