oracle10g RAC补丁升级

发布时间:2011-01-01 12:48:13   来源:文档文库   
字号:

7.1.4 Upgrading Oracle Clusterware

The Oracle Clusterware software must be at the same or newer level as the Oracle software in the Oracle RAC Oracle home. Therefore, you should always upgrade Oracle Clusterware before you upgrade Oracle RAC. This patch does not allow you to upgrade Oracle RAC before you upgrade Oracle Clusterware.

7.7.2 Stopping All Processes for an Oracle Clusterware Installation

7.7.2.2 Non Rolling Upgrade

For non rolling upgrade, Oracle Clusterware needs to be shut down completely.

Complete the following steps:

Note:

You must perform these steps in the order listed.

1. Shut down all processes in the Oracle home on each node that might be accessing a database, for example Oracle Enterprise Manager Database Control or iSQL*Plus:

2. $ emctl stop dbconsole

3. $ isqlplusctl stop

4. $ lsnrctl stop

Note:

Before you shut down all processes that are monitored by Oracle Enterprise Manager Grid Control, set a blackout in Grid Control for the processes that you intend to shut down. This is necessary so that the availability records for these processes indicate that the shutdown was planned downtime rather than an unplanned system outage.

5. Shut down all services in the Oracle home on each node that might be accessing a database:

6. $ srvctl stop service -d db_name [-s service_name_list [-i inst_name]]

7. Shut down all Oracle RAC instances on all cluster nodes by entering the following command where db_name is the name of the database:

8. $ srvctl stop database -d db_name

9. If Automatic Storage Management instance is present, then shut down Automatic Storage Management instances on all cluster nodes by entering the following command where node is the name of the node where the Automatic Storage Management instance is running:

10. $ srvctl stop asm -n node

11. Stop all node applications on all cluster nodes by entering the following command as the root user, where node is the name of the node where the applications are running:

12. # srvctl stop nodeapps -n node

13. Shut down the Oracle Clusterware processes by entering the following command on all nodes as the root user:

14. # CRS_home/bin/crsctl stop crs

15. Complete the steps mentioned in Section 8.

Note:

The following instructions are displayed on the Oracle Universal Installer screen:

To complete the installation of this patch set, perform the following tasks on each node:

a. Log in as the root user and enter the following command to shut down the Oracle Clusterware:

b. # CRS_home/bin/crsctl stop crs

c. Run the root102.sh script to automatically start the Oracle Clusterware on the patched node:

d. # CRS_home/install/root102.sh

7.7.3 Stopping All Processes for an Oracle RAC Installation

Shut down the following Oracle Database 10g processes before installing the patch set:

1. Shut down all processes in the Oracle home on each node that might be accessing a database, for example Oracle Enterprise Manager Database Control or iSQL*Plus:

2. $ emctl stop dbconsole

3. $ isqlplusctl stop

Note:

Before you shut down all processes that are monitored by Oracle Enterprise Manager Grid Control, set a blackout in Grid Control for the processes that you intend to shut down. This is necessary so that the availability records for these processes indicate that the shutdown was planned downtime rather than an unplanned system outage.

4. Shut down all services in the Oracle home on each node that might be accessing a database:

5. $ srvctl stop service -d db_name [-s service_name_list [-i inst_name]]

6. Shut down all Oracle RAC instances on the nodes, which run from the Oracle home on which you are going to apply the patch set. To shut down all Oracle RAC instances for a database, enter the following command where db_name is the name of the database:

7. $ srvctl stop database -d db_name

8. If Automatic Storage Management instance is present, then shut down all Automatic Storage Management instances on all nodes. To shut down an Automatic Storage Management instance, enter the following command where node is the name of the node where the Automatic Storage Management instance is running:

9. $ srvctl stop asm -n node

This needs to be done only when patching the home from where ASM runs. It is recommended that ASM run from a different ORACLE_HOME than the database.

10. Stop any listeners that are running from the Oracle home that you are patching on all nodes. To stop the listener running on a node, enter the following command, where node is the name of the node where the listener is running:

11. $ srvctl stop listener -n node [-l listenername]

Note:

Using a logical standby database, you can upgrade Oracle Database software and patch sets with almost no downtime. Using Data Guard SQL Apply, you can perform a rolling upgrade of the Oracle Database software from release 10.2.0.1 to the current patch set release. During a rolling upgrade, you can run different releases of Oracle Database on the primary and logical standby databases, while you upgrade them, one at a time, incurring minimal downtime on the primary database.

See also:

Chapter 11, "Using SQL Apply to Upgrade the Oracle Database" of Oracle Data Guard Concepts and Administration.

7.8 Back Up the System

Oracle recommends that you create a backup of the Oracle Inventory, Oracle 10g home and Oracle 10g Database before you install the patch set. If you are planning to apply this patch to Oracle RAC, ensure that you create a backup of these components on all nodes before applying the patch.

See also:

Oracle Database Backup and Recovery User's Guide for more information.

8 Installation Tasks

You can install the patch set either interactively or noninteractively. See one of the following sections for information about how to complete the installation:

Note:

If you also plan to apply this patch to Oracle Clusterware, ensure that you apply the patch to Oracle Clusterware before applying it to Oracle Database. This is because Oracle Clusterware should always be at the same or later version as the database.

Installing the Oracle Database 10g Patch Set Interactively

Installing the Oracle Database 10g Patch Set Noninteractively

8.1 Installing the Oracle Database 10g Patch Set Interactively

To install the Oracle Database 10g patch set interactively:

Note:

If you attempt to install this patch set in an Oracle home directory that does not contain an Oracle Database 10g release 10.2.0.1 or higher installation, Oracle Universal Installer displays a warning dialog with the following error:

OUI-10091: There are no patches that need to be applied from the patch set Oracle Database 10g Release 2 Patch Set 3

10.2.0.4

The Oracle Universal Installer does not allow the installation to proceed. Click OK, then click Cancel to end the installation.

1. Log in as the oracle user.

2. If you are not installing the software on the local computer, then run the following command on remote machine:

o Bourne, Bash, or Korn shell:

o $ export DISPLAY=localhost:0.0

o C shell:

o % setenv DISPLAY local_host:0.0

In this example, local_host is the host name or IP address of the computer that you want to use to display Oracle Universal Installer.

Now to enable X applications, run the following command on the machine that you want to use to display Oracle Universal Installer:

$ xhost + [fully_qualified_remote_host_name]

3. Enter the following commands to start Oracle Universal Installer, where patchset_directory is the directory where you unpacked the patch set software:

4. % cd patchset_directory/Disk1

5. % ./runInstaller

6. On the Welcome screen, click Next.

7. On the Specify Home Details screen, select the name of the Oracle home that you want to update, or select the Path that you want to update from the list, then click Next.

8. If you are installing the patch set on an Oracle RAC cluster, click Next when the Selected Nodes screen appears.

9. On the Product-specific Prerequisite Checks screen, correct any reported errors, and click Next.

10. Enter details regarding the CSI Number, OracleMetaLink Account user name and Country code on the Oracle Configuration Manager Registration screen and click Next.

Note:

The registration and configuration can also be done manually after patchset installation.

The OCM registration page appears only while applying 10.2.0.4 patch over existing DB instances alone.

11. On the Summary screen, click Install.

This screen lists all of the patches available for installation.

12. When prompted, run the $ORACLE_HOME/root.sh script as the root user. If you are applying the patch set to an Oracle RAC installation, then run the root.sh script on each node of the cluster.

Note:

If you are applying this patch set to an Oracle Clusterware installation, then complete all of the steps displayed on the Oracle Universal Installer screen.

The Oracle Clusterware installation instructions displayed on the Oracle Universal Installer screen are also available in the CRS_home/install/readme.txt file.

o When applying this patch set on an Oracle Clusterware home, Oracle Universal Installer prompts you to run the root102.sh script from $ORACLE_HOME/install. You must run this script as the root user on all nodes.

o Before you add a new node, ensure that you run rootpre.sh script as the root user on the new node.

13. On the End of Installation screen, click Exit, then click Yes to exit from Oracle Universal Installer.

本文来源:https://www.2haoxitong.net/k/doc/892aba325a8102d276a22f48.html

《oracle10g RAC补丁升级.doc》
将本文的Word文档下载到电脑,方便收藏和打印
推荐度:
点击下载文档

文档为doc格式