Provision
Provision
1
Cloud Service
Workshop
Database Cloud Service
Provisioning
January 2017
Page /1 – 2 Oracle Provisioning
The following is intended to outline our general product direction. It is intended for information
purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any
material, code, or functionality, and should not be relied upon in making purchasing decisions. The
development, release, and timing of any features or functionality described for Oracle’s products
remains at the sole discretion of Oracle.
Introduction
This is the first of several labs that are part of the Oracle Public Cloud Database Cloud Service
workshop. These labs will give you a basic understanding of the Oracle Database Cloud Service and
many of the capabilities around administration and database development.
This lab will walk you through creating a new Database Cloud Service instance. You will also connect
into a Database image using the SSH private key and familiarize yourself with the image layout.
Objectives
Create Database Cloud Service
SSH Configuration
Required Artifacts
The following lab requires Putty and a browser
The labkey key pairs created by the instructor is required
Table of Contents
Oracle Database Cloud Service Workshop .............................................................................................. 1
Database Cloud Service ........................................................................................................................... 1
Provisioning ............................................................................................................................................. 1
Introduction ..................................................................... 3
Objectives ....................................................................................................... 3
Required Artifacts ........................................................................................... 3
Table of Contents ............................................................................................ 3
Create Database Cloud Service Instance .......................... 4
SSH Connection and Image Exploration ...........................11
Record IP address of Database Cloud Service............................................... 11
Connect to the Oracle Database Cloud Service .................12
Module /1
Oracle Database Cloud Service Workshop
Page /1 – 4 Oracle Provisioning
Open a new private window in Firefox or your favorite browser and go to the following
URL:
https://cloud.oracle.com
Click on Sign In
Select the Data Center assigned to you. For example: US Commercial 2 (us2) and click on My
Services
Provide the Identity Domain information you obtained from your instructor and/or via email,
and click Go
Once your Identity Domain is set, enter your User Name and Password and click Sign In
NOTE: the Identity Domain, User Name, and Password values will be given to you by your
instructor or you would have received an email from Oracle on this.
You will be presented with a Dashboard displaying the various cloud services available to this
account.
From the Cloud My Services Dashboard, click on the hamburger button on the top left corner to
display the menu
Module /1
Oracle Database Cloud Service Workshop
Page /1 – 6 Oracle Provisioning
From the Oracle Database Cloud Service Console click Create Service
To select the SSH Public Key, Click on the Edit button to Update (ie: locate) the public key labkey.pub
file that you copied from “Scripts and Tools -> Keys” folder.
Module /1
Oracle Database Cloud Service Workshop
Page /1 – 8 Oracle Provisioning
Select the public key file labkey.pub in the Scripts and Tools/Keys folder, or alternatively you can
use your own public key if you created one with PuttyGen
Click Enter button to save your selection and continue to select the remaining options:
After all fields have been correctly entered, and click on Next
Module /1
Oracle Database Cloud Service Workshop
Page /1 – 10 Oracle Provisioning
You should now see your new Database Cloud Service instance Beta01A-DBCS being created.
The creation of the DBCS instance will take approximately 60 minutes. While your DBCS instance
is being created, you can monitor the progress by clicking on the In Progress link, and view the
current status.
We will now continue with the lab by using the Alpha01A-DBCS database.
Note the Public IP address of Alpha01A-DBCS. You will need this later to connect using SSH.
Module /1
Oracle Database Cloud Service Workshop
Page /1 – 12 Oracle Provisioning
STEP 1: (For Windows client) SSH to the Database Cloud Service with Putty
Run Putty.exe from your laptop.
Enter the public IP address of your AlphaDBCS-01A Database Cloud Service, and Port 22 for SSH.
From the Connection category, expand SSH and select Auth, and browse for your private key
labkey.ppk that is provided by your instructor or copied from the Scripts and Tools folder. The
labkey.ppk has previously been created by the instructor.
You may be prompted for a passphrase when logging in. If not proceed.
If you are prompted for the passphrase, it is in the password file on the Beehive Workspace or
your instructor will have provided it for you. Type the passphrase and you will be logged in.
Module /1
Oracle Database Cloud Service Workshop
Page /1 – 14 Oracle Provisioning
STEP 2: (For Linux clients) Run SSH from your terminal prompt
This step is for Linux users connecting with SSH to the AlphaDBCS-01A Service. Proceed to the
next step if you are not running a Linux client on your computer.
In the terminal window enter the following command using the IP address for your Database
cloud service instance. The –o ServerAliveInterval=60 keeps your connection up even if there is
no activity. labkey is the private key for AlphaDBCS-01A, which was previously created by the
instructor. The example below shows the labkey is in the current directory. Change directory if
needed to where your labkey is.
ssh –o ServerAliveInterval=100 –i labkey oracle@< DBCS IP >
Login as oracle
You may be prompted for a passphrase when logging in. This passphrase is in the password file
on the Beehive Workspace or your instructor will have provided it for you. Type the passphrase
and you will be logged in.
Now let’s change directories to the Oracle Home and list the directories.
cd $ORACLE_HOME
ls
Module /1
Oracle Database Cloud Service Workshop