Database Provisioning in EM12c: Provision me a Database Now!

Preview:

DESCRIPTION

My presentation for Georgia Oracle User Group on December 12, 2013. In it, I discuss the Database Provisioning feature in Enterprise Manager 12c with an example of how I architected a solution by leveraging it.

Citation preview

IOUG Presentation

Database Provisioning in OEM12c: Provision me a Database Now!

Maaz Anjum • Marietta, Georgia • Solutions Architect • EM12c •Golden Gate • Engineered Systems

• Member of IOUG, GOUG, RMOUG RAC SIG, BIG DATA SIG EM SIG • Using Oracle products since 2001

Blog: maazanjum.com Email: maaz.anjum@biascorp.com

About Me

!

• Mr. Green’s Challenges • Who is Mr. Green • Provisioning in EM12c • Provisioning Components • Example • Conclusion

Agenda

Inconsistent Server configuration

BUILD PROCESS

Mr. Greens Challenges

Lengthy Build Times…

January

February

March

It  will  take  about  2  months!

I  need  a  new  Database  Server

Procure  Hardware/  Provision  VM

Provision  Network/  Storage

Network  Admin  On  Vacation

Wait  for  Storage

Provision  Network/  Storage

Download  Latest  OS  ISO

OK  DBA,  your  turn

Install  OS

Configure  Storage

oinstall  group?

Oops,  try  again.

Other  Priorities

Try  to  Install  GI

Pre-­‐Req  Fail  Missing  Packages

Oops,  try  again.

Install  GI

Install  RDBMS

Create  Database  Template?

Is  it  ready?

Is  it  ready?

Its  ready  now!

Umm,  I  need  another  one!  

Shoot  me  now  please…

Isn’t  quite  what  I  needed  but  I  don’t  have  more  time  to  wait.

Mr. Greens Challenges

Lengthy Build Times…

January

February

March

It  will  take  about  2  months!

I  need  a  new  Database  Server

Procure  Hardware/  Provision  VM

Provision  Network/  Storage

Network  Admin  On  Vacation

Wait  for  Storage

Provision  Network/  Storage

Download  Latest  OS  ISO

OK  DBA,  your  turn

Install  OS

Configure  Storage

oinstall  group?

Oops,  try  again.

Other  Priorities

Try  to  Install  GI

Pre-­‐Req  Fail  Missing  Packages

Oops,  try  again.

Install  GI

Install  RDBMS

Create  Database  Template?

Is  it  ready?

Is  it  ready?

Its  ready  now!

Umm,  I  need  another  one!  

Shoot  me  now  please…

Isn’t  quite  what  I  needed  but  I  don’t  have  more  time  to  wait.

Mr. Greens Challenges

Server  Build Database  Build

Red Tape

Mr. Greens Challenges

• User requests for more capacity • Reports on existing capacity • Storage • Memory • CPU Utilization

!

If a build process can’t be repeated exactly the same

each time, is it reliable? - A Smart Man

Mr. Greens Challenges

Our Mr. Green is an IT Manager at Acme, Inc. whose day is usually… !

• Filled with Meetings • Has to Services Requests from Customer Base (Internal or External) • Customers who want

To  onboard  more  applications

Need  more  CPU  Power

Need  more  Databases

Who is Mr. Greens

!

• Mr. Green’s Challenges • Who is Mr. Green • Provisioning in EM12c • Provisioning Components • Example • Conclusion

Agenda

• IT Manager •CTO • Senior VP of IT •Database Administrator • Systems Administrator

YOU

Who is Mr. Greens

!

• Mr. Green’s Challenges • Who is Mr. Green • Provisioning in EM12c • Provisioning Components • Example • Conclusion

Agenda

• An Important part of Lifecycle Management • Cloud Control enables you to provision

• Oracle Databases • RAC databases • Extend or delete RAC nodes • Provision RAC One node databases • Provision pluggable databases • Upgrade Oracle single-instance databases

Provisioning in EM12c

Deployment Procedure Targets Provisioned

Provision Oracle Database

Oracle Database (single instance) 10g Release 1 to 11g Release 2Oracle Grid Infrastructure 11g Release 2

Oracle Automatic Storage Management (Oracle ASM) 11g Release 2  

Provision Oracle Real Application Clusters

Oracle Real Application Clusters (Oracle RAC) 11g Release 2Oracle RAC One Node 11g Release 2Oracle Grid Infrastructure 11g Release 2

Oracle Automatic Storage Management (Oracle ASM) 11g Release 2  

Create Oracle Database

Oracle Database (single-instance database) 11g Release 2Oracle Real Application Clusters (Oracle RAC) 11g Release 2Oracle RAC One Node 11g Release 2  

Provision Pluggable Database

Pluggable Databases (available only as a part of Oracle Database 12c Release 1 or higher)

Note: This deployment procedure is not displayed in the Database Provisioning console. You cannot invoke it from the console. It is invoked only internally.

Provision Oracle Clusterware / Oracle RAC for UNIX and RDBMS versions 10g/11g (applicable for UNIX platform)

Oracle Real Application Clusters (Oracle RAC) 10g Release 1 to 11g Release 1Oracle Clusterware 10g Release 1 to 11g Release 1Oracle Clusterware Automatic Storage Management (Oracle ASM) 10g Release 1 to 11g Release 1  

Provision Oracle Clusterware / Oracle RAC for Windows and RDBMS versions 10g/11g (applicable for Windows platform)

Oracle Real Application Clusters (Oracle RAC) 10g Release 1 to 11g Release 1Oracle Clusterware 10g Release 1 to 11g Release 1Oracle Clusterware Automatic Storage Management (Oracle ASM) 10g Release 1 to 11g Release 1  

Extend/Scale Up Oracle Real Application ClustersOracle Real Application Clusters (Oracle RAC) 10g Release 1 to 11g Release 2

Delete/Scale Down Oracle Real Application ClustersOracle Real Application Clusters (Oracle RAC) 10g Release 1 to 11g Release 2

Provision Oracle Database Client Oracle Database Client 10g Release 2 to 11g Release 2

Provisioning in EM12c

!

• Mr. Green’s Challenges • Who is Mr. Green • Provisioning in EM12c • Provisioning Components • Example • Conclusion

Agenda

LICENSES !Provisioning, in addition to a Database License, requires the Database LifeCycle Management Pack.

Pieces for Provisioning

A SERVER New or existing server Already an EM12c Managed and Monitored Target

If yes, then great! If not, then deploy an agent to it

Pieces for Provisioning

SOFTWARE LIBRARY !One of the core features offered by Enterprise Manager Cloud Control

A repository which stores Software Entities • Virtual Appliance Images • Reference Gold Images • Application Software • Associated Directive Scripts

!In addition • Maintain Versions • Maturity Levels • States Of These Software Entities

Pieces for Provisioning

Privilege Delegation Settings • Allows you to run Deployment Procedures using

authentication utilities such as • SUDO • PowerBroker

Advantages? • flexibility to use either SUDO or PowerBroker • Can run PowerBroker in a password-less/password-

protected mode. • Create a template with these Privilege Delegation • Can be used for Jobs in EM • Privilege Delegation can read passwords from both

STDIN and TTY.

Pieces for Provisioning

CREDENTIALS !Identity information stored in Cloud Control • Used to access targets • Users can save username/password with a unique name called Named Credentials • Oracle • Root

!Named User Credentials • Privileged Credentials

Pieces for Provisioning

ADMINISTRATOR ACCOUNTS

Designer • Designers are lead administrators • Designers are responsible for performing all the design-time activities like:

• Creating the provisioning profiles • Creating components, directives, and images • Customizing the default deployment procedures • Creating patch plans and patch templates.

Operator • Have restricted privileges • Operators use the infrastructure to perform run-time activities like:

• Accessing the provisioning profiles • Launching software deployments • Patching software deployments !

Or just use Super Admin/SYSMAN account!

Pieces for Provisioning

PROVISIONING PROFILES !Provisioning Profile is an entity that contains software bits and configuration. • Can be created from existing installations • Clone Grid Infrastructure • Oracle Database • Create Database Templates

!Create one-time, and use for mass deployments!!

Pieces for Provisioning

Pieces for ProvisioningSoftware

Database  Provisioning  

Profile

Bare  Metal  Provisioning  

Profile

Pieces for Provisioning

!

• Mr. Green’s Challenges • Who is Mr. Green • Provisioning in EM12c • Provisioning Components • Example • Conclusion

Agenda

Steps

• Add Targets (Host) • Creating Provisioning Profiles • Creating Installation Media • Creating Database Templates • Uploading Database Templates to Software Library

• Creating Database Provisioning Entities • Creating an Oracle Database Clone from a Reference Home • Creating an Oracle Clusterware Clone from a Reference Home

High Level Steps

Don’t Just Tell me, Show Me

Find Your Way

Create Named Credentials

Create Named Credentials

Create Named Credentials

Create Named Credentials

Create Named Credentials

Provision

Select Hosts

Select Hosts

Setup Hosts

Set Credentials

OS Groups

Deploy Software

Profile/Installation Location

DBCA

Compliance Configuration

All Steps Completed

When Can We Start?

Review Changes

Progress

Where’s the Proof?

Newly Created Profile

New Instance as a Target

New Host as a Target

Provisioning plays a large part in EM12c !Other useful features include • Baremetal Provisioning • Middleware Provisioning • Self Service Portal • Infrastructure as a Service (IaaS) • Database as a Service (DBaaS) • Schema as a Service • Platform as a Service (PaaS)

!These features leverage templates and profiles for consistent builds.

Provisioning and Beyond…

Provisioning plays a large part in EM12c !Other useful features include • Baremetal Provisioning • Middleware Provisioning • Self Service Portal • Infrastructure as a Service (IaaS) • Database as a Service (DBaaS) • Schema as a Service • Platform as a Service (PaaS)

!These features leverage templates and profiles for consistent builds.

Provisioning and Beyond…

Before Provisioning in EM12c

After Provisioning in EM12c

Build Process

Conclusion

What Did Mr. Green Think?

Conclusion

My Blog on Provisioning http://www.maazanjum.com/2013/12/patch-and-provision-with-em12c-index.html

Conclusion

Questions

Blog: maazanjum.com Email: maaz.anjum@biascorp.com Twitter: @maaz_anjum

Reminder: Complete evaluation Session: #602

Title: Database Provisioning in OEM12c: Provision me a Database Now!

Recommended