Database Blog

Resolving RMAN Backup Errors Caused by Uninitialized TDE Keys in Oracle DBCS

Introduction: In Oracle Database Cloud Service (DBCS), Transparent Data Encryption (TDE) is a default security feature that helps protect sensitive data at rest. While TDE provides strong protection, misconfigured or missing…

Read More

Troubleshooting RMAN Backups in Oracle DBCS (OCI): A Practical Guide for Cloud DBAs

Introduction: To check and manage RMAN backups using dbcli in Oracle Database Cloud Service (DBCS) on Oracle Cloud Infrastructure (OCI), follow these practical steps. dbcli is a command-line interface available on bare metal…

Read More

Mastering PostgreSQL TOAST & Vacuum

Mastering PostgreSQL TOAST & Vacuum Keep Your Large Tables Fast and Lean Have your PostgreSQL queries slowed down despite all the right indexes and optimizations? If your table has large…

Read More

Oracle Data Guard: Key Configs & Parameters

As Oracle DBAs, ensuring zero data loss (RPO) and minimal downtime (RTO) is critical. Oracle Data Guard is the industry-standard solution for high availability, disaster recovery, and data protection. (A)…

Read More

Break Into Data Engineering: Master These 12 Tools First

𝟭. 𝗱𝗯𝘁 → Transforms raw data into clean, analytics-ready models, ensuring consistent and reliable pipelines. 𝟮. 𝗔𝗽𝗮𝗰𝗵𝗲 𝗦𝗽𝗮𝗿𝗸 → We process massive datasets in batch or streaming mode, making big…

Read More

Oracle PLSQL to Generate XML Tag Using Standard Functionality

declare l_ctx dbms_xmlquery.ctxHandle; l_clob clob; begin l_ctx := dbms_xmlquery.newContext(‘select * from <TABLE_NAME>’); dbms_lob.createtemporary(:g_clob,true,dbms_lob.session); :g_clob := dbms_xmlquery.getXml(l_ctx); end;

Read More

Exploring the New Security Features in Oracle Database 23ai

Oracle Database 23ai introduces advanced security features designed to enhance data protection, simplify configurations, and align with modern security standards. These updates strengthen the database’s security posture and improve usability…

Read More

Dynamic Query Script to create public synonym and private synonym in database

Please use the below query to generate the script and run accordingly.   Public Synonym: ——————– select ‘create or replace public synonym ‘||table_name||’ for ‘||owner||’.’||table_name||’;’ from dba_tables where owner=’QA’;  …

Read More

Script to fix export issue while it hangs during Statistics, Marker, Type

Please run the below and do the export again. create index SYS.IMPDP_STATS_1 ON SYS.IMPDP_STATS (c5,type,c1,c2,c3,c4,statid,version);    

Read More

Step-by-Step Guide for SQL Server Always on Failover

Step-by-Step Guide for SQL Server Always on Failover Introduction SQL Server Always On Availability Groups provide high availability and disaster recovery capabilities for SQL Server databases. Synchronous commit mode ensures that data is committed to both the primary and secondary replicas, guaranteeing data integrity during failover. This guide provides detailed steps for performing both manual and automatic failovers in an Always On Availability Group. Part 1: Preliminary Checks and Preparations Before initiating any failover, whether manual or automatic, ensure the environment is healthy and ready for the transition. Step 1: Prerequisites Check – Synchronization State: Confirm that all secondary replicas are in the SYNCHRONIZED state. – Query to Check Synchronization State: SELECT ag.name AS [AvailabilityGroupName], ar.replica_server_name AS [ReplicaServerName], drs.synchronization_state_desc AS [SynchronizationState] FROM sys.dm_hadr_availability_replica_states AS drs JOIN sys.availability_replicas AS ar ON drs.replica_id = ar.replica_id JOIN sys.availability_groups AS ag ON ar.group_id = ag.group_id WHERE drs.synchronization_state_desc = ‘SYNCHRONIZED’;   – Action: Ensure that all replicas are in the SYNCHRONIZED state to avoid any data loss during failover. – Verify Health of Availability Group: – Query to Check Availability Group Health: SELECT ag.name AS [AvailabilityGroupName], ags.primary_replica AS [PrimaryReplica], ags.operational_state_desc AS [OperationalState] FROM sys.dm_hadr_availability_group_states AS ags JOIN sys.availability_groups AS ag ON ags.group_id = ag.group_id;   – Action: Ensure that the OperationalState indicates a healthy state for a successful failover. Step 2: Validate Readiness for Failover…

Read More