Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Standby Database Behavior when a Datafile is Resized on the Primary Database Note:123883.1 Oracle
  • how to find OS block size Oracle
  • All About Trace Fils Oracle
  • How to stop OCSSD Daemon Oracle
  • Rename Tablespace Oracle
  • get_vmstat_solaris Oracle
  • online_bkup.sql Oracle
  • Kernel Parameter setting explaination for Processes Parameter Linux/Unix
  • scripts to take listener.log backup Linux/Unix
  • Monitor Long Running Job Oracle
  • Nice notes on wait events Oracle
  • Sort with ASCII order and Numeric Order Linux/Unix
  • Find Time Consuming SQL Statements in Oracle 10g Oracle
  • DBMS_SQL for alter session. Oracle
  • Temporary tablespace explaination Oracle

Category: Linux/Unix

Important Solaris Commands

Posted on 28-Sep-2005 By Admin No Comments on Important Solaris Commands

(*) To determine the size of the configured swap space, enter the following command: /usr/sbin/swap -s (*) To determine whether the system architecture is 64-bit, enter the following command: /bin/isainfo -kv This command should return the following output. If you do not see the expected output, you cannot install the 64-bit Oracle software on this…

Read More “Important Solaris Commands” »

Linux/Unix, shell

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

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 does one overcome the Unix 2 Gig file limit?

Posted on 23-Aug-2005 By Admin No Comments on How does one overcome the Unix 2 Gig file limit?

This example uses the Unix split command to create multiple files, each smaller than the Unix (and imp/exp) 2 Gigabyte file size limit. This method can typically be used for import, export and SQL*Loader operations. cd /tmp/data rm exp.dmp mknod exp.dmp p # mkfifo on certain Unix flavours split -b2047m /tmp/data/exp.dmp & imp scott/tiger file=/tmp/data/exp.dmp…

Read More “How does one overcome the Unix 2 Gig file limit?” »

Linux/Unix, shell

How does one SELECT a value from a table into a Unix variable? From SQL to Shell

Posted on 23-Aug-2005 By Admin No Comments on How does one SELECT a value from a table into a Unix variable? From SQL to Shell

One can select a value from a database column directly into a Unix environment variable. Look at the following shell script examples: #!/bin/sh VALUE=`sqlplus -silent user/password@instance

Linux/Unix, shell

Debugging Shell FIles

Posted on 11-Aug-2005 By Admin No Comments on Debugging Shell FIles

sh -x ./myshellfile.sh

Linux/Unix, shell

crontab syntax

Posted on 02-Aug-2005 By Admin No Comments on crontab syntax

***** Both hourly jobs ***** 01 * * * * /export/home/oracle/scripts/move_arch_files_uoc.ksh > /export/home/oracle/scripts/log/move_arch_files_uoc.log 2> /export/home/oracle/scripts/log/move_arch_files_uoc.err 01 * * * * /export/home/oracle/scripts/move_arch_files_cif.ksh > /export/home/oracle/scripts/log/move_arch_files_cif.log 2> /export/home/oracle/scripts/log/move_arch_files_cif.err ***** for 15 mins interval ***** 01,16,31,46 * * * * /export/home/oracle/scripts/move_arch_files_uoc.ksh > /export/home/oracle/scripts/log/move_arch_files_uoc.log 2> /export/home/oracle/scripts/log/move_arch_files_uoc.err

Linux/Unix, shell

move_arch_files.ksh /* Good One */

Posted on 02-Aug-2005 By Admin No Comments on move_arch_files.ksh /* Good One */

#!/bin/ksh a=`ps -ef|grep “move_arch_files.ksh”|grep -v grep|wc -l` if [ $a -gt 2 ] then echo “Exiting because of more than 1 Moving archive log script is running ” exit fi # ## Setting Environment information and variables # NODENAME=`hostname` ## change start ORACLE_SID=UAS LOG_FILE=/oracle/scripts/log/MOVE_UAS01.log ARCHMOUNTPOINT=/UASARCH DESTFOLDER=/uocdb7/archlog/UAS ### change end COMFORT_SPACE=75 NO_FILES_MOVED=0 NOTIFY_LIST=’dbaoracle@1800flowers.com’ cp /dev/null $LOG_FILE…

Read More “move_arch_files.ksh /* Good One */” »

Linux/Unix, shell

Posts pagination

Previous 1 … 12 13 14 15 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
  • Find Command Linux/Unix
  • FGA Part-I Oracle
  • move_arch_files.ksh /* Good One */ Linux/Unix
  • tuning commmand for cpu, ip and memory stats Linux/Unix
  • Removing Ctrl-M from end of line using vi Linux/Unix
  • This is from Temi Oracle
  • How to calculate PROCESSES parameter Oracle
  • Logic to chech # of parameters command line parameters Linux/Unix

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme