Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • oracle_env_10g_CADEV Linux/Unix
  • Jai Shree Ram Oracle
  • How to connect to Oracle Database with Wallet with Python. Oracle
  • get_vmstat.ksh Linux/Unix
  • How to Make Trace Files Created by Oracle Readable by All Users ? Oracle
  • The most important Tuning Notes Oracle
  • Oracle 11g Environment Setup Oracle
  • Adding a new disk and mount it automatically. on VMWARE LINUX Linux/Unix
  • Small sample shell program Linux/Unix
  • Nice Article about semaphores and init.ora Processes parameter relations Linux/Unix
  • Composite Index creation tip from Vivek Oracle
  • Histogram information Oracle
  • Find Multiple levels of object dependencies : depen.sql Oracle
  • Query to Generate aggregate on every 30 mins. Oracle
  • Find total file sizes Linux/Unix

Category: SQL scripts

sid_wise_sql.sql

Posted on 30-Jan-2006 By Admin No Comments on sid_wise_sql.sql

accept u_name prompt ‘Enter User Name (Enter NONE if want SID specific query): ‘ accept s_id prompt ‘Enter SID (Enter 0 for Userspecific Query): ‘ select a.sid, b.sql_text, a.sql_id, c.spid, b.executions, b.disk_reads, b.elapsed_time, b.cpu_time, b.buffer_gets from v$session a, v$sqlarea b, v$process c where a.sql_id = b.sql_id(+) and (a.username = upper(‘&u_name’) or a.sid = &s_id )…

Read More “sid_wise_sql.sql” »

Oracle, SQL scripts

All About Trace Fils

Posted on 26-Jan-2006 By Admin No Comments on All About Trace Fils

********************************************* ***** (1) TOOLS TO ANALYZE TRACE FILES. ***** ********************************************* Mainly 2 tools to analyze trace files. (A) tkprof (B) trcsess (from oracle 10g). This tool has been designed to deal with the new trace facilities that allow trace to be identified based on client identifier or by a combination of service name / module…

Read More “All About Trace Fils” »

Oracle, SQL scripts

10g oem configuration

Posted on 19-Jan-2006 By Admin No Comments on 10g oem configuration

(1) Check whether your database is registered with Enterprise Manager or not, using following command: posdbprod21:oracle> emctl status dbconsole OC4J Configuration issue. /oracle/app/oracle/product/10.1/oc4j/j2ee/OC4J_DBConsole_posdbprod21_CIF not found. posdbprod21:oracle> This means database is not registered with OEM. (2) Remember DBCA and other java interfaces use /vat/opt/oracle/oratab file to find the number of oracle instances instaled on that server….

Read More “10g oem configuration” »

Oracle, SQL scripts

UNderstand and eliminate Latch contention.

Posted on 18-Jan-2006 By Admin No Comments on UNderstand and eliminate Latch contention.

http://www.nocoug.org/download/2004-11/Conquering_Ora_Latch_Conten_1d.pdf

Oracle, SQL scripts

Library cahe Latches and internal explaination

Posted on 18-Jan-2006 By Admin No Comments on Library cahe Latches and internal explaination

http://www.ixora.com.au/q+a/library.htm

Oracle, SQL scripts

Good link for LIO in Oracle ( Logical IOs)

Posted on 18-Jan-2006 By Admin No Comments on Good link for LIO in Oracle ( Logical IOs)

http://www.diku.dk/undervisning/2003f/729/papers/millsap.pdf

Oracle, SQL scripts

New Latest Param.sql for finding all hidden parameters also

Posted on 18-Jan-2006 By Admin No Comments on New Latest Param.sql for finding all hidden parameters also

set pages 3000 set lines 151 accept param_name prompt ‘Enter Parameter Name : ‘ select a.ksppinm “Parameter”, b.ksppstvl “Session Value”, c.ksppstvl “Instance Value” from x$ksppi a, x$ksppcv b, x$ksppsv c where a.indx = b.indx and a.indx = c.indx and ( upper(ksppinm) like ‘%&param_name%’ or lower(ksppinm) like ‘%&param_name%’ ) order by a.ksppinm;

Oracle, SQL scripts

In Addition to previous note, following grants needed on PERFSTAT user.

Posted on 16-Jan-2006 By Admin No Comments on In Addition to previous note, following grants needed on PERFSTAT user.

/* System privileges */ grant create session to PERFSTAT; grant alter session to PERFSTAT; grant create table to PERFSTAT; grant create procedure to PERFSTAT; grant create sequence to PERFSTAT; grant create public synonym to PERFSTAT; grant drop public synonym to PERFSTAT; /* Select privileges on STATSPACK created views */ grant select on X_$KCBFWAIT to PERFSTAT;…

Read More “In Addition to previous note, following grants needed on PERFSTAT user.” »

Oracle, SQL scripts

Privileges Required to Create Procedures and Functions that uses objects from other schema.

Posted on 13-Jan-2006 By Admin No Comments on Privileges Required to Create Procedures and Functions that uses objects from other schema.

When you are creating a procedure and you are using objects from other schemas, then the procedure owner needs related privilages exclusively on those objects of other schemas. This cannot be resolved with ROLE.

Oracle, SQL scripts

Settting up get_vmstat.sh for colletinf CPU Usage.

Posted on 13-Jan-2006 By Admin No Comments on Settting up get_vmstat.sh for colletinf CPU Usage.

To collect CPU stats from Server following code needs to be setup. ( Step By Step ) Step-1 ====== Create a user named PERFSTAT/PERFSTAT. This is not for statspack, we only need 3 tables and package for this settings. Give appropriate default TS for same. Step-2 ====== create tables with following definitons: CREATE TABLE STATS$VMSTAT2…

Read More “Settting up get_vmstat.sh for colletinf CPU Usage.” »

Oracle, SQL scripts

Posts pagination

Previous 1 … 23 24 25 … 35 Next

Categories

  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • load SPM baseline from cursor cache05-Jun-2025
  • Drop all SPM baselines for SQL handle05-Jun-2025
  • Load SPM baseline from AWR05-Jun-2025
  • Drop specific SQL plan baseline – spm05-Jun-2025
  • findinfo.sql (SQL for getting CPU and Active session info)27-May-2025
  • SQL Tracker by SID sqltrackerbysid.sql22-Apr-2025
  • How to connect to Oracle Database with Wallet with Python.21-Mar-2025
  • JSON/XML Types in Oracle18-Mar-2025
  • CPU Core related projections12-Mar-2025
  • Exadata Basics10-Dec-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • All Hints for Oracle Databases Oracle
  • Search and replace editor command in vi Linux/Unix
  • Find_planinfo.sql Oracle
  • lck.sql Oracle
  • AWR license Oracle
  • DBMS_UTILITY PACKAGE Oracle
  • Oracle Data Direct to TAPE Oracle
  • 272332.1 CRS 10g Diagnostic Collection Guide Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme