Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Monitor Long Running Job Oracle
  • V$CONTROLFILE_RECORD_SECTION reference notes. Oracle
  • switchover for primary database Oracle
  • For Perl DBI installation and testing program PHP/MYSQL/Wordpress
  • PLSQL Table Syntax 2 Oracle
  • Locally Managed Tablespace and Dictionary managed tablespace (LMT-DMT) Oracle
  • Find sort details from Db find_sort.sql Oracle
  • reset Sequence Oracle
  • My FTP Job Scheduling for www.pvmehta.com PHP/MYSQL/Wordpress
  • good linux notes Linux/Unix
  • Oracle Standby Database Library Index from Metalink Oracle
  • How to analyze statspack or AWR report. Oracle
  • Handling LOB data in Oracle Oracle
  • CTAS with LONG Column for 9i and higher Oracle
  • Generating XML from SQLPLUS Oracle

Category: Oracle

Wait Based Tuning Step by step with SQL statement

Posted on 30-Aug-2005 By Admin No Comments on Wait Based Tuning Step by step with SQL statement

/********* Wait.sql ************/ set pages 2000 set lines 132 column p1text format a18 column event format a35 column WT format 9999 column SW format 9999 select sid, event,p1text,p1raw,p1,p2,p3,seconds_in_Wait “SW”,Wait_time “WT” from v$session_wait where event not in( ‘KXFQ: Dequeue Range Keys – Slave’, ‘KXFQ: Dequeuing samples’, ‘KXFQ: kxfqcls – consumer closing TQ’, ‘KXFQ: kxfqdeq – dequeue…

Read More “Wait Based Tuning Step by step with SQL statement” »

Oracle, SQL scripts

Renaming Oracle Instance Name

Posted on 30-Aug-2005 By Admin No Comments on Renaming Oracle Instance Name

Renaming oracle instance (from UOCTEST to UAS) Note : Remember to rename datafile, logfile, controlfile, parameterfile and passwordfile. Aslo need to change listener. ******** Parameter File *************************** (1) check whether instance is using SPFIlE. using “show parameter spfile” (2) SQL> connect / as sysdba SQL> “create pfile from spfile” in 10g by default it will…

Read More “Renaming Oracle Instance Name” »

Oracle, SQL scripts

How do I get Oracle to automatically start when my server boots up?

Posted on 23-Aug-2005 By Admin No Comments on How do I get Oracle to automatically start when my server boots up?

Make sure the entry for your database SID in the ORATAB file ends in a capital “Y”. Eg: # $ORACLE_SID:$ORACLE_HOME:[N|Y] # ORCL:/u01/app/oracle/product/8.0.5:Y # The scripts for starting and stopping databases are: $ORACLE_HOME/bin/dbstart and dbshut. SQL*Net (or Net8) is started with the lsnrctl command. Add the following entries to your /etc/rc2.d/S99dbstart (or equivalent) file: su –…

Read More “How do I get Oracle to automatically start when my server boots up?” »

Oracle, SQL scripts

Check Oracle installed products using one command

Posted on 23-Aug-2005 By Admin No Comments on Check Oracle installed products using one command

How does one list all installed Oracle products? One can display all installed products with version information by executing one of the following commands. For Oracle7 up to 8.0: cd $ORACLE_HOME/orainst ./inspdver For Oracle 8i and above: cd $ORACLE_HOME/install cat unix.rgs

Oracle, SQL scripts

Oracle Data Direct to TAPE

Posted on 23-Aug-2005 By Admin No Comments on Oracle Data Direct to TAPE

Can one export directly to a tape drive? —————————————– One can use a tape device name instead of a normal file name. When using a device, one also needs to specify the VOLSIZE= parameter. Look at this example: exp userid/password file=/dev/rmt0 table=emp volsize=1.2G Note: The volume size is a number ending with a “m”, “k”,…

Read More “Oracle Data Direct to TAPE” »

Oracle, SQL scripts

Export Oracle data and Compress at same time

Posted on 23-Aug-2005 By Admin No Comments on Export Oracle data and Compress at same time

If one cannot afford to buy extra disk space one can run the export and compress utilities simultaneously. This will prevent the need to get enough space for both the export file AND the compressed export file. Eg: # Make a pipe mknod expdat.dmp p # or mkfifo pipe # Start compress sucking on the…

Read More “Export Oracle data and Compress at same time” »

Oracle, SQL scripts

Good Link from metalink 1

Posted on 19-Aug-2005 By Admin No Comments on Good Link from metalink 1

Metalink Performance Library Index

Oracle, SQL scripts

Locally Managed Tablespace and Dictionary managed tablespace (LMT-DMT)

Posted on 19-Aug-2005 By Admin No Comments on Locally Managed Tablespace and Dictionary managed tablespace (LMT-DMT)

BENEFITS of Locally Managed Tablespaces ————————————— Locally managed tablespaces track all extent information in the tablespace itself, using bitmaps, resulting in the following benefits: * Improved concurrency and speed of space operations, because space allocations and deallocations predominantly modify locally managed resources (bitmaps stored in header files) rather than requiring centrally managed resources such as…

Read More “Locally Managed Tablespace and Dictionary managed tablespace (LMT-DMT)” »

Oracle, 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

Posts pagination

Previous 1 … 33 34 35 … 40 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
  • Metalink Note: Note:250655.1 : ADDM Basics USING THE AUTOMATIC DATABASE DIAGNOSTIC MONITOR Oracle
  • column level grant syntax Oracle
  • _B_TREE_BITMAP_PLANS issue during 8.1.7 to 9.2.0.8 upgrade Oracle
  • Space padding in korn shell Linux/Unix
  • lck.sql Oracle
  • Good RAC & Standby Notes Oracle
  • telnet listening Linux/Unix
  • RAC with RHEL4 and 11g Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme