This tutorial describes how to use Oracle Enterprise Manager Grid Control 10g Release 2 for provisioning.
Approximately 1 hour
This tutorial covers the following topics:
| Overview | ||
| Scenario | ||
| Patching the Database | ||
| Cloning an Oracle Clustered Home to Extend It | ||
| Creating an Image | ||
| Summary | ||
Place the cursor over this icon to load and view all
the screenshots for this tutorial. (Caution: Because this action loads all screenshots
simultaneously, response time may be slow depending on your Internet connection.)
Note: Alternatively, you can place the cursor over each individual icon in the following steps to load and view only the screenshot associated with that step.
The screenshots will not reflect the specific environment you are using. They are provided to give you an idea of where to locate specific functionality in the Oracle Enterprise Manager 10g Grid Control console.
System administrators spend a significant amount of their
time installing and configuring new software. Provisioning tools provided by
Grid Control enable you to reduce the time as well as the cost to deploy the
new systems. Oracle Enterprise Manager 10g Grid Control is a powerful
provisioning and patching platform that allows end-to-end automation of the
deployment life cycle. Provisioning is installing or loading software on a hardware
server. You can form your own custom images. You can create your own software
library and store the custom images in it. You can use this library to provision
a new system that you may add to your data center in future.
1. Linda needs to create an image from a host server running an Oracle home to new target servers in her environment. Before creating the image, she wants to patch the live database on the host server to the desired level.
2. Linda would like to clone an Oracle clustered home and extend it to include a newly cloned home.
3. Linda needs to create an image of an Oracle home so that she can use it to provision new servers in her environment.
Oracle provides patches to fix one or more bugs for a released
Oracle product. It could be a patchset or an interim patch. A patchset is a
collection of patches that are installed by Oracle Universal Installer. It updates
the software and version numbers of the components that are patched. An interim
patch is a bug fix or set of bug fixes made available to customers who for business
reasons cannot wait until the next patchset or new product release to get a
fix. An interim patch is available from Oracle MetaLink as an individual patch.
The version number of the patched product is not updated when an interim patch
is applied.
Enterprise Manager provides you with many features to simplify the process of patching Oracle software. Some of them are listed below:
The
Critical Patch Advisories page lists all the critical advisories with
their corresponding impact areas, a brief description of each advisory, the
number of affected hosts, and Oracle homes for each advisory.
The
Online Patching feature enables you to connect to Oracle MetaLink via Enterprise
Manager, perform a search and download the required patches or patchsets, and
apply.
The
Offline Patching enables you to perform all the patching activities from
the patch cachethat is, even when Oracle Management Service (OMS) is not
connected to Oracle MetaLink via Internet, you can perform a search and apply
a patch or patchset from this patch cache. The Enterprise Manager patch cache
stores the Oracle patches and patchsets that Enterprise Manager can stage, or
stage and apply to a host.
Perform the following steps to patch the database:
|
1. |
Open the browser and enter the URL to access the server on which you installed the management service, in the following format: http://<management service hostname>.<domain>:<port>/em/ The default port value on a machine with no other instances installed on it is 7777, which is also a Web cache port. However, if there are other instances running on the machine, then the port may be different. The Login page will be displayed. Enter the User Name and Password, and then click the Login button.
|
|
2. |
Click the Deployments tab.
|
| 3. |
The Deployments page in the Enterprise Manager Grid Control simplifies monitoring and management of your host configurations, database configurations, and client configurations. It serves as a starting point from which you can access many of Enterprise Manager's configuration features. You can use the Deployment page to:
|
| 4. |
To apply a patch to the Finance database, perform the following steps. Scroll down to the Patching section. Click the Patch Oracle Software link to open the patching wizard.
|
| 5. |
In the Patch Number field, enter the patch number that you want to search. You can also specify the platform and the language. Click the Search button.
|
| 6. |
Select the patch from the search results. Note: You can click the View ReadMe button to know more about the patch.
|
| 7. |
Click the Next button.
|
| 8. |
On this page, you select the destination Oracle homes where you want to stage the patch or patchset. The patching wizard maps some patch types to the appropriate targets types where the patch can be staged and applied. For example, if the patching wizard maps the selected patch to be of a database target patch type, the Destination Type box displays this target type. Under Available Targets, you can see a list of all the targets
by default. It also shows you whether the target is patched or not. You
can choose to repatch the target in case a new patch has been released
and the old one has been negated. Select the Finance database.
|
| 9. |
Click Move.
|
| 10. |
The Selected Targets list shows the Finance database. Click Next to continue.
|
| 11. |
On this page, you can choose to use the Oracle home preferred credentials
or override the preferred credentials and specify alternatives.
If you want to override the preferred credentials, you can further choose
to specify a different set of credentials for each home. To do this, select
"Each Home," in the Specify Credentials For drop-down
list.
|
| 12. |
Click Next.
|
| 13. |
On the Stage or Apply page, you can choose whether to stage or apply the selected patch or patchset. You can also customize the patching operation by specifying any prepatching or postpatching scripts that you may want to execute. You can use this screen to shut down or start up the Listener, DB Control. Optionally, you can also apply SQL if the patch requires it.
|
| 14. |
Click Next.
|
| 15. |
On the Schedule page, you can start an Enterprise Manager job to stage or stage and apply the selected patch on the hosts for the specified targets. Specify a name for the job in the Name field. You can use the Date and Time fields to schedule the patch job. The default date and time that is displayed in these fields is the current date and time, which means that the Enterprise Manager job system will run the patch job immediately after the job submission. Click Next.
|
| 16. |
Click Finish to submit the patch job.
|
Oracle home is the system context in which Oracle products run. The context consists of the directory location where the products are installed, the corresponding system path setup, and, where applicable, the program groups associated with the products installed in that home, and the services running from that home.
Cloning an Oracle home involves creating a copy of the Oracle home and then configuring it for a new environment. If you are performing multiple Oracle Database installations, then you may want to use this method to create each Oracle home because copying files from an existing Oracle Database installation takes less time than creating a new version of them. This method is also useful if the Oracle home that you are cloning has had patches applied to it. When you clone this Oracle home, the new Oracle home will have the patch updates as well.
Enterprise Manager Grid Control 10g R2 recognizes
most Oracle products as "out-of-box clonable." This means that the
installed Oracle homes of most Oracle products can be cloned as is, and do not
require any additional support files to perform the cloning operation. You
can use the Clone Oracle Home application to clone an Oracle home on a source
host to the same or different destination hosts.
The benefits of cloning an Oracle home include the following:
When
cloning a source Oracle home, using the Clone Oracle Home tool, all source home
patches and settings are seamlessly cloned to the new home. This cloning operation
is generally faster and more error free than manually creating a new home, and
applying all source home patches and settings in the new home.
Clone
Oracle Home uses the Enterprise Manager job system, which allows you to clone
a source home to multiple hosts and homes in a single cloning job. This is faster
than connecting to each host, and then running Oracle Universal Installer to
install the homes.
Also, Enterprise Manager enables you to deploy one or more Oracle Clusterware 10.2 instances similar in configuration to a source instance. Oracle Clusterware is an integrated cluster management solution that enables you to link multiple servers so that they function as a single system or cluster. Oracle Clusterware simplifies the infrastructure required for Real Application Clusters (RAC) because it is integrated with the Oracle Database. In addition, Oracle Clusterware is also available for use with single-instance databases and applications that you deploy on clusters.
Perform the following steps to clone an Oracle clustered home to extend it:
| 1. |
With Enterprise Manager, you can clone an Oracle home to one or more destination hosts. After you have an Oracle home in a known state (for example, you have chosen particular installation options for it, applied required patches to it, and tested the products in it), you may want to clone that Oracle home to one or more hosts. The Clone Oracle Home application can clone any Oracle home that Enterprise Manager recognizes as a clonable home. Click Clone Oracle Home.
|
| 2. |
Use the Source Home page to select the Oracle home you want to clone. This page, by default, lists all the existing clonable Oracle homes for all products. On this page, you can select the required Source Type. You can either search for installed Oracle homes or the Oracle homes that have been packaged into the Software Library. A Software Library is an infrastructure entity for storing and retrieving files and packages. In Enterprise Manager Grid Control version 10.2, the Software Library is intended to provide a common repository for software binaries, scripts, and other files that can be used by Cloning, Provisioning, and other applications. Select the required installation instance product that you want to clone.
|
| 3. |
Click Next to go to the Source Settings page.
|
| 4. |
You can use the Source Settings page to specify the required source setting parameters for the Oracle home cloning operation. Under the Cluster Details section, you can specify whether the source instance that you want to clone must be treated as a cluster or not. This section will be displayed only when you are performing a RAC (version 10.1 or 10.2) or an Oracle Clusterware (10.2) cloning operation. If the source database instance is part of a cluster, by default, Enterprise Manager displays all the existing nodes of that source cluster. Select the Source Home is clustered check-box to use the source instance as a cluster.
|
| 5. |
Scroll down the Source Settings page. Under Working Directory, enter a working directory location on the source host. This location is required to stage the files for cloning. Ensure that you specify an existing directory location.
In the Host Credentials section, specify the host (operating system) credentials of a user with read/write permissions at the source Oracle home. Click Next.
|
| 6. |
On this page, you can configure the product settings for the new database cluster clone. You must have selected Source is Clustered Home in the Source Settings page to get here. The Product Settings page displays the database that you have selected to clone, the source host name, and the source Oracle home location. Note: This page is displayed only if the selected source is a RAC (version 10.1 or 10.2) or Oracle Clusterware (version 10.2) Oracle home.
|
| 7. |
The Cluster Cloning Modes section of this page provides you with the option of either cloning the source home as a new clustered home or treats it as an extension of the source cluster.
Select the Extend the source cluster option to specify that you want to clone the clustered home to extend the cluster, and not create a new cluster.
|
| 8 |
Scroll down to the Destination Node Specification section. Specify
the destination host name and the appropriate Public node name. Alternatively,
you can click the flashlight icon to view the list of hosts in the window
that is displayed, and select the required host. Note: The application will show a warning if no Oracle Clusterware is found on the host. Click Next.
|
| 9. |
You need to specify the destination host and Oracle home for the new
clone on this page.
Click Next.
|
| 10. |
The Pre/Post Scripts page can be used to specify the location of the scripts that you may want to execute either before or after Oracle home cloning. For executing precloning or postcloning scripts, specify the location of the precloning and postcloning scripts in the respective fields, and select Execute. The preinstallation scripts will be run on the target hosts and not on the source hosts. Depending on the type of Oracle home that you are cloning, you may be required to run certain postinstallation scripts. While installing, some actions that need to be performed as root are recorded in a shell script called root.sh. Specify the root.sh script location on the destination host. This script will be executed on each destination host at the end of the cloning operation. If you are cloning to multiple Oracle homes, you can use the "%oracle_home%/root.sh" placeholder instead of entering multiple home locations. You can use the Use Sudo option to run this script. Note: The Use Sudo option is specific to the UNIX environment. If you want to execute the root.sh script on the destination hosts, ensure that the user credentials that you have provided for these hosts (on the Destinations page) have "sudo" privileges. This page is primarily used to customize your cloning operation, and
thus is not mandatory. If you do not want to customize the cloning operation,
you can leave this page blank, and proceed.
|
| 11. |
Click Next.
|
| 12. |
You can use the Schedule page to start an Enterprise Manager job
to clone the selected source Oracle home to the destination hosts. A job
is a schedulable unit of work that you define to automate commonly run
tasks. If you do not want the job to start immediately, click Later and use
the Date, Time, and Time Zone fields to schedule the clone job. Click Next.
|
| 13. |
You can use the Review page to review the summary of all the selections that you have made for the new Oracle home clone operation. Click Finish.
|
| 14. |
The Clone Oracle Home job has been submitted successfully.
|
An image can be defined as a specific set of software components, including the operating system that is bundled together, along with any collateral required by the installation process (such as directives and configuration information). Images are provisioned on one or more hardware targets. The image component in Provisioning will provide a complete list of all software and configuration information that is required to provision a hardware server. Software versions indicate the specific release of a product, a release modified by a patch, and/or a software bundle released or packaged by the vendor. Oracle Software Library maintains these software components.
Perform the following steps to create an image:
| 1. |
Click the Deployments tab.
|
| 2. |
Click the Provisioning subtab.
|
| 3. |
Click the Images subtab.
|
| 4. |
You can view a list of existing images based on different versions of the images such as Latest Version, Latest Active Version, Latest Mature Version, All Inactive Versions, and All Mature Versions.
|
| 5. |
To create an image, click the Create Image button.
|
| 6. |
The Create Image Wizard takes you through a step-by-step process. Use the Describe page to specify a name for the image in the Name field. Specify a brief description about this image.
|
| 7. |
Click Next to continue with the wizard.
|
| 8. |
This page is used to configure the new Red Hat Linux operating system component that you are creating. In the Reference Installation field, enter the name of a host that is running the same version of the Linux operating system that you are creating in the library. Alternatively, you can select the appropriate host name from the window that is displayed. To select a target, click Select Target.
|
| 9. |
The Search and Select: Targets window is displayed. From the Target Type drop-down list, select Host.
|
| 10. |
Select the host for which you want to create an image.
|
| 11. |
Click Select.
|
| 12. |
On the Configure page, in RPM Repository, select the appropriate RPM repository that identifies the network accessible directory that is hosting all the RPMs from the Linux distribution and all updated RPMs from the vendor. Select the appropriate time zone from the drop-down list. Enter the Root Password. Click Next.
|
| 13. |
Use the Customize page to customize the image instance that you are creating. Typically, the image that you can create through the Provisioning application will contain certain predefined properties that will be bundled into the image. You can use the Customize option in this application to further customize an image instance by adding the required properties. Click Next to continue.
|
| 14. |
You can use the Directives page to select directives that will stage and install the software components for that image. Directives are instructions or a set of commands that perform specific tasks. Click Choose Directives.
|
| 15. |
Select a directive and click OK.
|
| 16. |
Click Next.
|
| 17. |
Click Finish to create the image.
|
In this lesson, you learned how to:
| Patch the database | ||
| Clone an Oracle clustered home to extend it | ||
| Create an image | ||