Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • send attachment from unix-shell script Linux/Unix
  • longtx.sql with the flag whether session is blocking any DML locks or not. Oracle
  • Convert multiple rows to single column Oracle
  • before_trunc.sql Before Truncate table needs to execute following: Oracle
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • scp with ssh2 Linux/Unix
  • Privilege to describe the table. Oracle
  • Running select from V$ views from remote server Linux/Unix
  • Running some SQL on multiple databases connecting using monitoring userid and password Linux/Unix
  • Removing first line Linux/Unix
  • get_vmstat_linux Oracle
  • dbms_job.submit example Oracle
  • TRUNCATE Privs Oracle
  • Find nth max and min. Oracle

Category: 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

tblwopk.sql /* Find Tables Without PK */

Posted on 02-Aug-2005 By Admin No Comments on tblwopk.sql /* Find Tables Without PK */

set pagesize 300 set linesize 205 set head on set echo off spool tblwopk accept usrid prompt ‘Enter User Name : ‘ REM Find all tables that does not have primary key on them. select /*+ rule */ a.table_name from dba_tables a where a.owner = upper(‘&usrid’) and a.table_name not in ( select b.table_name from dba_constraints…

Read More “tblwopk.sql /* Find Tables Without PK */” »

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 (392)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • How to start CRS manually Oracle
  • create user with unlimited quota Oracle
  • New OFA for 11g Oracle
  • 10g oem configuration Oracle
  • Important Script Method for tuning Oracle
  • Check_recovery.sh program to run sqlplus and return its values remotely. Linux/Unix
  • How to Decide upto what level you can decrement your datafile size. ( Shrink Datafile) Oracle
  • set_env_dba Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme