The Cloud DBA Oracle
The Cloud DBA Oracle
DBA-Oracle
Managing Oracle
Database in the Cloud
First Edition
Abhinivesh Jain
Niraj Mahajan
The Cloud DBA-Oracle: Managing Oracle Database in the Cloud
Abhinivesh Jain Niraj Mahajan
Pune, Maharashtra, India Pune, Maharashtra, India
ISBN-13 (pbk): 978-1-4842-2634-6 ISBN-13 (electronic): 978-1-4842-2635-3
DOI 10.1007/978-1-4842-2635-3
Library of Congress Control Number: 2017933318
Copyright © 2017 by Abhinivesh Jain and Niraj Mahajan
This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part
of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations,
recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission
or information storage and retrieval, electronic adaptation, computer software, or by similar or
dissimilar methodology now known or hereafter developed.
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol
with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only
in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of
the trademark.
The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are
not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject
to proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of
publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for
any errors or omissions that may be made. The publisher makes no warranty, express or implied, with
respect to the material contained herein.
v
Contents
vii
■ CONTENTS
Summary ............................................................................................... 22
viii
■ CONTENTS
Summary ............................................................................................... 50
■Chapter 4: High Availability Options ............................................. 51
Need for High Availability with Cloud-Based DBs.................................. 51
Database High Availability Overview ..................................................... 51
HA Options in Oracle Cloud ................................................................... 53
Oracle RAC Provisioning in Oracle Cloud ............................................... 53
Connecting to Your RAC Database Servers Using PuTTY....................... 59
Connecting to Your RAC Database Using
SQL Developer ....................................................................................... 60
RAC HA Testing ...................................................................................... 64
HA Options in AWS................................................................................. 64
Overview of Oracle RAC Provisioning in AWS ......................................................... 64
Summary ............................................................................................... 70
■Chapter 5: Disaster Recovery Options .......................................... 71
Need for Disaster Recovery with Cloud-Based DBs .............................. 71
Database Disaster Recovery (DR) Overview .......................................... 71
DR Options in Oracle Cloud ................................................................... 72
Provisioning of DataGuard in Oracle Cloud............................................ 73
ix
■ CONTENTS
DR Options in AWS................................................................................. 85
Summary ............................................................................................... 85
■Chapter 6: DB Security ................................................................. 87
Need for Database Security with Cloud-Based DB................................ 87
Cloud Security Model ............................................................................ 87
Security Configurations in Oracle Cloud ................................................ 88
Transparent Data Encryption (TDE) ......................................................................... 89
SQL*Net Encryption ................................................................................................ 90
x
■ CONTENTS
xi
■ CONTENTS
xii
■ CONTENTS
xiii
About the Authors
xv
About the Technical
Reviewer
xvii
Acknowledgments
Converting an idea into a book is a long journey and this can't be done without the help
of so many individuals.
First of all, thanks to my co-author Niraj, without whom I could not have
completed this book. Besides writing four chapters, he was instrumental in solving
many show-stopper issues and keeping the momentum going.
Thanks to our technical reviewer, Sudip, whose expert comments helped in
improving the quality of this book.
Special thanks to our friends, Harichand Kapgate and Luv Ranadive, who constantly
inspired us and motivated us to finish this book.
Thanks to all our family members for their support and encouragement.
Last but not the least, thanks to all our readers!!!
xix
Introduction
Cloud adoption in the database world is growing very rapidly. Various research and
studies forecast the DBaaS and cloud database service market to grow at a compound
annual growth rate (CAGR) of more than 65% by 2019.
Currently available books cover either cloud computing or database administration,
but not both. This book bridges the gap. The book is divided into two parts. Part I covers
the cloud computing concepts and database as a service overview, whereas Part II covers
everything that is required for you to become a cloud DBA.
Part II starts from your first database provisioning in the cloud and then moves to
setting up Oracle RAC and DataGuard in the cloud. The chapter on database migration
to the cloud gives you in-depth details around how to plan and execute DB migration.
The chapter on DB security touches on the key security aspects that you should take
care for your cloud-based database. The backup and recovery chapter covers various
backup and recovery options in Oracle cloud and AWS. The manage and monitor chapter
covers details on all the tools that are useful for performing day-to-day monitoring and
administration. Part II covers DB administration aspects from the two most prominent
cloud providers—Oracle Cloud and Amazon Web Services (AWS).
This book has the right balance of theory and practical examples, along with the best
practices in each given area.
Database administrators, DB architects, and DB operations managers can use this
book to learn and understand the process of running Oracle database in the cloud.
Thanks for purchasing this book; we are confident that the knowledge you acquire by
reading this book will be worth your time and money. For any comments, suggestions, or
feedback, write to us at [email protected].
xxi