Professional Documents
Culture Documents
Activity Guide OCI DB Service Professional WorkShop
Activity Guide OCI DB Service Professional WorkShop
Activity Guide OCI DB Service Professional WorkShop
Al
Activity Guide
eja
S1102502GC10
n dr
o
M
un
oz
(a
m
un
lic ozc
en 19
se 87
to @
us gm
e ai
th l.c
is o
Disclaimer
This document contains proprietary information and is protected by copyright and other intellectual property laws.
The document may not be modified or altered in any way. Except where your use constitutes "fair use" under
copyright law, you may not use, share, download, upload, copy, print, display, perform, reproduce, publish, license,
post, transmit, or distribute this document in whole or in part without the express authorization of Oracle.
The information contained in this document is subject to change without notice and is not warranted to be error-
bl e
free. If you find any errors, please report them to us in writing.
ra
Restricted Rights Notice
sfe
If this documentation is delivered to the United States Government or anyone using the documentation on behalf of
an
the United States Government, the following notice is applicable:
-tr
U.S. GOVERNMENT END USERS: Oracle programs (including any operating system, integrated software, any
n
programs embedded, installed or activated on delivered hardware, and modifications of such programs) and Oracle
no
computer documentation or other Oracle data delivered to or accessed by U.S. Government end users are
"commercial computer software" or "commercial computer software documentation" pursuant to the applicable
. sa
Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, reproduction,
duplication, release, display, disclosure, modification, preparation of derivative works, and/or adaptation of i) Oracle
ide ha
programs (including any operating system, integrated software, any programs embedded, installed or activated on
delivered hardware, and modifications of such programs), ii) Oracle computer documentation and/or iii) other
Gu m)
Oracle data, is subject to the rights and limitations specified in the license contained in the applicable contract. The
terms governing the U.S. Government's use of Oracle cloud services are defined by the applicable contract for such
is o
services. No other rights are granted to the U.S. Government.
th l.c
e ai
Trademark Notice
us gm
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their
to @
respective owners.
se 87
Intel and Intel Inside are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used
under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Epyc, and the AMD
en 19
logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The
lic ozc
Open Group.
This documentation may provide access to or information about content, products, and services from third parties.
(a
Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with
respect to third-party content, products, and services unless otherwise set forth in an applicable agreement between
oz
you and Oracle. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred
due to your access to or use of third-party content, products, or services, except as set forth in an applicable
un
1010172022
n
eja
Al
Unauthorized reproduction or distribution prohibited. Copyright© 2023, Oracle University and/or its affiliates.
Table of Contents
bl e
Practices 1: Overview ..................................................................................................................... 6
Practice 1-1: Creating a Virtual Cloud Network (VCN) ................................................................... 7
ra
Practice 1-2: Creating a Virtual Machine DB System ..................................................................... 12
sfe
Practice 2: Creating a PDB in a DB System ................................................................................... 17
an
Practice 2: Overview ....................................................................................................................... 18
-tr
Practice 2-1: Creating a Pluggable Database in an existing DB System ....................................... 19
n
no
Practice 3: Updating and Configuring a DB System on OCI ........................................................ 23
. sa
Practice 3: Overview ....................................................................................................................... 24
Practice 3-1: Scaling Up Storage for a Virtual Machine DB system ............................................... 25
ide ha
Practice 4: Backup a Database on OCI .......................................................................................... 29
Gu m)
Practice 4: Overview ....................................................................................................................... 30
is o
Practice 4-1: Enabling or Disabling Automatic Backups ................................................................. 31
th l.c
Practice 4-2: Creating On-Demand Backup Using Console ........................................................... 34
e ai
us gm
iv
Al
eja
ndr
o
M
un
oz
(a
m
un
lic ozc
en 19
se 87
to @
us gm
e ai
th l.c
is o
Gu m)
Al
eja
ndr
o
M
un
oz
(a
m
un
lic ozc
en 19
se 87
to @
us gm
e ai
th l.c
is o
Systems
Gu m)
ide ha
. sa
no
n -tr
an
sfe
ra
bl e
Practice 1: Create a VM DB
Practices 1: Overview
Unauthorized reproduction or distribution prohibited. Copyright© 2023, Oracle University and/or its affiliates.
Overview
In this practice, you will assume the role of a Cloud Database Administrator (DBA) and perform
the following tasks in order to create a database system on Oracle Cloud Infrastructure (OCI):
• Create a Virtual Cloud Network (VCN)
bl e
• Create a Database System on OCI
ra
sfe
Important:
an
• All instructions in this course, unless specified otherwise, assume that you are working
-tr
on a local Windows 64-bit system, i.e. laptop or desktop.
n
•
no
You are working on an open internet connection, i.e. not connected to any VPN or
working in a restricted network that blocks connection from your local system to cloud
. sa
service instances.
ide ha
Gu m)
is o
th l.c
e ai
us gm
to @
se 87
en 19
lic ozc
un
m
(a
oz
un
M
o
ndr
eja
Al
Overview
In this practice, you will create a Virtual Cloud Network (VCN) in preparation to create a Virtual
Machine DB System in the subsequent practice.
Note: Oracle University training, Oracle Cloud Infrastructure Fundamentals has detailed
bl e
explanation about the VCN concepts and cloud network components.
ra
Assumptions
sfe
All practices from previous lessons are completed successfully.
an
-tr
Tasks
n
no
1. Open the Navigation Menu on the top left corner, click Networking and then click
. sa
Virtual Cloud Networks.
ide ha
Gu m)
is o
th l.c
e ai
us gm
to @
se 87
en 19
lic ozc
un
m
(a
oz
un
M
o
ndr
eja
Al
bl e
ra
sfe
an
-tr
4. In the dialog box, choose VCN with Internet Connectivity, and click Start VCN Wizard.
n
no
. sa
ide ha
Gu m)
is o
th l.c
e ai
us gm
to @
se 87
en 19
lic ozc
un
m
(a
oz
un
M
o
Note: This option is the quickest way to get a working cloud network in the fewest steps.
dr
bl e
ra
sfe
an
-tr
n
no
. sa
ide ha
Gu m)
is o
th l.c
e ai
us gm
to @
se 87
9.
8.
10
Al
eja
ndr
o
M
un
oz
(a
m
un
lic ozc
en 19
se 87
The VCN is created along with resources.
to @
us gm
e ai
th l.c
is o
Gu m)
-tr
an
sfe
ra
bl e
Al
eja
ndr
o
M
un
oz
us gm
e ai
th l.c
is o
Gu m)
11
Practice 1-2: Creating a Virtual Machine DB System
Unauthorized reproduction or distribution prohibited. Copyright© 2023, Oracle University and/or its affiliates.
Overview
In this practice, you will launch a Virtual Machine DB System, taking the following into
consideration:
• The DB System should be named as follows: <student_initials>DBVM. (Throughout
bl e
the practice, the DB System will be referred to as MYDBVM. In order to ensure the
ra
service instance name is unique, ensure to substitute your initials in place of MY in
sfe
MYDBVM)
•
an
Software Version: Oracle Database 19c
•
-tr
Software Edition: Enterprise Edition – Extreme Performance
n
• Database Type: Single Instance
no
• The database should be named MYORCL and the PDB should be named MYPDB1.
. sa
• Select Shape “VM.Standard2.1” (1 OCPU and 15 GB RAM).
ide ha
Assumptions
Gu m)
All the previous practices are completed successfully.
is o
th l.c
e ai
2. Open the navigation Menu on top left corner. Click Oracle Database, then click Oracle
se 87
bl e
ra
sfe
an
-tr
n
no
. sa
ide ha
Gu m)
is o
th l.c
e ai
a. Select a compartment: This will default to your assigned compartment if you have
to @
bl e
ra
sfe
an
-tr
n
no
. sa
ide ha
Gu m)
g. Configure the DB System: set Oracle Database software edition to Enterprise
is o
th l.c
Edition Extreme Performance.
e ai
j. Virtual Cloud Network: From the drop down list, choose the Virtual Cloud Network,
m
(a
which was created in the previous practice. (In this example the name of the VCN was
MYVCN.)
oz
down list. (In this example the name of the Client Subnet was “Public-Subnet-
M
MYVCN(regional)”
o
dr
m. Click Next
eja
bl e
Note: Generally, database deployment takes around 60 to 80 minutes to complete
ra
depending on resource availability. Allow sufficient time for this to complete.
sfe
8. Once the DB system is created successfully, it is listed on the DB Systems home page with
all the details. You can click the <student_initials>DBVM display name to see more
an
details.
-tr
n
no
. sa
ide ha
Gu m)
is o
th l.c
e ai
us gm
to @
se 87
en 19
lic ozc
un
m
(a
oz
un
M
o
dr
n
eja
Al
16
Al
eja
ndr
o
M
un
oz
(a
m
un
lic ozc
en 19
se 87
to @
us gm
e ai
th l.c
is o
Gu m)
Al
eja
ndr
o
M
un
oz
(a
m
un
lic ozc
en 19
se 87
to @
us gm
e ai
th l.c
is o
Gu m)
ide ha
a DB System
. sa
no
n -tr
an
sfe
ra
bl e
Practice 2: Creating a PDB in
Practice 2: Overview
Unauthorized reproduction or distribution prohibited. Copyright© 2023, Oracle University and/or its affiliates.
Overview
In these practices, you will create a Pluggable Database (PDB) in an existing DB System.
bl e
ra
sfe
an
-tr
n
no
. sa
ide ha
Gu m)
is o
th l.c
e ai
us gm
to @
se 87
en 19
lic ozc
un
m
(a
oz
un
M
o
ndr
eja
Al
Overview
In this practice, you will create a new Pluggable Database in an existing DB System using the
OCI Console.
bl e
Assumptions
ra
All previous practices are completed successfully.
sfe
Tasks
an
1. Open the Navigation Menu.
-tr
n
2. Click Oracle Database.
no
3. Click Oracle Base Database (VM, BM).
. sa
4. Under List Scope select the compartment allocated to you.
ide ha
Gu m)
is o
th l.c
e ai
us gm
to @
se 87
5. Under the DB Systems list click on the DB System you have created. In our case it is
MYDBVM.
en 19
lic ozc
un
m
(a
oz
un
M
o
n dr
eja
Al
bl e
ra
sfe
an
-tr
7. From the list of Databases select the database in which you want to create the PDB. In our
n
no
case it is MYORCL.
. sa
ide ha
Gu m)
is o
th l.c
e ai
us gm
Ensure your password meets the required standards as specified in the wizard.
d. Confirm PDB Admin Password: Re-enter the password.
e. TDE wallet password of database: Enter the password for the TDE wallet of the
PDB.
11. Click Create Pluggable Database button
bl e
ra
sfe
an
-tr
n
no
. sa
ide ha
Gu m)
is o
th l.c
e ai
us gm
to @
se 87
en 19
lic ozc
un
m
(a
oz
un
M
o
dr
n
eja
Al
22
Al
eja
ndr
o
M
un
oz
(a
m
un
lic ozc
en 19
se 87
to @
us gm
e ai
th l.c
is o
Gu m)
bl e
Al
eja
ndr
o
M
un
oz
(a
m
un
lic ozc
en 19
se 87
to @
us gm
OCI
e ai
th l.c
is o
Gu m)
ide ha
. sa
no
n -tr
an
sfe
ra
Practice 3: Updating and
bl e
Configuring a DB System on
Practice 3: Overview
Unauthorized reproduction or distribution prohibited. Copyright© 2023, Oracle University and/or its affiliates.
Overview
In this practice, you will scale up the storage for a Virtual Machine DB System.
As a DBA, you can increase the storage of a Virtual Machine DB System without impacting the
system, if it requires more block storage at any point in time.
bl e
ra
sfe
an
-tr
n
no
. sa
ide ha
Gu m)
is o
th l.c
e ai
us gm
to @
se 87
en 19
lic ozc
un
m
(a
oz
un
M
o
ndr
eja
Al
Overview
In this practice, you will scale up the storage for a Virtual Machine DB System.
Assumptions
bl e
All the previous practices are completed successfully.
ra
Note: These steps are just for your reference. You can go up to the last step and choose not to
sfe
execute this practice to save on training resources in this shared environment. If you choose to
scale up your system, give it sufficient time for the update to complete.
an
-tr
Tasks
n
no
1. Open the Navigation Menu.
. sa
2. Click Oracle Database.
3. Click Oracle Base Database (VM, BM).
ide ha
4. Under List Scope select the compartment allocated to you.
Gu m)
is o
th l.c
e ai
us gm
to @
se 87
en 19
5. Under the DB Systems list click on the DB System you have created. In our case it is
lic ozc
MYDBVM.
un
m
(a
oz
un
M
o
n dr
eja
Al
6. Click Scale Storage Up, and then select the new storage size from the drop-down list.
26
Al
eja
ndr
o
M
un
oz
(a
m
un
lic ozc
en 19
se 87
to @
us gm
e ai
th l.c
is o
Gu m)
active state once done. If you choose to scale up your system, give it sufficient time for the
update to complete.
bl e
ra
sfe
an
-tr
n
no
. sa
ide ha
Gu m)
is o
th l.c
e ai
us gm
to @
se 87
en 19
lic ozc
un
m
(a
oz
un
M
o
n dr
eja
Al
28
Al
eja
ndr
o
M
un
oz
(a
m
un
lic ozc
en 19
se 87
to @
us gm
e ai
th l.c
is o
Gu m)
Al
eja
ndr
o
M
un
oz
(a
m
un
lic ozc
en 19
se 87
to @
us gm
e ai
th l.c
is o
Gu m)
ide ha
. sa
no
n
Database on OCI
-tr
an
Practice 4: Backup a
sfe
ra
bl e
Practice 4: Overview
Unauthorized reproduction or distribution prohibited. Copyright© 2023, Oracle University and/or its affiliates.
Overview
In this practice, you will learn to configure automatic backups for a Database on VM DB System
and take an on-demand backup.
bl e
ra
sfe
an
n-tr
no
. sa
ide ha
Gu m)
is o
th l.c
e ai
us gm
to @
se 87
en 19
lic ozc
un
m
(a
oz
un
M
o
ndr
eja
Al
Overview
In this practice, you will learn to enable and disable the Automatic Backups for a database.
Assumptions
bl e
All the previous practices are completed successfully.
ra
sfe
Tasks
an
1. Open the navigation menu. Under Oracle Database, click Oracle Base Database
(VM,BM).
-tr
n
2. Choose your Compartment.
no
3. Find your DB system where the database is located, and click the system display name to
. sa
see the details.
4. Scroll down to the Database section, and find the database for which you want to enable or
ide ha
disable automatic backups, and click the database display name to see the details.
Gu m)
is o
th l.c
e ai
us gm
bl e
ra
sfe
an
n-tr
no
. sa
ide ha
7. Select Enable Automatic Backup check box, select the desired Backup Retention
Gu m)
Period, and click Save Changes.
is o
th l.c
e ai
us gm
to @
se 87
en 19
lic ozc
un
m
(a
oz
un
M
o
ndr
eja
Al
bl e
ra
sfe
an
-tr
n
no
. sa
ide ha
This competes the task of enabling or disabling automatic backup of your OCI database. If you
enable automatic backup, it may initiate a backup job. If this happens allow sufficient time for
Gu m)
the backup to complete and then continue to the next practice.
is o
th l.c
e ai
us gm
to @
se 87
en 19
lic ozc
un
m
(a
oz
un
M
o
ndr
eja
Al
Overview
In this practice, you will create an on-demand backup using the OCI console.
Assumptions
bl e
All the previous practices are completed successfully.
ra
sfe
Tasks
an
1. Open the navigation menu. Under Oracle Database, click Oracle Base Database
(VM,BM).
n-tr
2. Choose your Compartment.
no
3. Find your DB system where the database is located, and click the system display name to
. sa
see the details.
4. Find the database for which on-demand full backup needs to be created and click its
ide ha
display name to see the details.
Gu m)
5. Under Resources, click Backups. A list of backups is displayed if any.
6.
is o
Click Create Backup and enter the name as MYDB_BACKUP.
th l.c
e ai
us gm
to @
se 87
en 19
lic ozc
un
m
(a
This completes the task of taking an on-demand full backup of your OC Database. Allow
oz
sufficient time for the backup job to complete before moving to the next practice.
un
M
o
dr
n
eja
Al
Al
eja
ndr
o
M
un
oz
(a
m
un
lic ozc
en 19
se 87
to @
us gm
e ai
th l.c
is o
Gu m)
ide ha
. sa
System on OCI
no
n -tr
an
sfe
ra
Practice 5: Cloning a DB
bl e
Unauthorized reproduction or distribution prohibited. Copyright© 2023, Oracle University and/or its affiliates.
36
Overview
Al
eja
ndr
o
M
un
Practice 5: Overview
oz
(a
m
un
lic ozc
en 19
se 87
to @
us gm
In this practice, you will clone your Database System.
e ai
th l.c
is o
Gu m)
Overview
In this practice, you will learn how to clone a virtual machine DB system that uses Logical
Volume Manager storage management software.
bl e
Assumptions
•
ra
All previous practices are completed successfully.
sfe
Tasks
an
1. Open the Navigation Menu.
-tr
n
2. Click Oracle Database.
no
3. Click Oracle Base Database (VM, BM).
. sa
4. Under List Scope select the compartment allocated to you.In the list of DB systems, find
the system you want to clone and click the display name of your DB system. The DB
ide ha
System Information page is displayed.
Gu m)
5. On the DB system Details page, click Clone. This opens the Clone DB System page.
6.
is o
Select or fill in the following values in the DB system wizard:
th l.c
e ai
c. SSH Public Key: Select UPLOAD SSH KEY FILES options and browse to select the
SSH public key, which was created earlier. (In this example it is mykey.pub.)
se 87
en 19
b. Virtual Cloud Network: From the drop down list, choose the Virtual Cloud Network,
which was created in the previous practice. (In this example the name of the VCN was
un
MYVCN.)
m
down list. (In this example the name of the Client Subnet was “Public-Subnet-
oz
MYVCN(regional)”
un
f. Database Admin Password: Enter the password to manage the SYS and SYSTEM
dr
database accounts. Ensure your password meets the required standards as specified
n
eja
in the wizard.
Al
9.
38
Al
eja
Available.
ndr
o
M
un
oz
(a
m
un
lic ozc
en 19
se 87
to @
us gm
e ai
th l.c
is o
Gu m)
Al
eja
ndr
o
M
un
oz
(a
m
un
lic ozc
en 19
se 87
to @
us gm
e ai
th l.c
is o
Gu m)
ide ha
. sa
System on OCI
no
n -tr
an
sfe
ra
Practice 6: Deleting a DB
bl e
Unauthorized reproduction or distribution prohibited. Copyright© 2023, Oracle University and/or its affiliates.
40
Overview
Al
eja
ndr
o
M
un
Practice 6: Overview
oz
(a
m
un
lic ozc
en 19
se 87
to @
us gm
In this practice, you will delete your Database System.
e ai
th l.c
is o
Gu m)
Overview
In this practice, you will learn how to delete a virtual machine DB System.
Assumptions
bl e
• All previous practices are completed successfully.
ra
sfe
Tasks
an
1. Open the Navigation Menu.
-tr
2. Click Oracle Database.
n
3. Click Oracle Base Database (VM, BM).
no
4. Under List Scope select the compartment allocated to you.In the list of DB systems, find
. sa
the system you want to clone and click the display name of your DB system. The DB
System Information page is displayed.
ide ha
5. On the DB system Details page, click More Actions and click Terminate from the drop
Gu m)
down list.
6.
is o
In the Terminate DB System window, enter the DB System name to confirm and click
th l.c
Terminate DB System button.
e ai
us gm
8.
42
Al
eja
ndr
o
M
un
oz
(a
m
un
lic ozc
en 19
se 87
to @
us gm
e ai
th l.c
is o
Gu m)
-tr
an
sfe
ra
bl e
Al
eja
ndr
o
M
un
oz
(a
m
un
lic ozc
en 19
se 87
to @
us gm
e ai
th l.c
is o
Gu m)
DB System
ide ha
. sa
no
n -tr
an
sfe
ra
bl e
Practice 7: Create a MySQL
Practice 7: Overview
Unauthorized reproduction or distribution prohibited. Copyright© 2023, Oracle University and/or its affiliates.
Overview
In this practice, you will assume the role of a Cloud Database Administrator (DBA) and perform
the following tasks in order to create a MySQL Database System on Oracle Cloud Infrastructure
(OCI).
bl e
Assumptions
ra
•
sfe
You have already created a VCN in the compartment in which you are going to create
the MySQL Database System.
an
-tr
Important:
n
no
• All instructions in this course, unless specified otherwise, assume that you are working
. sa
on a local Windows 64-bit system, i.e. laptop or desktop.
• You are working on an open internet connection, i.e. not connected to any VPN or
ide ha
working in a restricted network that blocks connection from your local system to cloud
Gu m)
service instances.
is o
th l.c
e ai
us gm
to @
se 87
en 19
lic ozc
un
m
(a
oz
un
M
o
dr
n
eja
Al
Overview
In this practice, you will launch a MySQL DB System, taking the following into consideration:
• The DB System should be named as follows: <student_initials>MySQLDBVM.
(Throughout the practice, the DB System will be referred to as MYSQLDBVM. In order to
bl e
ensure the service instance name is unique, ensure to substitute your initials in place
ra
of TC in TCMySQLDBVM)
sfe
• Software Version: Oracle Database 19c
an
• Software Edition: Enterprise Edition – Extreme Performance
-tr
• Database Type: Single Instance
n
• The database should be named MYORCL and the PDB should be named MYPDB1.
no
• Select Shape “VM.Standard2.1” (1 OCPU and 15 GB RAM).
. sa
ide ha
Assumptions
Gu m)
All the previous practices are completed successfully.
is o
th l.c
Tasks:
e ai
2. Open the navigation Menu on top left corner. Click Database, then click DB Systems
to @
under MySQL
se 87
en 19
lic ozc
un
m
(a
oz
un
M
o
dr
n
eja
Al
bl e
ra
sfe
an
n -tr
no
. sa
ide ha
Gu m)
is o
th l.c
e ai
us gm
a. Select a compartment: This will default to your assigned compartment if you have
already selected, else select your compartment
en 19
e. Virtual Cloud Network: From the drop down list, choose the Virtual Cloud Network,
un
which was created in the previous practice. (In this example the name of the VCN was
M
MYVCN.)
o
down list. (In this example the name of the Client Subnet was “Public-Subnet-
n
eja
MYVCN(regional)”
Al
state Creating.
bl e
ra
sfe
an
-tr
n
no
. sa
ide ha
Gu m)
7. Click the refresh page periodically until you see that your database deployment has been
is o
th l.c
created.
e ai
8. Once the DB system is created successfully, it is listed on the DB Systems home page with
se 87
all the details. You can click the <student_initials>MySQLDBVM display name to see
more details.
en 19
lic ozc
un
m
(a
oz
un
M
o
ndr
eja
Al
48
Al
eja
ndr
o
M
un
oz
(a
m
un
lic ozc
en 19
se 87
to @
us gm
e ai
th l.c
is o
Gu m)