Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Oracle 10g Installation/Applying Patches Tips Oracle
  • Multiple listeners Oracle
  • Resolving RMAN Hung Jobs Oracle
  • Running select from V$ views from remote server Linux/Unix
  • arch_configUOCIOTTO.ora Oracle
  • Shuffle an array PHP/MYSQL/Wordpress
  • How to know current SID Oracle
  • telnet listening Linux/Unix
  • SQL Tracker by SID sqltrackerbysid.sql Oracle
  • CPU speed on Linux Linux/Unix
  • newupload.html PHP/MYSQL/Wordpress
  • oradebug ipcrm ipcs Oracle
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • executing Function from SQLPLUS prompt Oracle
  • set_env_dba Linux/Unix

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

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (392)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (341)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • MYSQL and Oracle Comparison for Oracle DBA24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • pvm_metric.sql for gathering report from vmstat tables Oracle
  • Rollback force for distributed transactions Oracle
  • Test Case for Inserting Multiple (2.3 Million rows in 26 Seconds) Oracle
  • Changing unix system clock when Oracle database is running. Oracle
  • Jai Shree Ram PHP/MYSQL/Wordpress
  • CPU speed on Linux Linux/Unix
  • How to find the real execution plan and binds used in that explain plan in Oracle 10g?? Oracle
  • Vivek Tuning for Row Locks. Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme