Upload
raastech
View
344
Download
2
Embed Size (px)
Citation preview
Raastech, Inc.2201 Cooperative Way, Suite 600Herndon, VA [email protected]
Oracle Database Cloud ServiceProvisioning Your First DBaaS Instance
Thursday, May 18, 20174:00 - 5:00pm
Session 10LL01
© Raastech, Inc. 2017 | All rights reserved. Slide 2 of 78@Raastech
Agenda
1. Introduction
2. Pricing
3. Creating an Instance
4. Administration
5. Managing Network Access
6. Oracle DBaaS Monitor
7. Command Line Utilities
8. Oracle REST Data Services
9. Oracle SQL Developer Access
10. Complaints
11. Summary
© Raastech, Inc. 2017 | All rights reserved. Slide 3 of 78@Raastech
© Raastech, Inc. 2017 | All rights reserved. Slide 4 of 78@Raastech
About Me
▪ Ahmed Aboulnaga @Ahmed_Aboulnaga
▪ 18+ years Oracle experience
▪ Oracle ACE, OCE, OCA
▪ Author, Blogger, Presenter, Tweeter
© Raastech, Inc. 2017 | All rights reserved. Slide 5 of 78@Raastech
About Raastech
▪ Small systems integrator founded in 2009
▪ Headquartered in the Washington DC area
▪ Specializes in Oracle Fusion Middleware
▪ Oracle Gold Partner
▪ Oracle SOA Specialized
© Raastech, Inc. 2017 | All rights reserved. Slide 6 of 78@Raastech
Why Cloud?
▪ No need to purchase or maintain hardware
▪ Less effort spent upgrading and patching
▪ A slew of other reasons you can find online
© Raastech, Inc. 2017 | All rights reserved. Slide 7 of 78@Raastech
Will Traditional DBAs Become Obsolete?
▪ “By 2017, the DaaS market share will increase to 29%” ~Oracle Research
▪ Cloud DBA skills needed:
▪ Everything a traditional DBA knows
▪ DBaaS architecture and usage
▪ Familiarity with cloud DBA tools
▪ Security
▪ Cloud Strategic Database Administrator – one of the top 10 future job roles
▪ Strategic management of databases in the cloud
▪ Niche skills in multitenancy, tuning, high availability, and security
© Raastech, Inc. 2017 | All rights reserved. Slide 8 of 78@Raastech
Oracle Database as a Service (DBaaS)
▪ Oracle DBaaS – support for both 11g and 12c
▪ Support for multiple editions (explained later)
▪ Retain full control – root OS and SYSDBA access
▪ Comprehensive CLI and REST interfaces
▪ Network access via SSH, SQL*Net, JDBC, Web, HTTPS, and other
drivers
You are responsible for setting up automated maintenance!
You are responsible for recovery in the event of a failure!
© Raastech, Inc. 2017 | All rights reserved. Slide 9 of 78@Raastech
Oracle Marketing Speak
▪ “Fast,” “Elastic,” “Secure,” “Simple”
▪ “Rapid provisioning”
▪ “Full capabilities of the Oracle Database”
▪ “Flexible management options from self-managed to fully managed
by Oracle”
▪ “Reap all the benefits of the cloud including subscription-based, self-
service access to reliable, scalable, and secure cloud environments”
© Raastech, Inc. 2017 | All rights reserved. Slide 10 of 78@Raastech
Multiple Editions
Standard Edition
Enterprise Edition
Enterprise Edition High Performance
Enterprise Edition Extreme Performance
Single Instance ✓ ✓ ✓ ✓
Single Instance + Data Guard Standby ✓ ✓ ✓
Database Clustering + RAC ✓
Database Clustering + RAC and Data Guard Standby ✓
▪ Enterprise – additional performance and availability
▪ High Performance – plus all management packs, but no Active Data Guard,
no in-memory, no Oracle RAC One Node, no RAC
▪ Extreme Performance – no Oracle RAC One Node
© Raastech, Inc. 2017 | All rights reserved. Slide 11 of 78@Raastech
Oracle Database Cloud Differentiators
▪ Full administrative control (root OS + SYSDBA)
▪ Oracle Database Cloud Service – Bare Metal
▪ Oracle Database Schema Cloud Service
▪ Virtual Image option (pre-configured/installed, just need to run DBCA)
© Raastech, Inc. 2017 | All rights reserved. Slide 12 of 78@Raastech
Multiple Oracle Database Cloud Services
▪ Oracle Database Cloud ServiceOracle 11g, 12.1, 12.2
▪ Oracle Database Cloud Service – Bare MetalDedicated hardware, local NVMe storage, secure Virtual Cloud Network, dynamically scale 2-node RAC to 72 OCPUs without downtime
▪ Oracle Database Exadata Cloud Service
▪ Oracle Database Exadata Cloud MachineFor on-premise deployments
▪ Oracle Database Exadata Express Cloud Service – Managed
▪ Oracle Database Schema Cloud Service – ManagedRuns APEX
© Raastech, Inc. 2017 | All rights reserved. Slide 13 of 78@Raastech
Some Terminology
Term Explanation
Oracle DBaaS –or– DBaaS There is no product/service called “Oracle DBaaS”, merely a concept
Oracle Database Cloud ServiceOracle’s DBaaS offering ---- The service for provisioning Oracle Databases on the cloud
Oracle Compute Cloud ServiceOracle’s IaaS offering ---- The service for provisioning infrastructure/servers on the cloud
Compute node A server (e.g., Linux box) on Oracle’s Compute Cloud
Service “Create a service” means create a database installation/instance
Deployment“Create a database deployment” means create a database installation/instance
© Raastech, Inc. 2017 | All rights reserved. Slide 14 of 78@Raastech
© Raastech, Inc. 2017 | All rights reserved. Slide 15 of 78@Raastech
Pricing
▪ Metered - pay as you go
▪ Non-metered - pre-paid, typically cheaper if “always on”
© Raastech, Inc. 2017 | All rights reserved. Slide 16 of 78@Raastech
Pricing
▪ Biggest cost variables are:
▪ Database edition
▪ Number of OCPUs
▪ Usage (number of hours, if metered)
© Raastech, Inc. 2017 | All rights reserved. Slide 17 of 78@Raastech
Estimated Pricing – Standard Edition
© Raastech, Inc. 2017 | All rights reserved. Slide 18 of 78@Raastech
Estimated Pricing – Standard Edition
© Raastech, Inc. 2017 | All rights reserved. Slide 19 of 78@Raastech
Usage
▪ Metered – pay as you go – shutdown when not in use to control cost
© Raastech, Inc. 2017 | All rights reserved. Slide 20 of 78@Raastech
© Raastech, Inc. 2017 | All rights reserved. Slide 21 of 78@Raastech
Create Service
▪ Very straightforward, simple 3 page wizard (one of them the
confirmation screen!)
© Raastech, Inc. 2017 | All rights reserved. Slide 22 of 78@Raastech
Details
© Raastech, Inc. 2017 | All rights reserved. Slide 23 of 78@Raastech
Details – Advanced Settings
© Raastech, Inc. 2017 | All rights reserved. Slide 24 of 78@Raastech
Backup and Recovery Configuration Options
▪ Want to back up to the cloud?
▪ Must set up a cloud storage container on Oracle Storage Cloud Service
▪ Cloud Storage:
▪ Provide URL of the Oracle Storage Cloud Service container for your
service instance backups
▪ Example: https://foo.storage.oraclecloud.com/MyService-bar/MyContainer
▪ To identify the URL of your storage account, see the documentation
▪ If this container doesn’t exist, use the provided checkbox to create it
© Raastech, Inc. 2017 | All rights reserved. Slide 25 of 78@Raastech
Backup and Recovery Configuration Options
© Raastech, Inc. 2017 | All rights reserved. Slide 26 of 78@Raastech
Confirmation Page
© Raastech, Inc. 2017 | All rights reserved. Slide 27 of 78@Raastech
Services Dashboard
© Raastech, Inc. 2017 | All rights reserved. Slide 28 of 78@Raastech
Creation Duration
▪ 25 minutes to create the instance
© Raastech, Inc. 2017 | All rights reserved. Slide 29 of 78@Raastech
View/Search Activity
© Raastech, Inc. 2017 | All rights reserved. Slide 30 of 78@Raastech
Indirect Access to Oracle Compute Cloud
▪ Can’t find a corresponding compute instance under Oracle Compute
Cloud (not a bad thing!)
© Raastech, Inc. 2017 | All rights reserved. Slide 31 of 78@Raastech
© Raastech, Inc. 2017 | All rights reserved. Slide 32 of 78@Raastech
Additional Responsibilities of the DBA
▪ Adding temporary storage
▪ Adding SSH keys
▪ Updating the Cloud Tooling (for automatic and on-demand backups,
patching and upgrading, point-in-time recovery)
▪ Administering Oracle REST Data Services (ORDS)
▪ Loading data / tuning performance / monitoring / patching
▪ Creating a database using the Virtual Image Service Level
© Raastech, Inc. 2017 | All rights reserved. Slide 33 of 78@Raastech
© Raastech, Inc. 2017 | All rights reserved. Slide 34 of 78@Raastech
Access Rules
▪ Oracle Database Cloud Service relies on Oracle Compute Cloud Service to provide
secure network access to database deployments (default through SSH port 22)
▪ Web console can be used to perform network access operations such as enabling
access to a port on a compute node or creating new security rules
Security Rule Name Port Application
ora_p2_dbconsole 1158 Enterprise Manager 11g Database Control
ora_p2_dbexpress 5500 Enterprise Manager Database Express 12c
ora_p2_dblistener SQL*Net
ora_p2_http 80 HTTP connections
ora_p2_httpssl 443 HTTPS connections, ORDS, Oracle APEX, DBaaS Monitor
© Raastech, Inc. 2017 | All rights reserved. Slide 35 of 78@Raastech
Welcome to Oracle Cloud Email – Setting Up VPN
VPN Account
Setting up VPN involves the following steps: 1. Setting up a Corente gateway (on-premises gateway) in your data center2. Setting up Corente Gateway (cloud gateway) on Oracle Cloud3. Establishing partnership between your on-premises gateway and cloud gateway4. Configuring a GRE tunnel on your Oracle Compute Service instances
The VPN account information included in this email enables you to sign in to App Net Manager Service Portal when setting up Corente Gateway (cloud gateway) on Oracle Cloud, which is Step 2 of the setup process.
Username: a444444_admin Password: welcome1Corente Domain: a444444
Click https://docs.oracle.com/cloud/latest/stcomputecs/MCVPN/toc.htm for detailed instructions to configure your VPN account.
© Raastech, Inc. 2017 | All rights reserved. Slide 36 of 78@Raastech
© Raastech, Inc. 2017 | All rights reserved. Slide 37 of 78@Raastech
Relevant URLs
▪ Oracle Database Cloud Service Dashboard
https://dbaas.oraclecloud.com/dbaas/faces/dbRunner.jspx
▪ DBaaS Monitor Console
https://129.150.xx.xx/dbaas_monitor
▪ EM Database Express Console
https://129.150.xx.xx:5500/em
▪ Application Express Console
https://129.150.xx.xx/apex/pdb1
© Raastech, Inc. 2017 | All rights reserved. Slide 38 of 78@Raastech
Consoles – Navigating To
▪ Key tasks accessible from the Action Menu
© Raastech, Inc. 2017 | All rights reserved. Slide 39 of 78@Raastech
Consoles – First Time Access Issue
▪ Cannot access the Oracle Database Cloud Service consoles
http://blog.raastech.com/2016/06/cannot-access-oracle-database-cloud.html
© Raastech, Inc. 2017 | All rights reserved. Slide 40 of 78@Raastech
Consoles – Listen on Ports 443 and 5500
▪ Enable ora_p2_httpssl and ora_p2_dbexpress firewall rule
▪ Finer grain access eventually needed, not “PUBLIC-INTERNET”
© Raastech, Inc. 2017 | All rights reserved. Slide 41 of 78@Raastech
Oracle DBaaS Monitor
▪ Default username is ‘dbaas_monitor’
© Raastech, Inc. 2017 | All rights reserved. Slide 42 of 78@Raastech
Oracle DBaaS Monitor
© Raastech, Inc. 2017 | All rights reserved. Slide 43 of 78@Raastech
Oracle DBaaS Monitor – Explore the 18 Errors
© Raastech, Inc. 2017 | All rights reserved. Slide 44 of 78@Raastech
Oracle EM Console – Logging In
▪ Requires Adobe Flash
© Raastech, Inc. 2017 | All rights reserved. Slide 45 of 78@Raastech
Navigate Oracle EM Console
© Raastech, Inc. 2017 | All rights reserved. Slide 46 of 78@Raastech
© Raastech, Inc. 2017 | All rights reserved. Slide 47 of 78@Raastech
Connect via SSH – Get Public IP Address
© Raastech, Inc. 2017 | All rights reserved. Slide 48 of 78@Raastech
Connect via SSH – Setup Putty
1. Enter IP address 2. Enter location of private PPK key file
3. Set default user to ‘opc’
© Raastech, Inc. 2017 | All rights reserved. Slide 49 of 78@Raastech
Connect via SSH – Connect to Compute Node
© Raastech, Inc. 2017 | All rights reserved. Slide 50 of 78@Raastech
Command Line Utilities
▪ oracle-dbcs-cli
▪ To connect to Oracle Cloud and perform administrative tasks on Oracle Database Cloud Services
▪ Only runs on Linux
▪ Does not support databases that use RAC
▪ dbaascli
▪ Bouncing, patching, etc.
▪ raccli
▪ Various RAC-related administrative operations
▪ dbpatchmdg
▪ Various patching operations for deployments configured with Data Guard
© Raastech, Inc. 2017 | All rights reserved. Slide 51 of 78@Raastech
oracle-dbcs-cli
▪ Download it from:
http://www.oracle.com/technetwork/database/database-cloud/public/downloads/index.html
▪ Subcommands include:
▪ create
▪ delete
▪ list
▪ patch apply/check/rollback/status/list
▪ scaleup
© Raastech, Inc. 2017 | All rights reserved. Slide 52 of 78@Raastech
dbaascli
▪ Connect to a compute node running an Oracle Database Cloud Service
▪ Run as the ‘oracle’ or ‘opc’ user depending on subcommands
▪ Subcommands include:
▪ database - bounce, changepassword, start, status, stop
▪ dataguard - failover, reinstate, status, switchover
▪ dbpatchm - apply, clonedb, list_patches, list_tools, prereq, rollback, etc.
▪ dv - off, on (Data Vault)
▪ listener - bounce, start, status, stop
▪ netsec - config, config encryption, config integrity, status
▪ orec - duplicate, keep list, keep tag, latest, list, pitr, scn
▪ tde - rotate masterkey, status
© Raastech, Inc. 2017 | All rights reserved. Slide 53 of 78@Raastech
dbaascli
▪ Startup/shutdown/status commands
dbaascli database status
dbaascli database stop
dbaascli database start
dbaascli database bounce
© Raastech, Inc. 2017 | All rights reserved. Slide 54 of 78@Raastech
dbaascli
▪ Environment already set in compute node
▪ Binaries under /usr/bin
▪ Stopping the database does not stop the entire service (i.e., compute node, ORDS, etc.)
© Raastech, Inc. 2017 | All rights reserved. Slide 55 of 78@Raastech
© Raastech, Inc. 2017 | All rights reserved. Slide 56 of 78@Raastech
REST APIs
▪ ORDS = Oracle REST Data Services
▪ ORDS makes it easy to develop modern REST interfaces for relational data in the Oracle Database
▪ Formerly known as Oracle APEX Listener
▪ Started when a deployment is started
▪ Deployments with RAC do not include ORDS
© Raastech, Inc. 2017 | All rights reserved. Slide 57 of 78@Raastech
Starting/Stopping ORDS
▪ Login as ‘root’ to the compute node
▪ Start/stop using scripts or service commands
/u01/app/oracle/product/ords/ords stop
/u01/app/oracle/product/ords/ords start
/u01/app/oracle/product/ords/ords status
/etc/init.d/ords stop
/etc/init.d/ords start
/etc/init.d/ords status
© Raastech, Inc. 2017 | All rights reserved. Slide 58 of 78@Raastech
REST API Documentation
▪ Click on the “REST APIs” link
© Raastech, Inc. 2017 | All rights reserved. Slide 59 of 78@Raastech
Calling REST API with cURL
curl --include
--request GET
--user [email protected]:welcome1
--header "X-ID-TENANT-NAME:a444444"
https://dbaas.oraclecloud.com/paas/service/dbcs/api/v1.1/instances/a444444
▪ Don’t use passwords with ! as they will not work when authenticating
against ORDS
▪ Example call to view all services:
© Raastech, Inc. 2017 | All rights reserved. Slide 60 of 78@Raastech
Calling REST API with cURL
© Raastech, Inc. 2017 | All rights reserved. Slide 61 of 78@Raastech
© Raastech, Inc. 2017 | All rights reserved. Slide 62 of 78@Raastech
Create SSH Tunnel with Putty
▪ Get public IP, port, and SID
© Raastech, Inc. 2017 | All rights reserved. Slide 63 of 78@Raastech
Create SSH Tunnel with Putty
▪ Click on “Data”
▪ Enter ‘oracle’ as the auto-login
username
© Raastech, Inc. 2017 | All rights reserved. Slide 64 of 78@Raastech
Create SSH Tunnel with Putty
▪ Click on “SSH”
▪ Check “Don’t start a shell or
command at all”
© Raastech, Inc. 2017 | All rights reserved. Slide 65 of 78@Raastech
Create SSH Tunnel with Putty
▪ Click on “Auth”
▪ Browse and locate your PPK file
© Raastech, Inc. 2017 | All rights reserved. Slide 66 of 78@Raastech
Create SSH Tunnel with Putty
▪ Click on “Tunnels”
▪ Add the source port as 1521
▪ Add the destination as your IP
address colon 1521
▪ Then click on “Add”
© Raastech, Inc. 2017 | All rights reserved. Slide 67 of 78@Raastech
Create SSH Tunnel with Putty
▪ Click on “Session”
▪ Enter the IP address
▪ Enter a name for the session
▪ Click on “Save”
▪ Click on “Open”:
▪ Enter the password of your private key
▪ Keep the Putty window open
▪ You now have an SSH tunnel on port 1521
© Raastech, Inc. 2017 | All rights reserved. Slide 68 of 78@Raastech
Configure Oracle SQL Developer Connection
▪ Enter the information as shown, but use “localhost” as the hostname
© Raastech, Inc. 2017 | All rights reserved. Slide 69 of 78@Raastech
Connect via Oracle SQL Developer
▪ Voila!
© Raastech, Inc. 2017 | All rights reserved. Slide 70 of 78@Raastech
Oracle SQL Developer – SSH Hosts
▪ Newer versions support SSH Hosts
http://blog.raastech.com/2016/06/configure-oracle-sql-developer-to.html
© Raastech, Inc. 2017 | All rights reserved. Slide 71 of 78@Raastech
© Raastech, Inc. 2017 | All rights reserved. Slide 72 of 78@Raastech
Confusing Accounts and Firewall Rules
▪ Relationship between Oracle Account, My Account, and My Services
continues to confuse
▪ Unintuitive firewall rule configuration
© Raastech, Inc. 2017 | All rights reserved. Slide 73 of 78@Raastech
Oracle Cloud Support
▪ Disappointing response to Sev 1 SRs, no callbacks even when
requested, often multiple day response times if you don’t continually
hound them
▪ No non-CSI weekend support
© Raastech, Inc. 2017 | All rights reserved. Slide 74 of 78@Raastech
Responsiveness of UI
▪ Static and unresponsive refresh icon
▪ Are pages static? Unclear when/if pages refresh
© Raastech, Inc. 2017 | All rights reserved. Slide 75 of 78@Raastech
© Raastech, Inc. 2017 | All rights reserved. Slide 76 of 78@Raastech
Summary
▪ Getting started is quick and easy
▪ The role of the DBA will not disappear
▪ One of the more solid and reliable Oracle Cloud services
▪ Independent performance results of Oracle Database on the Oracle
Cloud considerably outperforms those when run on competing cloud
providers
▪ Oracle pricing has gotten more competitive over the last few years
▪ Can be managed by non-DBAs for very simple databases, but
competent DBAs still required for enterprise and mission critical
systems (not just for Oracle, but any DBaaS provider)
© Raastech, Inc. 2017 | All rights reserved. Slide 77 of 78@Raastech
Contact Information
▪ Ahmed Aboulnaga
▪ Technical Director
▪ @Ahmed_Aboulnaga
© Raastech, Inc. 2017 | All rights reserved. Slide 78 of 78@Raastech
Q&A