An Oracle White Paper June, 2012. Provisioning & Patching Oracle Database using Enterprise Manager 12c.



Similar documents
An Oracle White Paper July Introducing the Oracle Home User in Oracle Database 12c for Microsoft Windows

WEBLOGIC SERVER MANAGEMENT PACK ENTERPRISE EDITION

An Oracle White Paper March Integrating the SharePoint 2007 Adapter with WebCenter Spaces ( & )

An Oracle White Paper June Oracle Linux Management with Oracle Enterprise Manager 12c

An Oracle White Paper October BI Publisher 11g Scheduling & Apache ActiveMQ as JMS Provider

An Oracle White Paper February Oracle Data Integrator 12c Architecture Overview

An Oracle White Paper November Oracle Business Intelligence Standard Edition One 11g

An Oracle White Paper September Oracle WebLogic Server 12c on Microsoft Windows Azure

An Oracle White Paper January, Enterprise Manager Cloud Control 12c: Configuring External User Authentication Using Microsoft Active Directory

An Oracle Communications White Paper December Serialized Asset Lifecycle Management and Property Accountability

Using Symantec NetBackup with VSS Snapshot to Perform a Backup of SAN LUNs in the Oracle ZFS Storage Appliance

Oracle Fusion Middleware

How To Load Data Into An Org Database Cloud Service - Multitenant Edition

ORACLE VM MANAGEMENT PACK

An Oracle White Paper May Distributed Development Using Oracle Secure Global Desktop

Oracle SQL Developer Migration

Load Testing Hyperion Applications Using Oracle Load Testing 9.1

Introduction. Automated Discovery of IT assets

An Oracle White Paper February Integration with Oracle Fusion Financials Cloud Service

An Oracle White Paper June, Enterprise Manager 12c Cloud Control Application Performance Management

An Oracle White Paper June How to Install and Configure a Two-Node Cluster

APPLICATION MANAGEMENT SUITE FOR ORACLE E-BUSINESS SUITE APPLICATIONS

G Cloud 7 Pricing Document

G Cloud 7 Pricing Document

How To Configure An Orgaa Cloud Control On A Bigip (Cloud Control) On An Orga Cloud Control (Oms) On A Microsoft Cloud Control 2.5 (Cloud) On Microsoft Powerbook (Cloudcontrol) On The

An Oracle Technical White Paper June Oracle VM Windows Paravirtual (PV) Drivers 2.0: New Features

An Oracle White Paper May Creating Custom PDF Reports with Oracle Application Express and the APEX Listener

An Oracle White Paper March Oracle s Single Server Solution for VDI

An Oracle Technical White Paper May How to Configure Kaspersky Anti-Virus Software for the Oracle ZFS Storage Appliance

An Oracle White Paper June Security and the Oracle Database Cloud Service

An Oracle White Paper July Oracle Desktop Virtualization Simplified Client Access for Oracle Applications

Oracle Enterprise Manager

An Oracle White Paper September Oracle Database and the Oracle Database Cloud

An Oracle White Paper October Oracle Data Integrator 12c New Features Overview

March Oracle Business Intelligence Discoverer Statement of Direction

An Oracle White Paper April How to Install the Oracle Solaris 10 Operating System on x86 Systems

APPLICATION MANAGEMENT SUITE FOR SIEBEL APPLICATIONS

An Oracle White Paper September Advanced Java Diagnostics and Monitoring Without Performance Overhead

An Oracle White Paper January Using Oracle's StorageTek Search Accelerator

An Oracle White Paper July Oracle Linux and Oracle VM Remote Lab User Guide

How To Use An Orgs.Org Database With An Orgorora Cloud Management Pack For Database (For Cloud)

An Oracle White Paper March Managing Metadata with Oracle Data Integrator

Performance with the Oracle Database Cloud

Oracle Fusion Applications Splitting Topology from Single to Multiple Host Servers

WebSphere MQ Oracle Enterprise Gateway Integration Guide

ORACLE OPS CENTER: VIRTUALIZATION MANAGEMENT PACK

Virtual Compute Appliance Frequently Asked Questions

Deploying Oracle Database 12c with the Oracle ZFS Storage Appliance

ORACLE MANAGED FILE TRANSFER

OpenLDAP Oracle Enterprise Gateway Integration Guide

Oracle Enterprise Manager

APPLICATION MANAGEMENT SUITE FOR ORACLE E-BUSINESS SUITE APPLICATIONS

An Oracle Technical Article November Certification with Oracle Linux 6

An Oracle White Paper January, Middleware as a Service using Oracle Enterprise Manager 12c Cookbook

Unbreakable Linux Network An Overview

Deliver Oracle BI Publisher documents to Microsoft Office SharePoint Server An Oracle White Paper July 2008

An Oracle White Paper May Oracle Database Cloud Service

ORACLE CLOUD MANAGEMENT PACK FOR ORACLE DATABASE

June, 2015 Oracle s Siebel CRM Statement of Direction Client Platform Support

PRODUCT HUB STREAMLINED ITEM BATCH USER INTERFACE DEFINE IMPORT FORMATS FOR SPREADSHEET IMPORT CONSOLIDATION OF DIGITAL ASSETS THROUGH THE ITEM BATCH

Managed Storage Services

An Oracle Best Practice Guide April Best Practices for Knowledgebase and Search Effectiveness

THE NEW BUSINESS OF BUSINESS LEADERS. Hiring and Onboarding

An Oracle Technical Article March Certification with Oracle Linux 7

An Oracle Technical White Paper January How to Configure the Trend Micro IWSA Virus Scanner for the Oracle ZFS Storage Appliance

ORACLE OPS CENTER: PROVISIONING AND PATCH AUTOMATION PACK

Driving Down the High Cost of Storage. Pillar Axiom 600

An Oracle White Paper August Oracle Database Auditing: Performance Guidelines

Oracle Mobile Security

Setting up the integration between Oracle Social Engagement & Monitoring Cloud Service and Oracle RightNow Cloud Service

October Oracle Application Express Statement of Direction

Oracle s BigMachines Solutions. Cloud-Based Configuration, Pricing, and Quoting Solutions for Enterprises and Fast-Growing Midsize Companies

An Oracle White Paper August Oracle VM 3: Server Pool Deployment Planning Considerations for Scalability and Availability

Oracle Audit Vault Administrator s Guide Oracle Audit Vault Auditor s Guide Oracle Enterprise Manager Cloud Control Administrator s Guide

An Oracle White Paper August Oracle VM 3: Application-Driven Virtualization

How To Customize An Org Bee 11G With A Custom Skin On A Windows 7.5 (Oracle) 11G (Orca) 11Ge (Orora) 11Gh (Orroboro) 11E (Ororro

An Oracle White Paper January Integrating Oracle Application Express with Oracle Access Manager. Revision 1

An Oracle White Paper May 2011 BETTER INSIGHTS AND ALIGNMENT WITH BUSINESS INTELLIGENCE AND SCORECARDS

An Oracle Best Practice Guide April Best Practices for Designing Contact Center Experiences with Oracle RightNow CX Cloud Service

Microsoft Active Directory Oracle Enterprise Gateway Integration Guide

An Oracle White Paper June RESTful Web Services for the Oracle Database Cloud - Multitenant Edition

A Framework for Implementing World-Class Talent Management. The highest performing businesses are re-focusing on talent management

An Oracle White Paper June Tackling Fraud and Error

An Oracle White Paper April, Effective Account Origination with Siebel Financial Services Customer Order Management for Banking

PeopleSoft Forms & Approval Builder

FAQ: How to create Effective Messages

Oracle Service Cloud and Oracle Field Service Cloud Accelerator

An Oracle White Paper September Adapting to PeopleSoft Continuous Delivery

An Oracle White Paper February Rapid Bottleneck Identification - A Better Way to do Load Testing

The Yin and Yang of Enterprise Project Portfolio Management and Agile Software Development: Combining Creativity and Governance

Next Generation Siebel Monitoring: A Real World Customer Experience. An Oracle White Paper June 2010

An Oracle White Paper September Directory Services Integration with Database Enterprise User Security

Oracle Primavera Gateway

An Oracle White Paper November Leveraging Massively Parallel Processing in an Oracle Environment for Big Data Analytics

How to Use Microsoft Active Directory as an LDAP Source with the Oracle ZFS Storage Appliance

Sun ZFS Storage Appliance Rule-Based Identity Mapping Between Active Directory and Network Information Services Implementation Guide

An Oracle White Paper January A Technical Overview of New Features for Automatic Storage Management in Oracle Database 12c

How to Configure Symantec Protection Engine for Network Attached Storage for the Oracle ZFS Storage Appliance

An Oracle White Paper November Upgrade Best Practices - Using the Oracle Upgrade Factory for Siebel Customer Relationship Management

Transcription:

An Oracle White Paper June, 2012 Provisioning & Patching Oracle Database using Enterprise Manager 12c.

Table of Contents Executive Overview... 2 Introduction... 2 EM Readiness:... 3 Installing Agent... 3 Setting Up Privilege Delegation in Enterprise Manager... 6 Creating Named Credentials in Enterprise Manager... 8 Setting Up Software Library... 10 Provisioning Grid Infrastructure and Oracle RAC Database:... 11 Creating Installation Media Components... 11 Patching Grid Infrastructure and Oracle RAC Database:... 18 Other Resources... 21

Executive Overview Oracle Enterprise Manager is Oracle s integrated enterprise IT management product line and provides the industry s first complete cloud lifecycle management solution. Oracle Enterprise Manager s business-driven IT Management capabilities allow you to quickly set up, manage, and support enterprise clouds and traditional Oracle IT environments from applications to disk. Enterprise Manager allows customers to achieve: Best service levels for traditional and cloud applications through management from a business perspective including Oracle Fusion Applications Maximum return on IT management investment through the best solutions for intelligent management of the Oracle stack and engineered systems Unmatched customer support experience through real-time integration of Oracle s knowledgebase with each customer environment Introduction This whitepaper intends to cover the all the steps required to automate provisioning and patching via Enterprise Manager. It also covers the various prerequisites for administrators before they actually start using the Database Provisioning and Patching functionality in 12C. This whitepaper covers provisioning & patching of database systems such as Single Instance Databases, Oracle Real Application Clusters (Oracle RAC) Databases, database clients and others, a. Some of the key areas covered are as follows: 1. EM readiness: Is my EM ready to provision/patch my targets? 2. Provisioning Grid Infrastructure and Oracle RAC Database 3. Patching Grid Infrastructure and Oracle RAC Database 4. Other Resources and My Oracle Support Notes 2

EM Readiness: Setup Step Install Agent Details Steps on how to discover new targets push agent Privilege Delegation settings Named & Preferred credentials Setting up software library Creating Installation Media Components Steps for PDP setting when a proxy user is to be used. Example : Use oracle to sudo as root & run root.sh scripts Named & Preferred credentials are to be stored in Cloud Control before provisioning. These are then used during the deployment procedures. Software library setup is needed for any of patching or provisioning activity. This step covers on how to download bits from OTN & upload to Cloud Control so that these can be used for provisioning. (Provisioning Specific topic) Install Agent One of the initial steps for automation is discovery of hosts and targets. You can do this by installing an agent on the host. With Enterprise Manager12c, an agent can be pushed from the OMS so that the hosts become managed hosts in Enterprise Manager. In Cloud Control, follow these steps: 1. In the Cloud Control home page, from the Setup menu, select Add Target, and then click Add Targets Manually. (Figure 1) Figure 1: Cloud Control Home Page 3

2. In Add Targets Manually page, select Add Host Targets and click Add Host. Figure 2: Add Targets Manually Page 3. In the Add Hosts page, provide host and platform details to install agents. Figure 3: Add Target Page. 4. Once Host details are provided, provide installation details as shown below : 4

Figure 4 : Add Host Targets: Installation Details Page 5. Once all details are completed, review the information and click Deploy Agent. ure 5: Review Fig 5

Setting Up Privilege Delegation in Enterprise Manager As both provisioning and patching require some of the tasks such as execution of root scripts to run as super user, make sure the host user has privileges to become root user. This can be done via sudo setting or PBrun. Setting up PDP is a 2 step process as follows: 1) Host level Setup :This can be done by PDP setup,e.g., user executing the procedure (say ABC) can have access to run SUDO as Oracle user and ROOT user by adding the following commands (add privileges to these commands into the SUDOERS file): From $AGENT_HOME, the following entry must be added to sudoers file:./agent_inst/bin/nmosudo Sample sudoersfile should have following entry: Oracle ALL= (root) /u0a/app/oracle/agenthome/agent_inst/bin/nmosudo 2) In Enterprise Manager : To setup PDP,, go to Setup - > Security -> Privileged Delegation as shown in the figure below: Figure 6 : For setting PDP Goto Setup->Security->PDP 3) In the Manage Privilege Delegation Settings page, click Edit to setup the Privilege Delegation for your hosts as show in figure below: 6

Figure 7: Manage Privilege Delegation Settings Page 4) Update the sudo settings and click Update as follows: 7

Figure 8: Host PRIVILEGE Delegation Setting Page Creating Named Credentials in Enterprise Manager Provisioning and Patching require Named Credentials for executing various jobs on the host in order to run root scripts needed for Oracle products. To do so, go to Setup -> Security -> Named Credentials and create at least two set of named credentials, one for running jobs with host user credential and other for running jobs with root user. Follow these steps: 1. Go to: Setup->Security->Named Credentials. 8

Figure 9: Navigation Details for Named Credentials 2. Click Create as shown in the figure below: Figure 10 : Security Page 3. Provide all details and click Test and Save. 9

Figure 11: Create Credential Page Similarly create Privileged Credentials by following the similar wizard by going to Setup- >Security->Privileged Credentials. Setting up Software Library System Administrators are responsible for configuring an upload storage location. Only after the storage location is configured, you can start uploading the entity files. To configure an OMS Shared File System storage location that can be used for uploading Software Library entity files, perform the following steps: 1. In Cloud Control, from the Setup menu, select Provisioning and Patching and then, click Software Library. Alternately, from Grid menu, select Provisioning and Patching and then, click Software Library. On the Software Library Console page, from Actions menu, select Administration. 2. On Software Library: Administration page, select OMS Shared File System. Note: Ensure that the configured storage location is a shared location that is accessible by all the OMS instances. 3. To add a new OMS Shared File System, click +Add. 4. In the Add OMS Shared File System location dialog box, provide a unique name and location on the OMS host, where you want to set up the upload location. 10

Ensure that the storage location that you configure is a shared file system location accessible to all the OMS hosts. For a multi OMS setup, you must set the Normal Preferred Credentials for all the OMS(s). Note: When you are configuring an upload location for the first time, a progress dialog appears as the metadata files are imported from the Enterprise Manager Oracle home. This operation may take some time for the first location being configured and cannot be cancelled. However, this delay will not be there while configuring new storage locations henceforth. Provisioning Grid Infrastructure and Oracle RAC Database: Note: For more details, viewlets, and screenwatches on Provisioning, visit OTN. There are various options using which one can provision grid infrastructure as well as database: 1. Using Provisioning Profiles: A Provisioning Profile is an entity which contains both the software bits and configuration. When a provisioning profile is created from an existing installation, it provides the flexibility to clone either Grid Infrastructure (with software or configuration) or Oracle Database (with software or configuration). Once a provisioning profile is created, it can be used for ongoing Provisioning activities. Figure 12: Provisioning Profile 2. Using Installation Media: Provisioning can also be done by using installation media, which can be pre-staged into the software library. The following section explains the procedure to do the same. Creating Installation Media Components 1. Create a temporary location mkdir /tmp/installmedia 11

2. Open a Browser and go to www.oracle.com Downloads->Database 11g or http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html Depending on the OS that is going to be used click on the corresponding See All link. For example Linux x86. 3. Accept the License Agreement. Figure 13 4. Download Files 1 and 2 for the database and the grid infrastructure to the temporary file that was previously created. Figure14 5. Navigate to the temporary folder that was created. 6. Unzip database files. Unzip linux_11gr2_database_1of2.zip Unzip linux_11gr2_database_2of2.zip 7. Create a zip file with the complete unzipped database. Zip linux_11gr2_database.zip database/ -r 8. Open Browser; go to Enterprise Manager and Login. 9. Navigate to the Software Library page through Grid -> Provisioning and Patching -> Software Library. 12

Figure 15 : Navigate to Software Library 10. Select the folder where the Installation Media component will be created. Figure 16: Software Library Page. 13

11. Select to create a component by clicking. Actions-> Create Entity -> Component. Figure 17 : Create Component 12. Select Installation Media Component. Click Continue. Figure 18 : Select Component Type 13. Enter Name and Description for the component that is being created and click Next. 14

Figure19 : Create Installation Media Wizard 14. Select Product Version, Platform, and Product from the list. Figure 20 : Create Installation Media : Configure Page. In Product, Select Oracle Database for Database, Oracle Client for Oracle Database Replay Client and Oracle Grid Infrastructure for Grid Infrastructure Files. 15. Click Next. 16. Select Upload Files Option & In Specify Destination -> Select a configured Software Library. 15

Figure 21: Create Installation Media: Select Files Figure22: Select Destination software library location 17. Select File Source as Agent Machine. Figure 23: Specify Source 16

18. Select Host from where the files are being uploaded. Click Select. Figure 24 Select Host 19. Click Add. Figure 25 Specify Source Page 20. Click Login As 21. Enter Login Credentials and click OK. 17

Figure26: Host Credentials 22. Go to temporary file directory and select the database zip file that was created. Figure27 Select Database Zip File 23. Click Add and then click OK. 24. Click Next. 25. Click Finish. Patching Grid Infrastructure and Oracle RAC Database: Note: For more details, viewlets, and screnwatches on Patching, visit OTN 18

Enterprise Manager provides two modes of connections to My Oracle Support for patching Oracle software: 1. Online - If you select this, it means that you have an Internet connection and can access My Oracle Support. Now, run the RefreshFromMetalink job. This job will download all metadata from My Oracle Support, analyze the data, update tables in the repositories, and calculate policy violations if any. 2. Offline - If there is no Internet connection to My Oracle Support, select this option. This means that you will have to get the metadata required for patching and then apply the patches. To setup the patching mode, go to Setup->Provisioning & Patching ->Offline Patching. Figure28: Offline Patching: Setup -> Provisioning & Patching ->Offline Patching On the Patching Setup page, change the connection to offline and upload all xmls. Once all xmls are uploaded, run the RefreshFromMetalink job. Figure 29: Change connection to offline 19

Figure 30: Upload xml files for offline patching As now there is no connection to MOS, one needs to upload all the patches manually. Navigate to Enterprise ->Provisioning & Patching ->Saved Patches and upload patches. Figure 31: Saved patches Click on upload as shown below: 20

Figure 32: Upload patch On the Patch Upload page, browse to patch and its metadata to upload them. Figure 33: Upload Patch & Metadata Other Resources Note Id: Metalink Note Id: 1361588.1 (Diagnostics and Troubleshooting for Provisioning and Patch Automation through Enterprise Manager 12c) For more details on Provisioning and Patching visit OTN.. 21

Provisioning & Patching Oracle Database using Enterprise Manager 12c June, 2012 Author: Pankaj Chandiramani 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 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. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. AMD, Opteron, the AMD logo, and the AMD Opteron logo are trademarks or registered trademarks of Advanced Micro Devices. Intel and Intel Xeon are trademarks or registered trademarks of Intel Corporation. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. UNIX is a registered trademark licensed through X/Open Company, Ltd. 1010 oracle.com