Skip to main content

Posts

Showing posts from April, 2025

Streamlining Oracle Standby Database Patching: An Ansible Automation Blueprint

Patching Oracle databases is a critical maintenance task that ensures system security, stability, and performance. However, patching a standby database in a Data Guard configuration requires careful execution to maintain data protection and high availability. This blog post explores an Ansible playbook we've developed to automate the Oracle standby database patching process, making it more reliable, consistent, and efficient. yaml # File: standby_db_patching.yml --- - name : Apply Oracle Patch on Standby Database hosts : "{{ hostlist }}" become : yes vars : oracle_home : /opt/oracle/product/19.3.0/db_1 local_patch_dir : /tmp patch_dir : /oraback/patch patch_db_zip : p37642901_190000_Linux - x86 - 64.zip patch_opatch_zip : p6880880_190000_Linux - x86 - 64.zip tasks : # Tasks will be discussed in detail below Why Automate Oracle Patching? Manual patching processes are prone to human error, time-consuming, and often lack proper...

Automating Oracle GoldenGate Patching with Ansible

๐Ÿ”„ Automating Oracle GoldenGate Patching with Ansible Maintaining up-to-date Oracle GoldenGate environments is crucial for ensuring optimal performance and stability. Manual patching can be error-prone and time-consuming, especially across multiple nodes. This blog post demonstrates how to automate the Oracle GoldenGate patching process using a simple yet powerful Ansible playbook. ๐Ÿš€ ๐Ÿ“ฆ Playbook Overview This Ansible playbook handles: Stopping GoldenGate processes gracefully Transferring and extracting patch and OPatch files Backing up the existing OPatch utility Applying the patch silently Restarting the GoldenGate processes ๐Ÿ”ง Configuration Parameters Below are the customizable variables in the playbook: oracle_home: /opt/app/ogg21c patch_dir: /acfs01/GG_software/patching patch_zip: p37071355_2116000OGGRU_Linux-x86-64.zip opatch_zip: p6880880_190000_Linux-x86-64.zip patch_user: ggudb patch_group: oinstall ๐Ÿ› ️ Key Tasks Breakdown 1️⃣ Setting Environmen...

๐Ÿš€Automating Oracle GoldenGate 21c Silent Installation with Ansible๐Ÿš€

Oracle GoldenGate 21c using Ansible ๐Ÿ”ง Automating Oracle GoldenGate 21c Silent Installation with Ansible This blog post walks you through the silent installation of Oracle GoldenGate 21c on Linux using an Ansible playbook. Automation is key to efficient software deployment, and Ansible provides a powerful and agentless way to manage your infrastructure and applications. This playbook streamlines the GoldenGate installation process, ensuring consistency and reducing manual errors. Prerequisites Before you begin, ensure you have the following: Ansible Installed: You need to have Ansible installed and configured on your control machine. Target Hosts Configured: Your target Linux hosts where you want to install GoldenGate should be accessible via SSH from your Ansible control machine. Oracle GoldenGate 21c Software: Download the Oracle GoldenGate 21c software (e.g., 213000_fbo_ggs_Linux_x64_Oracle_shiphome.zip ) an...

๐Ÿš€ Applying Oracle Management Agent 13.5 RU25: A Step-by-Step Patch Guide

๐Ÿ› ️ Applying OEM Agent Patch - Step-by-Step Guide Applying Oracle Enterprise Manager (OEM) Agent patches ensures your monitoring infrastructure stays up-to-date and secure. Below is a structured guide for patching the OEM Agent, particularly for: Agent Home: /opt/app/agent13c/agent_13.5.0.0.0 ๐Ÿ” Prerequisites ๐Ÿ”น Step 1: Verify AgentPatcher Version Ensure you have AgentPatcher version 13.9.5.10.0 or later installed. ๐Ÿ“„ Refer to MOS Doc ID 2810322.1 : "13.5: How to Upgrade AgentPatcher to the Latest Version" ๐Ÿ”น Step 2: Patch OMS First Ensure that Patch 37057635 (Enterprise Manager 13c Release 5 Update 25) or its latest version has been applied on the OMS. ๐Ÿ”น Step 3: Set Environment Variables Before proceeding, export the necessary environment variables: export ORACLE_HOME=/opt/app/agent13c/agent_13.5.0.0.0 export PATH=$ORACLE_HOME/AgentPatcher:$PATH export AGENT_HOME=/opt/app/agent13c/agent_13.5.0.0.0/ export PATH=$PATH:$AGENT_HOME/bin:$AGENT_HOME/OPat...

๐Ÿง  What is OLR (Oracle Local Registry)?

Understanding Oracle Local Registry (OLR) in Oracle RAC – A Deep Dive Oracle RAC (Real Application Clusters) uses several key files to coordinate and maintain cluster operations. Among these, the Oracle Local Registry (OLR) plays a crucial role during the early stages of node startup. In this blog, we will explore: ๐Ÿ“ What OLR is and where it resides ⚙️ Its role in the Oracle RAC architecture ๐Ÿ”„ Differences between OLR and OCR ๐Ÿ› ️ Managing and backing up the OLR ✅ Best practices for working with OLR ๐Ÿ“˜ What is OLR? The Oracle Local Registry (OLR) is a local, node-specific configuration file used by Oracle Grid Infrastructure. It stores data necessary for starting and maintaining Clusterware stack components on a node, especially before shared storage is accessible. Key information stored in the OLR includes: ASM startup configuration Local resource dependencies Node-level cluster configuration Location (Linux/Unix): /u01/app/11.2.0/grid/cdat...