Skip to the content.

Go to Overview Page

Application Development Infrastructure lab

Create a new Oracle Database instance via the GUI

Introduction

Oracle Database Cloud Service provides you the ability to deploy Oracle databases in the Cloud, with each database deployment containing a single Oracle database. You have full access to the features and operations available with Oracle Database, but with Oracle providing the computing power, physical storage and (optionally) tooling to simplify routine database maintenance and management operations.

When you create database deployments, Database Cloud Service creates compute nodes to host the database, using computing and storage resources provided by Oracle Compute Cloud Service. Additionally, it provides access to the compute nodes (and thus to the database) using networking resources provided by Oracle Compute Cloud Service.

About this tutorial

This tutorial demonstrates how to create a Database Cloud Service using the PaaS Cloud Console user interface, running on “OCI”, Oracle’s second generation Infrastructure. This ensures we can later use this database to launch a Java Cloud which needs a DB of this type as a prerequisite.

Prerequisites

To run these labs you will need access to an Oracle Cloud Account. If you are participating in a live event, your instructor will provide you the required credentials.

If you are running these labs on your own, please get a Oracle Cloud Free Tier account or set up your corporate UC subscription for this lab.

In this lab we will use the option to deploy to “OCI” infrastructure (as opposed to the older OCI-C or Classic). In order to be able to use OCI, you first need to create a few OCI artefacts: a valid Virtual Network Configuration (VCN) and a Storage Bucket.

Prerequisites for OCI-based PaaS Services

In order to create PaaS Services based on OCI infrastructure, you must create the following artefacts:

Follow the steps 1 to 6 in this tutorial to create these elements.

Steps to create a Database

Go to the Console (see Access information that was delivered to you in the workshop, or login to your Oracle Cloud Free Tier environment ). After a successful login you will see your Dashboard.

Make sure you have the tile “Database Classic” displayed. If this is not the case, use the button “Customize Dashboard”, scroll down to the “Database Classic” service in the list, and select “Show”.

On dashboard click the hamburger icon on the “Database Classic” tile. Select Open Service Console.

This is the Database Cloud Service Console page. To create new instance click Create Service button.

Now you can fill in the key parameters for choosing the caracteristics of the database you will create :

The second input page is the Service Details page. The following parameters have to be provided:

For more details about parameters see the documentation. Click Next.

The final page is the summary about the configuration before submit the instance creation request.

ATTENTION : In case you are using a shared environment, a database has already been provisioned for you in this environment, so you can Cancel the creation of the database at this point and use the seeded database instead. If in doubt, check with your instructor.

If you should have gone ahead and created the database, the request would have been accepted and the Database Service Console page would show the new instance. The instance would first be in Maintenance (Progress) mode.


Optional steps using the pre-seeded database

Below are some extra exercises you can perform using the already created Database instance.

Enabling the Firewall Rules

Make sure you are logged-in and the Database Service Console is visible. You should see a window similar to this. If you are using the “Cloud Test Drive” environment, this pre-seeded database will most likely be called “MyDBCS”.

This screen allows you to change pre-created firewall access rules or allows you to define new ones. In this example, we will enable the firewall rules that allow us to access our tools.

Attention: all participants in your group will be using this same pre-seeded database. So this rule might already be “enabled” by someone else. In that case, just look at the options but DO NOT DISABLE the rule again !

The following screen or similar should be visible:

When choosing the “Enable” option, the following pop-up or similar should be displayed:

Press ‘Enable’ and wait for the operation to finish. The pop-up should disappear and the Access Rules page should be updated.

Now please enable the following services in the same way:

Working with the available Cloud tools

In this part of the hands-on, we will walk-through the various tools available by default. Please make sure you have enabled all required firewall rules as demonstrated in the previous chapter and that you are on the Database Service Console Page:

Click on the ‘Hamburger Menu’ for the pre-created Database service and select ‘Open EM Console’ If this is the first time you access the EM Express, your browser might give you a warning that the security certificate of the site is not valid or cannot be checked.

Please, accept the connection and the certificate. This varies by browser, the workshop-assistants should be able to help in case you do not know how to do this.   If all went well, the following screen should be displayed:

Please login with username / password for the database as detailed in account information you received at the beginning of this lab. The following screen or similar should be displayed:

In this Enterprise Manager Express screen, you can see the status of the database including the number of ‘Pluggable Databases’ that are plugged into this container database:

Feel free to click around in the Enterprise Manager Express Console. When you want to continue, return to the Database Service Console

Using the Database Monitor Console

This time, we will use another tool available by default, the Database Monitor Console.

You might see a similar certificate error in your browser. Please accept this certificate to continue. The following login-screen should be visible:

Login using username ‘dbaas_monitor’ and password as provided in your account information document. The following overview screen should be visible:

You can click around in this tool to see the various options. If you want to continue, click on the ‘Database’ drop down box in the top of the screen

Choose ‘Manage’ from the dropdown box The following screen or similar should be visible:

As a demonstration, we will clone the existing PDB1 into a new PDB.   Click on the ‘Hamburger Menu’ in the PDB1 window

Select the ‘Clone’ option to continue The following screen or similar should be visible:

Fill in the following values and press Ok:

After about 30 seconds you will get the confirmation that the PDB has been created successfully. After clicking on Ok, the following screen (or similar) is visible:

You have successfully cloned a PDB using the available cloud tools.

SSH Connection and Image Exploration

In the upcoming steps you will record the IP addresses of the prebuilt Database Cloud Service Instance, and connect to this Compute node via SSH.

The Database Cloud Service is secure by default for connections. Only the management port 22 used by SSH is open. All other ports are disabled, such as the SQL Net port 1521. In this exercise we are going to use the management port 22 to explore the virtual image the Database Cloud Service is running on.

Explore the Database Cloud Service Image


Go to Overview Page