Database Out of Place Patching Through runInstaller #JoelKallmanDay

Step 2 - Patch My Breath Away. (DB OOP Patching)

I’ve moved my blog from https://insanedba.blogspot.com to https://dincosman.com Please update your bookmarks and follow/subscribe at the new address for all the latest updates and content. More up-to-date content of this post may be available there.

I will patch all my database servers database software from 19.16 to 19.20. As there are more than 20 servers to patch, we will use fleet patching. First, I will patch a 2-node cluster database homes by using out-of-place (OOP) patching methodology through runInstaller in silent mode.
Later, I will use patched database homes to create a gold image for fleet patching of all database homes.

Setup List:
 * Database 19.3 Base Release (LINUX.X64_193000_db_home.zip)
 * Database 19.20 RU (p35320081_190000_Linux-x86-64.zip)
 * Grid 19.20 August MRP involves DB August MRP. (p35656840_1920000DBRU_Linux-x86-64.zip)
 * OJVM 19.20 Patch (p35354406_190000_Linux-x86-64.zip)
 * DPBP 19.20 Datapump Bundle Patch (p35512813_1920000DBRU_Generic.zip)
 * Spatial 19.20 Bundle Patch (p35602358_1920000DBRU_Linux-x86-64.zip)
 * DB 555.1 Recommended One-off (p35372179_1920000DBRU_Linux-x86-64.zip)
 * DB 555.1 Recommended One-off (p30787757_1920000DBRU_Linux-x86-64.zip)
 * Opatch Latest Version (p6880880_122010_Linux-x86-64.zip)

Database Out of Place Patching


Preparation Phase:


We replaced scp binary with the below commands not to hit "[FATAL] [INS-06006] Passwordless SSH connectivity not set up between the following node(s):" error related to Openssh_8 shipped with Oracle Linux 8 according to INS-06006 GI RunInstaller Fails If OpenSSH Is Upgraded to 8.x (Doc ID 2555697.1)

Deploying new software to all nodes with a single command. (DBRU + DB MRP + OJVM + DPBP + Spatial Bundle + One-offs)

Now, new database home software is ready to go. We will just execute root.sh scripts on all nodes.

As we make use of unified auditing on all databases, we will relink unified auditing with the on option with the below command before switching to the new home.

Now it is time to switch to the new homes. Just before the switch;
    * Do not forget to update all your shell scripts, .bashrc etc files to refer to the new db home.
    * Copy tnsnames.ora and sqlnet.ora from the old db home to the new db home.
    * Copy glogin.sqlfrom the old db home to the new db home.
   * Make sure that your wallet path is not dependent on your old db home, if it is, just copy to a different path and update your sqlnet.ora.
Final step, modify your database homes with srvctl command and startup your databases from the new home node by node. Below is a sample.

Hope it helps.

Comments

Popular posts from this blog

Oracle Grid Release Update by using Ansible Playbooks

Oracle Database Release Update by Using Ansible Playbooks

How to Upgrade PostgreSQL, PostGIS and Patroni in Air-Gapped Environments