Table of Contents
PREFACE ........................................................................................................................................................ 1 ABOUT ORACLE ENTERPRISE MANAGER DATABASE CLOUD ........................................................................ 2 Oracle Enterprise Manager ....................................................................................................................... 2 Database as a Service (DBaaS) .................................................................................................................. 2 Cloud Management Self Service Portal .................................................................................................... 3 Database Self Service Portal for End-User .................................................................................................... 3 SETTING UP THE DATABASE CLOUD SELF SERVICE PORTAL ......................................................................... 4 Preparing the Database Servers for Privilege Delegation ......................................................................... 4 Preparing Enterprise Manager for Privilege Delegation ........................................................................... 4 Configure Privilege Delegation for Database Servers ........................................................................... 4 Define a Named Credential for Database Cloud Self Service................................................................ 6 Configuring the Software Library .......................................................................................................... 8 Defining Roles and Assigning Users ........................................................................................................ 11 Creating a Cloud User Role ................................................................................................................. 11 Creating an end-user with Cloud User role ......................................................................................... 12 Creating a Database Zone ....................................................................................................................... 15 Configure Request Settings ..................................................................................................................... 19 Configure Quotas .................................................................................................................................... 20 Create Service Templates ....................................................................................................................... 22 Customizing a Create Database Deployment Procedure .................................................................... 22 Creating a Service Template ............................................................................................................... 33 Configuring Chargeback .......................................................................................................................... 35 Chargeback and Database Cloud Self Service Portal .......................................................................... 36 Defining a Universal Charge Plan ........................................................................................................ 36 Create an Extended Charge Plan......................................................................................................... 38 Create a Business Hierarchy of Cost Centers ...................................................................................... 42 Turn Data Gathering on for Targets .................................................................................................... 44
Assign a Charge Plan to a Target ......................................................................................................... 46 Assign a Cost Center to a Target ......................................................................................................... 48 PROVISIONING A DATABASE USING SELF SERVICE PORTAL ....................................................................... 50 Using the Self Service Portal for the First Time ...................................................................................... 50 Provisioning a Database .......................................................................................................................... 52 Shutting Down or Starting Up the Newly Created Database .............................................................. 56 Connecting to the Newly Created Database ....................................................................................... 57 Deleting a Provisioned Database ........................................................................................................ 57 Scheduled Database Retirement ........................................................................................................ 58 CHARGEBACK MONITORING ....................................................................................................................... 59 Chargeback Monitoring for Cloud Users................................................................................................. 59 Chargeback Monitoring for Cloud Administrators.................................................................................. 60
Page 1
PREFACE
This document explains the steps in provisioning a database using Oracle Enterprise Managers Database Cloud feature. These steps include: Security Configuration for Named Credentials, Roles and Accounts for Cloud Management Customizing database creation procedures to your environment and business requirements Setting up the Database Zones Setting quota limits for each cloud management roles Definition of Service Templates to be used for database instance creation Configuring chargeback policies for your database cloud infrastructure
Pre-requisites
This document assumes that, the following pre-requisites have been met: 1. An Oracle Management Server (OMS) is already in place, and the database servers are configured as EM Hosts with the appropriate OMS Agents. The agent software for required platforms can be downloaded using Setup->Extensibility->Self Update. 2. The mandatory patch (13031985) has been applied to the Oracle Management Server (OMS). 3. This feature supports database versions 10.2.0.4 and greater. So install media or software for all database components has been download and staged for provisioning use. For example, Grid Infrastructure to setup Clusterware and Automatic Storage Management (ASM), and Oracle database software to setup Oracle Homes. 4. Adequate storage space has been made available on the OMS for configuration of Software Library location. Typically, a minimum 50 GB for test environments and well in excess of 100 GB for production.
For more details on OMS installation and configuration, please see Oracle Enterprise Manager Cloud Control Documentation from http://download.oracle.com/docs/cd/E24628_01/index.htm
Page 2
Page 3
Page 4
Page 5
2. For any host target appearing in the table, click Edit. Enterprise Manager takes you to the Host Privilege Delegation Setting page.
3. Select a privilege delegation type (Sudo or PowerBroker). 4. Enter the privilege delegation command to be used and, in the case of PowerBroker, the optional Password Prompt. 5. Click Update to apply the settings to the host.
Page 6
3. Fill up the form with the appropriate details. Note that Global Credentials are only applicable to Host with identical credential properties (i.e. OS username and password). Otherwise, you will have to create a separate Target Credential for each Host with distinct credential properties.
Page 7
The example below assumes that (most of) your database servers uses oracle service account, identical password, and with sudo run privilege to run as root.
4. Click Test and Save button. 5. You will then be prompted for a Test Target Host. Select a database server from the list and click Test and Save.
Page 8
8. Assign to the appropriate users, then click Select button. 9. Once all appropriate users and/or roles are granted access, click Save Button 10. This complete the process of Named Credential configuration
Page 9
1. Log into Enterprise Manager as an EM_CLOUD_ADMINISTRATOR user or as a Super Administrator. 2. Click Setup > Provisioning and Patching > Software Library.
3. Select OMS Shared File System in the Storage Type drop down box and click Add
4. Specify a Name and Location that is accessible to all Oracle Management Servers (OMSes) and click OK.
Page 10
Note: As the storage location for the Software Library must be accessible to all OMSes as local directories, in a multi-OMS scenario, you must set up a clustered file system using OCFS2 or NFS. For single OMS systems, any local directory is sufficient. 5. A job is executed to upload all the out-of-box content. This may take 15 to 30 minutes depending on your disk speed.
Page 11
4. From the list of Available Roles, select the EM_SSA_USER role, Move it to the Selected Roles table and click Next
Page 12
5. Accept the default target privileges and click Next. 6. Accept the default resource privileges and click Next. 7. Skip the Create Role: Administrators step and click Next. 8. Review all the changes and click Finish to create the Cloud User Role (i.e. DBAAS_CLOUD_USERS)
2. Click Create in the Administrators page to launch the Create Administrator wizard.
Page 13
3. Enter the name and password for the role and create Next.
4. From the list of Available Roles, select the custom cloud user role youve created earlier (i.e. DBAAS_CLOUD_USERS) and Move it to the Selected Roles table. Click Next. For Self Service Portals end-users, it is prudent to revoke any other roles.
Page 14
6. Accept the default resource privileges and click Next. 7. Review all the changes and click Finish to create the end-user account. 8. Create additional end-user accounts as necessary.
Page 15
4. In the Create New Database Zone: Name page, enter a name and description for the zone, and specify appropriate values for placement policy constraints based on the resources available to the members. The EM_SSA_ADMINISTRATOR can use the placement policy constraints to set maximum ceilings for any host in the zone. Placement policy values are used during deployment to filter out hosts that are overburdened. You can define the following placement policy constraints for each host:
Page 16
Maximum CPU Utilization: The average CPU utilization percentage over a specified period. Maximum Memory Allocation: The average memory allocation over a specified period. Maximum Number of Database Instances: The maximum number of database instances that can be running on the host.
Select the Target Type as Oracle Home. Select the Platform, Configuration (Single Instance Database or Real Application Cluster), and Version. Select the Named Credentials for all Oracle Homes in the zone. This Named Credential is used during database creation in the zone. Click Add to add more targets to the zone. Click Next 5. Select the Target Type as Oracle Home. Select the Platform, Configuration (Single Instance Database or Real Application Cluster), and Version. 6. Select the Named Credentials for all Oracle Homes in the zone. This Named Credential is used during database creation in the zone. 7. Click Add to add more targets to the zone. 8. Click Next.
Page 17
Note: For a RAC database, you need to enumerate all the participating nodes in the cluster.
9. A database zone can be made available to a restricted set of users through the use of roles. Click Add to add the roles that can access this database zone.
Page 18
10. Note that only custom roles are available for selection. Select the appropriate roles and click Next.
11. Click Submit to create the zone and return to the Database Cloud Self Service Setup page.
Page 19
Page 20
Configure Quotas
Quota is the aggregate amount of resources that can be granted to each self service user belonging to a certain role. This quota applies only to the database provisioned through the Self Service Application 1. Click Setup > Cloud > Database 2. Click Quotas 3. Click Create
4. In the Create New Quota window, select the Role Name for which the quota is to be granted. Note that only roles with EM_SSA_USERS privilege can be selected. In our example, EM_SSA_USERS privilege was assigned to custom EM_CLOUD_USERS role.
Page 21
Quotas can be based on the following: Total allocated memory that can be assigned for all the databases owned by a specific user. Total allocated storage that can be assigned for all the databases owned by a user. The number of databases that can be owned by a user at any point in time.
5. Assign Quotas for each Roles that will be given access to Database Zones
Page 22
2. From the list of Deployment Procedures, select Create Oracle Database and click Launch
Page 23
3. Make sure that the Database Version and Database Type will match the Version and Configuration defined during Database Zone creation. 4. Add at least one Host
Page 24
) button.
Page 25
Note: For a RAC Database, you need to identify the cluster and the reference node:
6. Click Next 7. Select a Database Template, lockdown your selection and click Next
Page 26
8. Specify any valid Database Name. Note that when you provision a database via Self Service Portal, the database name will be automatically derived, overriding whatever you specify here. 9. Specify Database Credentials, take note of the password, and lockdown selection
Page 27
Note: For a RAC Database, you will need to select the configuration type and cluster nodes
10. Click Next 11. Specify Storage Type and lockdown values 12. Specify Storage Location 13. Specify Recovery Files Location and lockdown values
Page 28
Page 29
Note: For a RAC database, you will need to specify a common location for database files
14. Specify Memory Management Settings and lockdown values 15. Specify block size, processes parameters and lockdown values 16. Specify the number of CPU to be allocated for each database, and lockdown values 17. Specify Character Set and lockdown values 18. Specify Database Connection Mode and lockdown values 19. Click Next
Page 30
20. Click Next 21. Specify Listener configuration and lockdown values 22. Lockdown custom scripts 23. Click Next
Page 31
24. On the Schedule screen, click Next 25. On the Review screen, DO NOT SUBMIT the job. Click Save Button Instead
Page 32
26. Specify name for your Deployment Procedure and click Save
Page 33
28. Create additional Custom Deployment Procedures as necessary (i.e. for TINY, SMALL, MEDIUM, LARGE database deployments)
4. Provide an appropriate name, select your custom deployment procedure, provide a detailed description and click Next
Page 34
5. Add one or more database zone that will make use of this template, and click Next
6. Add one or more roles that will have access to this template, and click Submit
Page 35
Configuring Chargeback
Chargeback, as the name implies, is a tool of accountability. The application's primary uses can generally be described as follows: Provide resource usage metering by aggregating and normalizing the enormous amount of metric data Enterprise Manager collects. Provide IT a means to "charge" a dollar amount to internal organizations that use resources. Provide internal organizations and users with reports detailing their consumption and charges.
Chargeback has three universal metrics against which to compute resource consumption: CPU usage, and memory and storage allocation. These three comprise the universal charge plan that can be applied to any target type signed up for Chargeback services. Given the variety of processor architecture, the universal plan can bill different rates based on CPU model. In addition, you can create extended charge plans that apply target-specific charges. Extended charge plans provide flexibility in how you bill for services, allowing you to: Override or adjust universal plan rates Establish different rates based on target configuration Charge flat and usage-based rates
Chargeback can be configured by a Super Administrator (i.e. SYSMAN) or any user with an EM_CLOUD_ADMINISTRATOR Role.
Page 36
2. Click the Charge Plans Tab 3. Set the rates and charge frequency for the three universal metrics.
Page 37
Note: The rates set here are effective from the beginning of the current month, and have no impact on any previous month. a. Select the default CPU row and click Edit. b. In the dialog that opens, set the rate and charge frequency and then click OK. c. Set rates and charge frequency for memory and storage allocation in similar fashion. d. Make additional entries for different CPU architectures, as required. Click the Add button. In the dialog that opens, select the architecture from the drop-down list, set the rate and charge frequency, and then click OK.
4. You can change the default currency (USD) by clicking the currency symbol and entering the desired currency symbol in the popup dialog. The new selection becomes the default currency across all charge plans; that is, the universal plan and all extended charge plans. All reports, including historical reports, reflect the new currency. No rate conversion occurs when you change the currency; that is, the numbers stay the same. Change from dollars to euros and a one dollar charge becomes a one euro charge. 5. Update the rates for existing charge plans as necessary
Page 38
3. In the Extended Charge Plan region, click Create, type a name for the new charge plan, and then click OK.
4. On the Edit Extended Charge Plan page, click Add. Complete the dialog that opens as follows:
Page 39
a. Select Database Instance as target type from the drop-down list. b. Indicate whether it is shared or not c. Select whether to apply a condition. Default means apply unconditionally. Conditions give you flexibility. For example, you may want to create many charge plans with no conditions and assign individually to targets. Or, you can create a single charge plan with many conditions, and assign to all targets. The target type selected drives the list of conditions available. Select from the list, choose an operator, and set the condition value. You can select the condition value from a list, or choose Specify Value to enter a value.
5. Add Charge Items based on target type for billing purposes. In the Charge Items tab, click Add. Complete the dialog that opens as follows:
Page 40
a. Select a charge item from the drop-down list. The list of items derives from the target type. The unit of measure to which the charge applies appears as well, where applicable (MB, GB, and so forth). For a shared database, charges are per service. b. Select the charge type; that is, whether the charge is usage-based, config-based, or a flat rate. These choices vary, depending on the charge item selected. c. Specify the rate at which to charge for the item. d. Select from the drop-down list the frequency at which to apply the charges. It's not unusual to have different frequencies for charge items within the same target type, depending on whether the item is a config or metric, and the charge is a flat rate or usage-based. e. Click OK.
Page 41
A charge item might effectively be stated in a sentence as: Charge on a weekly basis a flat rate of a n dollars for every n Hours of CPU Utilization Repeat this step to include additional charge items. 6. Click Save to create the new extended charge plan. You can now assign the extended charge plan to a target instance of the appropriate target type. Remember that extended charge plans are automatically effective from the beginning of the month.
Page 42
3. Enter the appropriate information in the New Cost Center dialog: a. The cost center takes a unique name by which it is known internally in the system. b. The cost center also takes a meaningful name that appears in the user interface and generated reports. c. Indicate the cost center's position in the tree hierarchy; that is, whether it should be a top level or a nested level. You can subsequently change its position in the hierarchy.
Page 43
d. When you click OK. The new cost center appears in the table. 4. With the new cost center row selected in the table, click the Assign to Cost Center button on the right of the bottom region to add users to the cost center. Provide the required information in the dialog that opens. 5. Users who are unassigned are designated to a Default Cost Center to which their charges accrue.
Page 44
6. As the cost centers list grows, you may find that you want to combine cost centers, sales under marketing, for example. To do so, drag the Sales cost center over the Marketing cost center and release the mouse button. Alternatively, select a cost center and click the Move button.In the dialog that opens, confirm the move operation, or choose another option, such as changing the parent group. 7. At some point, you may decide to deactivate the cost center. To do so, select the cost center row and click the Remove button. Indicate whether to deactivate nested cost centers as well. Deactivation means the cost center can no longer be assigned to a target, but it remains active for target assignments in previous report cycles.
3. In the Add Targets dialog, select the targets to manage, and then click OK. If there are no targets in the list, click the Target Selector button to search for targets to include.
Select the targets in the search results list and click Select.
Page 45
4. In the Add Targets dialog, indicate whether the targets are to be shared across different cost centers. In particular, databases and WebLogic Servers can be shared. The check box is disabled if a target is ineligible for sharing. Click OK.
Page 46
5. Selected targets appear in the Target Name column, nested under the major target type categories (Databases, Middleware, and so forth). Selecting a zone automatically includes all targets within the zone.
Page 47
2. Select the Targets tab. A hierarchical list of targets appears showing assigned cost centers and extended charge plans. 3. Select a target in the list and click the Assign Plan button on the right.
4. A dialog opens displaying a list of plans that apply only to the target type selected. Choose the plan you want to assign and click OK.
5. The table of target assignments refreshes to reflect the assignment. Note that assigning a charge plan to a composite target (system or group) maps directly to target members.
Page 48
4. A dialog opens displaying a list of cost centers. Choose the cost center for the target and click OK. The table of target assignments refreshes to reflect the assignment.
Page 49
5. Note that assigning a cost center to a composite target (system or group) maps directly to target members. For a composite target other than a system or group, the cost center assignment is directly to the composite target, and to any children that otherwise have no direct cost center assignment.
Page 50
2. By default, this will take you to the Infrastructure Cloud Self Service Portal, click Databases on the upper right side to go to the Database Cloud Self Service Portal
Page 51
3. You will now be presented with the Database Self Service Portal Dashboard.
Page 52
Provisioning a Database
1. From the Self Service Portal, click Request Database
Page 53
4. Enter the Username to be created for this database, provide the default password and click Next.
Page 54
5. If applicable, indicate when will the Database be created, and the date the database will be retired. Click Next
7. You will then be directed back to the Database Self Service Portal where you can monitor the progress of your request. The process can take a couple of minutes, depending on the performance and load profile of the Cloud Infrastructure. The resource utilization chart will also be updated while the database is being created.
Page 55
8. Upon completion of the database request, the portal will list the newly created database. Click on the database service name to get more details.
Page 56
9. You will then be presented with a single screen to control and monitor the newly create database, Take note of the connection details which will be required by your database client software. Use the user credentials provided during database creation.
For safety, cloud user will be prompted whether to continue with the startup or shutdown operation. Note: Shutting down or starting up a database could take some time.
Page 57
In this particular example, the cloud user is presented with the following details: Hostname => oraem12c.localdomain Listener Port => 1521 Database SID => DB29911a
Regardless of database client software to be used, this information, plus the username and password specified during database creation, is all you need to connect to the new database.
As a safety precaution, cloud user will be prompted whether to continue or cancel Manual Database Deletion.
Page 58
Page 59
CHARGEBACK MONITORING
Chargeback Monitoring for Cloud Users
Cloud users can monitor the status of their own cloud resource consumption by clicking the Chargeback Tab from their own Database Cloud Self Service Portal
This particular example also indicates that the user is to be charged $3.53.
Page 60
Cloud Administrators can also click on the Reports tab for further details on cloud resource utilization.
Database as a Service using Oracle Enterprise Manager 12c Cookbook December 2011 Author: Norman Radan Contributing Author: Adeesh Fulay Oracle Corporation World Headquarters 500 Oracle Parkway Redwood Shores, CA 94065 U.S.A. Worldwide Inquiries: Phone: +1.650.506.7000 Fax: +1.650.506.7200 oracle.com
Copyright 2011, Oracle and/or its affiliates. All rights reserved. This document is provided for information purposes only and the contents hereof are subject to change without notice. This document is not warranted to be error-free, nor subject to any other warranties or conditions, whether expressed orally or implied in law, including implied warranties and conditions of merchantability or fitness for a particular purpose. We specifically disclaim any liability with respect to this document and no contractual obligations are formed either directly or indirectly by this document. This document may not be reproduced or transmitted in any form or by any means, electronic or mechanical, for any purpose, without our prior written permission.