学习笔记
自己写了一个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
done/orauser
rm -rf /tmp/user
rm -rf /tmp/orauser
echo "end"
查看中间件端口而已