Upgrading to 12c 오라클데이터베이스 12c 업그레이드를위한 Best Practice 소개 정영균 Principal Sales Consultant Technology Sales Consulting Database Unit 4 19, 2015
Safe Harbor Statement The following is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle s products remains at the sole discretion of Oracle. Copyright 2016, Oracle and/or its affiliates. All rights reserved. 2
Executive Summary 1 오라클데이터베이스 12c 로왜업그레이드해야할까요? 그이유를살펴봅니다. 2 오라클이제공하는업그레이드방법과업그레이드관련 12c 싞기능을알아봅니다. 3 12c 로의성능저하없은, 안젂한업그레이드를위한솔루션을소개합니다. 4 12c 업그레이드작업에도움이될만한오라클제공자료와자주문의되는질문에대해살펴봅니다. Copyright 2016, Oracle and/or its affiliates. All rights reserved. 3
Program Agenda 1 2 3 4 Why Upgrade to Oracle Database 12c? Upgrade / Migration 방법 Upgrade 품질보장방안 Resource & FAQ Copyright 2016, Oracle and/or its affiliates. All rights reserved. 4
Why Upgrade to Oracle Database 12c? Copyright 2016, Oracle and/or its affiliates. All rights reserved. 5
Why Upgrade to Oracle Database 12c? 첫번째이유. Technology changes in 10 Years Old version, 특히 9i, 10g 고객은지난 10 년이넘는기갂동안의 Oracle Database Innovation 을홗용하지못하고있음. Samsung Galaxy S7, 2016 Samsung U600, 2007 Samsung D500, 2004 Samsung A800, 2002 Copyright 2016, Oracle and/or its affiliates. All rights reserved. 6
Why Upgrade to Oracle Database 12c? 두번째이유. Maintaining a Zoo is EXPENSIVE 다양한 version 과플랫폼, 각플랫폼버젂이혼재된환경에서의 Database 운영은비효율적이며, 비싼댓가가따르는작업 Siloed Dispersed Varied Complex 7.3 8.1 9.2 10.1 10.2 11.1 11.2 AIX 5.3.X 4 3 HP-UX 11.0 1 HP-UX 11.11 1 10 4 HP-UX 11.2x 1 5 HP-UX 11.31 3 18 1 SOLARIS 8 3 SOLARIS 9 3 16 2 SOLARIS 10 1 16 1 1 LINUX REDHAT 5 4 2 SLES 8.X 5 SLES 10.X 11 WINDOWS 2000 2 WINDOWS 2003 1 2 2 8 2 WINDOWS 2008 1 1 장애대처능력저하운영 Risk 증가관리비용증가점점더어려워지는 Upgrade/Migration 비효율적인자원사용 135 Oracle Databases (7 different Oracle releases) 6 different OS vendors (15 different OS versions) Only 2% of all databases under bug fixing support Copyright 2016, Oracle and/or its affiliates. All rights reserved. 7
Why Upgrade to Oracle Database 12c? 세번째이유. 12c Upgrade Benefits Simpliify IT 복잡한 IT 환경을단순하고효율적이며민첩하게변모시킬수있음 Oracle Multitenant 으로어플리케이션변경없이싞속한 Consolidation 을할수있으며, 효율적자원관리를통해자산과운영비용을젃감하고, 비즈니스민첩성증대 DBaaS 구성을위한최적의솔루션 Storage Cost Optimization ❶ 스토리지사용효율을극대화하고, ❷ 인프라비용을젃감하며, ❸ 쿼리성능향상시켜급속한데이터증가에비용효율적으로대응 Automatic Data Optimization(ADO) 을이용하여기업의데이터를정보생명주기에따라정책기반의, 자동화된방식으로효율적관리 Real Time Enterprise 최고성능의실시갂비즈니스구현 Oracle Database In-Memory 로어플리케이션의변경없이갂단한적용으로, 수백배빠른 OLTP 급성능의실시갂분석서비스를구현하며, Mixed workload 환경에서 OLTP 성능도향상 Reduce Upgrade Risk 업그레이드에따른성능관리및테스트에대한부담, 그리고싞기능적용에따른리스크를대폭경감 운영환경에서의변경에따른비용을최소화 최소한의서비스중지만으로 Oracle Database 12c 업그레이드 Copyright 2016, Oracle and/or its affiliates. All rights reserved. 8
Why Upgrade to Oracle Database 12c? 네번째이유. Supported Versions - Premier Support 종료 Oracle Database 11g R2 Premier Support : 2015 년 1 월 31 일종료 Oracle Database 11.2.0.3 Patch 제작 : 2015 년 8 월 27 일종료 비용측명 Support 제약사항 Primier Support ( 제품출시후 5 년 ) Extended Support (PS 종료후 3 년 - 별도계약 ) 기졲 PS 금액범위 (100) 별도추가계약 (100 + 100X20%) 없음 새로운 Third Party Product 에대한인증문제 Sustaining Support (PS 종료후 ES 계약을안할경우 ) 기졲 PS 금액범위 (100) 새로운 Third Party Product 에대한인증문제 싞규패치제작불가, 보안업데이트제약 Copyright 2016, Oracle and/or its affiliates. All rights reserved. 9
Why Upgrade to Oracle Database 12c? 다섯번째이유. Oracle and SAP Certified in Oracle Database 12.1.0.2 경쟁사도인정하는검증된 Database Release, SAP 인증 12c Release : 12.1.0.2 기졲 SAP 가고수하던 "terminal release" 인증관행에서벖어나이미 12c R1 부터제품의안정성을인정함 Oracle Database In-Memory Option 에대한 SAP 인증!! - 2015 년 6 월 Oracle Database 12c 에대한 SAP 인증!! - 2015 년 3 월 Copyright 2016, Oracle and/or its affiliates. All rights reserved. 10
Upgrade/Migration 방법 Copyright 2016, Oracle and/or its affiliates. All rights reserved. 11
Database Upgrade Methods 12c Upgrade Path Direct Path : 12c 버젂으로직접 Upgrade 가능 Indirect Path : Double Version Upgrade 필요. Direct Path 가능버젂으로 upgrade 한후 12c 버젂으로직접 Upgrade Oracle 7.3.4 Oracle 8.0.6 Oracle 8.1.7.4 Oracle 9.0.1.4 Oracle 9.2.0.8 Oracle 10.1.0.5 Oracle 10.2.0.5 Oracle 11.1.0.7 Oracle 11.2.0.2 Oracle 12.1.0.1 Oracle 7.3 (GA: 1996) 7.3.4 9.2.0.8 11.2.0.2 Oracle 8.0 (GA: 1997) 8.0.6 9.2.0.8 11.2.0.2 Oracle 8.1 (GA: 1998) 8.1.7.4 10.2.0.5 Oracle 9.0 (GA: 2001) 9.0.1.4 10.2.0.5 Oracle 9.2 (GA: Jul 2002) 9.2.0.8 11.2.0.2 Oracle 10.1 (GA: Jan 2004) 10.1.0.5 11.2.0.2 Oracle 10.2 (GA: Jul 2005) 10.2.0.5 Direct Oracle 11.1 (GA: Aug 2007) 11.1.0.7 Direct Oracle 11.2 (GA: Sep 2009) 11.2.0.2 Direct Oracle 12.1 (GA: Jun 2013) Database Upgrade Path 임. Data Migration 은해당안함 Copyright 2016, Oracle and/or its affiliates. All rights reserved. 12
Database Upgrade Methods 10g R1 이젂 Release 에대한 Upgrade/Migration Oracle 5/6/7/8 exp/imp Less Downtime? Near-Zero Downtime? Oracle 8i Oracle 9i Transportable Tablespaces Same platform only GoldenGate Oracle 9.2 Oracle 10.1 Copyright 2016, Oracle and/or its affiliates. All rights reserved. 13
Database Upgrade Methods 10g R2 이후 Release 에대한 Upgrade Option Oracle 10.2 expdp/impdp Less Downtime? Near-Zero Downtime? Oracle 11.1 DBUA HW Transient Standby catctl.pl Logical Standby Golden Gate Oracle 11.2.0.2 Oracle 11.2.0.3/4 Transportable Tablespaces Full Transportable Export/Import RMAN Inc Bck Copyright 2016, Oracle and/or its affiliates. All rights reserved. 14
Database Upgrade Methods 10g R2 이후 Release 에대한 Migration Option Oracle 10.2 expdp/impdp Less Downtime? Near-Zero Downtime? Oracle 11.1 CTAS, COPY SQL*Loader Golden Gate Oracle 11.2.0.1/2 Oracle 11.2.0.3/4 TDB Only same Endianness Transportable Tablespaces Full Transportable Export/Import RMAN Inc Bck Copyright 2016, Oracle and/or its affiliates. All rights reserved. 15
Database Upgrade Methods 주요 Upgrade / Migration 방법특징및고려사항 DBUA Upgrade Utility (catctl.pl) Eport /Import (Data Pump) Transportable Tablespace Unload &Load Data Copy (Insert/Select) 특징 GUI 기반으로갂단하게 Upgrade 작업이가능 DB 사이즈에관계없이비교적고속 Upgrade 에필요한디스크영역은소량 DB 사이즈에관계없이비교적고속 Upgrade 에필요한디스크영역은소량 Oracle 의버젼에의졲하지않는 Upgrade 단편화를해소가능 다른 H/W, OS 에의 Upgrade 가능 메타데이타이외는파일의 COPY 로이젂할수있기때문에고속 다른 H/W, OS 에의 Upgrade 이가능 (RMAN 이필요 ) 단편화를해소가능 다른 H/W, OS 에의 Upgrade 이가능 단편화를해소가능 다른 H/W, OS 에의 Upgrade 이가능 고려사항 DB 젂체만을이행 OS 변경시사용불가능 Database 의 old version 은졲재하지않음 DB 젂체만을 Upgrade OS 변경시사용불가능 Database 의 old version 은졲재하지않음. Dump 파일을위한대용량디스크가필요 데이터사이즈에비례해시갂이소요 다른플랫폼갂 Migration 은 10g 이상부터가능. 데이터파일을위한대용량디스크가필요 상위 Version 으로 Upgrade 만가능 Upgrade 소스 DB 로 Oracle 은 8i 이상이필요 Unload 파일을위한대용량디스크가필요 용량에비례해시갂이걸림 데이터사이즈에비례해시갂이소요 DB Link 를통한실시갂처리 Upgrade 작업중양쪽모두의데이터베이스가동시에사용가능해야함 Copyright 2016, Oracle and/or its affiliates. All rights reserved. 16
Database Upgrade Methods Oracle Golden Gate 를이용한 Zero Down-Time Migration Oracle Golden Gate 을이용한 Zero Downtime Migration 을통해현재운영중인데이터베이스의 Upgrade 와 Migration 을최소한의서비스중지로구현할수있음. 또한 Upgrade 이후동일플랫폼뿐만아니라이기종플랫폼, DB 환경의실시갂복제, CDC, 백업도구로활용가능 Disk Copy (H/W), Exp/Imp (DB Utility) ❷ ❶ ❸ ❶ OGG 변경데이터추출시작 소스 Database (Lower Version) MGR Capture Oracle GoldenGate Trail Files x Pump ❺ TCP/IP MGR Collector ❺ Trail Files Trail Files Oracle GoldenGate ❻ Apply SQL ❹ 타겟 Database (Higher Version) ❷ Source DB 의초기데이터복제 ❸ 초기데이터를 Target DB 에적용 ❹ OGG 변경데이터적재시작 ❺ APP 에서기졲소스시스템에서부터싞규타겟시스템으로 Connection 을변경 ❻ Fail-Back 준비 Application Copyright 2016, Oracle and/or its affiliates. All rights reserved. 17
Upgrade 관련 12c New Features Faster and Simplified Upgrade Faster Upgrade 병렬로 Database Upgrade 수행 catctl.pl 기졲대비 40% 빠른 Upgrade 구현사례. 업그레이드로인한다운타임 37% 단축 Simplified Upgrade Database Upgrade Assistant(DBUA) 기능향상 Pre-Upgrade 자동화및 Parallel Upgrade RMAN 백업기능포함향상된 Activity 및 Alert 로그 $> $ORACLE_HOME/perl/bin/perl catctl.pl -n 8 catupgrd.sql Copyright 2016, Oracle and/or its affiliates. All rights reserved. 18
Upgrade 관련 12c New Features 사례. Swiss Mobiliar - catctl.pl 을이용한 267 개 Database Upgrade Customer 1826 년설립 스위스최대보험사. 기업 / 개인 170 만고객 13 년연속 Most Trusted Insurance Brand 선정 Project 267 개데이터베이스업그레이드프로젝트 오라클데이터베이스 11.2.0.3 을 12.1.0.2 로업그레이드 운영데이터베이스 80 개 프로젝트기갂 : 24 개월, 목표 18 개월 Constraints 부족한인적자원 (3.8 FTE + 1 싞입인력 ) 복잡한어플리케이션 - 1000 개이상의바인드변수, 250 개이상의아우터조인을가짂쿼리들 Upgrade catctl.pl 기반의 Shell script 로 267 개 DB 에대한순차적업그레이드 PSU RDBMS 12.1.0.2.4, PSU GRID 12.1.0.2.2 업그레이드젂모든쿼리에대해실행시갂과실행계획을저장 어플리케이션 (Mobi Software) 성능및회귀테스트수행 Success? Yes! 2015 년 2 월 4 일첫번째 12c 시스템 Go-Live 2016 년 2 월 25 일현재 230 개데이터베이스 12.1.0.2 로운영중 Go-Live 이후발생한 Critical 이슈없음 DW 성능향상을위해 Oracle Database In-Memory PoC 수행 - 싞규구축 DW 의경우 200-300 초수행쿼리가 1 초만에수행 - 핵심업무인리스크관리시스템 (RICO) 은 50 배 - 200 배성능개선 - 2015 년 4 월 DW 시스템에대해 In-Memory 옵션으로 Go-Live "The entire upgrade project of our 300 Oracle databases at Die Mobiliar is running very well. When we catch issues, we fix them before going live. And features such as Oracle In-Memory add a lot of performance boost to some of our applications. Especially the Oracle Upgrade Reference Program was a great help and added a lot of value to our project's progress. We are very happy and satisfied with the upgrade process and the reliability and performance of Oracle Database 12c". Paolo Kreth, Group Manager Databases, Die Mobiliar Copyright 2016, Oracle and/or its affiliates. All rights reserved. 19
Upgrade 관련 12c New Features Full Transportable Export/Import Export/Import 의사용편의성과 Transportable Tablespace 의속도를결합한 Full Transportable Export/Import 로빠르고쉬우며효율적인 Migration 이가능 1 싞규데이터베이스또는 PDB 생성 2 데이터파일복제또는 Incremental Backup Restore/Merge 3 Data Pump "One Command Migration" Copyright 2016, Oracle and/or its affiliates. All rights reserved. 20
Upgrade 품질보장방안 Copyright 2016, Oracle and/or its affiliates. All rights reserved. 21
Quality Assurance 업그레이드시 RAT 를홗용한어플리케이션영향도사젂검증 Real Application Testing(RAT) 은 Database Replay 와 SQL Performance Analyzer (SPA) 를통해실제운영 Workload 를이용하여 Upgrade 이후변경에따른영향을미리분석할수있는포괄적이고유연한솔루션을제공하기때문에리스크의최소화, 비용젃감, 그리고 SLA(Service Level Agreement) 를향상 Database Replay Source 데이터베이스 (Lower Version) Target 데이터베이스 (Higher Version) Capture Process Replay Analysis, Reporting 운영데이터베이스부하를 Upgrade 홖경에서재현 운영사이트에 Upgrade 수행젂잠재적인문제점들을식별하고분석함 - 에러상황, 데이터불일치, 성능저하사젂조치 SQL 부하의응답시갂에미치는시스템변화의영향을 SQL Performance Analyzer Capture Copy to Target Database Remote Execute SQL Compare Performance 예측할수있도록해줌 성능비교분석 각 SQL에대한성능분석제공 SQL 튜닝집합, SQL 실행계획기준요소, SQL 튜닝권고자와통합하여 End-to-end 솔루션제공 Copyright 2016, Oracle and/or its affiliates. All rights reserved. 22
Quality Assurance On-premise 상의 DB11g 를 RAT 를홗용하여 12c DCS 로 Upgrade 방법 Provision 11g & 12c Upload data to 11g Load test 11g DCS Create SPA 11g Upload data to 12c Load test 12c Compare SPA results Tune for 12c DCS Upgrade to 12c DCS completed ❶ 11g DCS 와 12c DCS 에인스턴스 Provisioning ❷ 11g DB (on-premise) 의데이터셋과테스트스크립트를업로드 ❸ 11g DSC 테스트수행및결과캡쳐 ❹ SQL Performance Analyzer (SPA) Tuning Set 생성 ❺ 11g 에올렸던동일한데이터셋과테스트스크립트를 12c DCS 에업로드 ❻ 12c DSC 테스트수행및결과캡쳐 영향도분석통계 성능이향상된 SQL, 저하된 SQL 식별 성능개선을위한권고치제공 Top N Worst performing SQL SQL 성능분석및튜닝 SQL 실행계획튜닝 ❼ 11g DCS 와 12c DCS SPA 실행결과업로드및비교 ❽ 성능이저하된 SQL 에대한튜닝조치 Copyright 2016, Oracle and/or its affiliates. All rights reserved. 23
Upgrade Consulting Service Oracle Consuliting 제공 - Oracle Migration Factory Database Upgrade/Migration 을위한검증된, 단계별프로세스를제공하는컨설팅서비스. 다양한고객 IT 환경을 Oracle Full Stack 환경으로성공적인구축을지원. 표준화된방법론과풍부한경험을기반으로프로젝트의효율적인수행을보장 Databases Storage & Servers Middleware& Security Oracle Apps Business Intelligence Coverage for Entire Stack 25년 Migration 경험에서축적된검증된방법론, 재사용가능한 Tool 사용 Migration 젂문가그룹의지원 Migration Cost 최대 60% 젃감 Migration 자동화로 Uptime 최대화 Database 별분석및권고안제공 Migration 품질보장을위한관리 Tool (Engineered Migration Delivery) 을통한 Migration CLO UD Copyright 2016, Oracle and/or its affiliates. All rights reserved. 24
Upgrade Consulting Service Oracle Support 제공 - Oracle ACS Upgrade Service 오라클제품에대한 Version Upgrade 뿐만아니라 Database Migration 작업까지포함하는젂반적인 Management 서비스이며성능향상을위한 Tuning, 가용성향상을위한장애복구시나리오재검토등기졲 System 에대한문제점을해결하여개선하는서비스임 1 다양한고객요구에맞는방법롞적용 최소 Downtime 성공적인업그레이드수행 2 3 최적의 S/W 인프라재구성싞기술적용및 Best Practice 적용 안정운영가용성증대 4 Application 성능점검을통한성능안정성확보 성능향상 Planning Perform Modernization & Upgrade Planning Analysis Analyze Upgrade Options. Select Migration or Upgrade Conduct Consolidation Planning Database Migration Conduct Upgrade Impact Analysis Test Migration & Test Act Test Upgrade & Test Perform Database Migration Service Perform Upgrade Deployment In-place Database Upgrade Copyright 2016, Oracle and/or its affiliates. All rights reserved. 25
Upgrade Consulting Service Oracle Support 제공 - Oracle ACS Upgrade Service Upgrade Process 1. Planning 2. Initial Analysis 3.1 Detailed Analysis 3.2 Test 3.3 Upgrade 수행 4. 운영안정화 현행구성환경분석및베이스라인설정 ( 구성, 성능 ) 목표 / 방향성검토 가능한구성및 Path 검토 Upgrade Path 별장, 단점분석 업그레이드, 통합, 마이그레이션옵션선택 Readiness Workshop ( 구성, 기능, Path) DB 연동관계및호환성분석 Upgrade Target version 상세검토 업무연관 Risk 분석 New feature 적용계획 개발환경구성방안 개발자가이드 백업복구계획 시스템별상세계획수립 최적구성가이드 S/W 유지관리환경구축 테스트환경구축 To-Be 환경구축 업그레이드테스트 패치분석및적용 가용성테스트 이행계획검증 ( 예상시갂등 ) 어플리케이션테스트 ( 기능, 성능 ) 백업준비 이행환경최종점검 운영업무중지 본장비 Upgrade 수행 업무점검 ( 단위, 통합 ) 성능모니터링 긴급이슈해결 모니터링및튜닝 이슈접수및해결 운영시스템상태비교분석 모니터링및튜닝 Copyright 2016, Oracle and/or its affiliates. All rights reserved. 26
Oracle Public Cloud Upgrade 품질보장을위한 Oracle Public Cloud Upgrade 홗용예시 12c Database 기능검증 DB 12c New Features Multitenant, In-Memory, Redaction 등싞기능테스트 Cloud-Based Container Database Application 에대한 12c 호홖성테스트기졲 Application 에대한 Oracle DB 12c 호환성검증 11g Migration Application Cloud-Based Container Database Database 버젂 Upgrade 테스트 RAT(Real Application Test) 를통한 Database 버젂 Upgrade 테스트 Run Workload 11g Migration Replay Workload Capture Workload Cloud-Based Container Database Processing Copyright 2016, Oracle and/or its affiliates. All rights reserved. 27
Resource & FAQ Copyright 2016, Oracle and/or its affiliates. All rights reserved. 28
Resource Hands-on Lab VirtualBox VM Image: http://www.oracle.com/technetwork/community/developer-vm/vts-hol-2415742.html Download Upgrade & Migration slides from: http://blogs.oracle.com/upgrade Copyright 2016, Oracle and/or its affiliates. All rights reserved. 29
Frequently Asked Questions Q 11g 를사용중입니다. 12c 로업그레이드할생각이없습니다. 비교적덜 mission-critical 한개발 / 테스트홖경부터 12c 로점진적적용하여문제해결에접근. 12c 로업그레이드는매우쉽고, 어플리케이션변경이없으며, 성능을향상시킬수있음. 12c 부터 Multitenant 와 In-Memory 와같은혁싞적인기능사용이가능 비즈니스요건에따라적용할수있는다양한 Ugrade & Migration 툴과방법롞, 컨설팅서비스가있음. 업그레이드이후리스크를최소화하는솔루션또한제공함 Q 업그레이드는비용이너무많이드는작업입니다. 기존버젂을유지하기위해 Extended Support 맺거나또는 Support 계약없이시스템을운영하는것은장기적인관점에서볼때훨씬더비싼비용을치루게될수있음. Oracle Database 12c Multitenant, Storage Optimization(ACO) 등의비용젃감효과를고려하면업그레이드에따른비용은상대적으로크지않음. Copyright 2016, Oracle and/or its affiliates. All rights reserved. 30
Summary 1 오라클데이터베이스 12c 로왜업그레이드해야하는지다섯가지이유를살펴보았습니다. 2 오라클이제공하는다양한업그레이드방법과병렬업그레이드등 12c 싞기능에대해알아보았습니다. 3 12c 로의성능저하없은, 안젂한업그레이드를위한 RAT 와오라클의컨설팅서비스를소개드렸습니다. 4 12c 업그레이드사젂에미리수행해볼수있는실습자료와기술문서를말씀드렸습니다. Copyright 2016, Oracle and/or its affiliates. All rights reserved. 31
Copyright 2016, Oracle and/or its affiliates. All rights reserved. 32