Sunday, 10 December 2023

How to Change Retention for Securefile LOB Segments in Oracle

Managing Large Object (LOB) segments in Oracle databases can be a nuanced task, especially when it comes to Securefile LOBs. If you've ever wondered how to tweak the retention settings for these segments, you're in the right place. This post will guide you through the process with clarity.



Sunday, 12 November 2023

Debunking 10 Myths about Database Administrators! 🔥

Database administrators (DBAs) play a critical and often underappreciated role in the world of information technology. 



Sunday, 5 November 2023

SQL Patches: Enhancing SQL Performance with Hints

 In today's blog post, we dive into the art of SQL optimization by creating SQL patches with hints. This technique is invaluable for improving the performance of your SQL statements in Oracle databases. Specifically, we'll focus on adding a hint to an application SQL statement, ensuring efficient execution.


A Case Study: Oracle Database vs. PostgreSQL

 Considering the best database management system for your organization? Let's explore the key differences between Oracle Database and PostgreSQL, two powerful contenders in the database landscape.



Saturday, 4 November 2023

Enhancing Cloud Security with Oracle Cloud Infrastructure: A Comprehensive Guide

 As organizations continue to migrate to the cloud, ensuring robust security measures becomes paramount. Oracle Cloud Infrastructure (OCI) delivers a comprehensive suite of security services to address every aspect of cloud security, from user access to threat intelligence. Here’s an overview of OCI's key security features, shuffled to highlight their unique benefits:



Sunday, 8 October 2023

Facts: Native vs pglogical Logical Replication in PostgreSQL

Here are some of the facts about Native vs pglogical Logical Replication in PostgreSQL 



Saturday, 30 September 2023

Agile is NOT FAST….

Agile is a widely adopted and highly effective approach to software development and project management in the IT environment. It has gained popularity for several reasons, and its principles and practices have proven to be beneficial for many organizations. 



Tuesday, 5 September 2023

Trace performance issues in PostgreSQL using the pg_stat_statements

👉 The pg_stat_statements view is a PostgreSQL extension that provides information about the execution statistics of all SQL statements that have been executed by the PostgreSQL server. 



Sunday, 18 June 2023

Resolving "User has no SELECT privilege on V$SESSION" Error in Oracle

 When working with Oracle databases, you might encounter the error User has no SELECT privilege on V$SESSION while trying to use the dbms_xplan.display_cursor function with a schema other than sysdba privilege. This error occurs because the user lacks the necessary privileges to access certain views. In this blog post, we'll guide you through the steps to grant these privileges and successfully run your queries.


Thursday, 25 May 2023

Harnessing tfactl for Diagnostic Data Collection

 If you're managing Oracle Grid Infrastructure (GI), Automatic Storage Management (ASM), or Real Application Clusters (RAC), you know that issues can pop up unexpectedly. Enter tfactl, a powerful tool for collecting diagnostic data to troubleshoot these components. Let's dive into how to locate and use tfactl effectively, turning troubleshooting from a headache into a breeze.


Sunday, 9 April 2023

Transforming SQL*Plus Output into HTML and Emailing It: A Step-by-Step Guide

Ever wondered how to turn your SQL*Plus query results into a snazzy HTML file and then shoot it off as an email? Well, wonder no more!  I'll walk you through the magical journey of converting database outputs into eye-catching HTML tables and sending them straight to your inbox . 


Wednesday, 22 February 2023

Ensuring Data Integrity with Oracle 21c Data Pump Checksum

 Today, we’re diving into a fantastic feature of Oracle 21c – the Data Pump checksum parameter. This tool helps ensure your Data Pump dump files are valid and intact. Let’s explore how to use it and why it’s a game-changer for data integrity.


Saturday, 28 January 2023

A DBA's Guide to Managing large size Databases

The life of a database administrator – filled with challenges, triumphs, and the occasional headache-inducing task of managing large databases which are terabytes in size. I present to you a roadmap to happiness amidst the vast expanse of data. Here's how to navigate the path of large-scale database management with a smile on your face:

1. Storage Serenity
Embrace the power of high-performance storage solutions like solid-state drives (SSDs) and storage area networks (SANs) to tame the beast of large database workloads.
  • Spread your data files across multiple physical disks or storage devices to harness the magic of parallel I/O operations and ward off pesky I/O bottlenecks.
  • Keep a watchful eye on disk space usage and plan for ample storage capacity to accommodate the ever-growing data size. After all, a happy DBA is a well-prepared DBA!

2. Backup and Restore 
Craft a robust backup and restore strategy, complete with full backups, differentials, and transaction log backups.
  • Embrace the magic of backup compression to shrink backup sizes and speed up the restoration process.
  • Regularly put your restore process to the test, ensuring a happy ending even in the face of adversity.
  • Analyze the backup failures via alerting and ensure repetitive alerts are addressed.

3. Partitioning Paradise
Partition your tables and indexes to break down the colossal entities into more manageable chunks.
  • Enjoy the benefits of better data distribution, enhanced query performance, and simplified maintenance operations.
  • Select a partitioning strategy tailored to your data's unique characteristics and query patterns – because one size does not fit all in the land of databases.

4. Maintenance Operations Wonderland
Tread carefully through the realm of maintenance tasks, scheduling and automating with precision.
  • Consider performing these tasks during off-peak hours to keep production systems humming along happily.

5. Indexing Euphoria
Craft and maintain your indexes with care to support swift data retrieval and query performance.
  • Explore the wonders of filtered indexes to hone in on the relevant data subset, shrinking index size and boosting query performance.
  • Regularly tend to your index statistics to keep query optimization in top-notch condition.

6. Compression Comfort
Harness the power of data compression to shrink storage footprints and elevate I/O performance to new heights.
  • Enable compression for your hefty tables and indexes, especially those facing read-intensive workloads.
  • Strike the perfect balance between storage savings and CPU overhead to find your compression sweet spot.

7. Query Optimization Bliss
Devote time to fine-tuning your queries for optimal execution against those mighty tables.
  • Embark on a quest through query plans, vanquishing performance bottlenecks with strategies like indexing, query rewriting, and partition elimination.
  • Make merry with features like columnstore indexes and in-memory OLTP to supercharge your queries when the need arises.

8. Monitoring and Performance Tuning Utopia
Keep a vigilant eye on database performance using built-in monitoring tools or third-party solutions.
  • Track key performance indicators like disk I/O, CPU utilization, and query execution times, making adjustments as needed.
  • Optimize server and database configurations based on monitoring insights for a performance paradise.

9. Archiving Awesomeness
Embrace the art of data archiving and purging to maintain a trim and tidy database. Bid farewell to historical or infrequently accessed data with grace, reducing the load on your production database.


10. Scalability and High Availability Elysium
Explore high availability features like Always On Availability Groups or database mirroring to ensure data resilience.
Consider scalability options like partitioning and scaling (both horizontal and vertical) to accommodate future growth and workload spikes.

And there you have it, fellow DBAs – Go forth, armed with knowledge and a smile, and may your databases be ever optimized and your queries lightning-fast.


Sunday, 6 March 2022

PostgreSQL VACUUM and MVCC

   PostgreSQL uses MVCC (multi-version concurrency control) to provide transactional semantics. In the simplest form, MVCC lets each transaction work on a different copy of a row in a table. What it means is whenever a row is updated, a new version of the row is created.



Saturday, 5 February 2022

Tracing Oracle Data Guard

 Tracing can also be enabled in dataguard using the parameter "Log_Archive_Trace"


The values can be set using DG-Broker (if configured) or at SQL prompt as below.



Sunday, 16 January 2022

Feedspot - Top database blog list


Dear All,

I am pleased to inform  that I received this recognition from Feedspot and I'm proud to be part of the awesome family- Thank you Anuj and Team for this recognition!



Sunday, 9 January 2022

Consistency check before performing RMAN resetlogs.


The article covers consistency check before performing OPEN RESETLOGS after restoring a database using backup 



Sunday, 19 December 2021

12c Wallet creation and tablespace encryption

The following article describes the steps to create the wallet and perform a tablepsace encryption.



Saturday, 4 December 2021

Datapump Errors and Solutions

   

SCOPE

The article covers common & complex error occurs during the Datapump Export and Import operations



Saturday, 20 November 2021

Oracle Instance Startup Failure | Instance terminated by GEN0

  

SCOPE

Recently a server running both Oracle databases with version 11.1.0.2  had to be forced powered cycled due to a NFS issue. Since it wasn’t possible to login to the O/S to shutdown the DBs an instance recovery was required on both the 11.2 databases.



Saturday, 6 November 2021

Resmgr:Cpu Quantum | Oracle wait event

 

SCOPE

Application job are running slow and DBA finds out the wait event as "Resmgr:Cpu Quantum" for multiple sessions running in database.



Monday, 18 October 2021

ASM Diskspace utilization categorized by Database/File names

SCOPE

Below script helps to identify the space utilization of Databases including the files such as Datafiles, Redologfiles, Archivelog files on ASM diskgroup categorized by Database names and their files.



Saturday, 2 October 2021

ORA-12519: TNS:no appropriate service handler found (followed by ORA-00020)

SCOPE

Application complains about the error ORA-12519: TNS:no appropriate service handler found while connection to the database.



Sunday, 5 September 2021

Open Resetlog Failure : ORA-00392: log 1 of thread 1 is being cleared, operation not allowed

SCOPE

Restoring the database using RMAN backup.

After completion of cloning to the staging environment, OPEN RESETLOGS fails with error as below.

ORA-00392: log 1 of thread 1 is being cleared, operation not allowed