ITPub博客

首页 > Linux操作系统 > Linux操作系统 > 查看ORACLE AS 端口脚本

查看ORACLE AS 端口脚本

原创 Linux操作系统 作者:gaopengtttt 时间:2009-01-08 15:32:53 0 删除 编辑

学习笔记

自己写了一个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博客 ” ,链接:https://blog.itpub.net/7728585/viewspace-531903/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
wxh gp_22389860 公众号 MySQL学习 书籍 深入理解MySQL主从原理

注册时间:2021-06-07

  • 博文量
    868
  • 访问量
    3496401