【故障-ORACLE】OSWBB不能執行解決

浪漫雙魚發表於2013-04-13

故障環境:

作業系統: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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章