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

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

Extensible Storage Engine wikipedia , lookup

Microsoft Access wikipedia , lookup

Microsoft SQL Server wikipedia , lookup

Concurrency control wikipedia , lookup

Microsoft Jet Database Engine wikipedia , lookup

Database wikipedia , lookup

Navitaire Inc v Easyjet Airline Co. and BulletProof Technologies, Inc. wikipedia , lookup

SQL wikipedia , lookup

Open Database Connectivity wikipedia , lookup

Relational model wikipedia , lookup

Database model wikipedia , lookup

Clusterpoint wikipedia , lookup

PL/SQL wikipedia , lookup

Oracle Database wikipedia , lookup

Transcript
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 Oracle’s 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:
– Identity Domain:
https://myservices.oraclecloud.com/mycloud/
oowhol
Manager_2014
<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
“oowhol” - To access a Cloud instance using SSH
– User name:
– Password:
– Private key file:
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Start Firefox browser - Go to Oracle Cloud (bookmark):
https://myservices.oraclecloud.com/mycloud/
User Name:
Password:
oowhol
Manager_2014
and the
Identity Domain provided
and click ”Sign 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:
Click ”Create 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 the ”Oracle
Database Cloud
Service” Service Level
and the “Monthly”
Billing Frequency
and click Next.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
In the Software
Release screen:
Select ”Oracle
Database 12c
Release 1 database”
and click Next.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
In the Software
Edition screen:
Select
”Enterprise Edition”
and click Next.
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 click Create.
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 [email protected]
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 click Connections to 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, click SSH tab and check “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
• Oracle SQL Developer DBA Features
– Getting Started with Oracle SQL Developer 4.0
–
–
–
–
• Oracle Database 12c Features
– Oracle Database 12c Redaction in SQL Developer
– Managing Multitenant Pluggable Databases with SQL
Developer
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
• 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
– 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 as a Service
Database Schema Service
Full Database Instance Service
Shared Schema Service
Virtual Image
VM + DB + Disk Image
• Similar to Azure image or AMI
• Full distribution extracted on disk
• Same as on premise
•
•
•
•
•
•
•
•
•
•
•
Database Schema
Shared Database
Database Cloud Service
VM + DB + Full Provisioning
Backup/recovery automation
Patching and upgrade automation
Data Guard setup
Monitoring & management portals
Local management console
•
•
•
•
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
1
Quiesce
3
Oracle Compute Block Storage
Reboot and Re-Attach
 Customer initiated patching
 Gold Image Patching
o Copy Settings - Detach and ReAttach 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
1
Oracle Cloud Database
2
4
5
6
3
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Oracle Database as a Service
Data Guard & Active Data Guard

R/W
Redo Log Shipping
R/O with Active
Data Guard
Compute Infrastructure
Compute Infrastructure
Oracle VM – Oracle Linux
Oracle VM – Oracle Linux




Primary
Stand By


Oracle Compute Block Storage
Data Guard provides highest performance
data recovery protection without
compromises using stand by Database
Transfers archive logs to standby Database
Local standby (intra data center) Data Guard
Disaster Recovery (inter data center) in CY
2015
Active Data Guard provides read-only access
to a physical standby database for production
workload offloading
Database rolling upgrades and standby-first
patching using physical standby
12c Multitenant DB – Manage standby
container as one, single click switchover.
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
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
 Bounce database
 View log and trace files
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 and production
deployment of Oracle Application Express applications
32
Copyright © 2014, Oracle and/or its affiliates. All rights reserved. |
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |