Anúncio
Anúncio

Mais conteúdo relacionado

Apresentações para você(20)

Similar a Oracle DB를 AWS로 이관하는 방법들 - 서호석 클라우드 사업부/컨설팅팀 이사, 영우디지탈 :: AWS Summit Seoul 2021(20)

Anúncio

Mais de Amazon Web Services Korea(20)

Último(20)

Anúncio

Oracle DB를 AWS로 이관하는 방법들 - 서호석 클라우드 사업부/컨설팅팀 이사, 영우디지탈 :: AWS Summit Seoul 2021

  1. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. K O R E A | M A Y 1 1 - 1 2 , 2 0 2 1
  2. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 서호석 클라우드 사업부/컨설팅팀 이사 영우디지탈 Oracle DB 를 AWS 로 이관하는 방법들
  3. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 1. AWS 와 Oracle DB 2. Oracle DB 이전을 위한 사전 준비 3. Oracle DB 이관 전략 4. Oracle DB 이관 기술 5. DB 이관을 쉽게 도와주는 AWS 도구 및 서비스 6. Oracle DB 이관시 유의 사항 Agenda
  4. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS 와 Oracle DB
  5. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. Oracle DB 는 점유율이 가장 높은 DB 로 특히 국내 엔터프라이즈 환경에서의 도입 사 용율은 아직도 월등히 높음 Oracle DB 의 사용 비중 IDC 자료: On-Premises Database Market Share 한국 DBMS 시장의 약 60% 를 Oracle 이 점유 한국데이터산업진흥원 (Kdata) : 2019 년 데이터산업백서
  6. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS는 전세계 24개의 리전 내에 77개의 가용 영역을 운영하면서 가장 높은 점유율을 보유하고 있는 Cloud Service Provider 로 국내 시장에서도 최고의 점유율로 클라우드 시장을 선도하고 있음 AWS 의 사용 비중
  7. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. Oracle DB 이전을 위한 사전 준비
  8. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 단계별 이관 계획 수립 각 단계별로 상세하게 계획을 수립함 ① ✓ 소스 DB 환경에 대한 분석 • 인프라 환경 • 데이터 량 • 데이터 종류 • 연계 환경 • 요구 조건 • 영향, 리스크 ② ③ ④ Assess Plan Test Execute ✓ 타겟 AWS DB 환 경에 대한 분석 ✓ 데이터 용량, 이관 기간, 다운타임, 실행 난이도 등을 전체적으로 고려 하여 계획 수립 • 이관 전략 • 이관 기술 • 테스트/검증 계획 • 이행 계획 • 롤백 계획 ✓ 실제 데이터로 테 스트 환경에서 이 관 테스트를 진행 • 검증 • 시간 측정 • 튜닝요소 점검 • 2~3회 테스트 권장 ✓ 계획에 맞추어 DB 이관 진행 • 이관 진행 • 상황 모니터링 • 검증 진행 • 시스템 오픈 • 모니터링 • 운영 모드 진 입
  9. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 현재환경에 대한 점검 항목 DB 서버 HW or VM 스펙 벤더, 모델(년도) / CPU 스팩 / Memory 스팩 / NIC 스 펙, 수 / 내부 Disk 스펙, 수 / 내부 Raid 구성 외장 스토리지 스펙 벤더, 모델(년도) / Memory 스팩 / 인터페이스 스펙, 수 / DIsk 스펙, 수 / Raid 구성 / 추가 기능 OS 벤더, 명, 버전 리소스(CPU, Memory, Network, IO) 사용량 평균, 피크, 사용 패턴(그래프) 업무 및 연계 내용 DB 의 업무 구분 예: 쇼핑 상품 60%, 카탈로그 30%, 기타 10% DB 의 업무 종류 예: OLTP 70%, 새벽 배치 처리 30% Read/Write 비율 예: Read: 70%, Write 30% Transaction 처리량 일단위, 시간단위 데이터 및 로그 발생량 일단위, 시간단위 연계된 모든 Application 서버 서버 수, 연계 방식, DB 관련 설정 내용(커낵션 수 등) 연계된 모든 DB 및 연 계 서버 업무 종류, 연계된 DB 및 연계 서버 스팩, 수, 연계 방법 3rd Party SW 설치된 모든 SW: 벤더, 명, 버전 (보안 SW 포함) DBMS DBMS 버전, 기능버전 (Ent, Std 등) 옵션기능 사용 현황 (예: Partitioning, RAC) 라이센스 현황 스키마 및 데이터 정보 스키마 정보 / 데이터 정보, 크기 / 인덱스 정보, 크기 / 아카이브 및 로그 정보, 크기 / Table 수 / Query 수 최대한 많은 점검 항목들에 대한 상세한 분석이 필요
  10. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. Oracle DB 이관 전략
  11. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. Oracle DB (Standby) Instance 2 최소한의 시간 및 작업으로 DB 를 가능한한 그대로 이관하는 전략 Re-host (Lift & Shift) ✓ 최대한 그대로 유지하는 전략으로 빠르고 쉬운 이 전이 가능 ✓ (시간 및 작업 = 비용) 이 가장 적게 소요됨 ✓ 클라우드 최적화에서 가장 거리가 먼 전략 ✓ (운영 비효율성 = 높은 유지 비용) 으로 연결 될수 있음 장점 단점 Oracle DB (Main) Server 1 Oracle DB (Standby) Server 2 HA Oracle DB (Main) Instance 1 HA
  12. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 클라우드의 특장점을 살리면서 필요한 최소한의 App/DB 변경으로 이관하는 전략 Re-platform ✓ 비교적 빠르고 쉬운 이전이 가능 ✓ (시간 및 작업 = 비용) 대비 효율성이 매우 우수함 ✓ 클라우드 환경의 장점을 누릴수 있음 ✓ 위의 장점들은 (우수한 운영 효율성 = 낮은 유지 비용) 으로 연결 될수 있음 ✓ Re-host 방식 대비 App/DB 수정 시간 및 작업은 늘어날수 있음 ✓ 클라우드의 장점을 사용하지만 기존 아키텍처에서 크게 벗어나지는 않음 장점 단점 Oracle DB (Main) Server 1 Oracle DB (Standby) Server 2 HA HA Amazon RDS Instance (Active) Amazon RDS Instance (Standby)
  13. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 회사 환경에 맞추어 최신 트렌드로 재설계하여 이관하는 전략 Re-architect (Re-factor) ✓ 클라우드의 장점뿐 아니라 확장성, 유연성 이 극 대화 될 수 있다 ✓ 우수한 운영 효율성 으로 연결될 수 있다 ✓ 매우 높은 개발 수준이 요구될 수 있으며 높은 개 발 난이도로 인한 실패 확률 역시 높아진다 ✓ (시간 및 작업 = 비용) 이 타전략 대비 일반적으로 가장 높다 ✓ 경우에 따라 높은 운영 난이도가 필요할 수 있으 며 충분한 경험이 부족할 경우 운영 효율성이 오 히려 저하 될수도 있다 장점 단점 Oracle DB (Main) Server 1 Oracle DB (Standby) Server 2 HA Replicate ElastiCache for Redis (Data Cache) Amazon Aurora Instance (Write) Amazon Aurora Instance (Read 1) Amazon Aurora Instance (Read 2)
  14. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. Oracle DB 이관 기술
  15. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. OS, Oracle DB 버전 이 동일할 경우 간단하고 쉽게 이관할 수 있는 방법 Data Copy ✓ 간단한 OS 명령만을(scp, sftp 등) 사용하여 이전이 가능하다 ✓ 사용이 쉽다 ✓ 파일을 복사할 경우 서비스 중단이 필요하며 파일 용량에 비례한다 ✓ OS/플렛폼, Oracle DB 버전, 설정 등 환경이 일치 해야 한다 ✓ 파일 복사시 중간에 끊길수 있는 경우에 대한 대 비가 필요하다 장점 단점 Temp file Data file Control file Parameter file Archive Log file Redo Log file COPY
  16. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. Oracle 의 Data Pump 기능을 사용하여 OS, DB 버전이 다른 환경으로의 이관을 행할 수 있음 Data Pump(export & import) ✓ OS/플렛폼이 서로 다른 환경에서의 이전이 가능 하다 ✓ Oracle DB 버전이 달라도 이전이 가능하다 ✓ 다른 character set 환경에서의 이전이 가능하다 ✓ 특정 대상 테이블만 선별하여 이전이 가능하다 ✓ 일반적으로 시간이 많이 소요되며 비례하여 서비 스 중단이 필요하다 ✓ Oracle -> 타 DB 로의 이전에는 사용할 수 없다 ✓ Oracle DB 의 버전 차이가 심한 경우 실패 확률이 증가할 수 있다 장점 단점
  17. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. CDC 도구는 동일 DB 또는 타 DB 들간의 복제를 실시간에 가깝게 여러 다양한 방법으 로 행해줄수 있음 CDC(Change Data Capture) 도구 ✓ OS/플렛폼이 서로 다른 환경에서의 이전이 가능 하다 ✓ 타 DB 로의 이전이 가능하다 ✓ 대용량 이전이 가능하다 ✓ 제품에 따라 소스, 타겟 DB, 대상 테이블들을 여 러 형태로 선별하여 이전이 가능하다 ✓ 실시간에 가까운 Ongoing 복제가 가능하며 다운 타임을 최소화 할수 있다 ✓ 상용 제품일 경우 도입 비용이 비싸다 ✓ 제품별로 지원되지 않는 DB 가 있을 수 있다 장점 단점
  18. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 국내에서 널리 알려졌으며 많은 사례를 가지고 있는 CDC 도구들 CDC(Change Data Capture) 도구 AWS Database Migration Service (AWS DMS) Oracle GoldenGate Quest SharePlex
  19. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. DB 이관을 쉽게 도와주는 AWS 도구 및 서비스
  20. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS SCT(Schema Conversion Tool) 은 한 데이터베이스 에서 다른 데이터베이스 의 스키마로 변환을 도와주는 도구이며 일반적으로 데이터 이관 단계전에 쓰임 AWS SCT(Schema Conversion Tool) ✓ OS/플렛폼이 서로 다른 환경에서의 스키마 변환 이 가능하다 ✓ 지원하는 모든 DB 로의 스키마 변환이 가능하다 ✓ 습득이 필요하다 ✓ AWS 의 도구임으로 AWS 상의 타겟 DB 로의 이 전만 가능하다 장점 단점
  21. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS DMS(Database Migration Service) 는 DB 데이터를 이기종 DB 간에도 쉽고 빠르 게 이관해주는 서비스 임 AWS DMS(Database Migration Service) ✓ OS/플렛폼이 서로 다른 환경에서의 이전이 가능 하다 ✓ DMS 도구가 지원하는 모든 타 DB 로의 이전이 가능하다 ✓ CDC(Change Capture Data) 기능으로 Ongoing 복제가 가능하여 서비스 중단 시간을 최소화할 수 있다 ✓ 상용 CDC SW 대비 사용 비용이 저렴하다 ✓ AWS 상의 타겟 DB 로의 이전만 가능하다 ✓ DMS용 복제 인스턴스의 총 스토리지 용량은 30,000GB 이다 장점 단점
  22. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Snowball 서비스는 단기간 내 초대용량 규모의 데이터 전송을 가능할수 있게 해 줌 AWS Snowball Edge ✓ 네트워크를 이용한 이전 속도 이상의 이전 속도 를 가능하게 한다 ✓ 80 TB usable 까지 지원이 가능하다 ✓ 빠른 전송을 위해서 물리적인 이동 수단을 이용하 게 되며 서비스 중단이 필요하다 ✓ AWS 상의 타겟 DB 로의 이전만 가능하다 장점 단점 AWS Snowball Edge Device
  23. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. Oracle DB 이관시 유의 사항
  24. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. Oracle RAC(Real Applications Cluster) 는 여러 Oracle DB 서버들을 하나의 클러스터 로 모두 active 상태로 운영 가능하게 해주는 고가용성 옵션 기능으로 AWS 상에서의 구현은 쉽지 않다 Oracle RAC 경우 ✓ 분산구조 DB Scale-Out 이 비교적 쉽게 가능하다 ✓ 노드들이 모두 Active 상태로 특정 노드 장애시 다른 노드의 빠른 Take-over 이 가능하다 ✓ 쓰기 작업 경우 노드간의 Sync 를 맞추기 위한 Overhead 가 존재하며 이는 노드의 수에 비례한다 ✓ 여러 노드에서 같은 테이블에 쓰기가 동시에 발생 할 경우 성능에 심각한 영향을 줄수 있다 - Application/업무 에서의 신중한 설계가 필요하다 ✓ DB 의 빠른 Take-over 이 꼭 서비스의 빠른 정상화 로 바로 연결되지는 않을수 있다 ✓ 옵션 라이센스 비용이 높다 장점 단점
  25. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. Oracle RAC 를 이전하게 될 경우 가장 쉽게 고려할 수 있는안은 Active-Standby 로 재 구성하는 안 임 Oracle RAC 대안 1 ✓ 비교적 Application 의 수정이 크지 않다 ✓ DB 의 수정은 거의 없으며 기존 사용하던 Oracle 의 기능들을 그대로 사용할 수 있다 ✓ RAC 대비 아키텍처 및 운영이 단순해지며 쉬워진 다 ✓ RAC 옵션이 필요 없어지면서 비용이 절감된다 ✓ Active-Standby 모드로의 전환으로 인한 장애시 Take-over 시간은 느려질 수 있다 ✓ DB Scale-Out 은 불가능하다 ✓ 전환시 사이징 설계에 신중해야 한다 장점 단점 Instance (Standby) Oracle DB (RAC) Server 1 Oracle DB (RAC) Server 2 RAC Instance (Active) HA Amazon RDS Amazon RDS
  26. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. Oracle DB 는 유지하는 아키텍처 수정 범위내에서 단순 Active-Standby 구조에 비해 읽기 업무에 대한 확장성을 추가로 가져가는 안 Oracle RAC 대안 2 ✓ 타 DB 로의 교체 경우에 비해 Application 의 수 정이 크지 않다 ✓ 기존 사용하던 Oracle 의 기능들을 그대로 사용할 수 있다 ✓ Read DB 의 Scale-Out 이 가능하다 ✓ Active Data Guard 비용은 RAC 대비 저렴하여 비 용이 절감된다 ✓ Write DB 장애시 Take-over 시간은 느려질 수 있다 ✓ Write DB 의 Scale-Out 은 불가능하다 ✓ 전환시 사이징 설계에 신중해야 한다 장점 단점 Oracle DB (RAC) Server 1 Oracle DB (RAC) Server 2 RAC (Active Data Guard) Replicate Amazon RDS Instance (Write) Amazon RDS Instance (Read 1) Amazon RDS Instance (Read 2)
  27. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. Re-architect 전략으로 완전히 새로운 아키텍처 로 처음부터 다시 구성하는 안 Oracle RAC 대안 3 ✓ Re-architect 전략 선택시 장점들(최적화, 확장성, 유연성, 효율)을 고스란히 다 가지고 온다 ✓ 여러가지 조건들 (크지 않은 데이터, 충분한 시간 등) 이 맞을 경우 충분히 진행해볼 가치는 있다 ✓ Re-architect 전략 선택시 단점들(시간, 비용, 리스 크)을 고스란히 다 가지고 온다 장점 단점 Oracle DB (RAC) Server 1 Oracle DB (RAC) Server 2 RAC Replicate Amazon Aurora instance (Write) Amazon Aurora instance (Read1) Amazon Aurora instance (Read2)
  28. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 반드시 RAC 가 필요한 경우 AWS Marketplace 에서 3rd party 솔루션(FlashGrid for Oracle RAC) 으로의 구성을 고려해볼 수 있음 Oracle RAC 가 꼭 필요한 경우 ✓ Oracle RAC 장점을 그대로 가지고 온다 ✓ 3rd party 솔루션 사용으로 쉽게 RAC 구성이 가능 하다 ✓ Oracle Linux OS 7 과 같이 설정되어 있고 Oracle 19c 만 지원된다 - 현재 사용중인 OS 와 Oracle DB 의 버전 차이 및 호환성 여부를 반드시 확인해 야 한다. 특히 커널 버전에 민감한 보안 및 시스템 SW 의 경우 작동하지 않을수 있다 ✓ 국내 사용된 레퍼런스가 부족하다 장점 단점 Oracle DB (RAC) Server 1 Oracle DB (RAC) Server 2 RAC
  29. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. Oracle DB 를 AWS 로 이관하게 될 경우 유의 사항들 기타 유의 사항
  30. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 여러분의 소중한 피드백을 기다립니다. 강연 종료 후, 강연 평가에 참여해 주세요! © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  31. © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved. 감사합니다 © 2021, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Anúncio