Be
Activity Guide
ru
S1102502GC10
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
Professional Workshop
. on-
tra
nsfe
ra
bl e
lic
en
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-
to
free. If you find any errors, please report them to us in writing.
e
Restricted Rights Notice
s
en
If this documentation is delivered to the United States Government or anyone using the documentation on behalf of
lic
the United States Government, the following notice is applicable:
bl e
U.S. GOVERNMENT END USERS: Oracle programs (including any operating system, integrated software, any
programs embedded, installed or activated on delivered hardware, and modifications of such programs) and Oracle
ra
computer documentation or other Oracle data delivered to or accessed by U.S. Government end users are
sfe
"commercial computer software" or "commercial computer software documentation" pursuant to the applicable
Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, reproduction,
n
duplication, release, display, disclosure, modification, preparation of derivative works, and/or adaptation of i) Oracle
tra
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
. on-
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
ide a n
services. No other rights are granted to the U.S. Government.
Gu s
Trademark Notice
is ha
Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their
th t)
respective owners.
e .e
us om
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
c
logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The
e.
Open Group.
db
This documentation may provide access to or information about content, products, and services from third parties.
uk
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
er
you and Oracle. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred
(b
due to your access to or use of third-party content, products, or services, except as set forth in an applicable
agreement between you and Oracle.
iel
an
kD
1010172022
ru
Be
Unauthorized reproduction or distribution prohibited. Copyright© 2023, Oracle University and/or its affiliates.
Table of Contents
to
Practices 1: Overview ..................................................................................................................... 6
Practice 1-1: Creating a Virtual Cloud Network (VCN) ................................................................... 7
s e
Practice 1-2: Creating a Virtual Machine DB System ..................................................................... 12
en
lic
Practice 2: Creating a PDB in a DB System ................................................................................... 17
Practice 2: Overview ....................................................................................................................... 18
bl e
Practice 2-1: Creating a Pluggable Database in an existing DB System ....................................... 19
ra
Practice 3: Updating and Configuring a DB System on OCI ........................................................ 23
sfe
Practice 3: Overview ....................................................................................................................... 24
n
tra
Practice 3-1: Scaling Up Storage for a Virtual Machine DB system ............................................... 25
. on-
Practice 4: Backup a Database on OCI .......................................................................................... 29
Practice 4: Overview ....................................................................................................................... 30
ide a n
Practice 4-1: Enabling or Disabling Automatic Backups ................................................................. 31
Gu s
iv
Be
ru
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
ide a n
. on-
Be
ru
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
ide a n
Systems
. on-
tra
n sfe
ra
bl e
lic
en
s e
to
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)
to
• Create a Database System on OCI
s e
en
Important:
lic
• All instructions in this course, unless specified otherwise, assume that you are working
bl e
on a local Windows 64-bit system, i.e. laptop or desktop.
ra
• You are working on an open internet connection, i.e. not connected to any VPN or
sfe
working in a restricted network that blocks connection from your local system to cloud
service instances.
n
tra
. on-
ide a n
Gu s
is ha
th t)
e .e
us om
c
e.
db
d @
uk
er
(b
iel
an
kD
ru
Be
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
to
explanation about the VCN concepts and cloud network components.
se
Assumptions
en
lic
All practices from previous lessons are completed successfully.
bl e
Tasks
ra
sfe
1. Open the Navigation Menu on the top left corner, click Networking and then click
Virtual Cloud Networks.
n
tra
. on-
ide a n
Gu s
is ha
th t)
e .e
us om
c
e.
db
d @
uk
er
(b
iel
an
kD
ru
Be
to
s e
en
lic
bl e
4. In the dialog box, choose VCN with Internet Connectivity, and click Start VCN Wizard.
ra
n sfe
tra
. on-
ide a n
Gu s
is ha
th t)
e .e
us om
c
e.
db
d@
uk
er
(b
iel
an
Note: This option is the quickest way to get a working cloud network in the fewest steps.
kD
a. VCN Name – Enter a name for your cloud network, for example, <your_initials>VCN.
(In this example we will use MYVCN.)
b. Compartment – Confirm the correct compartment has been selected
c. VCN CIDR Block – Enter 10.0.0.0/16
d. Public Subnet CIDR Block – Enter 10.0.0.0/24
to
se
en
lic
bl e
ra
n sfe
tra
. on-
ide a n
Gu s
is ha
th t)
e .e
us om
to
s e
en
lic
bl e
ra
n sfe
tra
. on-
ide a n
9. Click View Virtual Cloud Network to check the details of your VCN.
Gu s
is ha
th t)
e .e
us om
c
e.
db
d@
uk
er
(b
iel
an
kD
ru
Be
Be
ru
kD
an
iel
(b
er
th t)
is ha
Gu s
ide a n
. on-
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
to
the practice, the DB System will be referred to as MYDBVM. In order to ensure the
e
service instance name is unique, ensure to substitute your initials in place of MY in
s
en
MYDBVM)
lic
• Software Version: Oracle Database 19c
bl e
• Software Edition: Enterprise Edition – Extreme Performance
•
ra
Database Type: Single Instance
sfe
• The database should be named MYORCL and the PDB should be named MYPDB1.
n
• Select Shape “VM.Standard2.1” (1 OCPU and 15 GB RAM).
tra
. on-
Assumptions
ide a n
All the previous practices are completed successfully.
Gu s
2. Open the navigation Menu on top left corner. Click Oracle Database, then click Oracle
us om
to
se
en
lic
bl e
ra
n sfe
tra
. on-
ide a n
Gu s
a. Select a compartment: This will default to your assigned compartment if you have
th t)
to
s e
en
lic
bl e
ra
n sfe
tra
. on-
g. Configure the DB System: set Oracle Database software edition to Enterprise
ide a n
Edition Extreme Performance.
Gu s
j. Virtual Cloud Network: From the drop down list, choose the Virtual Cloud Network,
d
uk
which was created in the previous practice. (In this example the name of the VCN was
er
MYVCN.)
(b
down list. (In this example the name of the Client Subnet was “Public-Subnet-
an
MYVCN(regional)”
kD
to
Note: Generally, database deployment takes around 60 to 80 minutes to complete
e
depending on resource availability. Allow sufficient time for this to complete.
s
en
8. Once the DB system is created successfully, it is listed on the DB Systems home page with
lic
all the details. You can click the <student_initials>DBVM display name to see more
details.
bl e
ra
n sfe
tra
. on-
ide a n
Gu s
is ha
th t)
e .e
us om
c
e.
db
d @
uk
er
(b
iel
an
kD
ru
Be
16
Be
ru
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
ide a n
. on-
Be
ru
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
ide a n
. on-
tra
n
a DB System
sfe
ra
bl e
lic
en
s e
to
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.
to
s e
en
lic
bl e
ra
n sfe
tra
. on-
ide a n
Gu s
is ha
th t)
e .e
us om
c
e.
db
d@
uk
er
(b
iel
an
kD
ru
Be
Overview
In this practice, you will create a new Pluggable Database in an existing DB System using the
OCI Console.
to
Assumptions
e
All previous practices are completed successfully.
s
en
Tasks
lic
1. Open the Navigation Menu.
bl e
2. Click Oracle Database.
ra
3. Click Oracle Base Database (VM, BM).
sfe
4. Under List Scope select the compartment allocated to you.
n
tra
. on-
ide a n
Gu s
is ha
th t)
e .e
5. Under the DB Systems list click on the DB System you have created. In our case it is
us om
MYDBVM.
c
e.
db
d @
uk
er
(b
iel
an
kD
ru
Be
to
s e
en
lic
bl e
7. From the list of Databases select the database in which you want to create the PDB. In our
ra
case it is MYORCL.
n sfe
tra
. on-
ide a n
Gu s
is ha
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
to
se
en
lic
bl e
ra
n sfe
tra
. on-
ide a n
Gu s
is ha
th t)
e .e
us om
c
e.
db
d @
uk
er
(b
iel
an
kD
ru
Be
22
Be
ru
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
ide a n
. on-
e
to
Be
ru
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
OCI
Gu s
ide a n
. on-
tra
n sfe
ra
bl e
lic
en
s e
Practice 3: Updating and
to
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.
to
se
en
lic
bl e
ra
n sfe
tra
. on-
ide a n
Gu s
is ha
th t)
e .e
us om
c
e.
db
d@
uk
er
(b
iel
an
kD
ru
Be
Overview
In this practice, you will scale up the storage for a Virtual Machine DB System.
Assumptions
to
All the previous practices are completed successfully.
e
Note: These steps are just for your reference. You can go up to the last step and choose not to
s
en
execute this practice to save on training resources in this shared environment. If you choose to
lic
scale up your system, give it sufficient time for the update to complete.
bl e
Tasks
ra
1. Open the Navigation Menu.
sfe
2. Click Oracle Database.
n
tra
3. Click Oracle Base Database (VM, BM).
. on-
4. Under List Scope select the compartment allocated to you.
ide a n
Gu s
is ha
th t)
e .e
us om
c
e.
5. Under the DB Systems list click on the DB System you have created. In our case it is
db
MYDBVM.
d @
uk
er
(b
iel
an
kD
ru
Be
6. Click Scale Storage Up, and then select the new storage size from the drop-down list.
26
Be
ru
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
ide a n
. on-
active state once done. If you choose to scale up your system, give it sufficient time for the
update to complete.
to
se
en
lic
bl e
ra
n sfe
tra
. on-
ide a n
Gu s
is ha
th t)
e .e
us om
c
e.
db
d @
uk
er
(b
iel
an
kD
ru
Be
28
Be
ru
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
ide a n
. on-
Be
ru
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
ide a n
. on-
tra
n sfe
ra
Database on OCI
bl e
lic
Practice 4: Backup a
en
s e
to
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.
to
s e
en
lic
bl e
ra
n sfe
tra
. on-
ide a n
Gu s
is ha
th t)
e .e
us om
c
e.
db
d@
uk
er
(b
iel
an
kD
ru
Be
Overview
In this practice, you will learn to enable and disable the Automatic Backups for a database.
Assumptions
to
All the previous practices are completed successfully.
se
en
Tasks
lic
1. Open the navigation menu. Under Oracle Database, click Oracle Base Database
(VM,BM).
bl e
2. Choose your Compartment.
ra
3. Find your DB system where the database is located, and click the system display name to
sfe
see the details.
n
tra
4. Scroll down to the Database section, and find the database for which you want to enable or
disable automatic backups, and click the database display name to see the details.
. on-
ide a n
Gu s
is ha
th t)
to
s e
en
lic
bl e
ra
n sfe
tra
. on-
7. Select Enable Automatic Backup check box, select the desired Backup Retention
Period, and click Save Changes.
ide a n
Gu s
is ha
th t)
e .e
us om
c
e.
db
d@
uk
er
(b
iel
an
kD
ru
Be
to
se
en
lic
bl e
ra
n sfe
tra
This competes the task of enabling or disabling automatic backup of your OCI database. If you
. on-
enable automatic backup, it may initiate a backup job. If this happens allow sufficient time for
the backup to complete and then continue to the next practice.
ide a n
Gu s
is ha
th t)
e .e
us om
c
e.
db
d@
uk
er
(b
iel
an
kD
ru
Be
Overview
In this practice, you will create an on-demand backup using the OCI console.
Assumptions
to
All the previous practices are completed successfully.
s e
en
Tasks
lic
1. Open the navigation menu. Under Oracle Database, click Oracle Base Database
(VM,BM).
bl e
2. Choose your Compartment.
ra
3. Find your DB system where the database is located, and click the system display name to
sfe
see the details.
n
tra
4. Find the database for which on-demand full backup needs to be created and click its
display name to see the details.
. on-
5. Under Resources, click Backups. A list of backups is displayed if any.
6.
ide a n
Click Create Backup and enter the name as MYDB_BACKUP.
Gu s
is ha
th t)
e .e
us om
c
e.
db
d@
uk
er
This completes the task of taking an on-demand full backup of your OC Database. Allow
(b
sufficient time for the backup job to complete before moving to the next practice.
iel
an
kD
ru
Be
Be
ru
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
ide a n
. on-
tra
n sfe
System on OCI
ra
bl e
lic
en
s e
Practice 5: Cloning a DB
to
Unauthorized reproduction or distribution prohibited. Copyright© 2023, Oracle University and/or its affiliates.
36
Overview
Be
ru
kD
an
iel
(b
Practice 5: Overview
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
In this practice, you will clone your Database System.
Gu s
ide a n
. on-
Overview
In this practice, you will learn how to clone a virtual machine DB system that uses Logical
Volume Manager storage management software.
to
Assumptions
e
• All previous practices are completed successfully.
s
en
Tasks
lic
bl e
1. Open the Navigation Menu.
2. Click Oracle Database.
ra
sfe
3. Click Oracle Base Database (VM, BM).
4. Under List Scope select the compartment allocated to you.In the list of DB systems, find
n
tra
the system you want to clone and click the display name of your DB system. The DB
System Information page is displayed.
. on-
5. On the DB system Details page, click Clone. This opens the Clone DB System page.
6.
ide a n
Select or fill in the following values in the DB system wizard:
Gu s
c. SSH Public Key: Select UPLOAD SSH KEY FILES options and browse to select the
e .e
SSH public key, which was created earlier. (In this example it is mykey.pub.)
us om
b. Virtual Cloud Network: From the drop down list, choose the Virtual Cloud Network,
db
which was created in the previous practice. (In this example the name of the VCN was
@
MYVCN.)
d
down list. (In this example the name of the Client Subnet was “Public-Subnet-
er
MYVCN(regional)”
(b
f. Database Admin Password: Enter the password to manage the SYS and SYSTEM
kD
database accounts. Ensure your password meets the required standards as specified
ru
in the wizard.
Be
9.
38
Be
ru
Available.
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
ide a n
. on-
Be
ru
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
ide a n
. on-
tra
n sfe
System on OCI
ra
bl e
lic
en
s e
Practice 6: Deleting a DB
to
Unauthorized reproduction or distribution prohibited. Copyright© 2023, Oracle University and/or its affiliates.
40
Overview
Be
ru
kD
an
iel
(b
Practice 6: Overview
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
In this practice, you will delete your Database System.
Gu s
ide a n
. on-
Overview
In this practice, you will learn how to delete a virtual machine DB System.
Assumptions
to
• All previous practices are completed successfully.
se
en
Tasks
lic
1. Open the Navigation Menu.
bl e
2. Click Oracle Database.
3. Click Oracle Base Database (VM, BM).
ra
sfe
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
n
tra
System Information page is displayed.
. on-
5. On the DB system Details page, click More Actions and click Terminate from the drop
down list.
6.
ide a n
In the Terminate DB System window, enter the DB System name to confirm and click
Terminate DB System button.
Gu s
is ha
8.
42
Be
ru
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
ide a n
. on-
bl e
lic
en
s e
to
Be
ru
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
ide a n
. on-
DB System
tra
n sfe
ra
bl e
lic
en
s e
to
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).
to
Assumptions
se
•
en
You have already created a VCN in the compartment in which you are going to create
the MySQL Database System.
lic
bl e
Important:
ra
• All instructions in this course, unless specified otherwise, assume that you are working
sfe
on a local Windows 64-bit system, i.e. laptop or desktop.
n
•
tra
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
. on-
service instances.
ide a n
Gu s
is ha
th t)
e .e
us om
c
e.
db
d @
uk
er
(b
iel
an
kD
ru
Be
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
to
ensure the service instance name is unique, ensure to substitute your initials in place
e
of TC in TCMySQLDBVM)
s
en
• Software Version: Oracle Database 19c
lic
• Software Edition: Enterprise Edition – Extreme Performance
bl e
• Database Type: Single Instance
ra
• The database should be named MYORCL and the PDB should be named MYPDB1.
sfe
• Select Shape “VM.Standard2.1” (1 OCPU and 15 GB RAM).
n
tra
Assumptions
. on-
All the previous practices are completed successfully.
ide a n
Tasks:
Gu s
is ha
under MySQL
us om
c
e.
db
d@
uk
er
(b
iel
an
kD
ru
Be
to
se
en
lic
bl e
ra
n sfe
tra
. on-
ide a n
Gu s
is ha
th t)
a. Select a compartment: This will default to your assigned compartment if you have
us om
e. 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
iel
MYVCN.)
an
down list. (In this example the name of the Client Subnet was “Public-Subnet-
ru
MYVCN(regional)”
Be
state Creating.
to
se
en
lic
bl e
ra
n sfe
tra
. on-
7. Click the refresh page periodically until you see that your database deployment has been
ide a n
created.
Gu s
8. Once the DB system is created successfully, it is listed on the DB Systems home page with
e .e
all the details. You can click the <student_initials>MySQLDBVM display name to see
us om
more details.
c
e.
db
d@
uk
er
(b
iel
an
kD
ru
Be
48
Be
ru
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
ide a n
. on-