Activity Guide OCI DB Service Professional WorkShop

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 48

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

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

Learn more from Oracle University at education.oracle.com


Professional Workshop
Gu m)
ide ha
. sa
no
n -tr
an
sfe

Oracle Cloud Database Service


ra
bl e
Copyright © 2022, Oracle and/or its affiliates.
Unauthorized reproduction or distribution prohibited. Copyright© 2023, 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-

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.

Third-Party Content, Products, and Services Disclaimer


un
m

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

agreement between you and Oracle.


M
o
dr

1010172022
n
eja
Al
Unauthorized reproduction or distribution prohibited. Copyright© 2023, Oracle University and/or its affiliates.

Table of Contents

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

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

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


to @

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


se 87

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


en 19

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


lic ozc

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


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

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


m

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


(a

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


oz
un
M
o
n dr
eja
Al

Copyright © 2022, Oracle and/or its affiliates.

Oracle Cloud Database Service Professional Workshop – Table of Contents iii


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

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)

Copyright © 2022, Oracle and/or its affiliates.


ide ha
. sa
no
n -tr
an
sfe
ra
bl e

Oracle Cloud Database Service Professional Workshop – Table of Contents


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

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

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© 2023, 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

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

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© 2023, Oracle University and/or its affiliates.

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

5. Provide configuration information:


n
eja

Enter the following:


a. VCN Name – Enter a name for your cloud network, for example, <your_initials>VCN.
Al

(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


e. Private Subnet CIDR Block – Enter 10.0.1.0/24
Unauthorized reproduction or distribution prohibited. Copyright© 2023, Oracle University and/or its affiliates.

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

6. Accept the defaults for any other and Click Next.


en 19
lic ozc
un
m
(a
oz
un

7. Review and click Create.


M
o
dr
n
eja
Al

Copyright © 2022, Oracle and/or its affiliates.

Practice 1: Create a VM DB Systems 9


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

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)

Copyright © 2022, Oracle and/or its affiliates.


ide ha
. sa
no
n
Click View Virtual Cloud Network to check the details of your VCN.

-tr
an
sfe
ra
bl e

Practice 1: Create a VM DB Systems


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

Al
eja
ndr
o
M
un
oz

Practice 1: Create a VM DB Systems


(a
m
un
lic ozc
en 19
se 87
to @
10. You can see all the VCN resources created.

us gm
e ai
th l.c
is o
Gu m)

Copyright © 2022, Oracle and/or its affiliates.


ide ha
. sa
no
n -tr
an
sfe
ra
bl e

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

Tasks: Launching OCI VM DB System


us gm

1. Log into your assigned Cloud account.


to @

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

Base Database (VM,BM).


en 19
lic ozc
un
m
(a
oz
un
M
o
dr
n
eja
Al

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© 2023, Oracle University and/or its affiliates.

4. Click Create DB System to launch the wizard.

bl e
ra
sfe
an
-tr
n
no
. sa
ide ha
Gu m)
is o
th l.c
e ai

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


us gm

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

already selected, else select your compartment


se 87

b. DB System Name: <student_initials>DBVM


en 19

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


substitute your initials in place of MY in MYDBVM.)
lic ozc

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


un

d. Shape Type: Select Virtual Machine


m

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


(a
oz
un
M
o
dr
n
eja
Al

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© 2023, Oracle University and/or its affiliates.

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

h. Add SSH keys:


us gm

1) Select Generate SSH key pair.


to @

2) Click Save private key.


se 87

3) Click Save Public key.


en 19

4) Select Upload SSH key files.


lic ozc

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


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

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

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


un

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

MYVCN(regional)”
o
dr

l. Hostname Prefix: <student_initials>HOST


n

m. Click Next
eja

n. Database Name: <student_initials>ORCL


Al

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© 2023, 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.

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

Copyright © 2022, Oracle and/or its affiliates.

Practice 1: Create a VM DB Systems 15


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

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)

Copyright © 2022, Oracle and/or its affiliates.


ide ha
. sa
no
n -tr
an
sfe
ra
bl e

Practice 1: Create a VM DB Systems


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

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

Copyright © 2022, Oracle and/or its affiliates.

18 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© 2023, 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.

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

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© 2023, Oracle University and/or its affiliates.

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

8. Under Resources select Pluggable Databases.


to @
se 87
en 19
lic ozc
un
m
(a
oz
un

9. Click Create Pluggable Database.


M
o
drn
eja
Al

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© 2023, 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

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

Copyright © 2022, Oracle and/or its affiliates.

Practice 2: Creating a PDB in a DB System 21


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

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)

Copyright © 2022, Oracle and/or its affiliates.


ide ha
. sa
no
n -tr
an
sfe
ra
12. Wait until you see that your pluggable database deployment has been created.

bl e

Practice 2: Creating a PDB in a DB System


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

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

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© 2023, Oracle University and/or its affiliates.

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.

Copyright © 2022, Oracle and/or its affiliates.

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


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

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)

Copyright © 2022, Oracle and/or its affiliates.


ide ha
. sa
no
n -tr
an
sfe
ra
bl e

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© 2023, 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.

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

Copyright © 2022, Oracle and/or its affiliates.

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


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

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)

Copyright © 2022, Oracle and/or its affiliates.


ide ha
. sa
no
n -tr
an
sfe
ra
bl e

Practice 3: Updating and Configuring a DB System on OCI


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

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

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© 2023, Oracle University and/or its affiliates.

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

5. The details indicate whether automatic backups are enabled.


to @
se 87
en 19
lic ozc
un
m
(a
oz
un
M
o
ndr
eja
Al

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© 2023, Oracle University and/or its affiliates.

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

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© 2023, Oracle University and/or its affiliates.

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

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© 2023, Oracle University and/or its affiliates.

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

Copyright © 2022, Oracle and/or its affiliates.

34 Practice 4: Backup a Database on OCI


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

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)

Copyright © 2022, Oracle and/or its affiliates.


ide ha
. sa
no
n -tr
an
sfe
ra
bl e

Practice 5: Cloning a DB System on OCI


Practice 5-1: Cloning a DB System
Unauthorized reproduction or distribution prohibited. Copyright© 2023, 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.

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

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


us gm

b. Display Name: MYCLONE


to @

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

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


lic ozc

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

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


(a

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

MYVCN(regional)”
un

d. Hostname Prefix: CLONEMYHOST


M

e. Database Name: MYORCL


o

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

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© 2023, Oracle University and/or its affiliates.

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)

Copyright © 2022, Oracle and/or its affiliates.


ide ha
. sa
no
n -tr
an
sfe
ra
bl e
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© 2023, Oracle University and/or its affiliates.

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)

Copyright © 2022, Oracle and/or its affiliates.


ide ha
. sa
no
n -tr
an
sfe
ra
bl e

Practice 6: Deleting a DB System on OCI


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

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

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


to @
se 87
en 19
lic ozc
un
m
(a
oz
un
M
o
ndr
eja
Al

Copyright © 2022, Oracle and/or its affiliates.

Practice 6: Deleting a DB System on OCI 41


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

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)

Copyright © 2022, Oracle and/or its affiliates.


ide ha
. sa
no
n
Once the DB System is deleted the state will change to Terminated.

-tr
an
sfe
ra
bl e

Practice 6: Deleting a DB System on OCI


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

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

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© 2023, 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

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

1. Log into your assigned Cloud account.


us gm

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

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© 2023, Oracle University and/or its affiliates.

4. Click Create DB System to launch the wizard.

bl e
ra
sfe
an
n -tr
no
. sa
ide ha
Gu m)
is o
th l.c
e ai
us gm

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


to @
se 87

a. Select a compartment: This will default to your assigned compartment if you have
already selected, else select your compartment
en 19

b. DB System Name: <student_initials>MySQLDBVM


lic ozc

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


un

Remember to substitute your initials in place of TC in TCMySQLDBVM.)


m

c. Select type as Standalone.


(a

d. Enter administrator details under Create Administrator Credential


oz

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

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


dr

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

MYVCN(regional)”
Al

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© 2023, Oracle University and/or its affiliates.

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

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


us gm

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


to @

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

Copyright © 2022, Oracle and/or its affiliates.

Practice 7: Create a MySQL DB System 47


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

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)

Copyright © 2022, Oracle and/or its affiliates.


ide ha
. sa
no
n -tr
an
sfe
ra
bl e

Practice 7: Create a MySQL DB System

You might also like