Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • SQL Server: How to see historical transactions SQL Server
  • Deleting first line and lastline of a file using sed Linux/Unix
  • Proc Compilation Oracle
  • Guide to Linux System Command Mastery Linux/Unix
  • How to find pinned objects from shared pool. (pinned via dbms_shared_pool.keep) Oracle
  • Search and replace editor command in vi Linux/Unix
  • find_err.sql for finding errors from dba_errors. Oracle
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • sid_wise_sql.sql Oracle
  • Find nth max and min. Oracle
  • moving lob object to other tablespace lob_mvmt.sql Oracle
  • OEM-troubleshooting on 20-MAY-08 Oracle
  • In Addition to previous note, following grants needed on PERFSTAT user. Oracle
  • proper cpu stats Linux/Unix
  • fdisk -l explaination about Primary-Logical-Extended Partitions Linux/Unix

Category: SQL scripts

Metalink Note: Note:250655.1 : ADDM Basics USING THE AUTOMATIC DATABASE DIAGNOSTIC MONITOR

Posted on 06-Sep-2005 By Admin No Comments on Metalink Note: Note:250655.1 : ADDM Basics USING THE AUTOMATIC DATABASE DIAGNOSTIC MONITOR

Metalink Note: Note:250655.1 : ADDM Basics USING THE AUTOMATIC DATABASE DIAGNOSTIC MONITOR —————————————————————————————— The Automatic Database Diagnostic Monitor (hereafter called ADDM) is an integral part of the Oracle RDBMS capable of gathering performance statistics and advising on changes to solve any exitsing performance issues measured. For this it uses the Automatic Workload Repository ( hereafter…

Read More “Metalink Note: Note:250655.1 : ADDM Basics USING THE AUTOMATIC DATABASE DIAGNOSTIC MONITOR” »

Oracle, SQL scripts

Import and export statements

Posted on 30-Aug-2005 By Admin No Comments on Import and export statements

exp userid=cs/cs file=cs_uocqa_30aug05.dmp owner=cs statistics=none exp userid=scsedb/scsedb file=scsedb_uocqa_30aug05.dmp owner=scsedb statistics=none exp userid=retaildb/retaildb file=retaildb_uocqa_30aug05.dmp owner=retaildb statistics=none exp userid=pnet/pnet file=pnet_uocqa_30aug05.dmp owner=pnet statistics=none exp userid=websitedb/websitedb file=websitedb_uocqa_30aug05.dmp owner=websitedb statistics=none imp userid=cs/cs file=cs_uocqa_30aug05.dmp fromuser=cs touser=cs imp userid=scsedb/scsedb file=scsedb_uocqa_30aug05.dmp fromuser=scsedb touser=scsedb imp userid=retaildb/retaildb file=retaildb_uocqa_30aug05.dmp fromuser=retaildb touser=retaildb imp userid=pnet/pnet file=pnet_uocqa_30aug05.dmp fromuser=pnet touser=pnet imp userid=websitedb/websitedb file=websitedb_uocqa_30aug05.dmp fromuser=websitedb touser=websitedb

Oracle, SQL scripts

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

Posts pagination

Previous 1 … 28 29 30 … 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
  • Oracle vs MYSQL Architecture differences (For DBAs) MYSQL
  • Formatter Explain plan Output 1 Oracle
  • Oracle Statspack survival Guide Oracle
  • Goog notes on X$ tables Oracle
  • sqlnet.ora paramters Oracle
  • nfs mount command Linux/Unix
  • All About Trace Fils Oracle
  • To see how much time or progress of long transaction Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme