OSWatcher使用過程中小問題解決方案,oswatcher解決方案
本文介紹一下在使用OSWatcher過程當中遇到的兩個問題的解決方案。如有更好的方法,敬請留言。
1:OSWatcher在設定檔裡面設定了參數OSW_COMPRESSION為gzip後,OSWatcher採集的資料檔案都會被壓縮。使用OSWatcher bba產生分析報表時就會遇到問題,oswbba.jar不能分析這些壓縮檔,那麼此時要怎麼處理呢?
1.1: 預設採集的資料都存放在archive(目錄路徑)下。如果不在這個目錄,請查看設定檔/etc/oswbb.conf中的OSW_ARCHIVE參數。先將這個目錄打包
[root@DB-Server oswbb]# tar -cvf archive.tar ./archive/
1.2: 建立目錄archive_unzip, 然後將打包目錄的解壓到這個目錄下,然後解壓所有的gz檔案。
[root@DB-Server oswbb]# mkdir archive_unzip
[root@DB-Server oswbb]# tar -xvf archive.tar -C /home/oracle/monitoring/oswbb/archive_unzip/
[root@DB-Server oswbb]# cd archive_unzip
[root@DB-Server archive_unzip]# cd archive
[root@DB-Server archive]# find . -name "*.gz" -exec gunzip {} \;
[root@DB-Server archive]# ls
1.3: 使用OSWatcher bba分析資料並產生相關檔案。
java -jar Xmx512M oswbba.jar -i /home/oracle/monitoring/oswbb/archive_unzip/archive/
2:當Linux伺服器沒有安裝案頭組件;或者runlevel為3;或者你無法使用VNC登入時,如何用OSWatcher bba來分析歸檔資料,產生圖片或報告檔案呢?
答案也很簡單,可以將採集的資料檔案打包後下載下來,然後放到自己的虛擬機器或測試伺服器,然後使用OSWatcher bba分析。步驟類似於上面,在此不做過多介紹。
本文地址:http://www.cnblogs.com/kerrycode/p/6605694.html