Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Composite Index creation tip from Vivek Oracle
  • Implementing Listener Security Oracle
  • How do I get Oracle to automatically start when my server boots up? Oracle
  • V$transaction notes for finding XID composition. Oracle
  • find_cons.sql Oracle
  • 556976.1 Oracle Clusterware: Components installed Oracle
  • move_arch_files.ksh Linux/Unix
  • To see mem usage and CPU usage system wide. Linux/Unix
  • alter database backup controlfile to trace Oracle
  • Debugging Shell FIles Linux/Unix
  • Temporary Tablespace Information and restriction. Oracle
  • All About oracle password and security from metalink Oracle
  • setting prompt display with .profile Linux/Unix
  • SQL_PROFILE – I explaination Oracle
  • catall.sh Linux/Unix

Category: Linux/Unix

Deleting first line and lastline of a file using sed

Posted on 04-Feb-2010 By Admin No Comments on Deleting first line and lastline of a file using sed

Delete last line of a file. =========================== sed ‘$d’ < input_file > output_file Delete First line of a file. ============================ sed ‘1d’ input_file > output_file

Linux/Unix, shell

Adding a new disk and mount it automatically. on VMWARE LINUX

Posted on 30-Jan-2010 By Admin No Comments on Adding a new disk and mount it automatically. on VMWARE LINUX

Adding a new disk and mount it automatically. Step-1 Add virtual disk to vmware server. ========================================= Step-2 Bounce the box ========================================= Step-3 Make sure the new hard drive should be identified by your linux box. ========================================= As following example, you can see I added /dev/sdc worth of 20GB. [root@oem ~]# fdisk -l Disk /dev/sda: 10.7…

Read More “Adding a new disk and mount it automatically. on VMWARE LINUX” »

Linux/Unix, shell

Sending email with file attachment.

Posted on 07-Jan-2010 By Admin No Comments on Sending email with file attachment.

Single File Attachemnt: ======================= cat test.dat|uuencode test.dat|mailx -s “subject” mailid Multiple file Attachment: ========================= (uuencode INPUTFILE $FILE_STRING.out ;uuencode INPUTFILE $FILE_STRING.err )|mailx -s “SUBJECT” $EMAIL_ID (uuencode INPUTFILE check_dr_notok.log ;uuencode INPUTFILE check_dr_ok.log )|mailx -s “Test multuple attachment” pmehta@1800flowers.com (uuencode check_dr_notok.log check_dr_notok.log ;uuencode check_dr_ok.log check_dr_notok.log)|mailx -s “Test multuple attachment” pmehta@1800flowers.com

Linux/Unix, shell

Kernel Parameters for Solaris

Posted on 05-Jan-2010 By Admin No Comments on Kernel Parameters for Solaris

* pre Solaris 10 * ——————- To view the current values of these parameters, enter the following commands: # grep noexec_user_stack /etc/system # /usr/sbin/sysdef | grep SEM # /usr/sbin/sysdef | grep SHM * Post Solaris 10 * =================== In Solaris 10, you are not required to make changes to the /etc/system file to implement the…

Read More “Kernel Parameters for Solaris” »

Linux/Unix, shell

checking redhat linux version

Posted on 12-Dec-2009 By Admin No Comments on checking redhat linux version

cat /etc/redhat-release

Linux/Unix, shell

More info about /proc folder and its relation with processes.

Posted on 27-Nov-2009 By Admin No Comments on More info about /proc folder and its relation with processes.

One of the most interesting directories on any Linux system is /proc, a virtual filesystem that provides a plethora of information on the hardware of the running system, and of the various processes running. In fact, many programs such as ps and top obtain their information by mining /proc. Some well-known virtual files in /proc…

Read More “More info about /proc folder and its relation with processes.” »

Linux/Unix, shell

process id based files and processes

Posted on 16-Nov-2009 By Admin No Comments on process id based files and processes

Following command can be used to find files used by specific processid. $ pfiles process_id Following command can be used to find files used by specific processid. $ pmap process_id

Linux/Unix, shell

cold backup scripts to copy locally

Posted on 28-Oct-2009 By Admin No Comments on cold backup scripts to copy locally

==>cat SOX_BACKUP.ksh #!/usr/bin/ksh # +———————————————————————— # | Usage : ./SOX_BACKUP.ksh # | Description : Cold Backup of Database. Automatically starts/stop the DB. # +———————————————————————— . /export/home/oracle/FLRSTB.env sqlplus -s /nolog /mnt/ORACLEBACKUP/files.log connect / as sysdba set term off set feedback off; set head off; set pagesize 150 select name||’ /mnt/ORACLEBACKUP/FLRPRD’ from v$datafile; exit; EOF cat /mnt/ORACLEBACKUP/files.log|grep…

Read More “cold backup scripts to copy locally” »

Linux/Unix, shell

Removing Ctrl-M from end of line using vi

Posted on 11-Oct-2009 By Admin No Comments on Removing Ctrl-M from end of line using vi

ou can remove the ^M by doing the following: Bring the datafile into the Unix editor vi. In command mode you would type in: :1,$s/^V^M// Make sure you are entering ‘control V’ and ‘control M’. The ‘control V’ says to accept the next character exactly as I type it. Adding the two slashes at the…

Read More “Removing Ctrl-M from end of line using vi” »

Linux/Unix, shell

replacing ^M character when passing files from Windows to Unix

Posted on 30-Sep-2009 By Admin No Comments on replacing ^M character when passing files from Windows to Unix

To replace the ^M ‘s on the screen in vi type :1, $ s/r/

Linux/Unix, shell

Posts pagination

Previous 1 2 3 … 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
  • note id 373303.1 Linux/Unix
  • Goldengate Tutorial Oracle
  • Good Doc 28-JUN-2006 Oracle
  • create database link syntax Oracle
  • Caching sequence in Memory Oracle
  • Jai Shree Ram Oracle
  • How to find password change date for user Oracle
  • USE_NL and INDEX hints example Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme