• No results found

Setup Database as a Service using EM12c

N/A
N/A
Protected

Academic year: 2021

Share "Setup Database as a Service using EM12c"

Copied!
25
0
0

Loading.... (view fulltext now)

Full text

(1)

Setup  Database  as  a  Service  using  EM12c  

Date:  20/11/12  

Author:  Rob  Zoeteweij    

http://oemgc.wordpress.com    

This  document  will  guide  you  through  the  steps  necessary  to  allow  your  users  to  use   Database  as  a  Service  using  EM12c  Cloud  Control.  

The  Setup  of  the  Database  Cloud  

Before  we  can  start  setting  up  the  Database  as  a  Service  we  need  to  create  a  PaaS   Infrastructure  Zone.  

 

For  the  administrative  steps  to  do  the  PaaS  Infrastructure  setup,  I  have  created  an   Administrator  called  “CLOUD_ADMIN”.  This  Administrator  has  granted  the  role   “EM_CLOUD_ADMINISTRATOR”  that  allows  him  to  setup  and  deploy  the  cloud  

infrastructure  (servers,  pools,  zones)  and  to  perform  operations  for  performance  and   configuration  management.  

 

  Next  we  will  connect  to  the  EM12c  Console  as  administrator  CLOUD_ADMIN.    

(2)

Next  from  the  Middleware  and  Database  Cloud  menu  select  Create  PaaS  Infrastructure   Zone.         Press  [Next]        

Add  those  Targets  to  be  included  in  the  PaaS  Infrastructure  Zone  (in  this  example  I  have   included  host  myserver1.mycorpdomain.com).  

 

(3)

 

By  adding  roles  we  can  limit  the  access  to  this  PaaS  Infrastructure  Zone.  In  this  example   I  have  add  3  “Developer”  roles.  

 

NOTE  

As  this  step  involves  the  authorization  of  users  to  servers,  we  might  consider  assigning  this   task  to  a  Security  Role!  

 

Press  [Next]    

   

After  a  final  review  to  make  sure  you  have  entered  everything  correctly,  press  [Submit]   to  create  the  Zone.  

(4)

 

Next  we  will  perform  the  same  steps  to  create  the  PaaS  Infrastructure  Zone  for   “Production”  Lifecycle  Phase  Targets.  This  Zone  will  be  accessible  only  by  Operation   Support  Engineers  only,  as  they  are  the  only  authorized  personnel  to  access  the   Production  Environment.  

 

(5)

 

Now  we  have  finished  setting  up  the  Platform  as  a  Service  Infrastructure  we  can  start   with  the  setup  of  Database  as  a  Service.  

 

For  the  administrative  steps  to  do  the  DBaaS  setup,  I  have  created  an  Administrator   called  “DBAAS_ADMIN”.  This  Administrator  has  granted  the  role  

“EM_SSA_ADMINISTRATOR”  that  allows  him  to  define  quotas  and  constraints  for  self   service  users  and  grant  them  access  privileges.  

 

  Next  we  connect  to  the  EM12c  Console  as  the  DBAAS_ADMIN  administrator:    

(6)

Next  we  will  navigate  Setup    Cloud    Database    

  Here  we  need  to  start  to  setup  our  Database  Pools.  

 

A  Database  Pool  is  a  collection  of  Database  Servers  or  Clusters  that  will  participate  in   your  Database  As  A  Service  setup.  

 

Each  of  these  Servers  or  Clusters  should  have  the  Database  Software  installed.    

We  will  select  [Create]  to  create  some  of  our  Database  Pools    

(7)

 

Note  that  we  will  only  be  able  to  find  homes  that  are  already  present  on  one  or  more   hosts.  

 

   

Press  [Submit]  to  finalize  the  creation  of  the  Software  Pool    

(8)

In  this  example  we  say  that:  

• There  are  no  restrictions  in  the  number  of  days  a  user  can  make  any  requests   • There  are  no  restrictions  in  the  number  of  days  before  an  archived  request  will  be  

deleted  from  the  system  

• There  are  no  restrictions  in  the  number  of  days  a  request  can  last      

 

Next  we  can  set  the  quota  for  Memory,  Storage  and  number  of  Databases  per  Role  that   we  allow  to  use  (create).  

(9)

Next  for  specifying  the  Service  Templates  (this  will  actually  give  the  Self  Service  Portal   user  the  ability  to  choose  from)  we  first  need  to  create  a  specific  procedure  based  on  a   copy  of  the  “Create  Database”  Deployment  Procedure:  

 

For  this  we  will  connect  to  the  EM  Console  as  CLOUD_ADMIN      

   

From  the  Enterprise  menu  navigate  Provisioning  and  Patching    Database  Provisioning      

   

(10)

 

In  this  page  we  have  selected  database  version  11.2.0.3.0  and  “Locked”  this  field  to  avoid   the  Self  Portal  User  to  select  a  different  version.  By  this  we  actually  force  11.2.0.3  to  be   the  standard  available  database  release.  We  locked  the  filed  by  simply  clicking  the  “lock”   icon.  

 

We  select  “Oracle  Single  Instance  Database”  and  Lock  tis  field  as  well.    

The  Deployment  Procedure  forces  us  to  select  a  Host,  for  the  Database  to  be  created  on.   This  is  a  bit  confusing  as  we  want  the  end  user  (Self  Service  Portal  user)  to  select  the   host  to  create  a  database  on.  

Don’t  worry,  the  end  user  will  not  see  this  selected  Host  when  he/she  executes  this   procedure,  so  simply  select  a  Host  (does  not  matter  which)  and  press  [Next]  to  go  to  the   next  page.  

(11)

 

In  this  page  we  will  select  a  Database  Template  to  be  used.  This  would  be  a  DBCA   Template  we  have  created  before  and  should  have  uploaded  to  the  Software  Library.  As   we  didn’t  create  such  a  Template  we  have  selected  “Select  Template  From  Oracle  Home”   and  locked  the  field.  

 

Press  [Next]    

  In  this  page  we  need  to  enter  a  ‘dummy’  Global  Database  Name  and  SID.      

We  enter  the  Database  Credentials  and  lock  the  entry  of  it  next    

(12)

We  standardize  on  using  the  file  system,  as  on  my  demo  server  there  is  no  ASM  setup.    

We  will  also  standardize  on  the  location  for  the  Database  Files  and  as  to  save  resources   on  my  demo  environment  I  choose  not  to  enable  Archiving  by  default.  

 

As  you  notice  all  entries  are  locked.    

Press  [Next]    

 

(13)

As  an  additional  configuration  option  we  specify  the  name  and  port  of  the  listener.  The   procedure  assumes  that  we  will  create  a  Listener  per  OracleHome.  

 

Now  we  will  press  [Save]  to  save  the  Customized  Deployment  Procedure    

   

Press  [Save]      

Press  [Cancel]  to  exit  the  execution  of  the  procedure    

(14)

Software  Library.    

Next  we  need  to  grant  access  to  this  procedure.    

Select  the  procedure  and  press  the  [Edit  Permissions]  button    

   

In  this  example  we  have  granted  ‘View’  privilege  to  the  three  ‘Developer’  administrators    

We  now  re-­‐connect  to  the  EM  console  as  the  DBAAS_ADMIN  administrator  to  continue   the  Database  as  a  Service  setup  

 

   

Press  the  [Create]  icon  to  create  a  Service  Template    

   

(15)

 

In  this  page  we  have  used  the  [Edit  Name  and  Description]  button  to  provide  a  

description  for  the  Service  to  be  provided  through  the  Self  Service  Portal  and  pressed   [Finish]  to  return  to  this  page.  

 

Next  we  have  entered  the  value  ‘master’  and  the  password  to  be  used  for  this  user  and   locked  both  options  to  enforce  this  standard.  

 

The  user  ‘master’  is  the  name  of  the  user  that  will  be  created  in  the  Database  and  will   serve  as  the  primary  administrator  account  for  the  database.  For  security  reasons,  users   will  not  get  access  to  the  SYS  and  system  account.  

 

Reference  

Oracle®  Enterprise  Manager  Cloud  Administration  Guide   12c  Release  2  (12.1.0.2)  

Chapter  13  Setting  Up  and  Using  the  Self  Service  Application  for  DBaaS  

 

Press  [Next]    

   

Here  we  need  to  define  in  what  Zone  the  Database  Service  can  be  provisioned.  Using  the   [Add]  icon  we  have  selected  the  ‘Development,  Test  and  Acceptance’  PaaS  Infrastructure   Zone  and  using  the  magnifier  icons  we  have  selected  the  Software  Pool  to  be  used.    

(16)

Using  the  [Add]  icon  we  have  selected  the  roles  that  need  to  be  granted  access  to  this   service.     Press  [Next]        

After  reviewing  we  press  [Submit]    

(17)

Reference  

Oracle®  Enterprise  Manager  Cloud  Administration  Guide   12c  Release  2  (12.1.0.2)  

Chapter  4  Chargeback  Administration  

 

Next  we  select  Configure  Charge  Plan    

(18)

 

By  selecting  a  Metric  and  pressing  the  [Edit]  icon  we  can  set  the  rates  for  each  of  the   resource  metrics  CPU,  Memory  and  Storage  

 

   

In  this  example  we  will  charge  a  dollar  per  day  for  usage  of  a  CPU,  2  dollars  per  day  for   the  usage  of  2GB  Memory  and  a  dollar  per  day  for  the  usage  of  1GB  Storage.  

 

The  Date  Range  field  shows  that  the  Universal  Plan  settings  we  just  did  will  be  valid   from  01-­‐nov-­‐2012  and  onward.  

 

Next  we  will  create  an  Extended  Chargeback  Plan  to  charge  for  usage  of  Software   Licenses  and  Datacentre  facilities  (cooling,  racks  etc.)  

 

(19)

 

   

In  this  example  we  have  created  an  Extended  Charge  plan  where  we  will  charge  $1  a  day   for  usage  of  Oracle  Database  Licenses.  In  the  same  example  we  will  charge  $1.25  per  day   for  using  Oracle  Weblogic  Licenses.  

 

Next  we  will  define  Cost  Centers  to  allow  Chargeback  being  based  on  it    

   

In  this  example  we  have  create  a  Cost  Centre  structure  with  ‘THE  BUSINESS”  as  Top  and   “FINANCE”  and  “IT”  underneath  

 

Please  note  that  we  are  also  able  to  base  this  structure  on  LDAP  integration    

(20)

 

   

Accessing  and  using  the  Self  Service  Portal  

We  will  know  connect  to  the  Self  Service  Portal  as  user  DEVELOPER_FINANCE1    

(21)

 

Notice  that  this  user  as  granted  two  Roles:  

• EM_SSA_USER  to  allow  access  to  the  Self  Service  Portal  

• US_FINANCE_DEV  to  allow  access  to  the  “Development,  Test  and  Acceptance”   Lifecycle  phase  targets  owned  sued  by  the  FINANCE  Line  of  Business  

 

After  the  Database  Cloud  has  been  set  up  we  will  now  access  the  Self  Service  Portal  as   user  DEVELOPER_FINANCE1  

 

We  have  selected  the  “My  Databases”  option  and  see  that  this  user  has  created  no   Databases  yet.  

 

We  will  now  request  for  the  creation  of  a  Database  by  pressing  the  [Request  Database]   button  

 

(22)

 

From  the  Service  Template  overview  we  will  select  the  “Create  Single  Instance…”   template  and  press  [Select]  

 

   

We  will  leave  the  automatic  generated  Request  Name  and  select  the  “Development,  Test   and  Acceptance  Zone”  to  deploy  our  database  in  

 

Press  [Next]    

   

(23)

 

As  we  can’t  wait  to  see  what  will  happen,  we  will  schedule  for  immediate  execution         Press  [Submit]       Notice  that  the  creation  of  the  database  is  ‘In  Progress’  

 

When  connected  to  the  EM  Console  as  Super  Admin  EMADMIN  and  navigating  to   Provisioning    Procedure  Activity,  I  see  the  following:  

(24)

 

When  selecting  link  DBAAS-­‐CREATE-­‐#3  (in  this  example)  we  will  get  an  overview  of  the   Procedure  progress  

 

   

After  completion  of  the  procedure  we  re-­‐connect  to  the  Self  Service  Portal  as  user   DEVELOPER_FINANCE1  

(25)

Notice  that  from  the  Self  Service  Portal  I  am  able  to  delete  the  Database  as  well.    

When  selecting  the  database  that  was  just  created  you  will  get  a  complete  status   overview  page,  allowing  you  to  Stop  /  Start  the  Database.  

References

Related documents

The involvement or participation of Principal of SMPN I Bukitbatu Bengkalis Riau in improving the competence of PAI teachers is determined by two indicators: (1) Principal of

Taking into account that current world economy is becoming dominated by services sphere and trade of cultural goods between countries is increasing constantly, conducting the

This paper works as a reference guideline for CIOs, CISOs and their respective security management practitioners, highlighting the importance of an appropriate governance

• Customer data shall be loaded on to the secure storage Service by the Supplier’s accredited and security cleared staff who shall be responsible for all on-boarding

Furthermore, Asadi still stands as a wall against the SEC in trying to press coverage of internal reporters through 17 C.F.R. 64 As discussed supra Part C, even the expansion of

On the occasion of Fuorisalone 2021, Alpha District proposes - to designers and companies - the Cathedrals: pop-up exhibition booths promoting projects and products for the

We thus outline a research agenda for large scale data analysis in the cloud, showing why currently available systems are not ideally-suited for cloud deployment,

In this manner, future service experiments should support gathering of both qualitative and quantitative data to provide good foundation for research under a