Database Blog

How to Enable Active Data Guard on a Physical Standby 

Description: –  Active Data Guard allows a physical standby database to be opened in READ ONLY mode while redo apply continues in the background. This enables the standby database to be used for reporting and…

Read More

How to Perform Password-Based Encrypted RMAN Tablespace Backup & Restore

  Overview  This blog explains how to secure an Oracle 19c tablespace using RMAN password-based encryption and demonstrates a complete backup, restore, and recovery cycle. It covers verifying tablespaces and datafiles, taking an encrypted RMAN backup…

Read More

Oracle 19c Table Shrink Space

Shrinking a table in an Oracle database is used to reclaim unused space and optimize storage. As data is inserted, updated, and deleted over time, tables can become fragmented and retain empty blocks, leading to wasted…

Read More

Query to get the output for object privileges, roles, system privileges with details

Please use the below query to get the output.   set echo on; SELECT COUNT(*) AS object_priv_count FROM dba_tab_privs WHERE grantee = ‘A’; set echo on; SELECT COUNT(*) AS role_grant_count…

Read More

Script to create trace at database schema level by enabling trigger model.

Please execute the below and change the username accordingly. After the trace drop the trigger.   CREATE OR REPLACE TRIGGER “1234_TMP_LOGGINGTRIG” AFTER LOGON ON DATABASE begin if ora_login_user = ‘1234’…

Read More

Telegraf configuration to scrape database information in windows server

Telegraf is a small tool that collects system and application data and sends it to monitoring tools like Prometheus, Grafana.Telegraf helps you see what is happening inside your server and…

Read More

Automating_patch_in_windows_server

1.Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass # --- CONFIGURATION --- $oracleHome = "D:\automation\WINDOWS.X64_193000_db_home" $patchDir = "D:\automation\p37532350_190000_MSWIN-x86-64 (2)\37532350" $opatchDir = "$oracleHome\OPatch" $opatchZip = "D:\automation\p6880880_190000_MSWIN-x86-64.zip" $logFile = "C:\Users\Administrator\Documents\oracle_patch_log.txt" # Define Oracle services $dbService…

Read More

Step-by-Step guide to installing MySQL Server

Step-by-Step guide to installing MySQL Server   Step 1: Download MySQL Installer  Open your web browser and go to the official MySQL downloads page.  Choose the MySQL Installer for Windows appropriate for your system. …

Read More

Common causes of SQL Server Timeout

Common causes of SQL Server Timeout During a recent production run, a stored procedure timed out at peak order processing. This caused delays in processing orders and highlighted the importance of query…

Read More

Oracle LogMiner: Unlocking the Power of Database Transaction Analysis

Oracle LogMiner: Unlocking the Power of Database Transaction Analysis  In the world of database management, understanding the changes happening inside your Oracle Database is crucial. Whether it’s for auditing, troubleshooting, or replicating data,…

Read More