database as a service, collaborate 2016

44
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Enterprise Manager 13c Database as a Service, Hybrid Cloud Mgmt. Kellyn Pot’Vin-Gorman Consulting Member of Technical Staff, SCP Oracle April, 2016 Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | The Database, the Cloud and Everything Inbetween

Upload: kellyn-potvin-gorman

Post on 09-Jan-2017

288 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Database as a Service, Collaborate 2016

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

Page 2: Database as a Service, Collaborate 2016

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

Page 3: Database as a Service, Collaborate 2016

Copyright © 2014 Oracle and/or its affiliates. All rights reserved. | Confidential – Oracle Internal/Restricted/Highly Restricted 3

DBA Kevlar, the Geek Goth Girl

Page 4: Database as a Service, Collaborate 2016

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!

Kellyn Pot'Vin
Page 5: Database as a Service, Collaborate 2016

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.

Page 6: Database as a Service, Collaborate 2016

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

Page 7: Database as a Service, Collaborate 2016

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.

Page 8: Database as a Service, Collaborate 2016

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

We Support it AllA Block is a Block

Page 9: Database as a Service, Collaborate 2016

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

Chargeback

Keeping Departments Accountable Since 2005

Page 10: Database as a Service, Collaborate 2016

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.

Page 11: Database as a Service, Collaborate 2016

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.

Page 12: Database as a Service, Collaborate 2016

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.

Page 13: Database as a Service, Collaborate 2016

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.

Page 14: Database as a Service, Collaborate 2016

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

Step 1-Source and Destination

Page 15: Database as a Service, Collaborate 2016

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

Step 2-Storage, DB Name and Security

Page 16: Database as a Service, Collaborate 2016

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

Step 3- Initialization Parameters

Page 17: Database as a Service, Collaborate 2016

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

Step 4- Custom Scripts?

Page 18: Database as a Service, Collaborate 2016

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

Create Now or Schedule?

Page 19: Database as a Service, Collaborate 2016

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

Step 5-Review

Page 20: Database as a Service, Collaborate 2016

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

Submit!

Page 21: Database as a Service, Collaborate 2016

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

Full Clone Now Available!

Page 22: Database as a Service, Collaborate 2016

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

Page 23: Database as a Service, Collaborate 2016

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

Page 24: Database as a Service, Collaborate 2016

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

Page 25: Database as a Service, Collaborate 2016

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

Hybrid Cloud Gateways, (My Setup)

Page 26: Database as a Service, Collaborate 2016

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

The Oracle Public Cloud High Availability

Page 27: Database as a Service, Collaborate 2016

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.

Page 28: Database as a Service, Collaborate 2016

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'

Page 29: Database as a Service, Collaborate 2016

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

Page 30: Database as a Service, Collaborate 2016

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.

Page 31: Database as a Service, Collaborate 2016

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

Page 32: Database as a Service, Collaborate 2016

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.

Page 33: Database as a Service, Collaborate 2016

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!

Page 34: Database as a Service, Collaborate 2016

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.

Page 35: Database as a Service, Collaborate 2016

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.)

Page 36: Database as a Service, Collaborate 2016

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.

Page 37: Database as a Service, Collaborate 2016

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.

Page 38: Database as a Service, Collaborate 2016

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

Page 39: Database as a Service, Collaborate 2016

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

Self Service Options for Empty or Populated PDB

Type of Clone

Page 40: Database as a Service, Collaborate 2016

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

Specify Storage Zone and Other Requirements

Schedule for Immediate or Later

Creation

Page 41: Database as a Service, Collaborate 2016

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

Monitoring and Managing

Look familiar?

Page 42: Database as a Service, Collaborate 2016

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

SummarySimple, Full-Featured.

42

Questions?

Page 43: Database as a Service, Collaborate 2016

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

Connect with Me

DBAKevlar

http://dbakevlar.com

43

Page 44: Database as a Service, Collaborate 2016