에이전트 설치
와탭 데이터베이스 모니터링 서비스 이용을 위한 기본 설치 방법을 안내합니다.
구성도 확인
Oracle Pro 모니터링을 위해 데이터베이스 서버에 에이전트를 설치하는 구성입니다.

방화벽 설정은 필수이며, 모든 데이터는 암호화되어 전송됩니다. 와탭 수집 서버와의 통신을 위해 6600 포트를 사용합니다.
계정 생성
데이터베이스 모니터링을 하기 위해 필요한 권한을 가진 계정을 생성하세요. root(admin) 계정으로 로그인해 계정을 생성하세요.
-
일반적인 경우
SQLcreate user {DB_User} identified by {DB_Password};
grant create session to {DB_User};
grant select any dictionary to {DB_User}; -
멀티 테넌트 DB(Oracle 12c 이상) 에서 기본 모니터링을 사용할 경우:
c##계정 생성SQLcreate user c##{DB_User} identified by "{DB_Password}";
grant create session to c##{DB_User};
grant select any dictionary to c##{DB_User};
alter user c##{DB_User} set container_data = ALL container = CURRENT; -
kill session 기능을 사용할 경우
SQLgrant alter system to {DB_User}
-
히든 파라미터를 조회할 경우
SQLcreate view sys.whatap_vw_ksppi as select * from sys.x$ksppi;
grant select on sys.whatap_vw_ksppi to {DB_User};
create synonym {DB_User}.whatap_vw_ksppi for sys.whatap_vw_ksppi;
create view sys.whatap_vw_ksppcv as select * from sys.x$ksppcv;
grant select on sys.whatap_vw_ksppcv to {DB_User};
create synonym {DB_User}.whatap_vw_ksppcv for sys.whatap_vw_ksppcv;
권한에 따른 지원 기능 살펴보기
기본 권한 외의 권한은 사용자의 환경에 따라 부여하지 않아도 됩니다. 단, 일부 기능이 동작하지 않을 수 있습니다.
| 권한 | command (Single DB) | command (Multitenant DB) | 메뉴 및 기능 | 상세 내역 |
|---|---|---|---|---|
| 기본 권한 | grant create session to whatap; | grant create session to c##whatap; | 접속 | - |
grant select any dictionary to whatap; | grant select any dictionary to c##whatap; | 인스턴스 모니터링 / 멀티 인스턴스 모니터링 / SQL 통계 | 개별 권한 부여 시 다음 표 내용 참조 | |
| - | alter user c##whatap set container_data = ALL container = CURRENT; | 멀티태넌트 DB를 사용하는 경우(12C 이상) pdb 조회를 위한 필수 권한임 | ||
| 세션 킬 | grant alter system to whatap; | grant alter system to c##whatap container=all; | 액티브 세션 > 세션 킬 | - |
| 히든 파라미터 조회 | create view sys.whatap_vw_ksppi as select * from sys.x$ksppi;grant select on sys.whatap_vw_ksppi to DB_User;create synonym DB_User.whatap_vw_ksppi for sys.whatap_vw_ksppi; | 파라미터 조회 메뉴에 히든 파라미터 내용 포함 | 히든 파라미터를 조회하려면 별도의 뷰/시노님 생성 및 권한 부여 필요 | |
create view sys.whatap_vw_ksppcv as select * from sys.x$ksppcv;grant select on sys.whatap_vw_ksppcv to DB_User;create synonym DB_User.whatap_vw_ksppcv for sys.whatap_vw_ksppcv; | ||||
select any dictionary 대신 다음 권한을 개별로 부여해도 됩니다.
| 권한 | command (Single DB) | command (Multitenant DB) |
|---|---|---|
| 액티브 세션 / 락 트리 / 지표 정보 | grant select on v_$sqlarea to whatap; | grant select on v_$sqlarea to c##whatap; |
grant select on v_$transaction to whatap; | grant select on v_$transaction to c##whatap; | |
grant select on v_$instance to whatap; | grant select on v_$instance to c##whatap; | |
grant select on v_$sysstat to whatap; | grant select on v_$sysstat to c##whatap; | |
grant select on v_$lock to whatap; | grant select on v_$lock to c##whatap; | |
grant select on v_$sesstat to whatap; | grant select on v_$sesstat to c##whatap; | |
grant select on v_$event_name to whatap; | grant select on v_$event_name to c##whatap; | |
grant select on v_$session to whatap; | grant select on v_$session to c##whatap; | |
grant select on v_$sql to whatap; | grant select on v_$sql to c##whatap; | |
grant select on v_$process to whatap; | grant select on v_$process to c##whatap; | |
grant select on v_$statname to whatap; | grant select on v_$statname to c##whatap; | |
grant select on v_$system_event to whatap; | grant select on v_$system_event to c##whatap; | |
grant select on v_$osstat to whatap; | grant select on v_$osstat to c##whatap; | |
grant select on v_$px_session to whatap; | grant select on v_$px_session to c##whatap; | |
grant select on v_$sga to whatap; | grant select on v_$sga to c##whatap; | |
| - | grant select on v_$con_sysstat to c##whatap; | |
| 파라미터 정보 | grant select on v_$parameter to whatap; | grant select on v_$parameter to c##whatap; |
| Wait 정보 / Event 정보 | grant select on v_$event_name to whatap; | grant select on v_$event_name to c##whatap; |
grant select on v_$system_event to whatap | grant select on v_$con_system_event to c##whatap; | |
grant select on v_$system_wait_class to whatap; | grant select on v_$system_wait_class to c##whatap; | |
| - | grant select on v_$con_system_wait_class to c##whatap; | |
| Tablespace 정보 | grant select on dba_data_files to whatap; | grant select on cdb_data_files to c##whatap; |
grant select on dba_free_space to whatap; | grant select on cdb_free_space to c##whatap; | |
grant select on dba_temp_files to whatap; | grant select on v_$sort_segment to c##whatap; | |
grant select on v_$temp_extent_pool to whatap; | grant select on v_$tempfile to c##whatap; | |
grant select on v_$containers to whatap; (12c 이상) | grant select on v_$containers to c##whatap; |
노트
-
이미 있는 계정을 사용하고 싶다면 DB 유저 파일 생성으로 넘어가세요. 권한이 없을 경우 모니터링을 시작할 수 없습니다.
-
예시 코드에서
whatap은 DB 사용자 계정 이름입니다. 사용자가 이용하는 사용자 계정 이름으로 변경하세요.
- 예시 코드의
DB_Password