Top Banner
SPARC SuperCluster T4-4 Enterprise Manager 12c Component of the Oracle ® Optimized Solution for Enterprise Database Cloud Configuration Guide Part No.: E39321-03 November 2015
38

Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

Jul 16, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

SPARC SuperCluster T4-4

Enterprise Manager 12c Component of theOracle® Optimized Solution for EnterpriseDatabase Cloud Configuration Guide

Part No.: E39321-03November 2015

Page 2: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

Copyright © 2013, 2015, Oracle and/or its affiliates. All rights reserved.This software and related documentation are provided under a license agreement containing restrictions on use and disclosure and are protected byintellectual property laws. Except as expressly permitted in your license agreement or allowed by law, you may not use, copy, reproduce, translate,broadcast, modify, license, transmit, distribute, exhibit, perform, publish, or display any part, in any form, or by any means. Reverse engineering,disassembly, or decompilation of this software, unless required by law for interoperability, is prohibited.The information contained herein is subject to change without notice and is not warranted to be error-free. If you find any errors, please report them to usin writing.If this is software or related software documentation that is delivered to the U.S. Government or anyone licensing it on behalf of the U.S. Government, thefollowing notice is applicable:U.S. GOVERNMENT END USERS. Oracle programs, including any operating system, integrated software, any programs installed on the hardware,and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable Federal AcquisitionRegulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs, includingany operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and licenserestrictions applicable to the programs. No other rights are granted to the U.S. Government.This software or hardware is developed for general use in a variety of information management applications. It is not developed or intended for use in anyinherently dangerous applications, including applications that may create a risk of personal injury. If you use this software or hardware in dangerousapplications, then you shall be responsible to take all appropriate fail-safe, backup, redundancy, and other measures to ensure its safe use. OracleCorporation and its affiliates disclaim any liability for any damages caused by use of this software or hardware in dangerous applications.Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks orregistered trademarks of SPARC International, Inc. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks ofAdvanced Micro Devices. UNIX is a registered trademark of The Open Group.This software or hardware and documentation may provide access to or information on content, products, and services from third parties. OracleCorporation and its affiliates are not responsible for and expressly disclaim all warranties of any kind with respect to third-party content, products, andservices. Oracle Corporation and its affiliates will not be responsible for any loss, costs, or damages incurred due to your access to or use of third-partycontent, products, or services.

Copyright © 2013, 2015, Oracle et/ou ses affiliés. Tous droits réservés.Ce logiciel et la documentation qui l’accompagne sont protégés par les lois sur la propriété intellectuelle. Ils sont concédés sous licence et soumis à desrestrictions d’utilisation et de divulgation. Sauf disposition de votre contrat de licence ou de la loi, vous ne pouvez pas copier, reproduire, traduire,diffuser, modifier, breveter, transmettre, distribuer, exposer, exécuter, publier ou afficher le logiciel, même partiellement, sous quelque forme et parquelque procédé que ce soit. Par ailleurs, il est interdit de procéder à toute ingénierie inverse du logiciel, de le désassembler ou de le décompiler, excepté àdes fins d’interopérabilité avec des logiciels tiers ou tel que prescrit par la loi.Les informations fournies dans ce document sont susceptibles de modification sans préavis. Par ailleurs, Oracle Corporation ne garantit pas qu’ellessoient exemptes d’erreurs et vous invite, le cas échéant, à lui en faire part par écrit.Si ce logiciel, ou la documentation qui l’accompagne, est concédé sous licence au Gouvernement des Etats-Unis, ou à toute entité qui délivre la licence dece logiciel ou l’utilise pour le compte du Gouvernement des Etats-Unis, la notice suivante s’applique :U.S. GOVERNMENT END USERS. Oracle programs, including any operating system, integrated software, any programs installed on the hardware,and/or documentation, delivered to U.S. Government end users are "commercial computer software" pursuant to the applicable Federal AcquisitionRegulation and agency-specific supplemental regulations. As such, use, duplication, disclosure, modification, and adaptation of the programs, includingany operating system, integrated software, any programs installed on the hardware, and/or documentation, shall be subject to license terms and licenserestrictions applicable to the programs. No other rights are granted to the U.S. Government.Ce logiciel ou matériel a été développé pour un usage général dans le cadre d’applications de gestion des informations. Ce logiciel ou matériel n’est pasconçu ni n’est destiné à être utilisé dans des applications à risque, notamment dans des applications pouvant causer des dommages corporels. Si vousutilisez ce logiciel ou matériel dans le cadre d’applications dangereuses, il est de votre responsabilité de prendre toutes les mesures de secours, desauvegarde, de redondance et autres mesures nécessaires à son utilisation dans des conditions optimales de sécurité. Oracle Corporation et ses affiliésdéclinent toute responsabilité quant aux dommages causés par l’utilisation de ce logiciel ou matériel pour ce type d’applications.Oracle et Java sont des marques déposées d’Oracle Corporation et/ou de ses affiliés.Tout autre nom mentionné peut correspondre à des marquesappartenant à d’autres propriétaires qu’Oracle.Intel et Intel Xeon sont des marques ou des marques déposées d’Intel Corporation. Toutes les marques SPARC sont utilisées sous licence et sont desmarques ou des marques déposées de SPARC International, Inc. AMD, Opteron, le logo AMD et le logo AMD Opteron sont des marques ou des marquesdéposées d’Advanced Micro Devices. UNIX est une marque déposée d’The Open Group.Ce logiciel ou matériel et la documentation qui l’accompagne peuvent fournir des informations ou des liens donnant accès à des contenus, des produits etdes services émanant de tiers. Oracle Corporation et ses affiliés déclinent toute responsabilité ou garantie expresse quant aux contenus, produits ouservices émanant de tiers. En aucun cas, Oracle Corporation et ses affiliés ne sauraient être tenus pour responsables des pertes subies, des coûtsoccasionnés ou des dommages causés par l’accès à des contenus, produits ou services tiers, ou à leur utilisation.

PleaseRecycle

Page 3: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

Contents

Using This Documentation 5

Setting Up the Database as a Service 7

▼ Prepare the Target Oracle Solaris 11 Zones or Logical Domains 7

▼ Add Credentials for the Oracle Software Update Center 8

▼ Add Virtualizations, Cloud, and Chargeback Plug-ins 8

▼ Install the Cloud Control Agent on the SPARC SuperCluster 1.1 10

Installing the EM12c Agent(s) on the Oracle Solaris Zones 11

▼ Add the Oracle Solaris Zones Host Targets 12

Adding the Oracle RAC Targets 14

▼ Add the Oracle RAC Targets 14

▼ Add the Details of the RAC Cluster 16

▼ Create an Enterprise Manager Cloud Administrator Role 20

▼ Create an Enterprise Manager Self Service User 21

▼ Create Database Deployment Procedure (Single Instance) 23

▼ Create a PaaS Infrastructure Zone 28

▼ Establish Quotas for the Cloud Control User 31

▼ Create the Database Software Pool 33

▼ Create a Service Template 34

▼ Use Database as a Service 37

3

Page 4: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

4 SPARC SuperCluster Database as a Service • November 2015

Page 5: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

Using This Documentation

This document contains information about how to set up the Enterprise ManagerCloud Control 12c release 2 component of the Oracle Optimized Solution forEnterprise Database Cloud on the SPARC SuperCluster T4-4 from Oracle. Thisdocument is written for system administrators who have advanced experienceconfiguring engineered systems.

Software versions required for this document are:

■ Enterprise Manager Cloud Control version 12.1.0.2.0

■ Oracle Database Plug-in 12.1.0.2.0

Note – The administrative user ’SYSMAN’ is used in this guide only as a way ofsimplifying these instructions. In a full production environment it is assumed thatenterprise manager cloud administrator accounts would be created and used formost of the steps in this guide.

This setup guide is not intended to replace the Enterprise Manager Cloud Controldocumentation, rather it is intended to give a worked example so as to facilitatefirst-time setup of Database as a service on SuperCluster

■ “Product Documentation Library” on page 5

■ “Feedback” on page 6

Product Documentation LibraryDocumentation and resources for this product and related products are available onthe system. Access the documentation by using a browser to view this directory onthe first compute server installed in SuperCluster T4-4:

5

Page 6: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

/opt/oracle/node/doc/E21659_01/index.html

FeedbackProvide feedback about this documentation at:

http://www.oracle.com/goto/docfeedback

6 SPARC SuperCluster Database as a Service • November 2015

Page 7: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

Setting Up the Database as a Service

■ “Prepare the Target Oracle Solaris 11 Zones or Logical Domains” on page 7

■ “Add Credentials for the Oracle Software Update Center” on page 8

■ “Add Virtualizations, Cloud, and Chargeback Plug-ins” on page 8

■ “Install the Cloud Control Agent on the SPARC SuperCluster 1.1” on page 10

■ “Installing the EM12c Agent(s) on the Oracle Solaris Zones” on page 11

■ “Create an Enterprise Manager Cloud Administrator Role” on page 20

■ “Create an Enterprise Manager Self Service User” on page 21

■ “Create Database Deployment Procedure (Single Instance)” on page 23

■ “Create a PaaS Infrastructure Zone” on page 28

■ “Create the Database Software Pool” on page 33

■ “Establish Quotas for the Cloud Control User” on page 31

■ “Create a Service Template” on page 34

■ “Use Database as a Service” on page 37

▼ Prepare the Target Oracle Solaris 11Zones or Logical DomainsDatabase Cloud is implemented directly onto the logical domains of the SPARCSuperCluster (Global Zone) or within Non-Global Oracle Solaris Zones that arecreated on the logical domains.

Much of the preparation work in setting up the hardware was done during initialsystem installation, compared to using a non engineered system. The only step youmust perform is to enable the sudo privileges.

7

Page 8: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

For a complete list of requirements for installing the Oracle Cloud ControlManagement Agent, refer to the Oracle Enterprise Manager Cloud Control AdvancedInstallation and Configuration Guide 12c Release 1 (12.1.0.1).

● Update the Sudoers file.

Ensure that Oracle has permission to run the required agent commands inprivileged mode by adding the following to the /etc/sudoers file on the targetzone.

▼ Add Credentials for the OracleSoftware Update CenterThe Oracle Software Update Center hosts bug fixes, software updates and a varietyof add-ons for Oracle products. For DB Cloud, it is most likely that several EnterpriseManager 12c Cloud Control plug-ins will be required to be added to your EnterpriseManager 12c deployment, so this step describes setting up the connection fromEM12c to the update center.

1. From the Select Enterprise Manager Home page, choose Setup → My OracleSupport → Set Credentials.

2. Type your Oracle Support login and password and then click Apply.

▼ Add Virtualizations, Cloud, andChargeback Plug-insTo use database as a service, you must install two additional plug-ins on the OracleManagement Service (OMS): Virtualization and Cloud. Adding the Chargebackplug-in is optional.

# egrep -v "^#|^$" /etc/sudoers

oracle ALL=(root) /usr/bin/id,<agent-installation-base-directory>/agentibd/*/agentdeployroot.sh

8 SPARC SuperCluster Database as a Service • November 2015

Page 9: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

1. Confirm you are successfully signed into the Oracle Update Center by settingcredentials.

See “Add Credentials for the Oracle Software Update Center” on page 8.

2. Add the Oracle Virtualization plug-in by choosing Setup → Plug-ins.

3. Expand the Server, Storage and Network folder, and then choose the OracleVirtualization plug-in.

4. From the Deploy On menu, choose Management Servers.

The Deploy Plug in on Management Servers pop-up window is displayed.

5. Select the latest version from the Version menu, type the Repository SYSPassword, and then click Continue.

6. When the prerequisite checks are complete, click Next.

7. After you have backed up your repository and the configuration of themanagement server, select the check the box indicating this task has beencompleted, then click Deploy.

The OMS is unavailable during the upgrade, so the browser interface will alsobecome unavailable.

Setting Up the Database as a Service 9

Page 10: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

8. After the OMS restarts, log back in and repeat the procedure for the Cloud, andoptionally for the Chargeback plug-ins.

▼ Install the Cloud Control Agent on theSPARC SuperCluster 1.11. Add support for the SPARC agent to the OMS.

a. To install the Cloud Control agent on the SPARC SuperCluster 1.1, ensurethat the agent for Oracle Solaris on SPARC is installed on the OMS. To checkthis, choose Setup → Extensibility → Self Update.

b. Open the Agent Software folder.

c. Download the SPARC agent if it has not already been downloaded, thenselect it and the click Apply.

10 SPARC SuperCluster Database as a Service • November 2015

Page 11: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

2. Create named credentials.

a. Next, create the named credentials for the Oracle user account that is used toinstall the agent. Chose Setup → Security → Named Credentials.

b. Select Create and type credentials.

The credential named “ORACLE” is created here and used as an example in therest of this document.

c. If you have a target to test on, select Test and Save, otherwise select Save. Youcan ignore any warnings about the credentials when you do not have a testtarget, but check them later, when you have a target host available.

Installing the EM12c Agent(s) on theOracle Solaris ZonesNow you can manually deploy the Agent and Database Plug-ins to the Oracle Solariszones on the SPARC SuperCluster. There are two parts to the agent deployment,firstly to install the EM12c Agent to the Hosts (in this case the Oracle Solaris Zones)that EM12c will use for Cloud management and the second part is to use the EM12cGuided Process to add the Agents for the Oracle RAC Clusters that run on theSuperCluster

■ “Add the Oracle Solaris Zones Host Targets” on page 12

■ “Add the Oracle RAC Targets” on page 14

Setting Up the Database as a Service 11

Page 12: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

▼ Add the Oracle Solaris Zones Host Targets1. Choose Setup → Add Target → Add Targets Manually.

2. In the Add Targets Manually window, select the Add Host Targets button, andthen click Add Host.

The Add Host Targets wizard is displayed.

a. In the Host and Platform window, add hosts using one of the followingmethods.

Hosts can be added individually by specifying the target name or via a bulkload.

i. To add hosts individually, click Add and specify the host and platformdetails.

ii. To add a batch of hosts, create a simple text file containing the hosts toadd.

Select Load from File, and browse to the location of the text file createdearlier. Then click OK.

12 SPARC SuperCluster Database as a Service • November 2015

Page 13: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

The text file of Host targets is uploaded and the EM12c Host targets list ispopulated from this file.

iii. When hosts are added to the list, click Next.

b. In the Installation Details window, enter the following values:

i. Complete the entries for Installation Base Directory and InstanceDirectory.

ii. From the Named Credential menu, choose the unprivileged namedcredential created earlier.

In the example, the ORACLE credential created earlier, is unprivileged.

iii. Fill in the privilege delegation setting and sudo command as shown(/usr/bin/sudo -S -u %RUNAS% %COMMAND%), so that this user canexecute the privileged commands required on the host to deploy the agentsoftware, and click Next.

Setting Up the Database as a Service 13

Page 14: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

3. In the Review window, review the details and select Next to begin installing theEM12c Agents

Agent installation now runs on the selected hosts.

If there are any warnings or errors during installation, select Hosts from theTargets menus to list the running agents and diagnose any issues.

The window below shows that the hosts (Oracle Solaris zones) etc18n1 andetc18n2 both have running agents.

Adding the Oracle RAC TargetsThese procedure add details for the RAC and ASM targets that EM12c manages.

■ “Add the Oracle RAC Targets” on page 14

■ “Add the Details of the RAC Cluster” on page 16

▼ Add the Oracle RAC Targets1. Choose Setup → Add Target → Add Targets Manually.

2. In the Add Targets Manually window, click the Add Non-Host Target UsingGuided Process, choose Oracle Cluster and High Availability Service as theTarget Type, and then click Add Using Guided Discovery.

14 SPARC SuperCluster Database as a Service • November 2015

Page 15: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

3. Select the magnifying glass icon to find the Oracle Solaris zones that are part ofa RAC cluster. Select the appropriate host and click Continue.

4. Confirm the cluster details. You can change the cluster name if desired. ClickAdd.

A progress window is displayed and then the confirmation window is displayedshowing that the RAC cluster has been added to the EM12c agents running on thehosts that comprise the cluster.

5. Click OK to continue.

Setting Up the Database as a Service 15

Page 16: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

▼ Add the Details of the RAC ClusterAfter you add the Oracle RAC targets, follow these step to add details of the RACcluster such as listener, ASM and database instances to the EM12c agent runningon the target hosts/Oracle Solaris zone.

1. Choose Setup → Add Target → Add Targets Manually.

2. From the Add Targets Manually window, select the Add Non-host Target UsingGuided Process, choose Oracle Database, Listener and Automatic StorageManagement as the Target Type, then Click Add Using Guided Discovery.

3. Select the magnifying glass icon to find the Oracle Solaris zone that is part ofthe RAC cluster.

Highlight the appropriate host and click Continue.

4. Specify that EM12c should look for listener, ASM and database targets byclicking on all hosts in cluster and click Continue.

The discovery window is displayed and RAC cluster instances and ASM detailsare shown.

5. If there are databases in the cluster, click the Configure icon in the ClusterDatabases panel.

In the following example two databases instances are discovered by EM12c,however it is possible that there are no databases created on the SPARCSuperCluster T4-4 at this point of the setup and this field would be empty. Theexample assumes that there are databases, so in the cluster databases panel clickthe configure icon.

16 SPARC SuperCluster Database as a Service • November 2015

Page 17: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

The Configure Cluster Database : Properties wizard is displayed.

a. In the Credential window, type the dbsnmp password, and then click TestConnection.

The dbsnmp account must be unlocked. Click Next.

b. In the Review window, review the cluster details and click OK.

Setting Up the Database as a Service 17

Page 18: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

Notice that the wrench icon on the configure panel for the database instances isnow a solid blue color, indicating that the database targets of the RAC instancesare now successfully configured to be managed and monitored by EM12c.

6. In the Discovering Targets on Cluster window, select the wrench icon for theCluster ASM.

7. In the Configure Cluster ASM : Properties window, type the asmsnmp passwordand click Test Connection.

18 SPARC SuperCluster Database as a Service • November 2015

Page 19: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

A confirmation of the successful connection is displayed.

8. When a confirmation of the successful connection appears, click OK.

9. In the Discovering Targets on Cluster window, click Finish.

10. In the Summary window, click Save.

The targets are saved and a confirmation window is displayed.

At this point the EM12c is now able to manage and monitor the RAC cluster andits components. Repeat these steps for each RAC cluster configured on the SPARCSuperCluster T4-4 that the cloud administrator will make available to theDatabase Cloud end-users.

Setting Up the Database as a Service 19

Page 20: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

▼ Create an Enterprise Manager CloudAdministrator Role1. Choose Setup → Security → Roles.

2. In the Roles window, select Create.

The Create Roles wizard is displayed.

a. In the Property window, type a name and a description for the role, and thenclick Next.

In the example, the EM_SSA_DEVUSER_IT role is created.

b. In the Roles window, select Remove All to remove any existing roles, selectEM_SSA_USER, click Move, then click Next.

c. In the Target Privileges window, click Next.

d. In the Resource Privileges window, click Next.

e. In the Administrator window, click Next.

f. In the Review window, review the details and click Finish.

You have created a very basic role that can be assigned to the PaaSinfrastructure zone that will be created later.

20 SPARC SuperCluster Database as a Service • November 2015

Page 21: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

▼ Create an Enterprise Manager SelfService UserCreate a self service user to limit an unprivileged user to only the databases servicesthat you want to offer.

1. Choose Setup → Security → Administrators.

2. In the Administrators window, select Create.

Setting Up the Database as a Service 21

Page 22: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

The Create Administrator wizard is displayed.

a. In the Properties window, type a name and password, confirm the passwordand then click Next.

b. In the Roles window, select Remove All to remove any existing roles, thenhighlight the EM_SSA_DEVUSER_IT role, click Move, and then click Next.

c. In the Target Privileges window, click Next.

d. In the Resource Privileges, click Next.

e. In the Review window, review the details and click Finish.

You can now log in to Cloud Control using the user name and password thatyou supplied here. However, until this user has been given access to a EM12cPaaS zone, they will not be able to perform any provisioning tasks.

22 SPARC SuperCluster Database as a Service • November 2015

Page 23: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

▼ Create Database DeploymentProcedure (Single Instance)Database Deployment Procedures are a facility of EM12c that create the requesteddatabase(s) on behalf of the Cloud end user and will automatically return to the enduser a connection string for the database that has been created.

The following example describes creating a deployment procedure for a singleinstance database.

Note – The database service template you create here is not instantiatedimmediately. Instead, it is offered as a service on the database zone that you createnext.

Setting Up the Database as a Service 23

Page 24: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

This example demonstrates the creation of an Oracle 11gR2 RAC single instancedatabase, however, the same approach applies to creating deployment procedures forRAC Cluster or RAC One Node.

Note that the database storage for Oracle Database 11gR2 will be on the ExadataStorage Cells of the SPARC SuperCluster. This storage will already be establishedduring SuperCluster installation and further administered and provisioned using theSuperCluster/Exadata Zone tools.

1. Choose Enterprise → Provisioning and Patching → Database Provisioning.

2. Select Create Oracle Database from the Deployment Procedures panel, and thenclick Launch.

The Create Database wizard is displayed.

3. In the Database and Version and Type window, enter the following values:

a. Choose 11.2.0.3.0 from the Version menu, and choose Oracle Single InstanceDatabase from the Select database type options.

This deployment procedure will be available to cloud end users, so click thelock icons next to each selection so that these values can’t be changed by theend users.

b. Add the Host(s) where the database will be created.

i. Click Add Hosts to launch the Search and Select: Targets pop-up window.

ii. Select the Oracle Solaris on SPARC (64-bit) platform and click Search.

iii. Highlight the appropriate host and click Select.

c. Select the Oracle Home instance to use with the host.

24 SPARC SuperCluster Database as a Service • November 2015

Page 25: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

i. Click the magnifying glass icon in the Oracle Home column to launch theSelect Oracle Home pop-up window.

ii. Highlight the appropriate Oracle Home and click Select.

d. Select the Host Credentials column and type the credential name, then clickNext.

The example uses the ORACLE credential created earlier.

e. Confirm entries, then click Next.

This validates the Oracle Home.

4. In the Database Template window, click Select Template From Oracle Home,and click Next.

5. In the Identification and Placement window, enter the following values:

a. Type values for the Global Database Name and SID boxes.

When creating a template, these values are for validation purposes only and arenot actually used. This is because the Global database name and SID arereplaced by EM12c when it creates a unique database instance for the DatabaseCloud end user.

b. Click the lock icon to unlock Database Credentials.

Do not lock the Identification section, because these values are substitutedwhen database as a service is used.

Setting Up the Database as a Service 25

Page 26: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

c. Type and confirm the password, and then click Next.

The verification window is displayed, and the Storage Locations window isdisplayed.

6. In the Storage Locations window, enter the following values:

a. Under Storage Type, select Automatic Storage Management (ASM)

b. Under Database Files Location, select Use Common Location for DatabaseFiles.

i. Click the magnifying glass icon next to the Location box to launch theSelect Disk Group pop-up window.

ii. Highlight the appropriate disk group and click Select.

c. Under Recovery Files Location, select Use same storage type as database fileslocation and Use Fast Recovery Area.

i. Click the magnifying glass icon next to the Discovery Area Location box tolaunch the Select Disk Group pop-up window.

ii. Highlight the appropriate disk group and click Select.

26 SPARC SuperCluster Database as a Service • November 2015

Page 27: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

d. Confirm entries, and then click Next.

The storage configuration is validated, and a pop-up window displays theprogress of this validation. When the validation has finished successfully, theCreate Database : Initialization Parameters window is displayed.

7. In the Initialization Parameters window, enter the following values:

a. Select Automatic Shared Memory Management, check Specify MemorySettings as Percentage of Available Memory and adjust the slider forPercentage of Available Memory.

Use this memory setting to control the amount of memory available to thedatabase instances the cloud end user creates. The example uses percentage ofavailable memory for ease of demonstration, but you can also uncheck this tolimit each database to a specified amount. For instance, a useful strategy mightbe to create separate deployment procedures for small, medium, and largememory configurations, where the SGA is set to an absolute value and not apercentage of available memory.

b. Configure the Host CPU count and set the other database configurationparameters to suit.

c. Confirm your entries, and then click Next.

A pop-up window indicates verification is run, then the Create Database :Additional Configurations Options window is displayed.

8. In the Additional Configuration Options window, click Next.

9. In the Schedule window, enter the following values.

Setting Up the Database as a Service 27

Page 28: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

a. Type a name for the Deployment Procedure Instance Name, and then clickNext.

b. Type a descriptive name for this deployment procedure in the Name box ofthe pop-up window, and then click Save.

c. Then in the next window, and click Cancel as you do not want to instantiatethis procedure now.

The new Deployment Procedure (in our example SI-Small-11gR2-Dedicated) isnow visible in the list of deployment procedures.

▼ Create a PaaS Infrastructure Zone1. Choose Enterprise → Cloud → Middleware and Database Home.

2. Choose Middleware and Database Cloud → Create PaaS Infrastructure Zone.

28 SPARC SuperCluster Database as a Service • November 2015

Page 29: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

The Create PaaS Infrastructure Zone wizard is displayed.

a. Type a name and description for the zone, and specify the appropriate valuesfor placement policy constraints based on the resources available to themembers.

The following example uses DevTestZone as a name, indicating that databasesfor development and test will be in this zone. In this example, the defaultplacement policy constrains are used, but in a development or test area youmight allow starting of new database instances (placement) on Oracle Solariszones that are more heavily used than 80%.

Click Next to continue. The Create PaaS Infrastructure Zone: Targets page isdisplayed.

b. Next allocate servers (targets) to the PaaS infrastructure zones. In the case ofDatabase Cloud for SPARC SuperCluster, these targets are Oracle Solariszones. Click Add to search for available Oracle Solaris zones on theSuperCluster.

Setting Up the Database as a Service 29

Page 30: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

Click on each Oracle Solaris zone you want to add as a target, then click Select.

c. Specify the Named Credentials to be used for provisioning all the targets inthis zone.

Click the + icon to add new named credentials.

The example uses the ORACLE credential created earlier.

Click Next to continue.

d. In the Create PaaS Infrastructure Zone: Roles window, click Add to select theroles that can access this PaaS Infrastructure Zone, and then highlight theappropriate role and click Select.

The example uses the EM_SSA_DEVUSER_IT role created earlier.

30 SPARC SuperCluster Database as a Service • November 2015

Page 31: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

e. In the Create PaaS Infrastructure Zone: Review window, review the details andclick Submit to create the zone.

A message confirms that the PaaS Infrastructure Zone was successfully created.You will return to the Middleware and Database Cloud Home page.

▼ Establish Quotas for the Cloud ControlUser1. Choose Setup → Middleware and Database Cloud Home → Cloud → Database.

The Database Pools window is displayed.

2. Select Quotas from the left menu.

3. Click Create on the Quotas window.

The Create Quota window is displayed.

a. Click the magnifying glass icon next to the Role Name.

b. In the Select Roles window, highlight the EM_SSA_DEVUSER_IT role createdearlier, and then click Select.

Setting Up the Database as a Service 31

Page 32: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

c. In the Create Quota window, type the memory, storage, and databaseresources that will be available to this role, and then click OK.

The new quota is added to the list of available Quotas.

32 SPARC SuperCluster Database as a Service • November 2015

Page 33: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

▼ Create the Database Software PoolThis database software pool will contain the ORACLE_HOME installations that willbe used to create database instances on the servers (zones) in the PaaS infrastructurezone.

1. Choose Setup → Middleware and Database Cloud Home → Cloud → Database.

The Database Pools window is displayed.

2. Click Create on the Database Pools window.

The Create Software Pool wizard is displayed.

a. In the General window, type the name and description of the software poolto create, and then click Next.

In the example, the maximum amount of databases per host is set to 10 fordemonstration purposes. In a live deployment this number is determined aspart of the overall system sizing exercise.

b. In the Targets window, type the details of the targets (for example, whichORACLE_HOME software installations and which Oracle Solaris zones) thatwill be used to create databases instances for the Cloud end user.

Select the DevTestZone PaaS infrastructure zone created earlier and set thecorrect Oracle Solaris version.

c. Click Add to search for available ORACLE_HOME targets.

Setting Up the Database as a Service 33

Page 34: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

d. In the Targets page, highlight each target you want to add to the softwarepool, and then click Select.

e. Review the details, and then click Submit to create the software databasepool.

The new database pool is available on the Database Pools window.

▼ Create a Service TemplateThe service template is displayed to the Cloud end-user by way of the EM12c selfservice portal. The user selects this service template to request EM12c Cloud Controlto run the deployment procedure and create the database instance on behalf of theuser.

1. Choose Setup → Middleware and Database Cloud Home → Cloud → Database.

The Database Pools window is displayed.

2. Select Service Templates from the left menu.

3. Click Create on the Service Templates window.

The Service Templates wizard is displayed.

a. In the General window, type a name and optionally a description for theService Template.

This service template will be made available to the database cloud end users, soa descriptive name is important.

i. Click the magnifying glass icon to display a list of deploymentprocedures.

34 SPARC SuperCluster Database as a Service • November 2015

Page 35: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

ii. Highlight the deployment procedure created earlier to provision a smallSingle Instance database suitable for a development test environment, andthen click Select.

b. In the Configuration window, type a user name and password for thedatabase that the deployment procedure will create for the Database Cloudend-user.

Click the locks to stop the end-user from changing the user name or password.

RAC is not used in this example, so the number of RAC instances is blank.Click Next to continue.

c. In the PaaS Infrastructure Zones window, click Add.

i. Select PaaS Infrastructure Zone as the target type, and then click Search.

ii. Highlight the appropriate target in the list, and then click Select.

The selected target is displayed in the list on the Create Service Template:PaaS Infrastructure Zones window.

Setting Up the Database as a Service 35

Page 36: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

iii. Click the magnifying glass icon next to the added zone to display the listof Database Software Pools.

iv. Select Database Pool as the target type, and then click Search.

v. Highlight the database pool created earlier, and then click Select.

vi. In the Paas Infrastructure Zones window, click Next.

d. In the Roles window, click Add.

e. Highlight the roles that will access the service template, and then clickSelect.

The EM_SSA_DEVUSER_IT and the EM_SSA_TESTUSER_IT roles are bothselected in this example.

f. Click Next on the Roles window.

g. In the Review window, review the details and click Submit to create theservice template.

The service template is created and displayed in the Service Templates list.

36 SPARC SuperCluster Database as a Service • November 2015

Page 37: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

▼ Use Database as a ServiceOnce you have configured all of the necessary components, use this procedure to usethe database as a service on the SPARC SuperCluster T4-4 from Oracle.

1. Log in to OEM Cloud Control 12c as the DEVUSER_IT user created earlier.

2. Click the My Database option, and then click the Request Database button inthe Databases panel.

The Select Service Template window is displayed.

3. Select the service template that was made available to this user’s role.

In this case, DevTestSmallSingleInstance is selected, which was createdearlier. Click Select.

The New Database Request wizard is displayed.

a. In the General window, select the database zone from Destination Zonemenu. In this case, DevTestZone. Then select Next.

b. In the Deployment Inputs window, type a user name that can access thedatabase in the User Name box and click Next.

c. In the Schedule window, click Next.

Setting Up the Database as a Service 37

Page 38: Configuring Enterprise Manager 12c for SPARC SuperCluster T4-4 · 3 Contents Using This Documentation 5 Setting Up the Database as a Service 7 Prepare the Target Oracle Solaris 11

d. In the Review window, review the details and click Submit.

The request has been submitted and its progress is indicated in the lower halfof the window.

When the database provisioning process is complete, the request will terminatesuccessfully and the Oracle service name created is displayed in the upper halfof the window (request ID 244 in this example).

To manage and monitor a database instance, simply click the instance name inthe database pane. Note that this window displays the connection string toenable the user to connect and use the database.

38 SPARC SuperCluster Database as a Service • November 2015