SlideShare a Scribd company logo
Junchol Park
Principal Technology Cloud Architect
Oracle Digital Prime Tech SE Team
2021.11
Database Management 설정 방법
Database Management Overview
• Basic Management : 무료
• Basic 모니터링 메트릭
• CDB Performance Hub의 ASH 분석과 SQL Monitoring
• Full Management : 유료
• + Basic Management
• Advanced Performance Hub(ADDM, Blocking Sessions)
• SQL Job
• Tablespace monitoring
• (Plan) PDB 모니터링
Database Management Overview
• Basic Management : 무료
• 14 basic monitoring metrics such as CpuUtilization, StorageAllocated, and UserCalls.
These metrics are displayed in the Oracle Cloud Infrastructure Monitoring service and on the Database Details
page of the database after Database Management is enabled.
• ASH Analytics and SQL Monitoring features in Performance Hub for CDBs.
Note that these features are currently not available for PDBs.
• Full Management : $0.04 OCPU Per Hour (월 환산시 1 OCPU당 $29.76)
• Features available as part of Basic Management.
• Monitoring and management capabilities for your fleet of databases.
Note that these capabilities are currently not available for PDBs.
• SKU features, which include advanced Performance Hub features such as Automatic Database Diagnostic
Monitor (ADDM) and Blocking Sessions and other features such as SQL Jobs and Tablespace monitoring.
• For the Oracle Database Standard Edition, it does not include Performance Hub features.
• Manamgent Agent : External Database 경우 설치 필요하고 DBCS는 필요치 않음
설정 방법
Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted
4
단계 1) DBCS에 모니터링 계정 활성화
• DBCS CDB로 접속하여 ‘dbsnmp’ 계정 활성화
SQL > alter user dbsnmp account unlock;
# 패스워드는 FIPS 정책에 따라 14자리 이상, 대/소문자/숫자/특수문자 혼용
SQL > alter user dbsnmp identified by <password>;
# Performance Hub와 AWR Explorer 를 위해 권한 부여
SQL > GRANT CREATE PROCEDURE to dbsnmp;
SQL > GRANT SELECT ANY DICTIONARY, SELECT_CATALOG_ROLE to dbsnmp;
SQL > GRANT ALTER SYSTEM to dbsnmp;
SQL > GRANT ADVISOR to dbsnmp;
SQL > GRANT EXECUTE ON DBMS_WORKLOAD_REPOSITORY to dbsnmp;
단계 2) DB패스워드에 대해 Vault Secret 생성
* DB User 패스워드 보안을 위해 Secret Key를 이용
단계 3) Private Endpoint 생성
• Database Tools의 Private Endpoint와는 별개임
• Public Subnet으로 선택하여도 Public IP를 받지 못 하므로, DB와 동일한 Subnet으로 생성하는 것을 권장
• https://docs.oracle.com/en-us/iaas/database-management/doc/perform-database-management-prerequisite-tasks.html
단계 3) Private Endpoint 생성
• RAC DB 경우는 RAC 옵션을 체크해야 함
• 촤측은 DB와 동일한 Subnet을 설정한 사례임
• Private Endpoint에 Private IP가 할당됨
단계 4) 방화벽 오픈
• Private Endpoint → DB 로 접근이 가능하도록 방화벽 오픈
단계 5) DB Management를 위한 Policy 등록
# DB Mng가 Vault Secret를 읽기 위한 권한
Allow service dpd to read secret-family
in compartment <Vault Location>
where target.vault.id = ‘<Vault OCID>’
단계 6) DB Managment 활성화
모니터링 화면(Basic)
Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted
12
DBCS에서 Metric 조회 가능(Basic / Full 모두 동일)
Monitoring에서 Metric 조회 가능(Basic / Full 모두 동일)
무료인 Basic 옵션 경우, Fleet Summary 보여지지 않음
무료인 Basic 옵션 경우, 추가적인 상세 모니터링 불가능
모니터링 화면(Full)
Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted
17
DBCS에서 Metric 조회 가능(Basic / Full 모두 동일)
Monitoring에서 Metric 조회 가능(Basic / Full 모두 동일)
Full 옵션 경우, Fleet Summary 보여짐. 단 현재는 CDB 관련 사항만 보여짐
Full 옵션 경우, 추가적인 상세 모니터링이 가능
Full 옵션에서만 제공
Full 옵션에서만 제공
Full 옵션에서만 제공
Full 옵션에서만 제공
Full 옵션에서만 제공
Full 옵션에서만 제공
Full 옵션에서만 제공
Full 옵션에서만 제공
Full 옵션에서만 제공
JOB 실행(Full 옵션만 가능)
Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted
31
Policy 등록
# DB내 Agent의 Dynamic Group 생성
ALL {resource.type=‘managementagent’, resource.compartment.id=‘{DBCS Compartment OCID}’}
# Bucket 읽기 권한
Allow dynamic-group Management-Agents-Group to read buckets in compartment ABC
where request.principal.type = 'managementagent'
# Object 생성 및 확인 권한
Allow dynamic-group Management-Agents-Group to manage objects in compartment ABC
where all {request.principal.type = 'managementagent',
any {request.permission='OBJECT_CREATE', request.permission='OBJECT_INSPECT'}}
# DB Managment의 scheduled job의 결과를 Object Storage에 저장하기 위한 권한
Allow service dpd to manage objects in compartment ABC
https://docs.oracle.com/en-us/iaas/database-management/doc/permissions-required-database-management.html
* scheduled job의 결과를 Object Storage에 저장하기 위해 필요한 권한
OCI Database Management 설정 방법
OCI Database Management 설정 방법
OCI Database Management 설정 방법

More Related Content

PDF
Swiftで、Webサーバにデータを送信・登録しよう!
PDF
Oracle Databaseを用いて学ぶ RDBMSの基本 (抜粋版) - JPOUG Oracle Database入学式 2016
PPTX
Jetpack Compose.pptx
PDF
第18回しゃちほこオラクル俱楽部
ODP
Java 9 Features
PPTX
Introduction to Spring Boot
PPTX
What’s New in Angular 14?
PPTX
Spring Boot
Swiftで、Webサーバにデータを送信・登録しよう!
Oracle Databaseを用いて学ぶ RDBMSの基本 (抜粋版) - JPOUG Oracle Database入学式 2016
Jetpack Compose.pptx
第18回しゃちほこオラクル俱楽部
Java 9 Features
Introduction to Spring Boot
What’s New in Angular 14?
Spring Boot

What's hot (20)

PDF
From Android NDK To AOSP
PDF
最速・最短・最簡単でKubernetesを始めるハウツー with k0s
PDF
初心者でもわかるActive directoryの基本
PPT
MySQL源码分析.02.Handler API
PDF
Svelte JS introduction
PPTX
Lessons-Learned-SwiftUI.pptx
PPTX
Toronto Virtual Meetup #7 - Anypoint VPC, VPN and DLB Architecture
PDF
Oracle APEX Social Login
PDF
プロトコルから見るID連携
PDF
確実な再起動からはじめる クラウドネイティブオペレーション
PDF
AWSのログ管理ベストプラクティス
PDF
3000 tu-vung-tieng-anh-thong-dung-nhat-cua-oxford
PPTX
Oracle Container Engine for Kubernetes (OKE) ご紹介 [2021年5月版]
PPTX
Oracle ACFS High Availability NFS Services (HANFS)
PDF
Oracle Database Appliance X5-2 アップデート内容のご紹介
PDF
Android Jetpack Compose - Turkey 2021
PDF
Sql Antipatterns Strike Back
PPTX
MS Sql Server: Joining Databases
PDF
Models for hierarchical data
PDF
第6回jduc勉強会 dynamics 365 新機能 外部apiと連携できる仮想エンティティの活用方法
From Android NDK To AOSP
最速・最短・最簡単でKubernetesを始めるハウツー with k0s
初心者でもわかるActive directoryの基本
MySQL源码分析.02.Handler API
Svelte JS introduction
Lessons-Learned-SwiftUI.pptx
Toronto Virtual Meetup #7 - Anypoint VPC, VPN and DLB Architecture
Oracle APEX Social Login
プロトコルから見るID連携
確実な再起動からはじめる クラウドネイティブオペレーション
AWSのログ管理ベストプラクティス
3000 tu-vung-tieng-anh-thong-dung-nhat-cua-oxford
Oracle Container Engine for Kubernetes (OKE) ご紹介 [2021年5月版]
Oracle ACFS High Availability NFS Services (HANFS)
Oracle Database Appliance X5-2 アップデート内容のご紹介
Android Jetpack Compose - Turkey 2021
Sql Antipatterns Strike Back
MS Sql Server: Joining Databases
Models for hierarchical data
第6回jduc勉強会 dynamics 365 新機能 外部apiと連携できる仮想エンティティの活用方法
Ad

Similar to OCI Database Management 설정 방법 (20)

PDF
[2015 07-06-윤석준] Oracle 성능 최적화 및 품질 고도화 4
PDF
[찾아가는세미나] 클라우드 데이터 가상화솔루션
PDF
steeleye Replication
PDF
SQL Azure 실무 도입하기
PPTX
Bigquery와 airflow를 이용한 데이터 분석 시스템 구축 v1 나무기술(주) 최유석 20170912
PDF
Alluxio: Data Orchestration on Multi-Cloud
PDF
넥슨 글로벌 플랫폼 구축 이야기 : DB Migration case study (임현수 플랫폼인프라실 Technical Manager, 넥...
PPTX
SteelEye 표준 제안서
PDF
[오픈소스컨설팅]이기종 WAS 클러스터링 솔루션- Athena Dolly
PDF
[웨비나] Follow me! 클라우드 인프라 구축 기본편 - 강지나 테크 에반젤리스트
PDF
[Pgday.Seoul 2018] replacing oracle with edb postgres
PDF
엔터프라이즈 클라우드 마이그레이션 준비와 실행. 그리고, 클라우드 운영 모범 사례 공유-최지웅, 오픈소스컨설팅 CTO / 장진환, 스마일샤...
PDF
[2015 Oracle Cloud Summit] 3. Database as a Service_Private Cloud상의 DB as a S...
PDF
[AWS Media Symposium 2019] 고객사례 | SBS Web Service Cloud Migration Process - 김...
PDF
클라우드 환경에서 알아야할 성능 이야기
PDF
MySQL Performance Tuning (In Korean)
PPTX
CDNetowks MariaDB 5.5 Upgrade Case Study
PDF
OCI Database Tools 설정 방법
PDF
오픈소스 모니터링비교
[2015 07-06-윤석준] Oracle 성능 최적화 및 품질 고도화 4
[찾아가는세미나] 클라우드 데이터 가상화솔루션
steeleye Replication
SQL Azure 실무 도입하기
Bigquery와 airflow를 이용한 데이터 분석 시스템 구축 v1 나무기술(주) 최유석 20170912
Alluxio: Data Orchestration on Multi-Cloud
넥슨 글로벌 플랫폼 구축 이야기 : DB Migration case study (임현수 플랫폼인프라실 Technical Manager, 넥...
SteelEye 표준 제안서
[오픈소스컨설팅]이기종 WAS 클러스터링 솔루션- Athena Dolly
[웨비나] Follow me! 클라우드 인프라 구축 기본편 - 강지나 테크 에반젤리스트
[Pgday.Seoul 2018] replacing oracle with edb postgres
엔터프라이즈 클라우드 마이그레이션 준비와 실행. 그리고, 클라우드 운영 모범 사례 공유-최지웅, 오픈소스컨설팅 CTO / 장진환, 스마일샤...
[2015 Oracle Cloud Summit] 3. Database as a Service_Private Cloud상의 DB as a S...
[AWS Media Symposium 2019] 고객사례 | SBS Web Service Cloud Migration Process - 김...
클라우드 환경에서 알아야할 성능 이야기
MySQL Performance Tuning (In Korean)
CDNetowks MariaDB 5.5 Upgrade Case Study
OCI Database Tools 설정 방법
오픈소스 모니터링비교
Ad

OCI Database Management 설정 방법

  • 1. Junchol Park Principal Technology Cloud Architect Oracle Digital Prime Tech SE Team 2021.11 Database Management 설정 방법
  • 2. Database Management Overview • Basic Management : 무료 • Basic 모니터링 메트릭 • CDB Performance Hub의 ASH 분석과 SQL Monitoring • Full Management : 유료 • + Basic Management • Advanced Performance Hub(ADDM, Blocking Sessions) • SQL Job • Tablespace monitoring • (Plan) PDB 모니터링
  • 3. Database Management Overview • Basic Management : 무료 • 14 basic monitoring metrics such as CpuUtilization, StorageAllocated, and UserCalls. These metrics are displayed in the Oracle Cloud Infrastructure Monitoring service and on the Database Details page of the database after Database Management is enabled. • ASH Analytics and SQL Monitoring features in Performance Hub for CDBs. Note that these features are currently not available for PDBs. • Full Management : $0.04 OCPU Per Hour (월 환산시 1 OCPU당 $29.76) • Features available as part of Basic Management. • Monitoring and management capabilities for your fleet of databases. Note that these capabilities are currently not available for PDBs. • SKU features, which include advanced Performance Hub features such as Automatic Database Diagnostic Monitor (ADDM) and Blocking Sessions and other features such as SQL Jobs and Tablespace monitoring. • For the Oracle Database Standard Edition, it does not include Performance Hub features. • Manamgent Agent : External Database 경우 설치 필요하고 DBCS는 필요치 않음
  • 4. 설정 방법 Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted 4
  • 5. 단계 1) DBCS에 모니터링 계정 활성화 • DBCS CDB로 접속하여 ‘dbsnmp’ 계정 활성화 SQL > alter user dbsnmp account unlock; # 패스워드는 FIPS 정책에 따라 14자리 이상, 대/소문자/숫자/특수문자 혼용 SQL > alter user dbsnmp identified by <password>; # Performance Hub와 AWR Explorer 를 위해 권한 부여 SQL > GRANT CREATE PROCEDURE to dbsnmp; SQL > GRANT SELECT ANY DICTIONARY, SELECT_CATALOG_ROLE to dbsnmp; SQL > GRANT ALTER SYSTEM to dbsnmp; SQL > GRANT ADVISOR to dbsnmp; SQL > GRANT EXECUTE ON DBMS_WORKLOAD_REPOSITORY to dbsnmp;
  • 6. 단계 2) DB패스워드에 대해 Vault Secret 생성 * DB User 패스워드 보안을 위해 Secret Key를 이용
  • 7. 단계 3) Private Endpoint 생성 • Database Tools의 Private Endpoint와는 별개임 • Public Subnet으로 선택하여도 Public IP를 받지 못 하므로, DB와 동일한 Subnet으로 생성하는 것을 권장 • https://docs.oracle.com/en-us/iaas/database-management/doc/perform-database-management-prerequisite-tasks.html
  • 8. 단계 3) Private Endpoint 생성 • RAC DB 경우는 RAC 옵션을 체크해야 함 • 촤측은 DB와 동일한 Subnet을 설정한 사례임 • Private Endpoint에 Private IP가 할당됨
  • 9. 단계 4) 방화벽 오픈 • Private Endpoint → DB 로 접근이 가능하도록 방화벽 오픈
  • 10. 단계 5) DB Management를 위한 Policy 등록 # DB Mng가 Vault Secret를 읽기 위한 권한 Allow service dpd to read secret-family in compartment <Vault Location> where target.vault.id = ‘<Vault OCID>’
  • 11. 단계 6) DB Managment 활성화
  • 12. 모니터링 화면(Basic) Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted 12
  • 13. DBCS에서 Metric 조회 가능(Basic / Full 모두 동일)
  • 14. Monitoring에서 Metric 조회 가능(Basic / Full 모두 동일)
  • 15. 무료인 Basic 옵션 경우, Fleet Summary 보여지지 않음
  • 16. 무료인 Basic 옵션 경우, 추가적인 상세 모니터링 불가능
  • 17. 모니터링 화면(Full) Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted 17
  • 18. DBCS에서 Metric 조회 가능(Basic / Full 모두 동일)
  • 19. Monitoring에서 Metric 조회 가능(Basic / Full 모두 동일)
  • 20. Full 옵션 경우, Fleet Summary 보여짐. 단 현재는 CDB 관련 사항만 보여짐
  • 21. Full 옵션 경우, 추가적인 상세 모니터링이 가능
  • 31. JOB 실행(Full 옵션만 가능) Confidential – © 2019 Oracle Internal/Restricted/Highly Restricted 31
  • 32. Policy 등록 # DB내 Agent의 Dynamic Group 생성 ALL {resource.type=‘managementagent’, resource.compartment.id=‘{DBCS Compartment OCID}’} # Bucket 읽기 권한 Allow dynamic-group Management-Agents-Group to read buckets in compartment ABC where request.principal.type = 'managementagent' # Object 생성 및 확인 권한 Allow dynamic-group Management-Agents-Group to manage objects in compartment ABC where all {request.principal.type = 'managementagent', any {request.permission='OBJECT_CREATE', request.permission='OBJECT_INSPECT'}} # DB Managment의 scheduled job의 결과를 Object Storage에 저장하기 위한 권한 Allow service dpd to manage objects in compartment ABC https://docs.oracle.com/en-us/iaas/database-management/doc/permissions-required-database-management.html * scheduled job의 결과를 Object Storage에 저장하기 위해 필요한 권한