Skip to content

Commit 7a7afd7

Browse files
committed
update documents
1 parent 7e18dc8 commit 7a7afd7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

58 files changed

+1503
-3
lines changed

common-items/_db-create-monitoring-account.mdx

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
## 계정 생성{#uid}
22

3+
<Xclude product="db2">
4+
35
데이터베이스 모니터링을 하기 위해 필요한 권한을 가진 계정을 생성하세요. root(admin) 계정으로 로그인해 계정을 생성하세요.
46

7+
</Xclude>
8+
9+
<InDoc product="db2">
10+
11+
DB2의 사용자 계정은 운영 체제의 사용자 계정과 연동됩니다. 따라서 **OS user**를 생성한 후 DB에서 권한을 부여해야 합니다.
12+
13+
</InDoc>
14+
515
<InDoc product="altibase">
616

717
```sql title="SQL"
@@ -104,21 +114,58 @@ grant select, execute to DB_User;
104114
grant showplan to DB_User;
105115
```
106116

117+
</InDoc>
118+
119+
<InDoc product="db2">
120+
121+
### 모니터링을 위한 OS user 생성하기
107122

123+
DB를 설치한 계정과 같은 그룹으로 모니터링 계정을 생성하세요.
124+
125+
1. DB를 설치한 계정의 그룹 이름을 확인하세요.
126+
127+
```bash
128+
db2 get dbm cfg | grep "SYSADM_GROUP"
129+
```
130+
131+
1. **1**에서 확인한 그룹 이름의 `gid`를 확인하세요.
132+
133+
```bash
134+
cat /etc/passwd | grep {group_name}
135+
```
136+
137+
1. **2**에서 확인한 `gid`로 OS 계정을 생성하세요.
138+
139+
```bash
140+
useradd -g {gid} {DB_User}
141+
```
142+
143+
### 권한 부여하기
144+
145+
DB 설치 계정으로 DB에 접속하여 다음과 같이 권한을 부여하세요.
146+
147+
```sql title="v11.1 or later"
148+
GRANT EXECUTE ON FUNCTION SYSPROC.MON_GET_CONNECTION TO USER {DB_User};
149+
GRANT EXECUTE ON FUNCTION SYSPROC.MON_GET_DATABASE TO USER {DB_User};
150+
GRANT EXECUTE ON FUNCTION SYSPROC.MON_GET_TRANSACTION_LOG TO USER {DB_User};
151+
GRANT EXECUTE ON FUNCTION SYSPROC.MON_GET_BUFFERPOOL TO USER {DB_User};
152+
GRANT EXECUTE ON FUNCTION SYSPROC.MON_GET_ACTIVITY TO USER {DB_User};
153+
GRANT SELECT ON TABLE SYSIBMADM.MON_LOCKWAITS TO USER {DB_User};
154+
```
108155

109156
</InDoc>
110157

111158
:::note
112159

113-
<Xclude product="postgresql,mysql,altibase,mssql">
160+
<Xclude product="postgresql,mysql,altibase,mssql,db2">
114161

115162
* 이미 있는 계정을 사용하고 싶다면 [DB 유저 파일 생성](#create-db-user)으로 넘어가세요. 권한이 없을 경우 모니터링을 시작할 수 없습니다.
116163

117164
* 예시 코드에서 `whatap`은 DB 사용자 계정 이름입니다. 사용자가 이용하는 사용자 계정 이름으로 변경하세요.
118165

119166
</Xclude>
120167

121-
<InDoc product="postgresql,mysql,altibase,mssql">
168+
<InDoc product="postgresql,mysql,altibase,mssql,db2">
122169

123170
* 권한을 가진 계정이 있다면 이 단계를 생략하고 [다음 단계](#check-accesskey)로 넘어가세요.
124171

common-items/_db-download-dbx-agent.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ DBX 에이전트 파일을 다운로드하세요. 다음 두 가지 방법을
4444

4545
</InDoc>
4646

47+
<InDoc product="db2">
48+
49+
```bash title="BASH"
50+
wget -O whatap.agent.database.tar.gz "https://service.whatap.io/download/dbx_agent?type=db2&format=tar.gz"
51+
```
52+
53+
</InDoc>
54+
4755
* 명령어로 다운로드할 수 없다면 와탭 모니터링 서비스 화면에서 <Cmdname sid="download" className="uitext" /> 버튼을 선택하세요.
4856

4957
DBX 에이전트 파일을 다운로드한 다음 압축을 해제하세요.

common-items/_db-whatap-conf.mdx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ broker=query_editor,broker1
5353
<InDoc product="mssql">
5454

5555
```ini title="whatap.conf"
56-
license=x6054vg8d8e5e-z16ovlmhlau3st-z2uj26egaj4mt4
56+
license={AccessKey}
5757
whatap.server.host=13.124.11.223/13.209.172.35
5858

5959
dbms=mssql
@@ -74,4 +74,18 @@ connect_option=?encrypt=true;trustServerCertificate=true
7474

7575
:::
7676

77+
</InDoc>
78+
79+
<InDoc product="db2">
80+
81+
```ini title='whatap.conf'
82+
license={AccessKey}
83+
whatap.server.host=13.124.11.223/13.209.172.35 # WhaTap server information
84+
85+
dbms=db2
86+
db=DB
87+
db_ip={DB_Server_IP}
88+
db_port={DB_Server_Port}
89+
```
90+
7791
</InDoc>

db2/after-install-agent.mdx

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
id: after-install-agent
3+
title: 설치 점검 사항
4+
description: 데이터베이스 모니터링 설치를 모두 완료했습니다. 설치 후 확인 사항을 점검하세요.
5+
keywords: [ IBM DB2, 데이터베이스 모니터링, 에이전트 ]
6+
---
7+
8+
데이터베이스 모니터링 설치를 모두 완료했습니다. 설치 후 다음 사항을 통해 정상 설치했는지 확인하세요.
9+
10+
{/* 에이전트 설치 점검 */}
11+
import Dbcheckagentlog from "../common-items/_db-check-agent-log.mdx";
12+
13+
<Dbcheckagentlog />
14+
15+
{/* 로그 확인하기 */}
16+
import Dbcheckdblogs from "../common-items/_db-check-db-logs.mdx";
17+
18+
<Dbcheckdblogs />
19+
20+
{/* 에이전트 프로세스 확인하기 */}
21+
import Dbcheckagentprocess from "../common-items/_db-check-agent-process.mdx";
22+
23+
<Dbcheckagentprocess />
24+
25+
{/* 모니터링 확인하기 */}
26+
import Dbcheckmonitoringagentlists from "../common-items/_db-check-monitoring-agent-lists.mdx";
27+
28+
<Dbcheckmonitoringagentlists />

db2/agent-dbx-settings.mdx

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
---
2+
id: agent-dbx-settings
3+
title: DBX 에이전트 설정
4+
description: whatap.conf 파일에 설정할 수 있는 옵션에 대해 안내합니다.
5+
keywords: [ IBM DB2, 데이터베이스 모니터링, DBX 에이전트 ]
6+
---
7+
8+
import AWSRDSdesc from '../common-items/_import_aws-rds-desc.mdx';
9+
10+
DBX 에이전트에 필요한 설정은 *whatap.conf* 파일에 작성합니다. 설정할 수 있는 옵션은 다음을 참조하세요.
11+
12+
## 기본 옵션
13+
14+
import Dbagentdbxbasicoption from "../common-items/_db-agent-dbx-basic-option.mdx";
15+
16+
<Dbagentdbxbasicoption />
17+
18+
19+
## 데이터 수집
20+
21+
import Dbagentsettingdatacollection from "../common-items/_db-agent-setting-data-collection.mdx";
22+
23+
<Dbagentsettingdatacollection />
24+
25+
### Top 오브젝트 사용 설정하기
26+
27+
다음은 <Cmdname sid="dbObjectInfo" />에 대한 정보를 조회하기 위한 에이전트 설정입니다. <Cmdname sid="dbObjectInfo" /> 메뉴에 대한 자세한 내용은 [다음 문서](analysis-top-object)를 참조하세요.
28+
29+
import Dbpgtopobjectagentsetting from "../common-items/_db-pg-top-object-agent-setting.mdx";
30+
31+
<Dbpgtopobjectagentsetting />
32+
33+
34+
## AWS RDS CloudWatch 적용{#using-aws-rds}
35+
36+
<AWSRDSdesc name='db_postgresql_counter' />
37+
38+
import Dbagentaws from "../common-items/_db-agent-aws.mdx";
39+
40+
<Dbagentaws />
41+
42+
43+
{/* AES 256 암호화 적용 */}
44+
import Dbaes256encrypt from "../common-items/_db-aes-256-encrypt.mdx";
45+
46+
<Dbaes256encrypt />
47+
48+
import Dbsettingagentnamedetails from "../common-items/_db-setting-agent-name-details.mdx";
49+
50+
<Dbsettingagentnamedetails level={2} agentType="DBX" />

db2/agent-manage.mdx

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
id: agent-manage
3+
title: 관리하기
4+
description: 에이전트를 업데이트하거나 삭제하는 방법을 알아봅니다.
5+
keywords: [ IBM DB2, 데이터베이스, 데이터베이스 모니터링 ]
6+
---
7+
8+
{/* 에이전트 업데이트*/}
9+
import Dbupdateagent from "../common-items/_db-update-agent.mdx";
10+
11+
<Dbupdateagent />
12+
13+
:::note
14+
15+
IBM DB2 모니터링 V2를 이용하기 위한 DBX 에이전트의 최소 버전은 1.6.7입니다.
16+
17+
:::
18+
19+
## 에이전트 삭제
20+
21+
{/* 에이전트 설치 서버에서 삭제하기 */}
22+
import Dbuninstallagentinstalledserver from "../common-items/_db-uninstall-agent-installed-server.mdx";
23+
24+
<Dbuninstallagentinstalledserver />
25+
26+
{/* 서비스 화면에서 삭제하기 */}
27+
import Dbunistallagentinservice from "../common-items/_db-unistall-agent-in-service.mdx";
28+
29+
<Dbunistallagentinservice />
30+
31+
import V2management from "../common-items/_db-v2-management.mdx";
32+
33+
<V2management level={2} />

db2/agent-settings.mdx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
id: agent-settings
3+
title: 설정하기
4+
description: 데이터베이스 에이전트 서버에 있는 whatap.conf 파일을 통해 설정할 수 있는 옵션에 대해 알아봅니다.
5+
keywords: [ IBM DB2, 데이터베이스, 데이터베이스 모니터링 ]
6+
---
7+
8+
import Dbagentsettingsdesc from "../common-items/_db-agent-settings-desc.mdx";
9+
10+
<Dbagentsettingsdesc />
11+
12+
{/* 에이전트 구성*/}
13+
import Dbstructureofagent from "../common-items/_db-structure-of-agent.mdx";
14+
15+
<Dbstructureofagent />
16+
17+
{/* 에이전트 설정*/}
18+
import Dbsetagentdesc from "../common-items/_db-set-agent-desc.mdx";
19+
20+
<Dbsetagentdesc />
21+
22+
<DocCardList/>

db2/agent-xos-settings.mdx

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
id: agent-xos-settings
3+
title: XOS 에이전트 설정
4+
description: 데이터베이스 서버의 자원을 추가로 모니터링하기 위한 설정 방법을 제공합니다.
5+
keywords: [ IBM DB2, 데이터베이스 모니터링, XOS 에이전트 ]
6+
---
7+
8+
import FileOptNote from '../common-items/_import_v2-file-option-note.mdx';
9+
10+
import Dbagentxossettingsdesc from "../common-items/_db-agent-xos-settings-desc.mdx";
11+
12+
<Dbagentxossettingsdesc />
13+
14+
import Dbxoswhatapconf from "../common-items/_db-xos-whatap-conf.mdx";
15+
16+
<Dbxoswhatapconf />
17+
18+
import Dbxosconf from "../common-items/_db-xos-conf.mdx";
19+
20+
<Dbxosconf />
21+
22+
<FileOptNote ver='1.6.7'/>
23+
24+
import Dbrunxos from "../common-items/_db-run-xos.mdx";
25+
26+
<Dbrunxos />

db2/analysis-count-trend.mdx

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
id: analysis-count-trend
3+
title: 카운트 추이 비교
4+
description: 데이터베이스 운용 추이를 확인하고 비교할 수 있습니다.
5+
keywords: [ IBM DB2, 데이터베이스, 분석, 카운트 추이 ]
6+
---
7+
8+
{/* description*/}
9+
import Dbv2counttrenddesc from "../common-items/_db-v2-count-trend-desc.mdx";
10+
11+
<Dbv2counttrenddesc />
12+
13+
14+
{/* ## 기본 화면 안내*/}
15+
import Dbv2counttrendbasicusage from "../common-items/_db-v2-count-trend-basic-usage.mdx";
16+
17+
<Dbv2counttrendbasicusage />
18+
19+
{/* ### 비교 대상 선택하기*/}
20+
import Dbv2counttrendselectinstance from "../common-items/_db-v2-count-trend-select-instance.mdx";
21+
22+
<Dbv2counttrendselectinstance />
23+
24+
{/* ### 액티브 세션 정보 비교하기*/}
25+
import Dbv2counttrendcompare from "../common-items/_db-v2-count-trend-compare.mdx";
26+
27+
<Dbv2counttrendcompare />
28+
29+
{/* ### 특정 시간 비교하기*/}
30+
import Dbv2counttrendcomparetime from "../common-items/_db-v2-count-trend-compare-time.mdx";
31+
32+
<Dbv2counttrendcomparetime />
33+
34+
{/*## 프리셋*/}
35+
import Dbv2counttrendspreset from "../common-items/_db-v2-count-trends-preset.mdx";
36+
37+
<Dbv2counttrendspreset />
38+
39+
{/*컬럼 정보 안내*/}
40+
import Postgresqlcolumn from "../common-items/_db_postgresql-column.mdx";
41+
42+
<Postgresqlcolumn level={2} />

db2/analysis-databaseparameter.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
id: analysis-databaseparameter
3+
title: 데이터베이스 파라미터
4+
description: 데이터베이스의 파라미터 값을 조회하고 날짜별로 비교할 수 있습니다.
5+
keywords: [ IBM DB2, 데이터베이스, 분석, 데이터베이스 파라미터 ]
6+
---
7+
8+
import Dbdatabaseparameterdesc from "../common-items/_db-databaseparameter-desc.mdx";
9+
10+
<Dbdatabaseparameterdesc />

0 commit comments

Comments
 (0)