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