Monthly Archives: January 2025

Implementing Duplicate Validation in Oracle APEX Interactive Grids

Introduction Maintaining accurate data is vital in any application, particularly with databases. Duplicate entries can create confusion, hinder productivity, and compromise data integrity. This article presents two straightforward methods for…

Read More

Removing Duplicate Values from Comma-Separated Strings in MSSQL

  Introduction In relational databases like Microsoft SQL Server, handling comma-separated values (CSV) in a single column can be challenging, especially when it comes to removing duplicates. This task often arises…

Read More

Installation of DbFetchX application in Oracle database

Introduction: DbFetchX is a robust application designed to streamline data extraction, transformation, and retrieval from Oracle Databases. Its installation involves integrating the application’s schema, objects, and configurations into an Oracle…

Read More

RMAN Incremental Backups to Refresh Standby Database 

Description to standby: A standby database is a transactionally consistent replica of the primary database, designed to ensure continuity and data integrity in the event of disasters or data corruption. It allows the primary Oracle database to remain operational even during planned or unplanned outages. If the primary database becomes unavailable, Data Guard can seamlessly promote the standby database to the primary role, minimizing downtime. Additionally, the performance of the primary database can be optimized by redirecting resource-intensive tasks such as backups and reporting to the standby system. Therefore, keeping the standby database synchronized with the primary database is always advantageous. A standby database might lag behind the primary for various reasons like: Unavailability of or insufficient network bandwidth between primary and standby database Unavailability of Standby database Corruption / Accidental deletion of Archive Redo Data on primary CHECK THE SEQUENCE IN BOTH NODES: PRIMARY: SQL> select thread#, max(sequence#) “Last Primary Seq Generated” from v$archived_log val, v$database vdb where val.resetlogs_change# = vdb.resetlogs_change# group by thread# order by 1; THREAD#        Last Primary Seq Generated ———-                ————————– 1                                  556 STANDBY:…

Read More

Manual Data Guard Switchover in oracle 19c

Description: After configuring Data Guard, databases operate in either the primary or standby role, which can be switched dynamically without data loss or resetting redo logs. This process, known as a Switchover, can be executed using specific commands. Configuration Details: Environment detail Primary Standby SID SOURCE SOURCE DB Role Primary Physical standby Host prime.localdomain.com stand.localdomain.com DB Version 19.3.0.0 19.3.0.0 OS RHEL 7.9 RHEL 7.9 Step 1:- Check database role and database name Primary database:- SQL> select name,open_mode,database_role from v$database; NAME         OPEN_MODE           DATABASE_ROLE ——— ——————– —————- SOURCE         READ WRITE           PRIMARY Standby database:- SQL> select name,open_mode,database_role from v$database;…

Read More

OS upgrade from version Linux 7 to 8 in OCI console

  Introduction: Upgrading from Linux 7 to Linux 8 in the Oracle Cloud Infrastructure (OCI) environment is a crucial step to ensure the operating system is up-to-date, secure, and capable…

Read More

How To Export Data Using Select Query In MYSQL

Introduction Exporting data using a SELECT query in MySQL is a common practice to extract specific data from a database and save it in a usable format. This allows users…

Read More

How To Generate Dynamic Numbers in MYSQL

Introduction: Generating dynamic numbers in MySQL involves creating a sequence of numbers or generating numbers dynamically in queries. This is useful in various scenarios, such as creating IDs, generating row…

Read More

Convert Comma-Separated Values from a Single Row into Multiple Rows in MSSQL

Introduction:-         Handling comma-separated values (CSV) is a common requirement in database management, especially when working with data that needs to be parsed into multiple rows for…

Read More

Interactive Grid Row Validation in Oracle APEX

Introduction:- In Oracle APEX, ensuring all rows in an Interactive Grid are filled is crucial for maintaining data integrity and preventing incomplete submissions.Row-level validation can be implemented to check if…

Read More