프린트 하기

OS환경 : Oracle Linux 6.8 (64bit)


DB 환경 : Oracle Database 11.2.0.4


방법 : Oracle Linux 6.8에 Oracle 11g R2 환경 OS Watcher 설치가이드

OSWatcher 다운로드 (Includes: [Video]) (Doc ID 301137.1)

OS Watcher 유저 가이드 (Doc ID 1531223.1)




설치파일 업로드 및 압축해제

1
2
3
$ ls -al /home/oracle/oswbb840.tar 
-rw-r--r--. 1 oracle dba 5253120 Mar 11 18:25 /home/oracle/oswbb840.tar
$ tar xvf oswbb840.tar 



설정파일 수정(기존)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
$ cp /home/oracle/oswbb/Exampleprivate.net /home/oracle/oswbb/private.net
$ cat private.net 
######################################################################
# This file contains examples of how to monitor private networks. To
# monitor your private networks create an executable file in this same
# directory named private.net. Use the example for your host os below.
# Make sure not to remove the last line in this file. Your file
# private.net MUST contain the rm lock.file line.
######################################################################
#Solaris Example
######################################################################
echo "zzz ***"`date`
traceroute --<node1-priv>
traceroute ---<node1-priv>
traceroute --<node2-priv>
traceroute ---<node2-priv>
######################################################################
#HP Example
######################################################################
echo "zzz ***"`date`
traceroute --<node1-priv> 
traceroute --<node2-priv> 
 
######################################################################
#Linux Example
######################################################################
echo "zzz ***"`date`
traceroute --<node1-priv> 
traceroute --<node2-priv>
######################################################################
#Tru64 Example
######################################################################
echo "zzz ***"`date`
traceroute --<node1-priv>
traceroute --<node2-priv>
######################################################################
#AIX Example
######################################################################
echo "zzz ***"`date`
traceroute -<node1-priv>
traceroute -<node2-priv>
######################################################################
# DO NOT DELETE THE FOLLOWING LINE!!!!!!!!!!!!!!!!!!!!!
######################################################################
rm locks/lock.file

해당 OS에 필요없는 내용은 수정 및 삭제



설정파일 수정(수정)

1
2
3
4
5
6
7
8
9
10
11
12
13
$ cat private.net ######################################################################
# This file contains examples of how to monitor private networks. To
# monitor your private networks create an executable file in this same
# directory named private.net. Use the example for your host os below.
# Make sure not to remove the last line in this file. Your file
# private.net MUST contain the rm lock.file line.
######################################################################
#Linux Example
######################################################################
echo "zzz ***"`date`
traceroute --F oracledb
#traceroute --<node2-priv>
rm locks/lock.file

싱글 db의 경우 <node2-priv>는 주석처리하고 <node1-priv>부분에 hostname을 작성하면됨



OS Watcher 실행

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
$ cd /home/oracle/oswbb
$ sh startOSWbb.sh
Info...You did not enter a value for snapshotInterval.
Info...Using default value = 30
Info...You did not enter a value for archiveInterval.
Info...Using default value = 48
Setting the archive log directory to/home/oracle/oswbb/archive
 
Testing for discovery of OS Utilities...
VMSTAT found on your system.
IOSTAT found on your system.
MPSTAT found on your system.
IP found on your system.
TOP found on your system.
Warning... /proc/slabinfo not found on your system. Check to see if this user has permission to access this file.
PIDSTAT found on your system.
NFSIOSTAT found on your system.
TRACEROUTE found on your system.
private.net already exists !
 
Discovery of CPU CORE COUNT
CPU CORE COUNT will be used by oswbba to automatically look for cpu problems
 
CPU CORE COUNT = 1
VCPUS/THREADS = 1
 
Discovery completed.
 
Starting OSWatcher v8.4.0  on Wed Mar 11 18:44:45 KST 2020
With SnapshotInterval = 30
With ArchiveInterval = 48
 
OSWatcher - Written by Carl Davis, Center of Expertise,
Oracle Corporation
For questions on install/usage please go to MOS (Note:301137.1)
 
Data is stored in directory: /home/oracle/oswbb/archive
 
Starting Data Collection...
 
oswbb heartbeat:Wed Mar 11 18:44:50 KST 2020
oswbb heartbeat:Wed Mar 11 18:45:20 KST 2020
oswbb heartbeat:Wed Mar 11 18:45:50 KST 2020
oswbb heartbeat:Wed Mar 11 18:46:20 KST 2020

실행중이라 42번째줄 ~ 45번째줄에 로깅된 시간이 나옴

아래 정지 명령을 사용하기 전까지는 세션을 종료해도 끊기지 않고 계속 기록이됨



OS Watcher 정지

1
$ sh stopOSWbb.sh



OS Watcher 로그 확인

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$ cd /home/oracle/oswbb/archive/
$ ls -al
total 72
drwxr-xr-x. 18 oracle oinstall 4096 Mar 11 18:44 .
drwxr-xr-x. 10 oracle oinstall 4096 Mar 11 18:44 ..
drwxr-xr-x.  2 oracle oinstall 4096 Mar 11 18:44 oswarp
drwxr-xr-x.  2 oracle oinstall 4096 Mar 11 18:44 oswcpuinfo
drwxr-xr-x.  2 oracle oinstall 4096 Mar 11 18:44 oswifconfig
drwxr-xr-x.  2 oracle oinstall 4096 Mar 11 18:44 oswiostat
drwxr-xr-x.  2 oracle oinstall 4096 Mar 11 18:44 oswmeminfo
drwxr-xr-x.  2 oracle oinstall 4096 Mar 11 18:44 oswmpstat
drwxr-xr-x.  2 oracle oinstall 4096 Mar 11 18:44 oswnetstat
drwxr-xr-x.  2 oracle oinstall 4096 Mar 11 18:44 oswnfsiostat
drwxr-xr-x.  2 oracle oinstall 4096 Mar 11 18:44 oswpidstat
drwxr-xr-x.  2 oracle oinstall 4096 Mar 11 18:44 oswpidstatd
drwxr-xr-x.  2 oracle oinstall 4096 Mar 11 18:44 oswprvtnet
drwxr-xr-x.  2 oracle oinstall 4096 Mar 11 18:44 oswps
drwxr-xr-x.  2 oracle oinstall 4096 Mar 11 18:44 oswslabinfo
drwxr-xr-x.  2 oracle oinstall 4096 Mar 11 18:44 oswtop
drwxr-xr-x.  2 oracle oinstall 4096 Mar 11 18:44 oswvmstat
drwxr-xr-x.  2 oracle oinstall 4096 Mar 11 18:44 oswxentop

OS Watcher 설치 경로/archive 경로에 수집한 로그들이 쌓임



OS Watcher로 60초 간격으로 데이터를 수집하고 336시간(2주) 동안의 데이터를 보관한뒤 파일을 자동으로 압축 저장

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
$ ./startOSWbb.sh 60 366 gzip
Info...Zip option IS specified. 
Info...OSW will use gzip to compress files.
Setting the archive log directory to/home/oracle/oswbb/archive
 
Testing for discovery of OS Utilities...
VMSTAT found on your system.
IOSTAT found on your system.
MPSTAT found on your system.
IP found on your system.
TOP found on your system.
Warning... /proc/slabinfo not found on your system. Check to see if this user has permission to access this file.
PIDSTAT found on your system.
NFSIOSTAT found on your system.
TRACEROUTE found on your system.
private.net already exists !
 
Discovery of CPU CORE COUNT
CPU CORE COUNT will be used by oswbba to automatically look for cpu problems
 
CPU CORE COUNT = 1
VCPUS/THREADS = 1
 
Discovery completed.
 
Starting OSWatcher v8.4.0  on Wed Mar 11 19:02:38 KST 2020
With SnapshotInterval = 60
With ArchiveInterval = 366
 
OSWatcher - Written by Carl Davis, Center of Expertise,
Oracle Corporation
For questions on install/usage please go to MOS (Note:301137.1)
 
Data is stored in directory: /home/oracle/oswbb/archive
 
Starting Data Collection...
 
oswbb heartbeat:Wed Mar 11 19:02:43 KST 2020
oswbb heartbeat:Wed Mar 11 19:03:44 KST 2020
oswbb heartbeat:Wed Mar 11 19:04:44 KST 2020

OS에 따라 다르겠지만 Linux 기준으로 1주간 약 200M 정도 쌓임



OS Watcher 삭제(uninstall)

1
$ rm -rf /home/oracle/oswbb

압축해제한 경로 자체를 삭제하면됨



참조 : http://www.unioneinc.co.kr/upload/board/[Unione]OSWatcher%EC%82%AC%EC%9A%A9%EB%B2%95.pdf

OSWatcher 다운로드 (Includes: [Video]) (Doc ID 301137.1)

OS Watcher 유저 가이드 (Doc ID 1531223.1)