Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • MYSQL for Oracle DBA MYSQL
  • sess1.sql Oracle
  • usnsql.sql Displays information about UNDO segments with sql statements Oracle
  • Find nth max and min. Oracle
  • tar and untar a dolder with all its subfolder. Linux/Unix
  • tuning commmand for cpu, ip and memory stats Linux/Unix
  • Sequence Resetting Oracle
  • Which environment is used by currently running process ( Very good) Linux/Unix
  • How to specify 2 arch location to avoid any kind of DB hanging. Oracle
  • Temporary Tablespace Information and restriction. Oracle
  • Transfer SQL Profiles from One database to other database. Oracle
  • cif crons Linux/Unix
  • Updated LCK.SQL file. Oracle
  • Wait.sql Oracle
  • Find Multiple levels of object dependencies : depen.sql Oracle

Hello

Posted on 08-Apr-2026 By Admin

Hello world once more

Uncategorized

Hello

Posted on 07-Apr-2026 By Admin

Hello world

Uncategorized

Test1

Posted on 07-Apr-2026 By Admin No Comments on Test1

Yes one

Uncategorized

track_autoupgrade_copy_progress.sql

Posted on 01-Apr-202601-Apr-2026 By Admin No Comments on track_autoupgrade_copy_progress.sql

This script will be useful for tracking progress of GBS copied to Target system. Need to execute it on Target system.

Oracle, SQL scripts

refre.sql for multitenant

Posted on 01-Apr-2026 By Admin No Comments on refre.sql for multitenant

This will provide prompt with session details.

Oracle, SQL scripts

prepfiles.sh for step by step generating pending statistics files

Posted on 10-Mar-202610-Mar-2026 By Admin No Comments on prepfiles.sh for step by step generating pending statistics files

This script, prepfiles.sh, is a powerful utility for Oracle Database Administrators designed to automate the generation of a comprehensive SQL toolkit for managing and testing database statistics. By reading a list of tables from mtx_tablelist.lst, the script creates a sequenced set of SQL files that handle the entire lifecycle of Pending Statistics. This allows DBAs to gather and validate new…

Read More “prepfiles.sh for step by step generating pending statistics files” »

Oracle, shell

tracksqltime.sql

Posted on 05-Mar-2026 By Admin No Comments on tracksqltime.sql

This PL/SQL block identifies recently active SQL queries from a specific application server and provides details on their performance and execution plans.  Here is a breakdown of what the script does:

Oracle, SQL scripts

Complete Git Tutorial for Beginners

Posted on 25-Dec-202525-Dec-2025 By Admin No Comments on Complete Git Tutorial for Beginners

🎯 Table of Contents 🤔 What is Git? Git is a version control system – think of it as a time machine for your code! Real-World Analogy Imagine you’re writing a book: Why Use Git? ✅ Track Changes: See what changed and when✅ Collaborate: Multiple people can work on the same project✅ Backup: Your code is saved on GitHub (cloud)✅ Undo Mistakes:…

Read More “Complete Git Tutorial for Beginners” »

GIT

Postgres DB user and OS user.

Posted on 25-Dec-202525-Dec-2025 By Admin No Comments on Postgres DB user and OS user.

In PostgreSQL on Linux, it is crucial to understand that the OS user and the database user (often both named postgres) are two completely separate entities with separate credentials. Here is the breakdown of how they interact: 1. Are the passwords the same? No. * OS User (postgres): This is a Linux system account created…

Read More “Postgres DB user and OS user.” »

POSTGRESQL

Trace a SQL session from another session using ORADEBUG

Posted on 30-Sep-202530-Sep-2025 By Admin No Comments on Trace a SQL session from another session using ORADEBUG

Find the SPID from Oracle’s SID using below SQL. REM **** This is used to get SPID from SID.col username format a30col machine format a20col program format a40accept _sid prompt ‘Enter Oracle Session ID ->’select a.sid, b.pid, b.spid, a.username, a.program,a.machinefrom v$session a,V$process bwhere a.paddr = b.addrand   a.sid = &_sid/ Use ORADEBUG command as below. oradebug…

Read More “Trace a SQL session from another session using ORADEBUG” »

Oracle, SQL scripts

Posts pagination

1 2 … 58 Next

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Django (0)
  • GIT (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (397)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (1)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (150)
  • SQL scripts (345)
  • SQL Server (6)
  • Uncategorized (3)
  • Videos (0)

Recent Posts

  • Hello08-Apr-2026
  • Hello07-Apr-2026
  • Test107-Apr-2026
  • track_autoupgrade_copy_progress.sql01-Apr-2026
  • refre.sql for multitenant01-Apr-2026
  • prepfiles.sh for step by step generating pending statistics files10-Mar-2026
  • tracksqltime.sql05-Mar-2026
  • Complete Git Tutorial for Beginners25-Dec-2025
  • Postgres DB user and OS user.25-Dec-2025
  • Trace a SQL session from another session using ORADEBUG30-Sep-2025

Archives

  • 2026
  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • cache buffer chain latch Oracle
  • USER_TABLES.Freelists Oracle
  • Good RAC & Standby Notes Oracle
  • S3 Basic info AWS
  • Looping for remote servers and find its database from oratab file. Linux/Unix
  • CPU speed on solaris Linux/Unix
  • How to find the real execution plan and binds used in that explain plan in Oracle 10g?? Oracle
  • Histogram Overview Oracle

Copyright © 2026 pvmehta.com.

Powered by PressBook News WordPress theme