Database Blog

Automated Compilation of Invalid Database Objects in Oracle Multitenant Architecture

Detailed Description: The compile_invalid_objects.sh script is designed to automate the identification and compilation of invalid objects across pluggable databases (PDBs) within an Oracle multitenant database environment. Invalid objects—such as packages,…

Read More

Automated PDB Enumeration and Dynamic Login Selector for Oracle Multitenant Databases

Detailed Description: This Bash script automates the enumeration and dynamic selection of Pluggable Databases (PDBs) in an Oracle Multitenant environment. It connects to the Oracle Container Database (CDB) as a…

Read More

How to recover suspect/Recovery pending databases in SQL Server?

How to recover suspect/Recovery pending databases in SQL Server?  Introduction:  In SQL Server, a database may enter SUSPECT or RECOVERY PENDING state due to corruption, missing files, or insufficient resources.…

Read More

High-Level Steps to Add SQL Server to a Cluster

High-Level Steps to Add SQL Server to a Cluster  Introduction:  Adding a SQL Server instance to a Windows Server Failover Cluster (WSFC) is a process that enables high availability for…

Read More

How to fix orphan user in SQL server? 

Introduction In SQL Server, an orphaned user occurs when a database user exists without a corresponding login in the server’s master database. This usually happens after restoring a database from…

Read More

Copying table data from source to destination in SQL Server

PURPOSE AND SCOPE: This document explains how to transfer table data from source server to destination server. Prerequisites Database Access Permissions: Ensure that you have the necessary permissions to access…

Read More

Using TKPROF to Enable SQL Trace and Analyze Query Performance for Identifying Slowness in the Database

Introduction In Oracle databases, performance issues often stem from inefficient SQL queries. TKPROF is a powerful utility that formats the output of SQL trace files, making it easier to interpret…

Read More

Enabling Query Store on SQL Server 2019

Introduction:  When it comes to database performance tuning, that’s where Query Store appears. Introduced in 2017 version and significantly enhanced in 2019, Query Store acts like a “flight recorder” for…

Read More

Archiving and Deleting Data From MS SQL Server Database 

Archiving and Deleting Data From SQL Server Database  Server: SERVER1  Main Database: DB1  Archive Database: DB1_archive  Target Table: dbo.PerformanceCounters  Objective:  To archive and delete data older than 90 days from…

Read More

Resolving Error ORA-00955: name is already used by an existing object

Introduction While working with Oracle databases, you may encounter the error ORA-00955: name is already used by an existing object when trying to create objects like tables, indexes, or materialized…

Read More