TA的每日心情 | 开心 2023-8-9 11:05 |
---|
|
1.查看19.8-200714
- [oracle@vm1 media]$ ls
- 31305339 p31305339_190000_Linux-x86-64.zip PatchSearch.xml
- [oracle@vm1 media]$ cd 31305339/
- [oracle@vm1 31305339]$ ls
- 31281355 31304218 31305087 31335188 automation bundle.xml README.html README.txt
- [oracle@vm1 31305339]$ cd 31281355/
- [oracle@vm1 31281355]$ ls
- custom etc files README.html README.txt
复制代码
2.查看当前变量
- [oracle@vm1 31281355]$ env | grep ORA
- ORACLE_SID=ora19
- ORACLE_BASE=/app/oracle/db
- ORACLE_HOME=/app/oracle/db/19.3.0/home1
复制代码
3.进行升级
- [oracle@vm1 31281355]$ $ORACLE_HOME/OPatch/opatch apply
- Oracle Interim Patch Installer version 12.2.0.1.21
- Copyright (c) 2020, Oracle Corporation. All rights reserved.
- Oracle Home : /app/oracle/db/19.3.0/home1
- Central Inventory : /app/oracle/oraInventory
- from : /app/oracle/db/19.3.0/home1/oraInst.loc
- OPatch version : 12.2.0.1.21
- OUI version : 12.2.0.7.0
- Log file location : /app/oracle/db/19.3.0/home1/cfgtoollogs/opatch/opatch2020-07-21_15-55-38PM_1.log
- Verifying environment and performing prerequisite checks...
- OPatch continues with these patches: 31281355
- Do you want to proceed? [y|n]
- y
- User Responded with: Y
- All checks passed.
- Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
- (Oracle Home = '/app/oracle/db/19.3.0/home1')
- Is the local system ready for patching? [y|n]
- y
- User Responded with: Y
- Backing up files...
- Applying interim patch '31281355' to OH '/app/oracle/db/19.3.0/home1'
- 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.
- Patching component oracle.rdbms, 19.0.0.0.0...
- Patching component oracle.rdbms.util, 19.0.0.0.0...
- Patching component oracle.rdbms.rsf, 19.0.0.0.0...
- Patching component oracle.assistants.acf, 19.0.0.0.0...
- Patching component oracle.assistants.deconfig, 19.0.0.0.0...
- Patching component oracle.assistants.server, 19.0.0.0.0...
- Patching component oracle.buildtools.rsf, 19.0.0.0.0...
- Patching component oracle.ctx, 19.0.0.0.0...
- Patching component oracle.dbjava.ic, 19.0.0.0.0...
- Patching component oracle.ldap.rsf, 19.0.0.0.0...
- Patching component oracle.network.rsf, 19.0.0.0.0...
- Patching component oracle.rdbms.dbscripts, 19.0.0.0.0...
- Patching component oracle.rdbms.deconfig, 19.0.0.0.0...
- Patching component oracle.sdo, 19.0.0.0.0...
- Patching component oracle.sdo.locator.jrf, 19.0.0.0.0...
- Patching component oracle.sqlplus, 19.0.0.0.0...
- Patching component oracle.xdk, 19.0.0.0.0...
- Patching component oracle.rdbms.crs, 19.0.0.0.0...
- Patching component oracle.install.deinstalltool, 19.0.0.0.0...
- Patching component oracle.dbjava.ucp, 19.0.0.0.0...
- Patching component oracle.oraolap.dbscripts, 19.0.0.0.0...
- Patching component oracle.rdbms.lbac, 19.0.0.0.0...
- Patching component oracle.dbdev, 19.0.0.0.0...
- Patching component oracle.marvel, 19.0.0.0.0...
- Patching component oracle.network.listener, 19.0.0.0.0...
- Patching component oracle.precomp.rsf, 19.0.0.0.0...
- Patching component oracle.javavm.client, 19.0.0.0.0...
- Patching component oracle.precomp.common.core, 19.0.0.0.0...
- Patching component oracle.ldap.rsf.ic, 19.0.0.0.0...
- Patching component oracle.network.client, 19.0.0.0.0...
- Patching component oracle.ctx.atg, 19.0.0.0.0...
- Patching component oracle.ctx.rsf, 19.0.0.0.0...
- Patching component oracle.rdbms.drdaas, 19.0.0.0.0...
- Patching component oracle.duma, 19.0.0.0.0...
- Patching component oracle.javavm.server, 19.0.0.0.0...
- Patching component oracle.odbc, 19.0.0.0.0...
- Patching component oracle.rdbms.oci, 19.0.0.0.0...
- Patching component oracle.rdbms.rman, 19.0.0.0.0...
- Patching component oracle.rdbms.dv, 19.0.0.0.0...
- Patching component oracle.bali.ice, 11.1.1.7.0...
- Patching component oracle.ovm, 19.0.0.0.0...
- Patching component oracle.dbjava.jdbc, 19.0.0.0.0...
- Patching component oracle.oracore.rsf, 19.0.0.0.0...
- Patching component oracle.rdbms.scheduler, 19.0.0.0.0...
- Patching component oracle.rdbms.install.common, 19.0.0.0.0...
- Patching component oracle.ldap.owm, 19.0.0.0.0...
- Patching component oracle.ldap.security.osdt, 19.0.0.0.0...
- Patching component oracle.ons, 19.0.0.0.0...
- Patching component oracle.rdbms.install.plugins, 19.0.0.0.0...
- Patching component oracle.sdo.locator, 19.0.0.0.0...
- Patching component oracle.nlsrtl.rsf, 19.0.0.0.0...
- Patching component oracle.xdk.rsf, 19.0.0.0.0...
- Patching component oracle.sqlplus.ic, 19.0.0.0.0...
- Patching component oracle.oraolap, 19.0.0.0.0...
- Patching component oracle.xdk.parser.java, 19.0.0.0.0...
- Patching component oracle.rdbms.rsf.ic, 19.0.0.0.0...
- Patching component oracle.precomp.common, 19.0.0.0.0...
- Patching component oracle.precomp.lang, 19.0.0.0.0...
- Patching component oracle.jdk, 1.8.0.201.0...
- Patch 31281355 successfully applied.
- Sub-set patch [30869156] has become inactive due to the application of a super-set patch [31281355].
- Please refer to Doc ID 2161861.1 for any possible further required actions.
- Log file location: /app/oracle/db/19.3.0/home1/cfgtoollogs/opatch/opatch2020-07-21_15-55-38PM_1.log
- OPatch succeeded.
复制代码
4.升级数据库
- [oracle@vm1 31281355]$ sqlplus /nolog
- SQL*Plus: Release 19.0.0.0.0 - Production on Tue Jul 21 16:01:46 2020
- Version 19.8.0.0.0
- Copyright (c) 1982, 2020, Oracle. All rights reserved.
- SQL> conn / as sysdba
- Connected to an idle instance.
- SQL> startup
- ORACLE instance started.
- Total System Global Area 4294963272 bytes
- Fixed Size 8904776 bytes
- Variable Size 620756992 bytes
- Database Buffers 3657433088 bytes
- Redo Buffers 7868416 bytes
- Database mounted.
- Database opened.
- SQL> alter pluggable database all open;
- alter pluggable database all open
- *
- ERROR at line 1:
- ORA-65090: operation only allowed in a container database
- SQL> exit
- Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
- Version 19.8.0.0.0
- c[oracle@vm1 31281355]$ cd $ORACLE_HOME/OPatch
- [oracle@vm1 OPatch]$ ./datapatch -verbose
- SQL Patching tool version 19.8.0.0.0 Production on Tue Jul 21 16:02:54 2020
- Copyright (c) 2012, 2020, Oracle. All rights reserved.
- Log file for this invocation: /app/oracle/db/cfgtoollogs/sqlpatch/sqlpatch_5091_2020_07_21_16_02_54/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.8.0.0.0 Release_Update 200703031501: Installed
- SQL registry:
- Applied 19.7.0.0.0 Release_Update 200404035018 successfully on 09-JUL-20 11.32.19.170754 AM
- Adding patches to installation queue and performing prereq checks...done
- Installation queue:
- No interim patches need to be rolled back
- Patch 31281355 (Database Release Update : 19.8.0.0.200714 (31281355)):
- Apply from 19.7.0.0.0 Release_Update 200404035018 to 19.8.0.0.0 Release_Update 200703031501
- No interim patches need to be applied
- Installing patches...
- Patch installation complete. Total patches installed: 1
- Validating logfiles...done
- Patch 31281355 apply: SUCCESS
- logfile: /app/oracle/db/cfgtoollogs/sqlpatch/31281355/23688465/31281355_apply_ORA19_2020Jul21_16_03_49.log (no errors)
- SQL Patching tool complete on Tue Jul 21 16:06:52 2020
复制代码 5.检查升级信息
- [oracle@vm1 OPatch]$ sqlplus / as sysdba
- SQL*Plus: Release 19.0.0.0.0 - Production on Tue Jul 21 16:07:33 2020
- Version 19.8.0.0.0
- Copyright (c) 1982, 2020, Oracle. All rights reserved.
- Connected to:
- Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
- Version 19.8.0.0.0
- SQL> col action for a30
- SQL> col comp_name for a60
- SQL> col time for a30
- SQL> col comments for a30
- SQL> set linesize 180
- SQL>
- SQL> column action_time format a19 heading 'Action Time'
- SQL> column action format a10 heading 'Action'
- SQL> column namespace format a10 heading 'Namespace'
- SQL> column version format a16 heading 'Version'
- SQL> column id format 999 heading 'ID'
- SQL> column comments format a25 heading 'Comments'
- SQL> column bundle_series format a13 heading 'Bundle Series'
- SQL>
- SQL> select action, to_char(action_time, 'yyyy-mm-dd hh24:mi:ss') time, comments
- 2 from dba_registry_history;
- Action TIME Comments
- ---------- ------------------------------ -------------------------
- BOOTSTRAP RDBMS_19.8.0.0.0DBRU_LINU
- X.X64_200702
- RU_APPLY 2020-07-09 11:30:42 Patch applied from 19.3.0
- .0.0 to 19.7.0.0.0: Relea
- se_Update - 200404035018
- RU_APPLY 2020-07-21 16:06:21 Patch applied from 19.7.0
- .0.0 to 19.8.0.0.0: Relea
- se_Update - 200703031501
- SQL>
复制代码
|
|