Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • V$transaction notes for finding XID composition. Oracle
  • Windows based Command line mailing program like mailx (Sednmail for windows) PHP/MYSQL/Wordpress
  • Gather Stats manually using DBMS_STATS after disabling DBMS_SCHEDULER jobs as previous entry Oracle
  • Good Site for Oracle Internals Oracle
  • Best approach for Oracle database patching sequence to latest/required patchset along with CPU/PSU/any-other-one-off patch ID 865255.1 Oracle
  • Export Oracle data and Compress at same time Oracle
  • oracle Dba site Oracle
  • Jai Shree Ram Oracle
  • findobj.sql Oracle
  • myfile Oracle
  • Explain Plan Output 2 Oracle
  • Drop tempfiles from database Oracle
  • 272332.1 CRS 10g Diagnostic Collection Guide Oracle
  • This is im telling Kishore Oracle
  • Search and replace editor command in vi Linux/Unix

Shuffle an array

Posted on 06-Sep-2005 By Admin No Comments on Shuffle an array

#!c:perlbinperl use List::Util ‘shuffle’; # Following line is necessary of you are using perl to write html in browser. print “Content-type: text/htmlnn”; print ““; print “CGI Test“; print ““; print “Newer Verion of File Management Operations !“; @list=(“one”, “two”, “three”, “four”, “five”, “six”, “seven”, “eight”, “nine”, “ten”); print “list = @list”; @shuffled = shuffle(@list); print…

Read More “Shuffle an array” »

PHP/MYSQL/Wordpress

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

Posts pagination

Previous 1 … 46 47 48 … 56 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
  • Small sample shell program Linux/Unix
  • Find Multiple levels of object dependencies : depen.sql Oracle
  • scp with ssh2 Linux/Unix
  • grep multuple patterns Linux/Unix
  • pvm_pre_change.sql Oracle
  • Useful Solaris Commands on 28-SEP-2005 Linux/Unix
  • Read CSV file using PySpark Python/PySpark
  • DBMS_JOB all example Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme