Patching using Datapatch from 12c
From 12c on wards we don’t need to run Patching post installation scripts postinstall.sql & @catbundle.sql psu apply and validate log files manually ..
All we need to do is just run datapatch after applying patch.
****************************** ***********************
In 11G After applying patch we need to run like following order ..
postinstall.sql => for OJVM in upgrade mode
@catbundle.sql psu apply => for PSU in normal startup mode
****************************** ***********************
But from 12c datapatch will take care of post scripts work.
./datapatch –verbose
Please see log for datapatch.
[oracle@s24-oratl15 OPatch]$ ./datapatch -verbose
SQL Patching tool version 12.1.0.2.0 on Tue May 3 01:50:33 2016
Copyright (c) 2015, Oracle. All rights reserved.
Log file for this invocation: /u01/app/oracle/base/ cfgtoollogs/sqlpatch/sqlpatch_ 25942_2016_05_03_01_50_33/ sqlpatch_invocation.log
Connecting to database...OK
Bootstrapping registry and package to current versions...done
Determining current state...done
Current state of SQL patches:
Patch 22674709 (Database PSU 12.1.0.2.160419, Oracle JavaVM Component (Apr2016)):
Installed in the binary registry only
Bundle series PSU:
ID 160419 in the binary registry and not installed in the SQL registry
Adding patches to installation queue and performing prereq checks...
Installation queue:
Nothing to roll back
The following patches will be applied:
22674709 (Database PSU 12.1.0.2.160419, Oracle JavaVM Component (Apr2016))
22291127 (Database Patch Set Update : 12.1.0.2.160419 (22291127))
Installing patches...
Patch installation complete. Total patches installed: 2
Validating logfiles...
Patch 22674709 apply: SUCCESS
logfile: /u01/app/oracle/base/ cfgtoollogs/sqlpatch/22674709/ 20057886/22674709_apply_ S24EETST_2016May03_01_51_09. log(no errors)
Patch 22291127 apply: SUCCESS
logfile: /u01/app/oracle/base/ cfgtoollogs/sqlpatch/22291127/ 19694308/22291127_apply_ S24EETST_2016May03_01_52_14. log (no errors)
SQL Patching tool complete on Tue May 3 01:52:33 2016
****************************** ****************************** **
How to apply patch from 12c:
Stop All services and run following to apply April 2016 PSU patch .
[oracle@s24-oratl15 22291127]$ /u01/app/oracle/base/product/ 12.1.0/dbhome_1EE/OPatch/opatc h apply
[oracle@s24-oratl15 22674709]$ /u01/app/oracle/product/12.1. 0.2/db_home_1/OPatch/opatch apply
Start services and run datapatch from OPatch directory.
./datapatch -verbose
Refer to know more about datapatch
Datapatch: Database 12c Post Patch SQL Automation (Doc ID 1585822.1)
Comments
Post a Comment