Professional Documents
Culture Documents
ISBN: 978-1-26-045260-0
MHID: 1-26-045260-3
The material in this eBook also appears in the print version of this
title: ISBN: 978-1-26-045259-4, MHID: 1-26-045259-X.
TERMS OF USE
Acknowledgments
Introduction
Exam 1Z0-1072
Chapter 1 Oracle Cloud Infrastructure Concepts
Introduction to OCI
Exercise 1-1: Create a New OCI Account
Cloud Computing Models
OCI Features and Components
Regions and Availability Domains
Exercise 1-2: Explore Your Availability Domain
and Region
Off-Box Network Virtualization
OCI Concepts and Terms
Identity and Access Management
Networking
Compute
Storage
Database Cloud Service
Chapter Review
Questions
Answers
Chapter 2 OCI Identity and Access Management
Explain IAM Concepts
Resources
Tenancy and Compartments
Users
Groups
Policies
Dynamic Groups
Describe Resource Locations and Identifiers
Resource Locations
Exercise 2-1: Subscribe to Another Region
Exercise 2-2: Create a Compartment and a VCN
Resource Identifiers
Managing Tags and Tag Namespaces
Advanced Policies
Create IAM Resources
Create Compartments
Exercise 2-3: Create Compartments for
Organization
Create Groups, Users, Policies
Exercise 2-4: Create Groups, Users, and Policies
Federate OCI with Various Identity Providers
Set Up Dynamic Groups
Chapter Review
Questions
Answers
Chapter 3 OCI Networking
Networking Concepts and Terminology
CIDR
Exercise 3-1: Expand CIDR Notation
Virtual Cloud Networks
Subnets
Gateways
Use Virtual Cloud Networks
Exercise 3-2: Create VCNs and Subnets
Exercise 3-3: Deploy a NAT Gateway
Exercise 3-4: Deploy a Service Gateway
Exercise 3-5: Set Up Local VCN Peering
Exercise 3-6: Set Up Remote VCN Peering
DNS in OCI
DNS Concepts and Features
Creating and Managing DNS Records
Exercise 3-7: Set Up a DNS Zone and Resource
Records
Load Balancers in OCI
Load Balancer Terminology and Concepts
Exercise 3-8: Set Up a Load Balancer
Design and Secure OCI Networks
VCN Design
Edge Security
Chapter Review
Questions
Answers
Chapter 4 Compute Instances
Compute Service Components
Compute Shapes
Compute Images
Instance Management
Create Compute Instances
Exercise 4-1: Create an SSH Key Pair
Exercise 4-2: Create a Compute Instance to Use
as a Web Server
Exercise 4-3: Create and Use a Custom Image
Exercise 4-4: Create a Load Balancer to Route
Traffic to Web Servers
Exercise 4-5: Create and Connect to a Windows
Compute Instance
Manage Compute Instances
Instance Configurations, Pools, and Autoscaling
Instance Console Connections
Chapter Review
Questions
Answers
Chapter 5 Storage
Block Storage
Create Block Volumes
Exercise 5-1: Create a Block Volume
Attaching Block Volumes
Exercise 5-2: Attach a Block Volume to a Linux
Instance
Connecting Block Volumes
Exercise 5-3: Connect a Block Volume to Your
Linux Volume Using iSCSI and CHAP
Exercise 5-4: Format a Block Volume, Create a
File System, and Mount the Volume
Exercise 5-5: Present a Block Volume to a
Windows Instance
Block Volume Backup Options
Exercise 5-6: Create a Full Backup of a Block
Volume
Exercise 5-7: Create and Back Up a Volume
Group
Delete and Recover Block Volumes
Exercise 5-8: Restore a Block Volume Backup to
a New Block Volume
Exercise 5-9: Recover a Block Volume Backup in
a Different Region
Object Storage
Buckets and Objects
Exercise 5-10: Upload, Restore, and Download
Using an Archive Tier Bucket
Exercise 5-11: Upload, Restore, and Download
Using a Standard Tier Bucket
Pre-Authenticated Requests
File Storage Service
FSS Concepts
Create, Configure, and Mount a File Storage
Service
Exercise 5-12: Create a File System, Mount
Target, and Mount with NFS Clients
FSS Snapshots
Chapter Review
Questions
Answers
Chapter 6 Databases
Database Cloud Service
DBCS on Bare Metal
DBCS on Exadata (Exadata Cloud Service)
DBCS on VM
Network Requirements for DBCS
Exercise 6-1: Configure a Public Subnet with
Internet Gateway for Your DB System
Exercise 6-2: Create a DB System on a VM
Exercise 6-3: Connect to the Database System
with SSH, SQL*Plus, and asmcmd
Exercise 6-4: Connect to the Database System
with SQL Developer
dbcli
DBCS Backups
Exercise 6-5: Make a Disk-Based Database
Backup Using dbcli
Exercise 6-6: Back Up Your TDE Wallet to Object
Storage Using dbcli
Exercise 6-7: Back Up Your Database to Object
Storage Using RMAN
Exercise 6-8: Create a Standalone Managed
Backup Using the Console
Exercise 6-9: Enable Automatic Incremental
Backups Using the Console
DBCS Patching
Advanced Database Features
Database Licensing
Data Encryption
High Availability
Autonomous Databases
Create an Autonomous Database
Exercise 6-10: Create an ATP Database Using the
Console
Connecting to an Autonomous Database
Exercise 6-11: Connect to an ATP Database
Using the SQL Developer
Back Up and Recover an Autonomous Database
Operating an Autonomous Database
Database Migration
Connectivity
Data Transfer Service
Approaches to Migration
SQL*Loader
Export and Import
Data Guard
RMAN
Data Pump
Multitenant Migration Approaches
SQL Developer
Chapter Review
Questions
Answers
Chapter 7 Automation Tools
OCI CLI
Install and Configure OCI CLI
Exercise 7-1: Install the OCI CLI Using the
Quickstart Installation Script
Exercise 7-2: Configure OCI CLI
Use OCI CLI
Exercise 7-3: Use the OCI CLI to List Supported
Oracle Databases
Terraform
Install and Configure Terraform and the Provider
for OCI
Exercise 7-4: Install and Configure Terraform and
the Provider for OCI on Linux
Use Terraform
Exercise 7-5: Use Terraform to Create and
Remove an OCI VCN
Chapter Review
Questions
Answers
Chapter 8 OCI Best Practice Architectures
Design Highly Available Disaster Recovery (HADR) OCI
Solutions
Regions and Availability Domains
VCNs, Load Balancers, and Compute Instances
VPN and FastConnect
Storage and Compute Instances
Performance-Based HADR
Database HADR
Leverage OCI Security Features to Protect Your Cloud
Infrastructure
IAM
Networking
Compute Instances
Chapter Review
Questions
Answers
Appendix About the Online Content
System Requirements
Your Total Seminars Training Hub Account
Privacy Notice
Single User License Terms and Conditions
TotalTester Online
Technical Support
Glossary
Index
ACKNOWLEDGMENTS
This book was written during the Cloud Wars, the most aggressive
and competitive software development period I have witnessed in
the technology industry. The wars are not over. Cloud vendors vie for
market share with new features being released on an ongoing basis
as they attempt to gain an advantage over the competition.
Completing this book to a standard I am satisfied with during this
time of massive change would not have been possible without the
love, support, encouragement, and friendship of my wife, Dr.
Ameetha Garbharran. I am also fortunate to receive positive energy
and loads of support from my parents, Harriesagar and Sabita Devi
Ramklass.
I am grateful, too, for the meticulous attention to detail of the
technical editor, Simon Pane, who kept me focused on the quality of
this endeavor. I appreciate the support from my friend and colleague
Christine Kivi and the team at Eclipsys Solutions led by Michael
Richardson.
Finally, thank you to the team at McGraw-Hill, specifically Lisa
McClain, Claire Yee, Emily Walters, and Radhika Jolly, who kept me
on track with my deadlines and showed patience and understanding
while I realized that the more things changed in the Cloud space,
the more they stayed the same.
INTRODUCTION
Very simply, Cloud represents the future of IT. It is folly to deny this
as the inevitable wave of technology progress marches on. Your
choice is to either be left behind administering silos of on-premises
infrastructure or embrace this new world of opportunity.
I have been an IT professional for the last 25 years, acquiring
generalist knowledge over my career as a problem solver as I
endeavored to get to the bottom of issues that impacted one or
another mission-critical system. My foray took me into too many
data centers to remember, doing everything from setting up
networks and servers, to architecting and deploying massive
clustered database and middleware infrastructure, to setting up
business intelligence, e-commerce applications, websites, and email
systems. I am probably missing a few things, but the point is that
Cloud lets me apply so much of what I know about technology in a
simple, unbelievably powerful paradigm, without needing to leave
the comfort of my design studio, or half-freeze to death in a cold,
dead data center. I can barely express the liberation and exhilaration
of architecting a fully operational infrastructure solution, codifying it
for repeatability or mass deployment, and with a few commands sit
back and watch as the design comes to life without me setting foot
in a data center or fiddling with cables or disk drives.
This book is aimed at IT professionals who want to know more
about Cloud in general and more specifically more about Oracle
Cloud Infrastructure. The breadth of OCI spans the breadth of
modern IT on-premises infrastructure. So, if you are looking to
retool and are a storage engineer; network, systems, security, or
database administrator; architect; developer; or designer, this book
has you covered. If you are a sales or management professional with
an interest in OCI and data governance, you will find the content
explained in simple, clear terms, but you may have to skip over the
more technical sections.
Writing this book has been quite challenging because of the
constant evolution of OCI. During the initial writing of this book,
Oracle changed the rules of the game a few times, and content had
to be updated. This presented an opportunity to tell the Cloud story
as an exciting evolving journey. There is massive competition in this
market. And this is great for all of us. Oracle, AWS, Google,
Microsoft, and other Cloud vendors innovate at an incredible rate,
spurring one another to release equivalent or better technologies.
OCI was built on lessons learned from the Oracle Classic Cloud as
well as the best-of-breed practices from other vendors. Oracle has
constructed a solid, scalable foundation upon which to innovate, and
it is fantastic. You are guaranteed to see updated screens in the OCI
console compared to the point-in-time snapshots in the book as a
result of the rapid rate of innovation. The foundation, however,
remains stable and constant and that is the hallmark of this book.
You will learn OCI from its roots and build upon this knowledge as
new features are released.
When I started writing this book, there was a single exam for IaaS
and PaaS–Data Management, which was the OCI Certified Architect
Associate exam. As of this writing, there are three tiers of OCI IaaS
certification exams and three tiers of OCI PaaS–Data Management
exams, as well as a few specialist exams. The following table lists
some of these certifications where there is overlap between the
content covered in this book and the certification objectives provided
for these exams.
This book is written as a reference book, not just a study guide
for a specific exam. This book completely covers the content in the
associate exams and mostly covers the content in the professional
and specialist exams. An exam object list is available with each exam
on the Oracle website, and this list represents the current set to be
tested for each certification exam. The object map that follows lists
the chapters in this book and maps these to the exam objectives
tested in the OCI Certified Architect Associate exam at the time of
this writing.
Exam 1Z0-1072
Many of these topics are tested in other exams listed in the
previous table and have been included to provide a complete set of
foundational information. To derive the most value from this book, I
recommend choosing an exam you wish to attempt and cross-
referencing the exam objectives from the Oracle certification website
with the objectives listed in the table of contents to identify overlap
and any exceptions.
One of the first exercises in this book involves signing up for an
Oracle Cloud account. Oracle has blazed the trail here again by
providing a Free Tier account that never expires. Other Cloud
vendors may follow suit in due course. Study the material and
experiment with your cloud tenancy as you work through the
exercises and sample questions and become more familiar with the
Oracle environment. You will realize that there is one golden rule:
When in doubt, try it out.
CHAPTER 1
Oracle has reinvented its infrastructure cloud as the best platform for
hosting Oracle technology and one of the leading cloud vendors for
non-Oracle workloads. The first-generation cloud offering, known as
Oracle Cloud Infrastructure Classic, offers a limited set of compute,
storage, and networking offerings. The second-generation cloud
offering, and the focus of this book, is Oracle Cloud Infrastructure,
or OCI. Learning from both its initial foray into the cloud space and
its competitors, Oracle has designed a unique infrastructure cloud
offering that is open and extensible with some great features.
Introduction to OCI
OCI has been engineered to be simple yet powerful. Modern
computer systems, whether hosted on your desktop or in a data
center, consist of four primary elements:
Oracle provides free credits to get you started with OCI. As you
work your way through this book, we strongly recommend that you
do so with access to your own OCI account.
8. There are several ways to launch the OCI console from the
My Services interface, including using the hamburger menu
and choosing the Compute option in the Services menu or
choosing Infrastructure from the Guided Journey screen and
selecting Create Compute Instance. Various OCI console
options are explored in this book, so prepare to become very
familiar with this interface. You primarily navigate the OCI
console using the burger menu. Choose Menu |
Administration | My Services Dashboard to return to the
dashboard or choose Oracle Cloud Infrastructure next to the
burger menu to access the OCI console Quick Launch page.
Circular Throne Hall in the Grounds of the Lake Palace looted by Allied
Troops in 1900.
Kuang Hsü’s reign was over; there remained to him only the
Imperial title. He had had his chance; in the enthusiasm of youth and
new ideas he had played a desperate game against the powers of
darkness in high places, and he had lost. Once more, as after the
death of T’ung-Chih, Tzŭ Hsi could make a virtue of her satisfied
ambitions. She had given her nephew a free hand, she had retired
from the field, leaving him to steer the ship of State: if he had now
steered it into troublous and dangerous seas, if, by common
consent, she were again called to take the helm, this was the doing
of Heaven and no fault of hers. She could no more be blamed for
Kuang Hsü’s folly than for the vicious habits and premature death of
her son, which had brought her back to power 23 years before. It
was clear (and there were many voices to reassure her of the fact)
that the stars in their courses were working for the continuance of
her unfettered authority, and that any trifling assistance which she
might have given them would not be too closely scrutinised.
Kuang Hsü’s reign was over; but his person (frail, melancholy
tenement) remained, and Tzŭ Hsi was never enamoured of half
measures or ambiguous positions. From the day when the pitiful
monarch entered his pavilion prison on the “Ocean Terrace,” she
began to make arrangements for his “mounting the Dragon” and
“visiting the Nine Springs” in the orthodox classical manner, and for
providing the Throne with another occupant whose youth,
connections and docility would enable her to hold the Regency
indefinitely. Nevertheless, because of the turbulent temper of the
southern provinces and possible manifestations of Europe’s curious
sympathy with the Emperor’s Utopian dreams, she realised the
necessity for proceeding with caution and decorum. It was commonly
reported throughout the city in the beginning of October that the
Emperor would die with the end of the Chinese year.
Kuang Hsü was a prisoner in his Palace, doomed, as he well
knew; yet must he play the puppet Son of Heaven and perform each
season’s appointed posturings. On the 8th day of the 8th Moon he
appeared therefore, as ordered by his attendants, and in the
presence of his whole Court performed the nine prostrations and
other proper acts of obeisance before Her Majesty Tzŭ Hsi, in
recognition of his own nonentity and her supreme authority. In the
afternoon, escorted by a strong detachment of Jung Lu’s troops, he
went from the Lake Palace to sacrifice at the Altar of the Moon.
Thus, pending the coup-de-grâce, the wretched Emperor went
through the empty ceremonies of State ritual; high priest, that was
himself to be the next victim, how bitter must have been his thoughts
as he was borne back with Imperial pomp and circumstance to his
lonely place of humiliation!
Tzŭ Hsi then settled down to her work of government, returning to
it with a zest by no means diminished by the years spent in retreat.
And first she must justify the policy of reaction to herself, to her high
officials, and the world at large. She must get rid of offenders and
surround herself with men after her own heart.
A few days after the Autumn festival and the Emperor’s
melancholy excursion, Her Majesty proceeded to remind the Imperial
Clansmen that their position would not protect them against the
consequences of disloyalty; she was always much exercised
(remembering the Tsai Yüan conspiracy) at any sign of intriguing
amongst her Manchu kinsmen. In this case her warning took the
form of a Decree in which she sentenced the “Beileh” Tsai Ch’u[57] to
perpetual confinement in the “Empty Chamber” of the Clan Court.
Tsai Ch’u had had the audacity to sympathise with the Emperor’s
reform schemes; he had also had the bad luck to marry one of Tzŭ
Hsi’s nieces and to be upon the worst of terms with her. When
therefore he advised the Emperor, in the beginning of the Hundred
Days, to put a stop, once and for all, to the Old Buddha’s
interference in State affairs, the “mean one of his inner chamber” did
not fail to report the fact to Her Majesty, and thus to enlist her
sympathies and activities, from the outset, on the side of the
reactionaries.
At the time immediately following the coup d’état, public opinion at
the Capital was divided as to the merits of the Emperor’s proposed
reforms and the wisdom of their suppression, but the political
instincts of the tribute-fed metropolis are, generally speaking,
dormant, and what it chiefly respects is the energetic display of
power. So that, on the whole, sympathy was with the Old Buddha.
She had, moreover, a Bismarckian way of guiding public opinion, of
directing undercurrents of information through the eunuchs and tea-
house gossip, in a manner calculated to appeal to the instincts of the
literati and the bourgeois; in the present instance stress was laid on
the Emperor’s lack of filial piety, as proved by his plotting against his
aged and august aunt (a thing unpardonable in the eyes of the
orthodox Confucianist), and on the fact that he enjoyed the sympathy
and support of foreigners—an argument sufficient to damn him in the
eyes of even the most progressive Chinese. It came, therefore, to be
the generally accepted opinion that His Majesty had shown
deplorable want of judgment and self-control, and that the Empress
Dowager was fully justified in resuming control of the government.
This opinion even came to be accepted and expressed by those
Legations which had originally professed to see in the Emperor’s
reforms the dawn of a new era for China. So elastic is diplomacy in
following the line of the least resistance, so adroit (in the absence of
a policy of its own) in accepting and condoning any fait accompli,
that it was not long before the official attitude of the Legations—
including the British—had come to deprecate the Emperor’s
unfortunate haste in introducing reforms, reforms which every
foreigner in China had urged for years, and which, accepted in
principle by the Empress since 1900, have again been welcomed as
proof of China’s impending regeneration. In June 1898, the British
Minister had seen in the Emperor’s Reform Edicts proof that “the
Court had at last thoroughly recognised a real need for radical
reform.”[58] In October, when the Chief Reformer (K’ang Yu-wei) had
been saved from Tzŭ Hsi’s vengeance by the British Consul-General
at Shanghai and conveyed by a British warship to the protection of a
British Colony (under the mistaken impression that England would
actively intervene in the cause of progress and on grounds of self-
interest if not of humanity), we find the tide of expediency turned to
recognition of the fact that “the Empress Dowager and the Manchu
party were seriously alarmed for their own safety, and looked upon
the Reform movement as inimical to Manchu rule”![58] And two
months later, influenced no doubt by the impending season of peace
and good will, the Marquess of Salisbury is seriously informed by Sir
Claude Macdonald that the wives of the foreign Representatives,
seven in all, had been received in audience by the Empress
Dowager on the anniversary of her sixty-fourth birthday, and that Her
Majesty “made a most favourable impression, both by the personal
interest she took in all her guests and by her courteous
amiability.”[58] On which occasion the puppet Emperor was exhibited,
to comply with the formalities, and was made to shake hands with all
the ladies. And so the curtain was rung down, and the Reform play
ended, to the satisfaction of all (or nearly all) concerned.
Nevertheless, the British Minister and others, disturbed at the
persistent rumours that “the Empress Dowager was about to
proceed to extreme steps in regard to the Emperor,”[58] went so far
as to warn the Chinese Government against anything so disturbing
to the European sense of fitness and decency. Foreign countries, the
Yamên was told, would view with displeasure and alarm his sudden
demise. When the news of the British Minister’s intervention became
known in the tea-houses and recorded in the Press, much
indignation was expressed: this was a purely domestic question, for
which precedents existed in plenty and in which foreigners’ advice
was inadmissible. The Emperor’s acceptance of new-fangled foreign
ideas was a crime in the eyes of the Manchus, but his enlistment of
foreign sympathy and support was hateful to Manchus and Chinese
alike.
Matters soon settled down, however, into the old well-worn
grooves, the people satisfied and even glad in the knowledge that
the Old Buddha was once more at the helm. In the capital the news
had been sedulously spread—in order to prepare the way for the
impending drama of expiation—that Kuang Hsü had planned to
murder Her Majesty, and his present punishment was therefore
regarded as mild beyond his deserts.[59] Scholars, composing
essays appropriate to the occasion, freely compared His Majesty to
that Emperor of the Tang Dynasty (a.d. 762) who had instigated the
murdering of the Empress Dowager of his day. Kuang Hsü’s death
was therefore freely predicted and its effects discounted; there is no
doubt that it would have caused little or no comment in the north of
China, however serious its consequences might have been in the
south. The public mind having been duly prepared, the Empress
Dowager, in the name of the prospective victim, issued a Decree
stating that the Son of Heaven was seriously ill; no surprise or
apprehension was expressed, and the sending of competent
physicians from the provinces to attend His Majesty was recognised
as a necessary concession to formalities. “Ever since the 4th Moon,”
said this Decree (i.e., since the beginning of the hundred days of
reform), “I have been grievously ill; nor can I find any alleviation of
my sickness.” It was the pro formâ announcement of his impending
despatch, and as such it was received by the Chinese people.
Amongst the doctors summoned to attend His Majesty was Ch’en
Lien-fang, for many years the most celebrated physician in China.
The following account of his experiences at the capital and the
nature of his duties, was supplied by himself at the time, to one of
the writers, for publication in The Times.