ebook img

Oracle database upgrade, migration & transformation tips & techniques PDF

466 Pages·2015·16.285 MB·English
Save to my drive
Quick download
Download
Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.

Preview Oracle database upgrade, migration & transformation tips & techniques

Join the Oracle Press Community at OraclePressBooks.com Find the latest information on Oracle products and technologies. Get exclusive discounts on Oracle Press books. Interact with expert Oracle Press authors and other Oracle Press Community members. Read blog posts, download content and multimedia, and so much more. Join today! Join the Oracle Press Community today and get these benefits: • Exclusive members-only discounts and offers • Full access to all the features on the site: sample chapters, free code and downloads, author blogs, podcasts, videos, and more • Interact with authors and Oracle enthusiasts • Follow your favorite authors and topics and receive updates • Newsletter packed with exclusive offers and discounts, sneak previews, and author podcasts and interviews @OraclePress Oracle-Regular / Oracle Database Upgrade, Migration & Transformation Tips & Techniques / Edward Whalen / 605-0 Blind folio: i ® Oracle Database Upgrade, Migration & Transformation Tips & Techniques 00-FM.indd 1 21/04/15 12:13 PM Oracle-Regular / Oracle Database Upgrade, Migration & Transformation Tips & Techniques / Edward Whalen / 605-0 Blind folio: ii About the Authors Edward Whalen is an Oracle ACE Director and the Chief Technologist at Performance Tuning Corporation (www.perftuning.com), a consulting company specializing in database performance, administration, virtualization, and disaster recovery solutions with over 30 years of experience. He has extensive experience in system architectural design for optimal performance. His career has consisted of hardware, OS, database, and virtualization projects for many different companies. He has written seven books on Oracle products (13 books total), the last four from Oracle Press. He has also worked on numerous benchmarks and performance tuning projects with Oracle database products. Ed works primarily as a consultant, speaker, and part-time trainer. His specialties include Oracle Performance Tuning, High Availability, and GoldenGate. In addition, Ed is working on several new book proposals. Jim Czuprynski has over 30 years of experience in information technology, serving diverse roles at several Fortune 1000 companies in those three decades—mainframe programmer, applications developer, business analyst, and project manager—before becoming an Oracle database administrator in 2001. He currently holds OCP certification for Oracle 9i, 10g, and 11g, and is an Oracle ACE Director. Jim continues to write a steady stream of articles that focus on the myriad facets of Oracle database administration, with nearly 100 articles to his credit since 2003 for Database Journal (www.databasejournal.com) and IOUG’s SELECT Journal. Jim’s blog, Generally…It Depends (http://jimczuprynski.wordpress.com), concentrates on Oracle database technology and administration. He is the author of nearly 100 articles on Oracle Database 10g and Oracle Database 11g, with several articles on Oracle Database 12c appearing in IOUG SELECT Magazine since 2003. Jim is also a sought-after public speaker on Oracle Database technology features. He has presented topics at Oracle OpenWorld, IOUG’s COLLABORATE, Hotsos Symposium, Oracle Technology Network ACE Tours, and Oracle User Group conferences around the world. Jim teaches core Oracle University database administration courses on behalf of Oracle and its Education Partners throughout the United States and Canada, instructing several hundred Oracle DBAs about Oracle DBA best practices since 2005. He was awarded Oracle Education Partner Instructor of the Year in 2009. About the Technical Editor Hans Forbrich has been programming, using, and administering computers since his first program at the University of Calgary on a DEC PSP-8i in 1969. He was involved in a number of migrations and upgrades prior to his introduction to Oracle in the mid-1980s, and has been involved in countless migrations and upgrades across many platforms in his time at a major telecom manufacturer, at an applications company, at Oracle, and over the past 12 years with his own consultancy. Hans is an electrical engineer, holds multiple OCPs, and is an Oracle ACE Director who is well known on the Oracle speaking circuit. He consults on and teaches many classes for Oracle University on Linux, Oracle VM, Database, Middleware, GoldenGate, Database Integrator, SOA, and Integration. 00-FM.indd 2 21/04/15 12:13 PM Oracle-Regular / Oracle Database Upgrade, Migration & Transformation Tips & Techniques / Edward Whalen / 605-0 Blind folio: iii ® Oracle Database Upgrade, Migration & Transformation Tips & Techniques Edward Whalen Jim Czuprynski New York Chicago San Francisco Athens London Madrid Mexico City Milan New Delhi Singapore Sydney Toronto 00-FM.indd 3 21/04/15 12:13 PM Copyright © 2015 by McGraw-Hill Education (Publisher). All rights reserved. Except as permitted under the United States Copyright Act of 1976, no part of this publication may be reproduced or distributed in any form or by any means, or stored in a database or retrieval system, without the prior written permission of the publisher, with the exception that the program listings may be entered, stored, and executed in a computer system, but they may not be reproduced for publication. ISBN: 978-0-07-184606-6 MHID: 0-07-184606-9 The material in this eBook also appears in the print version of this title: ISBN: 978-0-07-184605-9, MHID: 0-07-184605-0. eBook conversion by codeMantra Version 1.0 All trademarks are trademarks of their respective owners. Rather than put a trademark symbol after every occurrence of a trademarked name, we use names in an editorial fashion only, and to the benefit of the trademark owner, with no intention of infringement of the trademark. Where such designations appear in this book, they have been printed with initial caps. McGraw-Hill Education eBooks are available at special quantity discounts to use as premiums and sales promotions or for use in corporate training programs. To contact a representative, please visit the Contact Us page at www.mhprofessional.com. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. All other trademarks are the property of their respective owners, and McGraw-Hill Education makes no claim of ownership by the mention of products that contain these marks. Screen displays of copyrighted Oracle software programs have been reproduced herein with the permission of Oracle Corporation and/or its affiliates. Information has been obtained by Publisher from sources believed to be reliable. However, because of the possibility of human or mechanical error by our sources, Publisher, or others, Publisher does not guarantee to the accuracy, adequacy, or completeness of any information included in this work and is not responsible for any errors or omissions or the results obtained from the use of such information. Oracle Corporation does not make any representations or warranties as to the accuracy, adequacy, or completeness of any information contained in this Work, and is not responsible for any errors or omissions. TERMS OF USE This is a copyrighted work and McGraw-Hill Education and its licensors reserve all rights in and to the work. Use of this work is subject to these terms. Except as permitted under the Copyright Act of 1976 and the right to store and retrieve one copy of the work, you may not decompile, disassemble, reverse engineer, reproduce, modify, create derivative works based upon, transmit, distribute, disseminate, sell, publish or sublicense the work or any part of it without McGraw-Hill Education’s prior consent. You may use the work for your own noncommercial and personal use; any other use of the work is strictly prohibited. Your right to use the work may be terminated if you fail to comply with these terms. THE WORK IS PROVIDED “AS IS.” McGRAW-HILL EDUCATION AND ITS LICENSORS MAKE NO GUARANTEES OR WARRANTIES AS TO THE ACCURACY, ADEQUACY OR COMPLETENESS OF OR RESULTS TO BE OBTAINED FROM USING THE WORK, INCLUDING ANY INFORMATION THAT CAN BE ACCESSED THROUGH THE WORK VIA HYPERLINK OR OTHERWISE, AND EXPRESSLY DISCLAIM ANY WARRANTY, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. McGraw-Hill Education and its licensors do not warrant or guarantee that the functions contained in the work will meet your requirements or that its operation will be uninterrupted or error free. Neither McGraw-Hill Education nor its licensors shall be liable to you or anyone else for any inaccuracy, error or omission, regardless of cause, in the work or for any damages resulting therefrom. McGraw-Hill Education has no responsibility for the content of any information accessed through the work. Under no circumstances shall McGraw-Hill Education and/or its licensors be liable for any indirect, incidental, special, punitive, consequential or similar damages that result from the use of or inability to use the work, even if any of them has been advised of the possibility of such damages. This limitation of liability shall apply to any claim or cause whatsoever whether such claim or cause arises in contract, tort or otherwise. Oracle-Regular / Oracle Database Upgrade, Migration & Transformation Tips & Techniques / Edward Whalen / 605-0 Contents at a Glance PART I Planning a Smooth Migration 1 Overview of Migration, Transformation, and Upgrade Methodologies . . . . . . . 3 2 Choosing the Right Migration Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 3 Migration/Transformation/Upgrade Methodologies . . . . . . . . . . . . . . . . . . . . 29 PART II Cross-Platform Migration 4 Oracle Data Guard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 5 Using Recovery Manager (RMAN) for Cross-Platform Migration . . . . . . . . . . . 73 6 Transporting Tablespaces and Databases . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 PART III Migration with Enhancement/Upgrade 7 Migrating Oracle Databases with Export/Import . . . . . . . . . . . . . . . . . . . . . . 161 8 Zero or Minimal Downtime Migrations with Oracle GoldenGate . . . . . . . . . 181 9 Cross-Platform Transportable Tablespace Migration Utilities . . . . . . . . . . . . . 205 10 Migrating to New Storage Platforms Using ASM . . . . . . . . . . . . . . . . . . . . . . 229 v 00-FM.indd 5 22/04/15 3:25 PM Oracle-Regular / Oracle Database Upgrade, Migration & Transformation Tips & Techniques / Edward Whalen / 605-0 vi Oracle Database Upgrade, Migration & Transformation Tips & Techniques PART IV Optimized Upgrades/Migration 11 Database Upgrade Assistant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 249 12 Migrating from Microsoft SQL Server to Oracle . . . . . . . . . . . . . . . . . . . 283 13 Moving to Oracle Database 12c . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299 14 Moving to Oracle Engineered Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . 361 15 Migrating to Oracle in the Cloud . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 399 PART V Best Practices and Tips 16 In Summary: Recommendations, Reminders, and Best Practices . . . . . . . 415 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 425 00-FM.indd 6 21/04/15 12:13 PM Oracle-Regular / Oracle Database Upgrade, Migration & Transformation Tips & Techniques / Edward Whalen / 605-0 Contents Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii PART I Planning a Smooth Migration 1 Overview of Migration, Transformation, and Upgrade Methodologies . . . . 3 Database Upgrade Methodologies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Data Migration Methodologies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Migration with Transformation Methodologies . . . . . . . . . . . . . . . . . . 7 Future Migration, Transformation, and Upgrade Techniques . . . . . . . . . . . . . 7 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2 Choosing the Right Migration Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 Evaluating Your Environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 Migration Goals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Downtime Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Transformation Goals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 Migration Methods Review . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Budget . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 Additional Considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 Making Your Decision . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 How Downtime Affects Your Choice of Method . . . . . . . . . . . . . . . . 23 How Versions Affect Your Choice of Method . . . . . . . . . . . . . . . . . . . 24 How Architecture Affects Your Choice of Method . . . . . . . . . . . . . . . 24 How Database Transformation Affects Your Choice of Method . . . . . . 25 Decision Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Hybrid Solutions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 GoldenGate Migration Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 vii 00-FM.indd 7 22/04/15 3:22 PM Oracle-Regular / Oracle Database Upgrade, Migration & Transformation Tips & Techniques / Edward Whalen / 605-0 viii Oracle Database Upgrade, Migration & Transformation Tips & Techniques 3 Migration/Transformation/Upgrade Methodologies . . . . . . . . . . . . . . . . . . 29 Planning the Migration Process .................................. 30 Determining the “Window of Inopportunity” . . . . . . . . . . . . . . . . . . . 30 Application Workload Categorization ........................ 31 Capturing Your Migration/Transformation/Upgrade Plan: The Master Checklist ........................................ 34 Milestones ............................................. 34 Tasks, Responsibilities, and Actions .......................... 35 Timelines and Expected Task Timings ......................... 35 Fallback Plans .......................................... 35 Expected Results ........................................ 36 Testing Your Chosen Migration/Transformation/Upgrade Path ............ 37 Building a Migration Plan ...................................... 37 Migration Steps ......................................... 39 Resource Allocation ..................................... 41 Milestones ............................................. 42 Quality Assurance ....................................... 43 Change Requests ........................................ 43 User Acceptance Testing .................................. 43 Production Cutover ........................................... 44 Planning the Cutover to Production .......................... 45 Database Verification .................................... 45 Ensuring the Database’s Data Integrity ........................ 46 Application Server Migration ............................... 47 Evaluating Application Performance ......................... 47 Summary ................................................... 49 PART II Cross-Platform Migration 4 Oracle Data Guard . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 Data Guard Overview ......................................... 54 What Is Data Guard? ..................................... 54 How Does Data Guard Work? .............................. 54 Data Guard Components ................................. 57 Data Guard Modes ...................................... 58 Data Guard Broker ...................................... 59 Requirements for Migrating with Data Guard ........................ 59 Configuring Data Guard ........................................ 61 Set Up the Primary and Standby in Preparation of Data Guard ..... 61 Modify init.ora Parameters on the Primary ..................... 66 00-FM.indd 8 21/04/15 12:13 PM

See more

The list of books you might like

Most books are stored in the elastic cloud where traffic is expensive. For this reason, we have a limit on daily download.