Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Oracle Database Cloud Service - Provisioning Your First DBaaS Instance

540 views

Published on

Moving to the cloud is inevitable, yet many haven’t started getting their hands dirty yet. This presentation will walk you through key Oracle Cloud concepts for those who have never seen or used it before, and walk through provisioning a cloud database, which includes storage and infrastructure. We explain how to access it, and discuss various administration concepts. This presentation is perfect for the Oracle DBA who wants to understand how to get started administering an Oracle DBaaS environment, from a technical perspective.

Published in: Technology
  • Be the first to comment

Oracle Database Cloud Service - Provisioning Your First DBaaS Instance

  1. 1. Raastech, Inc. 2201 Cooperative Way, Suite 600 Herndon, VA 20171 +1-703-884-2223 info@raastech.com Oracle Database Cloud Service Provisioning Your First DBaaS Instance Thursday, May 18, 2017 4:00 - 5:00pm Session 10 LL01
  2. 2. © 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
  3. 3. © Raastech, Inc. 2017 | All rights reserved. Slide 3 of 78@Raastech
  4. 4. © 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
  5. 5. © 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
  6. 6. © 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
  7. 7. © 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
  8. 8. © 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!
  9. 9. © 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”
  10. 10. © 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
  11. 11. © 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)
  12. 12. © Raastech, Inc. 2017 | All rights reserved. Slide 12 of 78@Raastech Multiple Oracle Database Cloud Services ▪ Oracle Database Cloud Service Oracle 11g, 12.1, 12.2 ▪ Oracle Database Cloud Service – Bare Metal Dedicated 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 Machine For on-premise deployments ▪ Oracle Database Exadata Express Cloud Service – Managed ▪ Oracle Database Schema Cloud Service – Managed Runs APEX
  13. 13. © 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 Service Oracle’s DBaaS offering ---- The service for provisioning Oracle Databases on the cloud Oracle Compute Cloud Service Oracle’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
  14. 14. © Raastech, Inc. 2017 | All rights reserved. Slide 14 of 78@Raastech
  15. 15. © 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”
  16. 16. © 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)
  17. 17. © Raastech, Inc. 2017 | All rights reserved. Slide 17 of 78@Raastech Estimated Pricing – Standard Edition
  18. 18. © Raastech, Inc. 2017 | All rights reserved. Slide 18 of 78@Raastech Estimated Pricing – Standard Edition
  19. 19. © 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
  20. 20. © Raastech, Inc. 2017 | All rights reserved. Slide 20 of 78@Raastech
  21. 21. © 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!)
  22. 22. © Raastech, Inc. 2017 | All rights reserved. Slide 22 of 78@Raastech Details
  23. 23. © Raastech, Inc. 2017 | All rights reserved. Slide 23 of 78@Raastech Details – Advanced Settings
  24. 24. © 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
  25. 25. © Raastech, Inc. 2017 | All rights reserved. Slide 25 of 78@Raastech Backup and Recovery Configuration Options
  26. 26. © Raastech, Inc. 2017 | All rights reserved. Slide 26 of 78@Raastech Confirmation Page
  27. 27. © Raastech, Inc. 2017 | All rights reserved. Slide 27 of 78@Raastech Services Dashboard
  28. 28. © Raastech, Inc. 2017 | All rights reserved. Slide 28 of 78@Raastech Creation Duration ▪ 25 minutes to create the instance
  29. 29. © Raastech, Inc. 2017 | All rights reserved. Slide 29 of 78@Raastech View/Search Activity
  30. 30. © 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!)
  31. 31. © Raastech, Inc. 2017 | All rights reserved. Slide 31 of 78@Raastech
  32. 32. © 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
  33. 33. © Raastech, Inc. 2017 | All rights reserved. Slide 33 of 78@Raastech
  34. 34. © 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
  35. 35. © 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 center 2. Setting up Corente Gateway (cloud gateway) on Oracle Cloud 3. Establishing partnership between your on-premises gateway and cloud gateway 4. 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: welcome1 Corente Domain: a444444 Click https://docs.oracle.com/cloud/latest/stcomputecs/MCVPN/toc.htm for detailed instructions to configure your VPN account.
  36. 36. © Raastech, Inc. 2017 | All rights reserved. Slide 36 of 78@Raastech
  37. 37. © 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
  38. 38. © Raastech, Inc. 2017 | All rights reserved. Slide 38 of 78@Raastech Consoles – Navigating To ▪ Key tasks accessible from the Action Menu
  39. 39. © 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
  40. 40. © 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”
  41. 41. © Raastech, Inc. 2017 | All rights reserved. Slide 41 of 78@Raastech Oracle DBaaS Monitor ▪ Default username is ‘dbaas_monitor’
  42. 42. © Raastech, Inc. 2017 | All rights reserved. Slide 42 of 78@Raastech Oracle DBaaS Monitor
  43. 43. © Raastech, Inc. 2017 | All rights reserved. Slide 43 of 78@Raastech Oracle DBaaS Monitor – Explore the 18 Errors
  44. 44. © Raastech, Inc. 2017 | All rights reserved. Slide 44 of 78@Raastech Oracle EM Console – Logging In ▪ Requires Adobe Flash
  45. 45. © Raastech, Inc. 2017 | All rights reserved. Slide 45 of 78@Raastech Navigate Oracle EM Console
  46. 46. © Raastech, Inc. 2017 | All rights reserved. Slide 46 of 78@Raastech
  47. 47. © Raastech, Inc. 2017 | All rights reserved. Slide 47 of 78@Raastech Connect via SSH – Get Public IP Address
  48. 48. © 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’
  49. 49. © Raastech, Inc. 2017 | All rights reserved. Slide 49 of 78@Raastech Connect via SSH – Connect to Compute Node
  50. 50. © 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
  51. 51. © 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
  52. 52. © 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
  53. 53. © 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
  54. 54. © 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.)
  55. 55. © Raastech, Inc. 2017 | All rights reserved. Slide 55 of 78@Raastech
  56. 56. © 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
  57. 57. © 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
  58. 58. © Raastech, Inc. 2017 | All rights reserved. Slide 58 of 78@Raastech REST API Documentation ▪ Click on the “REST APIs” link
  59. 59. © Raastech, Inc. 2017 | All rights reserved. Slide 59 of 78@Raastech Calling REST API with cURL curl --include --request GET --user ahmed@abc.abc: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:
  60. 60. © Raastech, Inc. 2017 | All rights reserved. Slide 60 of 78@Raastech Calling REST API with cURL
  61. 61. © Raastech, Inc. 2017 | All rights reserved. Slide 61 of 78@Raastech
  62. 62. © Raastech, Inc. 2017 | All rights reserved. Slide 62 of 78@Raastech Create SSH Tunnel with Putty ▪ Get public IP, port, and SID
  63. 63. © 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
  64. 64. © 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”
  65. 65. © 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
  66. 66. © 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”
  67. 67. © 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
  68. 68. © 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
  69. 69. © Raastech, Inc. 2017 | All rights reserved. Slide 69 of 78@Raastech Connect via Oracle SQL Developer ▪ Voila!
  70. 70. © 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
  71. 71. © Raastech, Inc. 2017 | All rights reserved. Slide 71 of 78@Raastech
  72. 72. © 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
  73. 73. © 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
  74. 74. © 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
  75. 75. © Raastech, Inc. 2017 | All rights reserved. Slide 75 of 78@Raastech
  76. 76. © 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)
  77. 77. © Raastech, Inc. 2017 | All rights reserved. Slide 77 of 78@Raastech Contact Information ▪ Ahmed Aboulnaga ▪ Technical Director ▪ @Ahmed_Aboulnaga ▪ ahmed.aboulnaga@raastech.com
  78. 78. © Raastech, Inc. 2017 | All rights reserved. Slide 78 of 78@Raastech Q&A

×