Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • plan10g.sql good1 Oracle
  • mutex in Oracle 10.2.0.2 or Oracle 10g Oracle
  • Does DBMS_JOB recompute the NEXT_DATE interval after or before Oracle
  • My Minimum Tuning Programs Oracle
  • online_bkup.sql Oracle
  • chk_space_SID.ksh Linux/Unix
  • cif crons Linux/Unix
  • v$backup.status information Oracle
  • Korn Shell Arithmatic Linux/Unix
  • oracle_env_10g_CADEV Linux/Unix
  • Directory wise folder wise space usage Linux/Unix
  • remove archfiles only when it is applied to DR rm_archfiles.sh Linux/Unix
  • telnet listening Linux/Unix
  • longtx.sql with the flag whether session is blocking any DML locks or not. Oracle
  • Changing default shell Linux/Unix

Year: 2005

To seee semaphores and shared memory segments in Solaris

Posted on 31-Aug-2005 By Admin No Comments on To seee semaphores and shared memory segments in Solaris

eaappprod21->UAS@(/export/home/oracle/paresh/uocuat)ipcs -A IPC status from as of Wed Aug 31 15:17:54 EDT 2005 T ID KEY MODE OWNER GROUP CREATOR CGROUP CBYTES QNUM QBYTES LSPID LRPID STIME RTIME CTIME Message Queues: T ID KEY MODE OWNER GROUP CREATOR CGROUP NATTCH SEGSZ CPID LPID ATIME DTIME CTIME ISMATTCH Shared Memory: m 0 0x500004cf –rw-r–r– root root…

Read More “To seee semaphores and shared memory segments in Solaris” »

Linux/Unix, shell

To see mem usage and CPU usage system wide.

Posted on 31-Aug-2005 By Admin No Comments on To see mem usage and CPU usage system wide.

Use $ top last pid: 17552; load averages: 0.04, 0.03, 0.04 15:16:01 93 processes: 88 sleeping, 2 zombie, 3 on cpu CPU states: % idle, % user, % kernel, % iowait, % swap Memory: 8192M real, 3841M free, 2867M swap in use, 5629M swap free PID USERNAME THR PRI NICE SIZE RES STATE TIME CPU…

Read More “To see mem usage and CPU usage system wide.” »

Linux/Unix, shell

How to know Number of CPUs on Sun Box

Posted on 30-Aug-2005 By Admin No Comments on How to know Number of CPUs on Sun Box

use $psrinfo 0 on-line since 03/10/05 14:49:00 1 on-line since 03/10/05 14:49:09 4 on-line since 03/10/05 14:49:09 5 on-line since 03/10/05 14:49:09 8 on-line since 03/10/05 14:49:09 9 on-line since 03/10/05 14:49:09 10 on-line since 03/10/05 14:49:09 11 on-line since 03/10/05 14:49:09 12 on-line since 03/10/05 14:49:09 13 on-line since 03/10/05 14:49:09

Linux/Unix, shell

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

Monitor and Trace Unix processes using truss

Posted on 23-Aug-2005 By Admin No Comments on Monitor and Trace Unix processes using truss

How does one monitor and trace Unix processes? To trace what a Unix process is doing enter: truss -rall -wall -p truss -p $ lsnrctl dbsnmp_start NOTE: The “truss” command works on SUN and Sequent. Use “tusc” on HP-UX, “strace” on Linux, “trace” on SCO Unix or call your system administrator to find the equivalent…

Read More “Monitor and Trace Unix processes using truss” »

Linux/Unix, shell

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

Posts pagination

Previous 1 … 6 7 8 … 16 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
  • telnet listening Linux/Unix
  • Distributed Transaction Troubleshooting. Oracle
  • create database link syntax Oracle
  • Very Good Oralce Internal Tuning Book Oracle
  • grep multuple patterns Linux/Unix
  • DB Console Mainenance. Oracle
  • plan10g.sql good1 Oracle
  • SAN Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme