You are on page 1of 34

Copyright 2014 Oracle and/or its affiliates. All rights reserved.

Building Applications with


Oracle Database Cloud Service
Database as a Service - Hands On Lab
Dom Lindars
Cloud Development & Product Strategy

Copyright 2014, Oracle and/or its affiliates. All rights reserved. |

Safe Harbor Statement


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 Oracles products remains at the sole
discretion of Oracle.

Copyright 2014, Oracle and/or its affiliates. All rights reserved. |

Oracle
Database
as a Service
Hands on Lab

Copyright 2014, Oracle and/or its affiliates. All rights reserved. |

Hands on Lab - Overview


In this 1 hour hands on lab, you will learn to:
Create a Cloud DBaaS instance
Connect to a DBaaS instance
View instance details and monitor database instance information

Information you need for this session:


Oracle Cloud URL:

oowhol

User name:
Password:

https://myservices.oraclecloud.com/mycloud/

Manager_2014

Identity Domain:

<To Be Provided>

An SSH key pair: Located in /home/oracle/ (your Linux Home directory) and
Desktop directory
Public key file:

oowhol.pub - To create a Cloud instance

Private key file:

oowhol - To access a Cloud instance using SSH


Copyright 2014, Oracle and/or its affiliates. All rights reserved. |

Start Firefox browser - Go to Oracle Cloud


(bookmark):
https://myservices.oraclecloud.com/myclo
ud/
User Name:

oowhol

Password:
Manager_2014
and the
Identity Domain provided
and clickSign In.
Copyright 2014, Oracle and/or its affiliates. All rights reserved. |

From the Oracle


Cloud My Service
Dashboard:
Click
Open Service
Console
in the Oracle
Database Cloud
Service section
Copyright 2014, Oracle and/or its affiliates. All rights reserved. |

In the Database
Cloud Service
Console:
ClickCreate
Instance
to begin creating a
new Cloud
instance.
Note the existing
DBaaS instance for
use later
Copyright 2014, Oracle and/or its affiliates. All rights reserved. |

In the
Subscription
screen:
Select theOracle
Database Cloud
ServiceService
Level
and the Monthly
Billing Frequency
and clickNext.
Copyright 2014, Oracle and/or its affiliates. All rights reserved. |

In the Software
Release screen:
SelectOracle
Database 12c
Release
1database
and clickNext.

Copyright 2014, Oracle and/or its affiliates. All rights reserved. |

In the Software
Edition screen:
Select
Enterprise
Edition
and clickNext.

Copyright 2014, Oracle and/or its affiliates. All rights reserved. |

In the Service Details


screen:
Name: TEST-DBAAS
Shape:
OC3 - 1
OCPU
VM Public key:
oowhol.pub
DB Storage (GB):
10
Password:
Manager_2014
Backup Destination:
Block Store
Only
Copyright 2014, Oracle and/or its affiliates. All rights reserved. |

In the Confirmation screen, review the information and


clickCreate.

Copyright 2014, Oracle and/or its affiliates. All rights reserved. |

Open the existing ORCL Cloud instance details screen


and make a note of the Reserved IP, SQL*Net Port and
SID.

Copyright 2014, Oracle and/or its affiliates. All rights reserved. |

From a Linux terminal, enter the following to SSH to


your instance
Enter you Reserved IP you noted previously
ssh -i oowhol oracle@129.152.x.y

Copyright 2014, Oracle and/or its affiliates. All rights reserved. |

Start SQL*Plus with:


sqlplus system/Manager_2014

Copyright 2014, Oracle and/or its affiliates. All rights reserved. |

Start SQL Developer


Right clickConnectionsto open the Connection dialog

Copyright 2014, Oracle and/or its affiliates. All rights reserved. |

Enter Name:OOW-HOL(suggested),
Username:system, Password:Manager_2014
Hostname:localhost(default), Port:1521(default),
SID:ORCL
Then click Advanced

Copyright 2014, Oracle and/or its affiliates. All rights reserved. |

In the Advanced Properties, clickSSHtab andcheck


Use SSH
enter the following: Host:<You Reserved IP>
Username:oracle, check Use Key File
and enter Keyfile: /home/oracle/oowhol

Copyright 2014, Oracle and/or its affiliates. All rights reserved. |

Double click your newly created connection,OOW-HOL


to start an SSH connection to the OOW-HOL Cloud
instance.

Copyright 2014, Oracle and/or its affiliates. All rights reserved. |

Detailed Technical Hands-on Labs


Oracle SQL Developer: Overview
Getting Started with Oracle SQL Developer 4.0

Oracle Database 12cFeatures


Oracle Database 12cRedaction in SQL
Developer
Managing Multitenant Pluggable Databases
with SQL Developer

Oracle SQL Developer Release 4.0


Features
Using the SQL Developer Cart
Creating an Advanced Charting Report and
Generating it into HTML
Creating a Detail Report and Generating it into
a Secure PDF

Getting Started with RESTful Web


Services using SQL Developer

Oracle SQL Developer DBA Features


Working with the Oracle SQL Developer DBA
Navigator
Using Oracle Data Pump in SQL Developer
Database Copy in SQL Developer
Importing and Exporting using Oracle SQL
Developer

PL/SQL Development and Unit Testing


Developing and Debugging PL/SQL using Oracle
SQL Developer
Performing a Unit Test of Your PL/SQL in Oracle SQL
Developer

Performance Tuning
Tune your SQL with the SQL Tuning Advisor
Learn about Optimizer Access Paths using Oracle
SQL Developer
Working with Tuning Utilities in Oracle SQL
Developer

Creating a RESTful Web Service


Using Parameters and Feeds
Setting up RESTful Web Services in Application
Express
Copyright 2014, Oracle and/or its affiliates. All rights reserved.

Oracle
Database
as a Service
Overview and
Reference Slides
Copyright 2014, Oracle and/or its affiliates. All rights reserved. |

Oracle Database Cloud Services - Offerings


Database Schema
Service

Database as a Service
Full Database Instance Service

Virtual Image
VM + DB + Disk Image

Similar to Azure image or AMI


Full distribution extracted on
disk
Same as on premise

Shared Schema Service

Database Cloud Service


VM + DB + Full
Backup/recovery
automation
Provisioning
Patching and upgrade
automation
Data Guard setup
Monitoring & management
portals
Local management console

Database Schema
Shared Database

Oracle Linux 6.4


On-demand storage & compute
Choice of editions SE1, EE and Database 12c 12.1.0.2, and 11g
11.2.0.4
Bundles: EE High Performance (most options), EE Extreme Perf
(all options)
Full network, VM and OS isolation, Full SQL*Net access
Self-managed with SSH access into VM with root privilege
Production

September 2014

Copyright 2014, Oracle and/or its affiliates. All rights reserved. |

Fully managed
Dedicated Schema
Sizes 5GB, 20GB, 50GB
Data access using: Java
service, Oracle
Application Express,
Oracle RESTful Web
Services
Production
October 2012

Oracle Database as a Service

Oracle Database Cloud Simplifies Database Provisioning


Manual Database Provisioning
Select
Image
(11g 12c,
shape, size)

Install
Database
(DBCA)

Configure
Components
and Cloud
Tooling

Size &
Tune
(Memory)

Configure
Backup
(RMAN)

Monitoring
(Cloud
Portal)

Database
Ready for
Use

Oracle Cloud Provisioning


Select
Configuration
(11g, 12c,
shape, size,
features, prefs)

Streamlined Intelligent Automated Orchestrations

Database
Ready for
Use

Machine images typically provide extracted media with an OS in a VM. Automated orchestrations configure best practices.

Copyright 2014, Oracle and/or its affiliates. All rights reserved. |

Oracle Database as a Service


Architecture

JaaS

Compute Service

On Premise
EM

cloud.oracle.com

Compute Infrastructure

Compute
Metrics

Oracle VM Oracle Linux

Database
Metrics

Local DB
Dev Tools

My Services
RDBMS

Oracle REST
Data Services

Cloud Tooling
(EM Express +
HTML5 APP)

Store
/u03

/u02

/u01

Archives
Oracle Storage
Cloud

Oracle Compute Block Storage

Copyright 2014, Oracle and/or its affiliates. All rights reserved. |

DBaaS

Oracle Database as a Service


Backup and Recovery

Compute Infrastructure
Oracle VM Oracle Linux
RMAN
Oracle REST
Data Services

RDBMS

/u03

/u02

Cloud Utilities &


EM Express

/u01

Archives
Oracle Storage
Cloud

Oracle Compute Block Storage

Daily Incremental
Weekly Full
Older backups archived to
Oracle Storage Cloud
Backups go to /u03 Block
Storage
Recovery from backup is
invoked manually if
customer determines its
required
Restore to point in time is
customer responsibility, use
standard tools and
processes

Copyright 2014, Oracle and/or its affiliates. All rights reserved. |

Oracle Database as a Service


Patching and Upgrades
2

Current

Copy and
Patch

Upgraded

Compute Infrastructure

Compute Infrastructure

Oracle VM Oracle Linux

Oracle VM Oracle Linux

Quiesce

3Reboot and Re-Attach

Oracle Compute Block Storage

Customer initiated patching


Gold Image Patching
o Copy Settings - Detach
and Re-Attach Storage
o Run catproc to upgrade
RDBMS Data Dictionary
o Bring up all services on
new environment
Compute based cloning (in
CY 2015)
EM patching (in CY 2015)
Rolling upgrades is via RAC &
Data Guard (in CY 2015)

Copyright 2014, Oracle and/or its affiliates. All rights reserved. |

Oracle Database as a Service EM Express 12c


Step by Step to Clone or Move your Pluggable Database to the
Cloud
On-Premise Database

Oracle Cloud Database

3
Copyright 2014, Oracle and/or its affiliates. All rights reserved. |

5
6

Oracle Database as a Service


Data Guard & Active Data Guard

Data Guard provides highest


performance data recovery
protection without compromises
R/O with Active
R/W
using stand by Database
Redo Log Shipping
Data Guard
Transfers archive logs to standby
Compute Infrastructure
Compute Infrastructure
Database
Oracle VM Oracle Linux
Oracle VM Oracle Linux
Local standby (intra data center)
Data Guard
Disaster Recovery (inter data center)
in CY 2015
Primary
Stand By
Active Data Guard provides readonly access to a physical standby
database for production workload
offloading
Oracle Compute Block Storage
Database rolling upgrades and
standby-first patching using physical
Copyright 2014, Oracle and/or its affiliates. All rights reserved. |
standby

Oracle Database as a Service


New DBaaS Monitor

HTML5 application hosted within the


VM
Front end: JavaScript & JQuery
Backend: REST Listener using
Glassfish
All communications are via REST
REST listener uses server side
JavaScript with file system
access and DB connections to
display information
DBaaS Monitor - Top Features:
Monitor database sessions, disk
& CPU
View version, features installed

Configure database parameters


Initiate backups
Copyright 2014, Oracle and/or its affiliates. All rights reserved. |

Oracle Database as a Service


Oracle REST Data Services

Turns Database Service into an RESTFul API


service
Fully provisioned and functional in all cloud
editions
Available in both 11g and 12c, no extra
cost
Allows publishing of URI based access to
Oracle database over REST
Results in JSON or CSV
Mapping of URI to SQL or PL/SQL
All HTML methods GET, PUT, POST, DELETE,
PATCH
Oauth2 integration
Highly scalable

Copyright 2014, Oracle and/or its affiliates. All rights reserved. |

Oracle Database Cloud Services - Summary


Oracle Database as a Service
Full-featured dedicated 11gR2 or 12c single-node
instance
Customer backs up, patches, manages Database with
cloud tooling
Full SQL*Net, root access, Enterprise Manager, all
Database tools
Full portability on-premises & cloud
Primary Use Case: Dev/test and limited production of
existing apps

Oracle Database Schema Service


Each tenant gets dedicated schema(s)
Fully managed service
Application dev: Application Express, SQL Developer,
Java, RESTful Web Services
Includes 30+ productivity applications
Primary Use Case: Rapid web application development
Copyright 2014, Oracle and/or its affiliates. All rights reserved. |
and production deployment of Oracle Application Express

32

Copyright 2014 Oracle and/or its affiliates. All rights reserved. |

You might also like