Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Import and export statements Oracle
  • Generating XML from SQLPLUS Oracle
  • Privileges Required to Create Procedures and Functions that uses objects from other schema. Oracle
  • v$backup.status information Oracle
  • 339939.1 Running Cluster Verification Utility to Diagnose Install Problems Oracle
  • process id based files and processes Linux/Unix
  • Convert multiple rows to single column Oracle
  • secure crt settings Linux/Unix
  • Single character replacement in Unix Linux/Unix
  • move_arch_files.ksh Linux/Unix
  • Multiple listeners Oracle
  • Benefits and Usage of RMAN with Standby Databases Oracle
  • metalink all dynamic view reference notes. Oracle
  • RAC 11g with vmware Oracle
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle

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

  • 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
  • Establishing trusted relationship between dbmonitor( central monitoring) and monitoring targets. Linux/Unix
  • handling filenname with space Linux/Unix
  • How to find password change date for user Oracle
  • db_status.sql Oracle
  • SYSOPER Mystery Oracle
  • How to Make Trace Files Created by Oracle Readable by All Users ? Oracle
  • TNSNAMES entries details Oracle
  • checking redhat linux version Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme