database as a service, collaborate 2016
TRANSCRIPT
Enterprise Manager 13c Database as a Service, Hybrid Cloud Mgmt.
Kellyn Pot’Vin-GormanConsulting Member of Technical Staff, SCPOracle
April, 2016
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
The Database, the Cloud and Everything Inbetween
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Safe Harbor StatementThe 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.
2
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Confidential – Oracle Internal/Restricted/Highly Restricted 3
DBA Kevlar, the Geek Goth Girl
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Database as a Service
Many Use the Term, But What is the definition of Service?
Uhm, we’ll just disregard this
one!
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Licensing…
• Licensing- Database LifeCycle Management Pack and Cloud Management Pack
• Always check with your Oracle Representative if you have any licensing questions.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 6
No one should have to take databases down, perform datapumps, make tablespaces transportable and other manual steps. It’s not a service if you don’t have features for it.
Database as a Service should be…
User Friendly
Feature Filled
Relatively Simple
Automated
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Why Use Enterprise Manager
There are a number of options to automate the cloning process. • EM offers a single pane of glass approach.• Simplicity of drop down menus for the DBA• Self-Service Portal for the Business• Support of all hardware, all private and public cloud.• Dashboards to manage all aspects of provisioning, chargeback, resource
management, etc.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
We Support it AllA Block is a Block
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Chargeback
Keeping Departments Accountable Since 2005
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Cloning Options
• Clone a copy of Production to a Dev or Test Server quickly and easily.• RMAN, DataGuard, thin clones all available.• Simple Provisioning of Environments for projects, refreshes, deployments
and requirements.• Self Service Portal to Ease Demands on DBA group- Enables Users to request
database services.• Ability to define quotas at environment and at user level.• Dashboards to manage space, quota, users and environments.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
On Premise Cloning in EM13c
• All database targets now have cloning options in the main database drop down.
• This does require the DBLM management pack to use these features.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 12
On Premise Cloning
• First Use-Case-• Full clone of database
• Each clone subsequently in presentation will perform very similar steps
• Much would be automated, so beneficial to see detailed out.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Preferred Credentials- A Must
• This is as important for many features, so prepare your environment and have these pre-set and tested.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Step 1-Source and Destination
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Step 2-Storage, DB Name and Security
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Step 3- Initialization Parameters
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Step 4- Custom Scripts?
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Create Now or Schedule?
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Step 5-Review
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Submit!
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Full Clone Now Available!
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Simple Clone Management, Too!
Options to Create, Migrate and Manage
Clones for Any Database in the EM Environment
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 23
Private Cloud
• How Is a “Private” Cloud different from a “Public” One?
• Management Should be Single Pane of Glass
• Provisioning Simplicity
• Use Same Agent, but Hybrid
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 24
Oracle Public Cloud
• Sharing of Resources
• Automatic reallocation of resources between sharded hardware to make workloads from one system transparent to another.
• Enhanced Performance and Stability
• Simplifies platform and hardware demands
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Hybrid Cloud Gateways, (My Setup)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
The Oracle Public Cloud High Availability
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Converting an Agent to a Hybrid Agent
Just as the name dictates, this is an agent that is both an on premise agent and serves as a gateway to the cloud.• Agent should be 12.1.0.5 or 13.1.0.0.0• Added traffic to the agent, choose wisely.• As many hybrid agents as you wish for high availability.• One is primary, rest are secondary.• If there is outage, secondary takes over, rest are secondary.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Converting Standard Agent to Hybrid Agent
• This is done via an Enterprise Manager Command Line Interface Command, (EMCLI)
$emcli register_hybridgateway_agent -hybridgateway_agent_list=‘agentname.com:1830'
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Adding the Oracle User to the Sudoers File
• Best Practice also requests that the Oracle OS user on the OPC compute host has sudoer privileges.
Log into the OPC as the OPC OS user, (sudo power) and add the Oracle user to the file:$sudo vi /etc/sudoers
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Remove the Requirement for TTY
• Also comment out the defaults for requiring TTY in the sudoers file. • If there are concerns, there’s only a small advantage of having this one
to not display clear text passwords, but it is a requirement to have this shut off for DBaaS.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Generating Keys for Preferred Credentials and SSH
• Generate the key for the software owner, (OS User):$ssh-keygen –t rsa –b 2048
Files will be generated, by default in a .ssh folder:-rw-------+ 1 oracle dba 1675 Mar 11 15:01 id_rsa
-rw-r--r--+ 1 oracle dba 398 Mar 11 15:01 id_rsa.pub
-rw-r--r--+ 1 oracle dba 3187 Mar 30 08:59 known_hosts
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Using SSH Keys with Credentials
• No Need to copy files to numerous servers and workstations.
• Values can be pasted into the UI.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
OPC Requirements
• After setting up SSH key authentication between the OMS host and the OPC, check that you can login:
$ssh oracle@opcHostNameOR$ssh –i .id_rsa oracle@opcIPAddress
SSH between OPC and On Premise steps are very important, don’t skip!
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Manually Adding an OPC Target
• Standard Entries for the addition until you get to the Advanced Settings:
My agent that I converted earlier to a
hybrid.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Deploy the Agent to the OPC Compute Host
• Job will take some time to run, but ensure you’ve taken the hostname from the /etc/hosts file for the OPC hostname.
(The Compute information in the OPC interface is sometimes incorrect.)
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Gotchas
• OPC Host Name in Cloud Console MAY not match what is in /ect/hosts. Always use what’s in the hosts file.
• Often had to use IP address, (although you’ll receive a warning during manual target discovery) when making this choice.
• If a failure occurs, log deployment data is your friend.• To deploy on two of my cloud compute virtuals, had to perform a “push
from target” deployment to make it succeed, using response file.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | 37
PDBaaS
• Database 12c simplifies requirements and process for cloning.
• Makes consolidation simpler, (unplug, migrate and plug into new CDB)
• Speeds up process as CDB stays present.
• Special considerations for AWR data.
• This section is from the Self-Service Portal Perspective.
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Why PDB for DBaaS
Self Service driven :
1. Create new PDB
2. Migrate pre-12c DB to PDB
3. Plug a PDB
4. Clone a PDB
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Self Service Options for Empty or Populated PDB
Type of Clone
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Specify Storage Zone and Other Requirements
Schedule for Immediate or Later
Creation
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Monitoring and Managing
Look familiar?
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
SummarySimple, Full-Featured.
42
Questions?
Copyright © 2014 Oracle and/or its affiliates. All rights reserved. |
Connect with Me
DBAKevlar
http://dbakevlar.com
43