Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Distributed Transaction Troubleshooting. Oracle
  • Parallel DML Oracle
  • Test Case for Inserting Multiple (2.3 Million rows in 26 Seconds) Oracle
  • Another export with Query Oracle
  • pvm_rbs1.sql (to collect rbs info from db) Oracle
  • Goog notes on X$ tables Oracle
  • Oracle Recommended Patches — Oracle Database ID 756671.1 Oracle
  • how to find OS block size Oracle
  • Create type and Grant on it. Oracle
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • Explain Plan Output 2 Oracle
  • to see when crontab is changed. Linux/Unix
  • Jai Shree Ram Oracle
  • rm_backup_arch_file.ksh Linux/Unix
  • cache buffer chain latch Oracle

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 (388)
  • PHP/MYSQL/Wordpress (10)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (337)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • 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
  • Reading config file from other folder inside class24-Sep-2024
  • Python class import from different folders22-Sep-2024
  • Transfer SQL Profiles from One database to other database.05-Sep-2024
  • Load testing on Oracle 19C RAC with HammerDB18-Jan-2024

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • Which environment is used by currently running process ( Very good) Linux/Unix
  • SAN Linux/Unix
  • Absolute file number and relative file number Oracle
  • On solaris 10, “S” link is not part of $ORACLE_HOME/bin/oracle as default. ( For 9.2.0.8) Oracle
  • Session_info.ksh Linux/Unix
  • ORA-3136 Oracle
  • ORA-1841 Error Connecting to Upgraded Database After Set PASSWORD_LIFE_TIME Oracle
  • create trigger syntax Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme