Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Building Our Own Namespaces with “Create Context” Oracle
  • ipcs -l Linux/Unix
  • kill all processes from specific user in solaris. Linux/Unix
  • Windows based Command line mailing program like mailx (Sednmail for windows) PHP/MYSQL/Wordpress
  • OEM-troubleshooting on 20-MAY-08 Oracle
  • Gathering statistics with DBMS_STATS Oracle
  • Find Stale DR Physical Standby Oracle
  • CPU Core related projections AWS
  • Reclaim temp tablespace for oracle 8, 8i Oracle
  • Process Map for CPU and Memory for OS processes Linux/Unix
  • DBMS_JOB all example Oracle
  • For Perl DBI installation and testing program PHP/MYSQL/Wordpress
  • Rename Oracle Instance Name Oracle
  • Oracle 10g Wait Model Oracle
  • Test Case for Inserting Multiple (2.3 Million rows in 26 Seconds) Oracle

Category: SQL scripts

True Session Wait Activity in Oracle 10g Verygood

Posted on 19-Aug-2005 By Admin No Comments on True Session Wait Activity in Oracle 10g Verygood

True Session Wait Activity in Oracle 10g ======================================== Catching a session waiting on a resource used to be hit or miss. Let’s take a look at how Oracle has helped give us a better mousetrap for seeing the waits experienced by sessions. It used to be that a DBA would sit in front of the…

Read More “True Session Wait Activity in Oracle 10g Verygood” »

Oracle, SQL scripts

Absolute file number and relative file number

Posted on 19-Aug-2005 By Admin No Comments on Absolute file number and relative file number

Interpreting Wait Event “file#” and “block#” parameters ======================================================= This reference note describes how to interpret file# and block# parameters from wait events (eg: obtained from or from the WAIT trace lines in trace files). The text uses: &AFN to represent the absolute file number (file#) &BLOCKNO to represent the block number (block#) IMPORTANT: The details…

Read More “Absolute file number and relative file number” »

Oracle, SQL scripts

Important Script Method for tuning

Posted on 19-Aug-2005 By Admin No Comments on Important Script Method for tuning

wait.sql enqueue_type.sql lck.sql

Oracle, SQL scripts

lck.sql

Posted on 19-Aug-2005 By Admin No Comments on lck.sql

select c.sid, c.serial#, c.username, a.object_id, b.object_name, c.program, c.status, d.name, c.osuser, e.sql_text, DBMS_ROWID.ROWID_CREATE(1, c.ROW_WAIT_OBJ#, c.ROW_WAIT_FILE#, c.ROW_WAIT_BLOCK#, c.ROW_WAIT_ROW# ) locked_rowid from v$Locked_object a, All_objects b, v$session c, audit_actions d, v$sqlarea e where a.object_id=b.object_id and a.session_id =c.sid(+) and c.command=d.action and c.row_wait_obj# != -1 and c.sql_id=e.sql_id;

Oracle, SQL scripts

The most important Tuning Notes

Posted on 18-Aug-2005 By Admin No Comments on The most important Tuning Notes

Note:61552.1 Database Is Slow. (*) Any recent upgrade/degrade activities??? (2)Check Alert.log and trace files for any cause. (2) Check # of sessions, # of processes. (3) Check event init.ora parameter to see whether any event is set or not. (4) check # of log switching. (5) check archive log destinations space problem or ARCH may…

Read More “The most important Tuning Notes” »

Oracle, SQL scripts

Oracle 10g Wait Model

Posted on 16-Aug-2005 By Admin No Comments on Oracle 10g Wait Model

*** This article is being delivered in Draft form and may contain errors. Please use the MetaLink “Feedback” button to advise Oracle of any issues related to this article. *** PURPOSE ——- This note includes new columns of V$SESSION and how to effectively use V$SESSION during contention in Oracle 10G. SCOPE & APPLICATION —————————– 1….

Read More “Oracle 10g Wait Model” »

Oracle, SQL scripts

Rename Tablespace

Posted on 09-Aug-2005 By Admin No Comments on Rename Tablespace

Alter tablespace OLD_ts_name rename to NEW_TS_NAME;

Oracle, SQL scripts

sql_doing_fts.sql

Posted on 03-Aug-2005 By Admin No Comments on sql_doing_fts.sql

select sql_text from V$sql a, v$sql_plan b where a.address = b.address and a.hash_value = b.hash_value and b.operation = ‘TABLE ACCESS’ and b.options = ‘FULL’ and b.OBJECT_OWNER ‘SYS’ /

Oracle, SQL scripts

proc.sql

Posted on 02-Aug-2005 By Admin No Comments on proc.sql

set pagesize 2000 select text from user_source where name = upper(‘&procedure_name’) order by line;

Oracle, SQL scripts

db_status.sql

Posted on 02-Aug-2005 By Admin No Comments on db_status.sql

REM =============================================================================== REM = Script Name : db_status.sql = REM = Usage : This script is to be used to give an overview of the current status = REM = of a given database. Things like suspect default and temporary = REM = tablespaces, tablespaces that have less than 20% free, objects that = REM…

Read More “db_status.sql” »

Oracle, SQL scripts

Posts pagination

Previous 1 … 29 30 31 … 35 Next

Categories

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

Recent Posts

  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Good notes on Oracle Events Oracle
  • Oracle 11g Environment Setup Oracle
  • ORACLE_SID in sqlplus Oracle
  • Test Case for Inserting Multiple (2.3 Million rows in 26 Seconds) Oracle
  • Remove duplicate rows from table Oracle
  • Logic to chech # of parameters command line parameters Linux/Unix
  • Drop tempfiles from database Oracle
  • Search and replace pattern Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme