Skip to main content

Posts

Showing posts from June, 2024

Converting a Physical Standby Database to a Snapshot Standby: A Step-by-Step Guide

  Converting a Physical Standby Database to a Snapshot Standby: A Step-by-Step Guide A snapshot standby database is a powerful feature in Oracle Data Guard that allows you to temporarily convert a physical standby database into a read-write database for testing or development purposes, while preserving the ability to revert back to a synchronized physical standby later. This blog post demonstrates the step-by-step process of converting a physical standby database to a snapshot standby. Prerequisites Primary database (testpri) and physical standby database (testsby) are properly configured with Data Guard Appropriate privileges to perform administrative commands Log archiving is properly configured between primary and standby The Conversion Process Step 1: Defer Log Shipping from Primary Database Before converting the standby database to a snapshot standby, it's a good practice to temporarily defer log shipping from the primary to avoid conflicts during the conversion proc...

How to resolve ORA-24247: Network Access Denied by ACL

🌐 ORA-24247: Network Access Denied by ACL in Oracle – Explained & Resolved When working with Oracle debugging features like DBMS_DEBUG_JDWP , you might encounter the following error: ORA-24247: Network access denied by access control list (ACL) ORA-06512: at "SYS.DBMS_DEBUG_JDWP", line 68 ORA-06512: at line 1 This blog will walk you through the cause and step-by-step resolution of this issue using Oracle Access Control Lists (ACLs). ❓ What Is Causing This Error? ACL Restriction: The database user is trying to initiate a network connection (e.g., for debugging), but no ACL grants access to the specified IP and port. Missing Privileges: The user may lack the connect or resolve privilege in the ACL linked to that host/port. Example Failing Statement: CALL DBMS_DEBUG_JDWP.CONNECT_TCP('10.1.1.1', '62918'); ✅ Step-by-Step Solution 🔧 1. Create a New ACL BEGIN DBMS_NETWORK_ACL_ADMIN.CREATE_ACL( acl => 'd...

How to rename the Hostname in an Oracle RAC Cluster

Renaming a hostname in an Oracle Real Application Clusters (RAC) environment requires careful execution to ensure database continuity. This guide demonstrates how to rename the hostname in a two-node RAC cluster (devdb-01, devdb-02) by modifying devdb-01 to devdb-new-01. RAC User = DB HOME Owner GI User = GI HOME Owner or root Step 1: Remove the DB Instance from the Old Node On devdb-01 , connect as the RAC user and remove the running database instance: a. srvctl disable instance -db <db_unique_name> -instance <inst_name> b. srvctl stop instance -db <db_unique_name> {-node <old_node_name> | -instance <inst_name>} -stopoption NORMAL -failover c. srvctl remove instance -db <db_unique_name> -instance <inst_name> -force Step 2: Deconfigure Oracle Clusterware on the Old Node On devdb-01 , connect as the root user and execute: $GI_HOME/crs/install/rootcrs.sh -deconfig -force Step 3: Remove the Node from the Cluster On devdb-02 , connect as the root...

💥 How to Drop a Database in Oracle RAC Environment 💥

  Ever tried to drop a database in an Oracle RAC environment only to hit a frustrating error? You're not alone! Oracle Real Application Clusters (RAC) offers amazing high availability and scalability benefits, but it also introduces some interesting challenges for DBAs when performing certain administrative tasks. In this guide, I'll walk you through one of those common headaches: dropping a database in RAC—and share the exact solution that will save you hours of troubleshooting! Let's dive in! 🏊‍♂️ 💡 PRO TIP: Always make sure you have valid backups before proceeding with any database drop operation. Better safe than sorry! 🚫 The Challenge: That Dreaded ORA-01586 Error Picture this scenario: You need to drop a database in your RAC environment, you run the command and BAM! You hit this error: SQL> DROP DATABASE; DROP DATABASE * ERROR at line 1: ORA-01586: database must be mounted EXCLUSIVE and not open for this operation Frustrating, right? 😤 This happens bec...