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

PDF

This document is an activity guide for a professional workshop on Oracle Cloud Database Service, detailing various practices for creating and managing database systems on Oracle Cloud Infrastructure (OCI). It includes instructions for creating a Virtual Cloud Network (VCN), launching a Virtual Machine DB System, and other related tasks. The document emphasizes copyright restrictions and the proprietary nature of its content.

Uploaded by

beruk
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)
38 views

PDF

This document is an activity guide for a professional workshop on Oracle Cloud Database Service, detailing various practices for creating and managing database systems on Oracle Cloud Infrastructure (OCI). It includes instructions for creating a Virtual Cloud Network (VCN), launching a Virtual Machine DB System, and other related tasks. The document emphasizes copyright restrictions and the proprietary nature of its content.

Uploaded by

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

Be

Activity Guide
ru

S1102502GC10
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s

Learn more from Oracle University at education.oracle.com


ide a n

Professional Workshop
. on-
tra
nsfe
ra
bl e
lic
en

Oracle Cloud Database Service


s e
to
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-

to
free. If you find any errors, please report them to us in writing.

e
Restricted Rights Notice

s
en
If this documentation is delivered to the United States Government or anyone using the documentation on behalf of

lic
the United States Government, the following notice is applicable:

bl e
U.S. GOVERNMENT END USERS: Oracle programs (including any operating system, integrated software, any
programs embedded, installed or activated on delivered hardware, and modifications of such programs) and Oracle

ra
computer documentation or other Oracle data delivered to or accessed by U.S. Government end users are

sfe
"commercial computer software" or "commercial computer software documentation" pursuant to the applicable
Federal Acquisition Regulation and agency-specific supplemental regulations. As such, the use, reproduction,

n
duplication, release, display, disclosure, modification, preparation of derivative works, and/or adaptation of i) Oracle

tra
programs (including any operating system, integrated software, any programs embedded, installed or activated on
delivered hardware, and modifications of such programs), ii) Oracle computer documentation and/or iii) other

. on-
Oracle data, is subject to the rights and limitations specified in the license contained in the applicable contract. The
terms governing the U.S. Government's use of Oracle cloud services are defined by the applicable contract for such
ide a n
services. No other rights are granted to the U.S. Government.
Gu s

Trademark Notice
is ha

Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their
th t)

respective owners.
e .e
us om

Intel and Intel Inside are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used
under license and are trademarks or registered trademarks of SPARC International, Inc. AMD, Epyc, and the AMD
c

logo are trademarks or registered trademarks of Advanced Micro Devices. UNIX is a registered trademark of The
e.

Open Group.
db

Third-Party Content, Products, and Services Disclaimer


d @

This documentation may provide access to or information about content, products, and services from third parties.
uk

Oracle Corporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with
respect to third-party content, products, and services unless otherwise set forth in an applicable agreement between
er

you and Oracle. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred
(b

due to your access to or use of third-party content, products, or services, except as set forth in an applicable
agreement between you and Oracle.
iel
an
kD

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

Table of Contents

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

to
Practices 1: Overview ..................................................................................................................... 6
Practice 1-1: Creating a Virtual Cloud Network (VCN) ................................................................... 7

s e
Practice 1-2: Creating a Virtual Machine DB System ..................................................................... 12

en
lic
Practice 2: Creating a PDB in a DB System ................................................................................... 17
Practice 2: Overview ....................................................................................................................... 18

bl e
Practice 2-1: Creating a Pluggable Database in an existing DB System ....................................... 19

ra
Practice 3: Updating and Configuring a DB System on OCI ........................................................ 23

sfe
Practice 3: Overview ....................................................................................................................... 24

n
tra
Practice 3-1: Scaling Up Storage for a Virtual Machine DB system ............................................... 25

. on-
Practice 4: Backup a Database on OCI .......................................................................................... 29
Practice 4: Overview ....................................................................................................................... 30
ide a n
Practice 4-1: Enabling or Disabling Automatic Backups ................................................................. 31
Gu s

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


is ha

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


th t)

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


e .e

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


us om

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


c
e.

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


db

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


@

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


d
uk

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


er

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


(b
iel
an
kD
ru
Be

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
Be
ru
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
ide a n
. on-

Copyright © 2022, Oracle and/or its affiliates.


tra
nsfe
ra
bl e
lic
en
s e
to

Oracle Cloud Database Service Professional Workshop – Table of Contents


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

Be
ru
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
ide a n
Systems
. on-
tra
n sfe
ra
bl e
lic
en
s e
to
Practice 1: Create a VM DB
Practices 1: Overview
Unauthorized reproduction or distribution prohibited. Copyright© 2023, Oracle University and/or its affiliates.

Overview
In this practice, you will assume the role of a Cloud Database Administrator (DBA) and perform
the following tasks in order to create a database system on Oracle Cloud Infrastructure (OCI):
• Create a Virtual Cloud Network (VCN)

to
• Create a Database System on OCI

s e
en
Important:

lic
• All instructions in this course, unless specified otherwise, assume that you are working

bl e
on a local Windows 64-bit system, i.e. laptop or desktop.

ra
• You are working on an open internet connection, i.e. not connected to any VPN or

sfe
working in a restricted network that blocks connection from your local system to cloud
service instances.

n
tra
. on-
ide a n
Gu s
is ha
th t)
e .e
us om
c
e.
db
d @
uk
er
(b
iel
an
kD
ru
Be

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

to
explanation about the VCN concepts and cloud network components.

se
Assumptions

en
lic
All practices from previous lessons are completed successfully.

bl e
Tasks

ra
sfe
1. Open the Navigation Menu on the top left corner, click Networking and then click
Virtual Cloud Networks.

n
tra
. on-
ide a n
Gu s
is ha
th t)
e .e
us om
c
e.
db
d @
uk
er
(b
iel
an
kD
ru
Be

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.

to
s e
en
lic
bl e
4. In the dialog box, choose VCN with Internet Connectivity, and click Start VCN Wizard.

ra
n sfe
tra
. on-
ide a n
Gu s
is ha
th t)
e .e
us om
c
e.
db
d@
uk
er
(b
iel
an

Note: This option is the quickest way to get a working cloud network in the fewest steps.
kD

5. Provide configuration information:


ru

Enter the following:


Be

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


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

to
se
en
lic
bl e
ra
n sfe
tra
. on-
ide a n
Gu s
is ha
th t)
e .e
us om

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


c
e.
db
d @
uk
er
(b

7. Review and click Create.


iel
an
kD
ru
Be

Copyright © 2022, Oracle and/or its affiliates.

Practice 1: Create a VM DB Systems 9


8. The VCN is created along with resources.
Unauthorized reproduction or distribution prohibited. Copyright© 2023, Oracle University and/or its affiliates.

to
s e
en
lic
bl e
ra
n sfe
tra
. on-
ide a n
9. Click View Virtual Cloud Network to check the details of your VCN.
Gu s
is ha
th t)
e .e
us om
c
e.
db
d@
uk
er
(b
iel
an
kD
ru
Be

Copyright © 2022, Oracle and/or its affiliates.

10 Practice 1: Create a VM DB Systems


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

Be
ru
kD
an
iel
(b
er

Practice 1: Create a VM DB Systems


uk
d@
db
e.
c
us om
e .e
10. You can see all the VCN resources created.

th t)
is ha
Gu s
ide a n
. on-

Copyright © 2022, Oracle and/or its affiliates.


tra
nsfe
ra
bl e
lic
en
s e
to

11
Practice 1-2: Creating a Virtual Machine DB System
Unauthorized reproduction or distribution prohibited. Copyright© 2023, Oracle University and/or its affiliates.

Overview
In this practice, you will launch a Virtual Machine DB System, taking the following into
consideration:
• The DB System should be named as follows: <student_initials>DBVM. (Throughout

to
the practice, the DB System will be referred to as MYDBVM. In order to ensure the

e
service instance name is unique, ensure to substitute your initials in place of MY in

s
en
MYDBVM)

lic
• Software Version: Oracle Database 19c

bl e
• Software Edition: Enterprise Edition – Extreme Performance

ra
Database Type: Single Instance

sfe
• The database should be named MYORCL and the PDB should be named MYPDB1.

n
• Select Shape “VM.Standard2.1” (1 OCPU and 15 GB RAM).

tra
. on-
Assumptions
ide a n
All the previous practices are completed successfully.
Gu s

Tasks: Launching OCI VM DB System


is ha

1. Log into your assigned Cloud account.


th t)
e .e

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

Base Database (VM,BM).


c
e.
db
d@
uk
er
(b
iel
an
kD
ru
Be

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.

to
se
en
lic
bl e
ra
n sfe
tra
. on-
ide a n
Gu s

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


is ha

a. Select a compartment: This will default to your assigned compartment if you have
th t)

already selected, else select your compartment


e .e
us om

b. DB System Name: <student_initials>DBVM


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

substitute your initials in place of MY in MYDBVM.)


db

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


@

d. Shape Type: Select Virtual Machine


d
uk

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


er
(b
iel
an
kD
ru
Be

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.

to
s e
en
lic
bl e
ra
n sfe
tra
. on-
g. Configure the DB System: set Oracle Database software edition to Enterprise
ide a n
Edition Extreme Performance.
Gu s

h. Add SSH keys:


is ha

1) Select Generate SSH key pair.


th t)
e .e

2) Click Save private key.


us om

3) Click Save Public key.


c

4) Select Upload SSH key files.


e.

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


db

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


@

j. Virtual Cloud Network: From the drop down list, choose the Virtual Cloud Network,
d
uk

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

MYVCN.)
(b

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


iel

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

MYVCN(regional)”
kD

l. Hostname Prefix: <student_initials>HOST


m. Click Next
ru

n. Database Name: <student_initials>ORCL


Be

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.

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

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

s
en
8. Once the DB system is created successfully, it is listed on the DB Systems home page with

lic
all the details. You can click the <student_initials>DBVM display name to see more
details.

bl e
ra
n sfe
tra
. on-
ide a n
Gu s
is ha
th t)
e .e
us om
c
e.
db
d @
uk
er
(b
iel
an
kD
ru
Be

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
Be
ru
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
ide a n
. on-

Copyright © 2022, Oracle and/or its affiliates.


tra
nsfe
ra
bl e
lic
en
s e
to

Practice 1: Create a VM DB Systems


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

Be
ru
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
ide a n
. on-
tra
n
a DB System

sfe
ra
bl e
lic
en
s e
to
Practice 2: Creating a PDB in
Practice 2: Overview
Unauthorized reproduction or distribution prohibited. Copyright© 2023, Oracle University and/or its affiliates.

Overview
In these practices, you will create a Pluggable Database (PDB) in an existing DB System.

to
s e
en
lic
bl e
ra
n sfe
tra
. on-
ide a n
Gu s
is ha
th t)
e .e
us om
c
e.
db
d@
uk
er
(b
iel
an
kD
ru
Be

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.

to
Assumptions

e
All previous practices are completed successfully.

s
en
Tasks

lic
1. Open the Navigation Menu.

bl e
2. Click Oracle Database.

ra
3. Click Oracle Base Database (VM, BM).

sfe
4. Under List Scope select the compartment allocated to you.

n
tra
. on-
ide a n
Gu s
is ha
th t)
e .e

5. Under the DB Systems list click on the DB System you have created. In our case it is
us om

MYDBVM.
c
e.
db
d @
uk
er
(b
iel
an
kD
ru
Be

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.

to
s e
en
lic
bl e
7. From the list of Databases select the database in which you want to create the PDB. In our

ra
case it is MYORCL.

n sfe
tra
. on-
ide a n
Gu s
is ha

8. Under Resources select Pluggable Databases.


th t)
e .e
us om
c
e.
db
d@
uk
er
(b

9. Click Create Pluggable Database.


iel
an
kD
ru
Be

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

to
se
en
lic
bl e
ra
n sfe
tra
. on-
ide a n
Gu s
is ha
th t)
e .e
us om
c
e.
db
d @
uk
er
(b
iel
an
kD
ru
Be

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
Be
ru
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
ide a n
. on-

Copyright © 2022, Oracle and/or its affiliates.


tra
nsfe
ra
bl e
lic
en
s
12. Wait until you see that your pluggable database deployment has been created.

e
to

Practice 2: Creating a PDB in a DB System


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

Be
ru
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha

OCI
Gu s
ide a n
. on-
tra
n sfe
ra
bl e
lic
en
s e
Practice 3: Updating and

to
Configuring a DB System on
Practice 3: Overview
Unauthorized reproduction or distribution prohibited. Copyright© 2023, Oracle University and/or its affiliates.

Overview
In this practice, you will scale up the storage for a Virtual Machine DB System.
As a DBA, you can increase the storage of a Virtual Machine DB System without impacting the
system, if it requires more block storage at any point in time.

to
se
en
lic
bl e
ra
n sfe
tra
. on-
ide a n
Gu s
is ha
th t)
e .e
us om
c
e.
db
d@
uk
er
(b
iel
an
kD
ru
Be

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

to
All the previous practices are completed successfully.

e
Note: These steps are just for your reference. You can go up to the last step and choose not to

s
en
execute this practice to save on training resources in this shared environment. If you choose to

lic
scale up your system, give it sufficient time for the update to complete.

bl e
Tasks

ra
1. Open the Navigation Menu.

sfe
2. Click Oracle Database.

n
tra
3. Click Oracle Base Database (VM, BM).

. on-
4. Under List Scope select the compartment allocated to you.

ide a n
Gu s
is ha
th t)
e .e
us om
c
e.

5. Under the DB Systems list click on the DB System you have created. In our case it is
db

MYDBVM.
d @
uk
er
(b
iel
an
kD
ru
Be

6. Click Scale Storage Up, and then select the new storage size from the drop-down list.

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
Be
ru
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
ide a n
. on-

Copyright © 2022, Oracle and/or its affiliates.


tra
nsfe
ra
bl e
lic
en
s e
to

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.

to
se
en
lic
bl e
ra
n sfe
tra
. on-
ide a n
Gu s
is ha
th t)
e .e
us om
c
e.
db
d @
uk
er
(b
iel
an
kD
ru
Be

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
Be
ru
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
ide a n
. on-

Copyright © 2022, Oracle and/or its affiliates.


tra
nsfe
ra
bl e
lic
en
s e
to

Practice 3: Updating and Configuring a DB System on OCI


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

Be
ru
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
ide a n
. on-
tra
n sfe
ra
Database on OCI

bl e
lic
Practice 4: Backup a

en
s e
to
Practice 4: Overview
Unauthorized reproduction or distribution prohibited. Copyright© 2023, Oracle University and/or its affiliates.

Overview
In this practice, you will learn to configure automatic backups for a Database on VM DB System
and take an on-demand backup.

to
s e
en
lic
bl e
ra
n sfe
tra
. on-
ide a n
Gu s
is ha
th t)
e .e
us om
c
e.
db
d@
uk
er
(b
iel
an
kD
ru
Be

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

to
All the previous practices are completed successfully.

se
en
Tasks

lic
1. Open the navigation menu. Under Oracle Database, click Oracle Base Database
(VM,BM).

bl e
2. Choose your Compartment.

ra
3. Find your DB system where the database is located, and click the system display name to

sfe
see the details.

n
tra
4. Scroll down to the Database section, and find the database for which you want to enable or
disable automatic backups, and click the database display name to see the details.

. on-
ide a n
Gu s
is ha
th t)

5. The details indicate whether automatic backups are enabled.


e .e
us om
c
e.
db
d@
uk
er
(b
iel
an
kD
ru
Be

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.

to
s e
en
lic
bl e
ra
n sfe
tra
. on-
7. Select Enable Automatic Backup check box, select the desired Backup Retention
Period, and click Save Changes.
ide a n
Gu s
is ha
th t)
e .e
us om
c
e.
db
d@
uk
er
(b
iel
an
kD
ru
Be

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.

to
se
en
lic
bl e
ra
n sfe
tra
This competes the task of enabling or disabling automatic backup of your OCI database. If you

. on-
enable automatic backup, it may initiate a backup job. If this happens allow sufficient time for
the backup to complete and then continue to the next practice.
ide a n
Gu s
is ha
th t)
e .e
us om
c
e.
db
d@
uk
er
(b
iel
an
kD
ru
Be

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

to
All the previous practices are completed successfully.

s e
en
Tasks

lic
1. Open the navigation menu. Under Oracle Database, click Oracle Base Database
(VM,BM).

bl e
2. Choose your Compartment.

ra
3. Find your DB system where the database is located, and click the system display name to

sfe
see the details.

n
tra
4. Find the database for which on-demand full backup needs to be created and click its
display name to see the details.

. on-
5. Under Resources, click Backups. A list of backups is displayed if any.
6.
ide a n
Click Create Backup and enter the name as MYDB_BACKUP.
Gu s
is ha
th t)
e .e
us om
c
e.
db
d@
uk
er

This completes the task of taking an on-demand full backup of your OC Database. Allow
(b

sufficient time for the backup job to complete before moving to the next practice.
iel
an
kD
ru
Be

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.

Be
ru
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
ide a n
. on-
tra
n sfe
System on OCI

ra
bl e
lic
en
s e
Practice 5: Cloning a DB

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

36
Overview
Be
ru
kD
an
iel
(b
Practice 5: Overview

er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
In this practice, you will clone your Database System.

Gu s
ide a n
. on-

Copyright © 2022, Oracle and/or its affiliates.


tra
nsfe
ra
bl e
lic
en
s e
to

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.

to
Assumptions

e
• All previous practices are completed successfully.

s
en
Tasks

lic
bl e
1. Open the Navigation Menu.
2. Click Oracle Database.

ra
sfe
3. Click Oracle Base Database (VM, BM).
4. Under List Scope select the compartment allocated to you.In the list of DB systems, find

n
tra
the system you want to clone and click the display name of your DB system. The DB
System Information page is displayed.

. on-
5. On the DB system Details page, click Clone. This opens the Clone DB System page.
6.
ide a n
Select or fill in the following values in the DB system wizard:
Gu s

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


is ha

b. Display Name: MYCLONE


th t)

c. SSH Public Key: Select UPLOAD SSH KEY FILES options and browse to select the
e .e

SSH public key, which was created earlier. (In this example it is mykey.pub.)
us om

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


c
e.

b. Virtual Cloud Network: From the drop down list, choose the Virtual Cloud Network,
db

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

MYVCN.)
d

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


uk

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

MYVCN(regional)”
(b

d. Hostname Prefix: CLONEMYHOST


iel

e. Database Name: MYORCL


an

f. Database Admin Password: Enter the password to manage the SYS and SYSTEM
kD

database accounts. Ensure your password meets the required standards as specified
ru

in the wizard.
Be

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
Be
ru

Available.
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
ide a n
. on-

Copyright © 2022, Oracle and/or its affiliates.


tra
n sfe
ra
bl e
lic
en
s e
to
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.

Be
ru
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
ide a n
. on-
tra
n sfe
System on OCI

ra
bl e
lic
en
s e
Practice 6: Deleting a DB

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

40
Overview
Be
ru
kD
an
iel
(b
Practice 6: Overview

er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
In this practice, you will delete your Database System.

Gu s
ide a n
. on-

Copyright © 2022, Oracle and/or its affiliates.


tra
nsfe
ra
bl e
lic
en
s e
to

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

to
• All previous practices are completed successfully.

se
en
Tasks

lic
1. Open the Navigation Menu.

bl e
2. Click Oracle Database.
3. Click Oracle Base Database (VM, BM).

ra
sfe
4. Under List Scope select the compartment allocated to you.In the list of DB systems, find
the system you want to clone and click the display name of your DB system. The DB

n
tra
System Information page is displayed.

. on-
5. On the DB system Details page, click More Actions and click Terminate from the drop
down list.
6.
ide a n
In the Terminate DB System window, enter the DB System name to confirm and click
Terminate DB System button.
Gu s
is ha

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


th t)
e .e
us om
c
e.
db
d @
uk
er
(b
iel
an
kD
ru
Be

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
Be
ru
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
ide a n
. on-

Copyright © 2022, Oracle and/or its affiliates.


tra
nsfe
ra
Once the DB System is deleted the state will change to Terminated.

bl e
lic
en
s e
to

Practice 6: Deleting a DB System on OCI


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

Be
ru
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
ide a n
. on-
DB System
tra
n sfe
ra
bl e
lic
en
s e
to
Practice 7: Create a MySQL
Practice 7: Overview
Unauthorized reproduction or distribution prohibited. Copyright© 2023, Oracle University and/or its affiliates.

Overview
In this practice, you will assume the role of a Cloud Database Administrator (DBA) and perform
the following tasks in order to create a MySQL Database System on Oracle Cloud Infrastructure
(OCI).

to
Assumptions

se

en
You have already created a VCN in the compartment in which you are going to create
the MySQL Database System.

lic
bl e
Important:

ra
• All instructions in this course, unless specified otherwise, assume that you are working

sfe
on a local Windows 64-bit system, i.e. laptop or desktop.

n

tra
You are working on an open internet connection, i.e. not connected to any VPN or
working in a restricted network that blocks connection from your local system to cloud

. on-
service instances.
ide a n
Gu s
is ha
th t)
e .e
us om
c
e.
db
d @
uk
er
(b
iel
an
kD
ru
Be

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

to
ensure the service instance name is unique, ensure to substitute your initials in place

e
of TC in TCMySQLDBVM)

s
en
• Software Version: Oracle Database 19c

lic
• Software Edition: Enterprise Edition – Extreme Performance

bl e
• Database Type: Single Instance

ra
• The database should be named MYORCL and the PDB should be named MYPDB1.

sfe
• Select Shape “VM.Standard2.1” (1 OCPU and 15 GB RAM).

n
tra
Assumptions

. on-
All the previous practices are completed successfully.
ide a n
Tasks:
Gu s
is ha

1. Log into your assigned Cloud account.


2. Open the navigation Menu on top left corner. Click Database, then click DB Systems
th t)
e .e

under MySQL
us om
c
e.
db
d@
uk
er
(b
iel
an
kD
ru
Be

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.

to
se
en
lic
bl e
ra
n sfe
tra
. on-
ide a n
Gu s
is ha
th t)

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


e .e

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

already selected, else select your compartment


c
e.

b. DB System Name: <student_initials>MySQLDBVM


db

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


@

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


d

c. Select type as Standalone.


uk

d. Enter administrator details under Create Administrator Credential


er
(b

e. Virtual Cloud Network: From the drop down list, choose the Virtual Cloud Network,
which was created in the previous practice. (In this example the name of the VCN was
iel

MYVCN.)
an

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


kD

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

MYVCN(regional)”
Be

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.

to
se
en
lic
bl e
ra
n sfe
tra
. on-
7. Click the refresh page periodically until you see that your database deployment has been
ide a n
created.
Gu s

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


is ha

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


th t)

8. Once the DB system is created successfully, it is listed on the DB Systems home page with
e .e

all the details. You can click the <student_initials>MySQLDBVM display name to see
us om

more details.
c
e.
db
d@
uk
er
(b
iel
an
kD
ru
Be

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
Be
ru
kD
an
iel
(b
er
uk
d@
db
e.
c
us om
e .e
th t)
is ha
Gu s
ide a n
. on-

Copyright © 2022, Oracle and/or its affiliates.


tra
nsfe
ra
bl e
lic
en
s e
to

Practice 7: Create a MySQL DB System

You might also like