【故障-ORACLE】OSWBB不能运行解决

故障环境:

操作系统:Enterprise Linux Enterprise Linux Server release 5.6 (Carthage)

Oswoswbb5201_B

故障现象:

[root@rac02 oswbb]#  ./startOSWbb.sh 30 240

Setting the archive log directory to/TMP/osw/oswbb/archive

 

Testing for discovery of OS Utilities...

VMSTAT found on your system.

IOSTAT found on your system.

MPSTAT found on your system.

 

执行启动命令后长时间挂在这里不动弹,检查后发现archive目录已经生成,但日志未生成。

 

通过shell脚本顺藤摸瓜,检查出实际最终执行的是文件OSWatcher.sh

搜索“found on your system”找到对应shell,发现脚本如下:

$MPSTAT > /dev/null 2>&1

if [ $? = 0 ]; then

  echo "MPSTAT found on your system."

  MPFOUND=1

else

  echo "Warning... MPSTAT not found on your system. No MPSTAT data will be collected."

  MPFOUND=0

fi

 

netstat > /dev/null 2>&1

if [ $? = 0 ]; then

  echo "NETSTAT found on your system."

  NETFOUND=1

else

  echo "Warning... NETSTAT not found on your system. No NETSTAT data will be collected."

  NETFOUND=0

fi

 

在检查netstat的时候,脚本前面少了个$,嗯,加上后再运行,ok,成功通过。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/11088128/viewspace-758414/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/11088128/viewspace-758414/

你可能感兴趣的:(shell,数据库,操作系统)