Search This Blog

Tuesday, December 21, 2010

Mount new disk in linux

fdisk -l
fdisk /dev/sdl
n
p
w

mkfs.ext3 -b 4096 /dev/sdl1
mkdir /oracle
# add in /etc/fstab the following line
/dev/sdl1 /oracle ext3 defaults 0 0
mount /oracle

Friday, January 22, 2010

Find if port 1521 is open using netstat( windows, unix )

Windows
========
netstat -an |find /i "listening" |find /i "1521"

Unix ( Aix - Linux etc)
==========================
netstat -an | grep LISTEN |grep 1521