— Cleanup any unwanted trace files more than seven days old
find . *.trc -mtime +7 -exec rm {} \;— Show number of active Oracle dedicated connection users for a particular ORACLE_SID
ps -ef | grep $ORACLE_SID|grep -v grep|grep -v ora_|wc -l— Crontab Commands
List Current Jobs in Cron :
crontab -lEdit Crontab :
— Check if a Port is listening for any Service :
netstat -an | grep <port no>— To find files modified in the last n mins:
find . -mmin -n— To find files modified before n mins:
find . -mmin +n— To find files before n days:
find *.trc -mtime +10 -exec rm {} \;— To check port availability :
netstat -an|grep 7007|grep LISTEN— To find specific file in current directory :
find * -type f -iname XXENAPX.rdf— To Check Incoming Traffic :
From specific IP Address :
sudo tcpdump -i any host 172.27.7.177From specific port :
sudo tcpdump -i any port 443sudo tcpdump -i any port | grep -v 10.10.20.14sudo tcpdump -i any port 22 | grep -v 10.10.20.14— Check Host IP Address :
hostname -iDisclaimer:
This is an independent personal blog and is not affiliated with, sponsored by, or endorsed by Oracle Corporation. The views, explanations, and experiences expressed here are the author’s own. Commands, scripts, and procedures may be based on Oracle’s official documentation and are provided for educational and reference purposes only. Always test and validate them before use in a Live/Production environment. Sample output shown in this article was generated during the author’s own testing and may vary depending on the environment.
Please read full Disclaimer.