How to kill all similar processes with single command (in this case opmn)
ps -ef | grep opmn |grep -v grep | awk ‘{print $2}’ |xargs -i kill -9 {}
Locating Files under a particular directory
Using AWK in UNIX
To remove a specific column of output from a UNIX command – for example to determine the UNIX process Ids for all Oracle processes on server (second column)
Changing the standard prompt for Oracle Users
Edit the .profile for the oracle user
Display top 10 CPU consumers using the ps command
Show number of active Oracle dedicated connection users for a particular ORACLE_SID
Display the number of CPU’s in Solaris
Display the number of CPU’s in AIX
Display RAM Memory size on Solaris
Display RAM memory size on AIX
First determine name of memory device
then assuming the name of the memory device is ‘mem0’
Swap space allocation and usage
Total number of semaphores held by all instances on server
View allocated RAM memory segments
Manually deallocate shared memeory segments
Show mount points for a disk in AIX
Display amount of occupied space (in KB) for a file or collection of files in a directory or sub-directory
Display total file space in a directory
Cleanup any unwanted trace files more than seven days old
Locate Oracle files that contain certain strings
Locate recently created UNIX files (in the past one day)
Finding large files on the server (more than 100MB in size)
Crontab :
To submit a task every Tuesday (day 2) at 2:45PM
45 14 2 * * /opt/oracle/scripts/tr_listener.sh > /dev/null 2>&1
To submit a task to run every 15 minutes on weekdays (days 1-5)
15,30,45 * 1-5 * * /opt/oracle/scripts/tr_listener.sh > /dev/null 2>&1
To submit a task to run every hour at 15 minutes past the hour on weekends (days 6 and 0)
15 * 0,6 * * opt/oracle/scripts/tr_listener.sh > /dev/null 2>&1
http://gavinsoorma.com/unix-for-the-dba/
http://blog.youkuaiyun.com/rgb_rgb/article/details/7907931