Skip to main content

Posts

Showing posts from October, 2025

How to Convert/Revert a Physical Standby Database to Snapshot Standby with DGMGRL

This post explains how to seamlessly convert a Physical Standby database into a Snapshot Standby — and later revert it back to a Physical Standby — using DGMGRL, enabling you to fully leverage the flexibility and capabilities of Oracle Data Guard. When a snapshot standby is switched back to a physical standby, any changes made locally during its read-write phase are discarded . The redo data accumulated from the primary database is then applied, restoring synchronization between the two databases. Because redo data isn’t applied in real time and local transactions can occur independently, the snapshot standby gradually drifts out of sync with the primary. However, this doesn’t affect data protection — the standby can be reconverted to a physical standby at any time, at which point all pending redo is applied to bring it fully up to date. Snapshot standby databases deliver the same disaster recovery and data protection capabilities as physical standbys, with the added advantage of supp...

How to Rename an Oracle Database with NID Utility

Renaming an Oracle database is sometimes necessary when moving environments, restructuring systems, or aligning naming conventions. In this post, we’ll focus on how to rename an Oracle database using the NID (DBNEWID) utility , a safe and Oracle-supported method that simplifies the process. You’ll see how the NID tool changes the database name efficiently while keeping your data intact and minimizing downtime. IMPORTANT Changing the DBNAME without modifying the DBID does not require opening the database with the RESETLOGS option, meaning existing backups and archived logs remain valid. However, this change still has important implications. The DB_NAME parameter in the initialization file must be updated to match the new name, and the Oracle password file needs to be recreated. If an older control file backup (taken before the name change) is restored, the corresponding initialization and password files from that period should be used. System Overview Host: host02 Source Databa...

Step-by-Step: Oracle RMAN Active Duplication to New Host

This blog demonstrates how to duplicate an Oracle database from one host to another using Active Duplication . In this method, RMAN copies the live data files and control files from the source database to the destination, eliminating the need for a separate backup. Prerequisites Network connectivity must be established between the target and auxiliary databases. The password file from the target (e.g., production) database must be copied to the auxiliary (test) database, as Active Duplication requires both to have the same SYS password. Setup Overview Server: host01 — Database: PROD Server: host02 — Database: TEST In this setup, the PROD database is already created, as described in the previous blog post . The second server ( host02 ) has been configured with the same system setup, but without a database instance. The goal is to create a new instance on host02 and duplicate the PROD database from host01 , effectively setting up a TEST environment. Listener and tnsnames...

Installing and Configuring Oracle Grid Infrastructure and Database 19c on Oracle Linux 9 using ASMLIB v3.1

In this article, I will detail the complete procedure for installing, patching and configuring Oracle Grid Infrastructure and Oracle Database 19c on Oracle Enterprise Linux 9 , utilizing ASMLIB v3.1 for efficient ASM disk management. First, we need to download the following components required for the installation: Oracle Database 19c Grid Infrastructure (19.3) for Linux x86-64 Oracle Database 19c (19.3) for Linux x86-64 OPatch (Doc ID 274526.1) Patch 37957391: GI RELEASE UPDATE 19.28.0.0.0 (Patch for GI and DB) Before downloading the required components, we will first install several operating system packages, update the system to the latest version, and install the oracle-database-preinstall-19c package. This preinstallation package automatically creates the Oracle user, necessary groups, and adjusts key kernel parameters for optimal configuration. Additionally, we will update the /etc/hosts file to define the system’s hostname and IP address for proper network resolution, whic...