檢視ORACLE AS 埠指令碼

gaopengtttt發表於2009-01-08

學習筆記

自己寫了一個SHELL指令碼來看ORACLE AS 埠

echo "start"
echo "report will at /tmp/report next time will delete it"
rm -rf /tmp/report
cut -d : -f 1 /etc/passwd>/tmp/user
sed -n '/ora/'p /tmp/user>/tmp/orauser
while read NAME
do
 if [ -n $NAME ]
 then
 more home/oracle/OraHome_AS/install/portlist.ini|grep =|grep -v ^H>>/tmp/port
 echo $NAME>>/tmp/test
 more /tmp/port
 more /tmp/test
 sed 's/^/'$(cat /tmp/test)' /' /tmp/port>>/tmp/report
 rm -rf /tmp/port
 rm -rf /tmp/test
 fi
donerm -rf /tmp/user
rm -rf /tmp/orauser
echo "end"

檢視中介軟體埠而已

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/7728585/viewspace-531903/,如需轉載,請註明出處,否則將追究法律責任。

相關文章