0% found this document useful (0 votes)
37 views

DB Service Workshop

DB Service on OCI

Uploaded by

Lang Tu Mong Mo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views

DB Service Workshop

DB Service on OCI

Uploaded by

Lang Tu Mong Mo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 48

Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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@

Learn more from Oracle University at education.oracle.com


Professional Workshop
us g
e m
th ai
is l.c
Gu om
ide ) h
. as
a

Oracle Cloud Database Service


Copyright © 2022, Oracle and/or its affiliates.
Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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.

Restricted Rights Notice

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

Third-Party Content, Products, and Services Disclaimer


tra o
n- Qu

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

Practice 1: Create a VM DB Systems .............................................................................................. 5


Practices 1: Overview ..................................................................................................................... 6
Practice 1-1: Creating a Virtual Cloud Network (VCN) ................................................................... 7
Practice 1-2: Creating a Virtual Machine DB System ..................................................................... 12

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

Practice 4-2: Creating On-Demand Backup Using Console ........................................................... 34


en a

Practice 5: Cloning a DB System on OCI ....................................................................................... 35


lic uoc

Practice 5: Overview ....................................................................................................................... 36


ble bq

Practice 5-1: Cloning a DB System ................................................................................................ 37


ra (n

Practice 6: Deleting a DB System on OCI ...................................................................................... 39


fe n

Practice 5: Overview ....................................................................................................................... 40


ns c A

Practice 6-1: Deleting a DB System ............................................................................................... 41


tra o

Practice 7: Create a MySQL DB System ......................................................................................... 43


n- Qu

Practice 7: Overview ....................................................................................................................... 44


no Ba

Practice 7-1 Creating a MySQL DB System ................................................................................... 45


en
uy
Ng

Copyright © 2022, Oracle and/or its affiliates.

Oracle Cloud Database Service Professional Workshop – Table of Contents iii


Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

Copyright © 2022, Oracle and/or its affiliates.


th ai
is l.c
Gu om
ide ) h
. as
a

Oracle Cloud Database Service Professional Workshop – Table of Contents


Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

Copyright © 2022, Oracle and/or its affiliates.

6 Practice 1: Create a VM DB Systems


Practice 1-1: Creating a Virtual Cloud Network (VCN)
Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

2. Ensure that the compartment assigned to you is selected on the left.


3. Click Start VCN Wizard.

Copyright © 2022, Oracle and/or its affiliates.

Practice 1: Create a VM DB Systems 7


Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

Copyright © 2022, Oracle and/or its affiliates.

8 Practice 1: Create a VM DB Systems


Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

7.
6.
e.

Ng
uy
en

Review and click Create.


no Ba

Practice 1: Create a VM DB Systems


n- Qu
tra o
ns c A
fe n
ra (n
ble bq
lic uoc
en a

Accept the defaults for any other and Click Next.


se n1
to 03@
Private Subnet CIDR Block – Enter 10.0.1.0/24

us g
e m

Copyright © 2022, Oracle and/or its affiliates.


th ai
is l.c
Gu om
ide ) h
. as
a

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

Copyright © 2022, Oracle and/or its affiliates.


th ai
is l.c
Gu om
Click View Virtual Cloud Network to check the details of your VCN.

ide ) h
. as
a

Practice 1: Create a VM DB Systems


Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

Ng
uy
en
no Ba

Practice 1: Create a VM DB Systems


n- Qu
tra o
ns c A
fe n
ra (n
ble bq
10. You can see all the VCN resources created.

lic uoc
en a
se n1
to 03@
us g
e m

Copyright © 2022, Oracle and/or its affiliates.


th ai
is l.c
Gu om
ide ) h
. as
a

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

Tasks: Launching OCI VM DB System


en a

1. Log into your assigned Cloud account.


lic uoc

2. Open the navigation Menu on top left corner. Click Oracle Database, then click Oracle
ble bq

Base Database (VM,BM).


ra (n
fe n
ns c A
tra o
n- Qu
no Ba
en
uy
Ng

Copyright © 2022, Oracle and/or its affiliates.

12 Practice 1: Create a VM DB Systems


3. Choose your Compartment on the left side pane.
Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

4. Click Create DB System to launch the wizard.

a
. as
ide ) h
Gu om
is l.c
th ai
e m
us g
to 03@
se n1

5. Fill in DB System information required to create a DB System as listed below:


en a

a. Select a compartment: This will default to your assigned compartment if you have
lic uoc

already selected, else select your compartment


ble bq

b. DB System Name: <student_initials>DBVM


ra (n

(Throughout the practice, the DB System will be referred to as MYDBVM. Remember to


substitute your initials in place of MY in MYDBVM.)
fe n
ns c A

c. Availability Domain: Choose one of the available Availability Domain


tra o

d. Shape Type: Select Virtual Machine


n- Qu

e. Shape: Select Intel > VM.Standard2.1


no Ba
en
uy
Ng

Copyright © 2022, Oracle and/or its affiliates.

Practice 1: Create a VM DB Systems 13


f. Configure Storage: change to Logical Volume Manager
Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

h. Add SSH keys:


en a

1) Select Generate SSH key pair.


lic uoc

2) Click Save private key.


ble bq

3) Click Save Public key.


ra (n

4) Select Upload SSH key files.


fe n

5) Select and upload the ssh public key you created.


ns c A

i. License Type: License Included(Accept the default)


tra o
n- Qu

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

l. Hostname Prefix: <student_initials>HOST


m. Click Next
n. Database Name: <student_initials>ORCL
o. Database Version: 19c
p. PDBName: <student_initials>PDB1
q. 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.

Copyright © 2022, Oracle and/or its affiliates.

14 Practice 1: Create a VM DB Systems


r. Confirm Password: Re-enter the password.
Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

s. Database Workload: Choose Transaction processing


t. Configure database backups: Do not select anything
6. Review your selection/entries and click Create DB System.
7. Click the refresh page periodically until you see that your database deployment has been
created.
Note: Generally, database deployment takes around 60 to 80 minutes to complete
depending on resource availability. Allow sufficient time for this to complete.
8. Once the DB system is created successfully, it is listed on the DB Systems home page with

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

Copyright © 2022, Oracle and/or its affiliates.

Practice 1: Create a VM DB Systems 15


Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

Copyright © 2022, Oracle and/or its affiliates.


th ai
is l.c
Gu om
ide ) h
. as
a

Practice 1: Create a VM DB Systems


Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

Copyright © 2022, Oracle and/or its affiliates.


th ai
is l.c
Gu om
ide ) h
. as
a
In these practices, you will create a Pluggable Database (PDB) in an existing DB System.

Practice 2: Creating a PDB in a DB System


Practice 2-1: Creating a Pluggable Database in an existing DB System
Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

Copyright © 2022, Oracle and/or its affiliates.

Practice 2: Creating a PDB in a DB System 19


6. Under Resources select Databases.
Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

8. Under Resources select Pluggable Databases.


lic uoc
ble bq
ra (n
fe n
ns c A
tra o
n- Qu
no Ba
en

9. Click Create Pluggable Database.


uy
Ng

10. Fill in the information required to create a PDB as listed below:


a. Enter PDB Name: <student_initials>PDB<n> in our case the pdb name is MYPDB3
b. Unlock my PDB Admin account: Checked

Copyright © 2022, Oracle and/or its affiliates.

20 Practice 2: Creating a PDB in a DB System


c. PDB Admin Password: Enter the password to PDB ADMIN database accounts.
Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

Copyright © 2022, Oracle and/or its affiliates.

Practice 2: Creating a PDB in a DB System 21


Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

Copyright © 2022, Oracle and/or its affiliates.


th ai
is l.c
Gu om
ide ) h
. as
a
12. Wait until you see that your pluggable database deployment has been created.

Practice 2: Creating a PDB in a DB System


Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

Copyright © 2022, Oracle and/or its affiliates.

24 Practice 3: Updating and Configuring a DB System on OCI


Practice 3-1: Scaling Up Storage for a Virtual Machine DB system
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.

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.

Copyright © 2022, Oracle and/or its affiliates.

Practice 3: Updating and Configuring a DB System on OCI 25


Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

Copyright © 2022, Oracle and/or its affiliates.


th ai
is l.c
Gu om
ide ) h
. as
a

Practice 3: Updating and Configuring a DB System on OCI


7. Click Update to confirm. The system will take some time to get updated and will resume to
Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

Copyright © 2022, Oracle and/or its affiliates.

Practice 3: Updating and Configuring a DB System on OCI 27


Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

Copyright © 2022, Oracle and/or its affiliates.


th ai
is l.c
Gu om
ide ) h
. as
a

Practice 3: Updating and Configuring a DB System on OCI


Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

Copyright © 2022, Oracle and/or its affiliates.

30 Practice 4: Backup a Database on OCI


Practice 4-1: Enabling or Disabling Automatic Backups
Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

5. The details indicate whether automatic backups are enabled.


ble bq
ra (n
fe n
ns c A
tra o
n- Qu
no Ba
en
uy
Ng

Copyright © 2022, Oracle and/or its affiliates.

Practice 4: Backup a Database on OCI 31;


6. Click Configure Automatic Backups.
Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

Copyright © 2022, Oracle and/or its affiliates.

32 Practice 4: Backup a Database on OCI


8. Once done, the Database Information page displays the updated details.
Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

Copyright © 2022, Oracle and/or its affiliates.

Practice 4: Backup a Database on OCI 33;


Practice 4-2: Creating On-Demand Backup Using Console
Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

Copyright © 2022, Oracle and/or its affiliates.

34 Practice 4: Backup a Database on OCI


Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

Copyright © 2022, Oracle and/or its affiliates.


th ai
is l.c
Gu om
ide ) h
. as
a

Practice 5: Cloning a DB System on OCI


Practice 5-1: Cloning a DB System
Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

a. Create in Compartment: Ensure the Compartment assigned to you is selected.


en a

b. Display Name: MYCLONE


lic uoc

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

a. License Type: License Included (Accept the default)


fe 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

c. Client Subnet: Choose “Public-Subnet-<your VCN Name>(regional)” from the drop


down list. (In this example the name of the Client Subnet was “Public-Subnet-
no Ba

MYVCN(regional)”
en

d. Hostname Prefix: CLONEMYHOST


uy

e. Database Name: MYORCL


Ng

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.

Copyright © 2022, Oracle and/or its affiliates.

Practice 5: Cloning a DB System on OCI 37


Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

Copyright © 2022, Oracle and/or its affiliates.


th ai
is l.c
Gu om
ide ) h
. as
a
Ensure the cloning operation was executed successfully. The final state should show as

Practice 5: Cloning a DB System on OCI


Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

Copyright © 2022, Oracle and/or its affiliates.


th ai
is l.c
Gu om
ide ) h
. as
a

Practice 6: Deleting a DB System on OCI


Practice 6-1: Deleting a DB System
Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

Terminate DB System button.


en a

7. The DB System Details page will show the status Terminating


lic uoc
ble bq
ra (n
fe n
ns c A
tra o
n- Qu
no Ba
en
uy
Ng

Copyright © 2022, Oracle and/or its affiliates.

Practice 6: Deleting a DB System on OCI 41


Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

Copyright © 2022, Oracle and/or its affiliates.


th ai
is l.c
Gu om
Once the DB System is deleted the state will change to Terminated.

ide ) h
. as
a

Practice 6: Deleting a DB System on OCI


Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

Copyright © 2022, Oracle and/or its affiliates.

44 Practice 7: Create a MySQL DB System


Practice 7-1 Creating a MySQL DB System
Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

1. Log into your assigned Cloud account.


en a
lic uoc

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

Copyright © 2022, Oracle and/or its affiliates.

Practice 7: Create a MySQL DB System 45


3. Choose your Compartment on the left side pane.
Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

4. Click Create DB System to launch the wizard.

a
. as
ide ) h
Gu om
is l.c
th ai
e m
us g
to 03@
se n1
en a
lic uoc

5. Fill in DB System information required to create a DB System as listed below:


ble bq

a. Select a compartment: This will default to your assigned compartment if you have
already selected, else select your compartment
ra (n

b. DB System Name: <student_initials>MySQLDBVM


fe n
ns c A

(Throughout the practice, the DB System will be referred to as TCMySQLDBVM.


Remember to substitute your initials in place of TC in TCMySQLDBVM.)
tra o
n- Qu

c. Select type as Standalone.


no Ba

d. Enter administrator details under Create Administrator Credential


e. Virtual Cloud Network: From the drop down list, choose the Virtual Cloud Network,
en

which was created in the previous practice. (In this example the name of the VCN was
uy

MYVCN.)
Ng

f. Client Subnet: Choose “Public-Subnet-<your VCN Name>(regional)” from the drop


down list. (In this example the name of the Client Subnet was “Public-Subnet-
MYVCN(regional)”
g. Configure placement: Default
h. Shape: Select MySQL.VM.Standard.E4.1.8GB
i. Storage: 50
j. Configure Automatic Backups: Unchecked

Copyright © 2022, Oracle and/or its affiliates.

46 Practice 7: Create a MySQL DB System


6. Review your selection/entries and click Create. The DB System Details page will show the
Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

Note: Generally, database deployment takes around 60 to 80 minutes to complete


en a

depending on resource availability. Allow sufficient time for this to complete.


lic uoc

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

Copyright © 2022, Oracle and/or its affiliates.

Practice 7: Create a MySQL DB System 47


Unauthorized reproduction or distribution prohibited. Copyright© 2024, Oracle University and/or its affiliates.

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

Copyright © 2022, Oracle and/or its affiliates.


th ai
is l.c
Gu om
ide ) h
. as
a

Practice 7: Create a MySQL DB System

You might also like