Dell™ PowerEdge™ Systems Oracle Database 10g Extended Memory 64 Technology (EM64T) Enterprise Edition Linux Deployment Guide Version 2.1 w w w. d e l l . c o m | s u p p o r t . d e l l .
Notes and Notices NOTE: A NOTE indicates important information that helps you make better use of your computer. NOTICE: A NOTICE indicates either potential damage to hardware or loss of data and tells you how to avoid the problem. ____________________ Information in this document is subject to change without notice. © 2006 Dell Inc. All rights reserved. Reproduction in any manner whatsoever without the written permission of Dell Inc. is strictly forbidden.
Contents Oracle RAC 10g Deployment Service . . . . . . . . . . . . . . . . . . . . . . . Software and Hardware Requirements License Agreements . . . Important Documentation. Before You Begin . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 . . . . . . . . . . . . . . . . . . . . . . . . . . 7 7 7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installing and Configuring Red Hat Enterprise Linux . . . . . . . . . . . . . . .
Installing Oracle Database 10g . . . . . . . . . . . . Installing the Oracle Database 10g 10.2.0.2 Patchset Configuring the Listener . . . . . . . . . . . . . . . Creating the Seed Database . . . . . . . . . . . . . Adding and Removing Nodes . . . . . . . . . . . 36 37 38 38 . . . . . . . . . . . . . . . . . . . . . . . . . . 41 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 . . . . . . . . . . . . . . . . . . . . . . . . . .
This document provides information about installing, configuring, reinstalling, and using Oracle Database 10g Enterprise Edition with the Oracle Real Application Clusters (RAC) software on your Dell|Oracle supported configuration. Use this document in conjunction with the Dell Deployment, Red Hat Enterprise Linux, and Oracle RAC 10g software CDs to install your software. NOTE: If you install your operating system using only the operating system CDs, the steps in this document may not be applicable.
Software and Hardware Requirements Before you install the Oracle RAC software on your system: • Download the Red Hat CD images from the Red Hat website at rhn.redhat.com. • Locate your Oracle CD kit. • Download the Dell Deployment CD images that are appropriate for the solution being installed from the Dell|Oracle Tested and Validated Configurations website at www.dell.com/10g. Burn all these downloaded CD images to CDs.
Table 1-2. Minimum Hardware Requirements—Fibre Channel Cluster (continued) Hardware Component Configuration Gigabit Ethernet switch (two) See the Dell|Oracle Tested and Validated Configurations website at www.dell.com/10g for information on supported configurations Dell|EMC Fibre Channel switch (two) Eight ports for two to six nodes 16 ports for seven or eight nodes Table 1-3.
5 In the Channel Name menu, click the appropriate ISO image for your Red Hat Enterprise Linux software. 6 Download the ISOs for your Red Hat Enterprise Linux software as listed in your Solution Deliverable List (SDL) from the Dell|Oracle Tested and Validated Configurations website at www.dell.com/10g. 7 Burn the ISO images to CDs.
10 When the Security Level window appears, disable the firewall. You may enable the firewall after completing the Oracle deployment. 11 Log in as root. Configuring Red Hat Enterprise Linux 1 Log in as root. 2 Insert the Dell Deployment CD 2 into the CD drive and type the following commands: mount /dev/cdrom /media/cdrom/install.sh The contents of the CD are copied to the /usr/lib/dell/dell-deploy-cd directory. When the copy procedure is completed, type umount /dev/cdrom and remove the CD from the CD drive.
Verifying Cluster Hardware and Software Configurations Before you begin cluster setup, verify the hardware installation, communication interconnections, and node software configuration for the entire cluster. The following sections provide setup information for hardware and software Fibre Channel cluster configurations. Fibre Channel Cluster Setup Your Dell Professional Services representative completed the setup of your Fibre Channel cluster.
Table 1-4.
Fibre Channel Hardware and Software Configurations • Each node must include the minimum hardware peripheral components as described in Table 1-2. • Each node must have the following software installed: • – Red Hat Enterprise Linux software (see Table 1-1) – Fibre Channel HBA driver The Fibre Channel storage system must be configured with the following: – A minimum of three LUNs created and assigned to the cluster storage group (see Table 1-5) – A minimum LUN size of 5 GB Table 1-5.
Figure 1-2. Cabling in a Direct-Attached Fibre Channel Cluster node 1 node 2 HBA ports (2) HBA ports (2) 0 1 0 1 SP ports SP-B 3 2 1 0 0 1 2 3 SP-A CX700 storage system Direct-Attached Configuration To configure your nodes in a direct-attached configuration (see Figure 1-2), perform the following steps: 1 Connect one optical cable from HBA0 on node 1 to port 0 of SP-A. 2 Connect one optical cable from HBA1 on node 1 to port 0 of SP-B.
Figure 1-3. Cabling in a SAN-Attached Fibre Channel Cluster node 2 node 1 0 1 HBA ports (2) HBA ports (2) sw0 0 1 sw1 SP ports 3 2 SP-B 1 0 0 1 2 3 CX700 storage system SP-A SAN-Attached Configuration To configure your nodes in a four-port SAN-attached configuration (see Figure 1-3), perform the following steps: 1 Connect one optical cable from SP-A port 0 to Fibre Channel switch 0. 2 Connect one optical cable from SP-A port 1 to Fibre Channel switch 1.
7 Connect one optical cable from SP-B port 2 to Fibre Channel switch 1. 8 Connect one optical cable from SP-B port 3 to Fibre Channel switch 0. 9 Connect one optical cable from HBA0 on node 1 to Fibre Channel switch 0. 10 Connect one optical cable from HBA1 on node 1 to Fibre Channel switch 1. 11 Connect one optical cable from HBA0 on node 2 to Fibre Channel switch 0. 12 Connect one optical cable from HBA1 on node 2 to Fibre Channel switch 1.
Configuring the Public Network NOTE: Ensure that your public IP address is a valid, routable IP address. If you have not already configured the public network, do so by performing the following steps on each node: 1 Log in as root.
3 For high availability, edit the /etc/modprobe.conf file and set the option for link monitoring. The default value for miimon is 0, which disables link monitoring. Change the value to 100 milliseconds initially, and adjust it as needed to improve performance as shown in the following example. Type: options bonding miimon=100 mode=1 4 In the /etc/sysconfig/network-scripts/ directory, create or edit the ifcfg-bond0 configuration file.
8 Type ssh to connect to each node and verify that the private network and ssh are functioning correctly. 9 On each node, modify the /etc/hosts file by adding the following lines: 127.0.0.1 localhost.
4 On each node, type: more /proc/partitions The node detects and displays the LUNs or logical disks, as well as the partitions created on those external devices. NOTE: The listed devices vary depending on how your storage system is configured. A list of the LUNs or logical disks that are detected by the node is displayed, as well as the partitions that are created on those external devices. PowerPath pseudo devices appear in the list, such as /dev/emcpowera, /dev/emcpowerb, and /dev/emcpowerc.
3 On all the nodes, perform the following steps: a Edit the /etc/sysconfig/rawdevices file and add the following lines for a Fibre Channel cluster: /dev/raw/votingdisk /dev/raw/ocr.dbf /dev/raw/spfile+ASM.ora /dev/emcpowera1 /dev/emcpowera2 /dev/emcpowera3 b Type udevstart to create the RAW devices. c Type service rawdevices restart to restart the RAW Devices Service.
Configuring the Storage Using the RAW Device Interface 1 Edit the /etc/sysconfig/rawdevices file and add the following lines for a Fibre Channel cluster: /dev/raw/ASM1 /dev/raw/ASM2 /dev/emcpowerb1 /dev/emcpowerc1 2 Type udevstart to create the RAW devices. 3 Type service rawdevices restart to restart the RAW Devices Service. 4 To add an additional ASM disk (for example, ASM3), edit the /etc/udev/scripts/raw-dev.
5 Verify that the ASM disks are created and marked for ASM usage. In the terminal window, type the following and press : service oracleasm listdisks The disks that you created in step 3 appear. For example: ASM1 ASM2 6 Ensure that the remaining nodes are able to access the ASM disks that you created in step 3.
5 Type: /cluvfy/runcluvfy.sh stage -pre crsinst -n node1,node2 -r 10gR2 -verbose where node1 and node2 are the public host names. If your system is not configured correctly, troubleshoot the issues and then repeat the runcluvfy.sh command, above. If your system is configured correctly, the following message appears: Pre-check for cluster services setup was successful on all the nodes.
13 In the Specify Network Interface Usage window, ensure that the public and private interface names are correct. To modify an interface, perform the following steps: a Select the interface name and click Edit. b In the Edit private interconnect type window in the Interface Type box, select the appropriate interface type and then click OK. c In the Specify Network Interface Usage window, ensure that the public and private interface names are correct, and then click Next.
20 On all nodes, perform the following steps: a Verify the Clusterware installation by typing the following command: olsnodes -n -v A list of the public node names of all nodes in the cluster appears. b Type: crs_stat -t All running Clusterware services appear. Installing the Oracle Database 10g Software 1 Log in as root, and type: cluvfy stage -pre dbinst -n node1,node2 -r 10gR2 -verbose where node1 and node2 are the public host names.
11 In the Summary window, click Install. The Oracle Database software is installed on your cluster. Next, the Execute Configuration Scripts window appears. 12 Follow the instructions in the window and click OK. 13 In the End of Installation window, click Exit. RAC Post Deployment Fixes and Patches This section provides the required fixes and patch information for deploying Oracle RAC 10g.
Upgrading the Clusterware Installation 1 On node 1, log in as root. 2 Shut down the Clusterware. To do so, type the following in the terminal window and press : crsctl stop crs 3 On the remaining nodes, open a terminal window and repeat step 1 and step 2. 4 On node 1, log in as oracle. 5 In the terminal window, type the following and press : export ORACLE_HOME=/crs/oracle/product/10.2.0/crs 6 Start the Oracle Universal Installer.
Upgrading the RAC Installation 1 On node 1, open a terminal window. 2 Log in as oracle. 3 Run the Oracle Universal Installer from the same node that you installed the Oracle Database software. a On node 1, open a terminal window. b Log in as oracle. c Shut down the Clusterware node applications on all nodes. In the terminal window, type the following and press : $ORACLE_HOME/bin/srvctl stop nodeapps -n NOTE: Ignore any warning messages that may appear.
16 Repeat step 14 and step 15 on the remaining nodes, one node at a time. When the installation is completed, the End of Installation screen appears. NOTE: This procedure may take several minutes to complete. 17 In the End of Installation screen, click Exit. 18 Click Yes to exit the Oracle Universal Installer. 19 On node 1, open a terminal window. 20 Log in as oracle. 21 Type the following and press : srvctl start nodeapps -n Where is the public host name of the node.
9 On the Listener Configuration, Listener Name window, type LISTENER in the Listener Name field and click Next. 10 On the Listener Configuration, Select Protocols window, select TCP and click Next. 11 On the Listener Configuration, TCP/IP Protocol window, select Use the standard port number of 1521 and click Next. 12 On the Listener Configuration, More Listeners? window, select No and click Next. 13 On the Listener Configuration Done window, click Next. 14 Click Finish.
12 When a message appears indicating that DBCA is ready to create and start the ASM instance, click OK. 13 Under ASM Disk Groups, click Create New. 14 In the Create Disk Group window, perform the following steps: a Enter a name for the disk group to be created, such as databaseDG, select External Redundancy, and then select the disks to include in the disk group. If you are using the RAW device interface, select /dev/raw/ASM1. A window appears indicating that disk group creation is in progress.
25 Perform the following steps on each node: a Type srvctl status database -d to determine which database instance exists on that node. b Type the following commands to add the ORACLE_SID environment variable entry in the oracle user profile: echo "export ORACLE_SID=racdbx" >> /home/oracle/.bash_profile source /home/oracle/.bash_profile where racdbx is the database instance identifier assigned to the node.
Configuring and Deploying Oracle Database 10g (Single Node) This section provides information about completing the initial setup or completing the reinstallation procedures as described in "Installing and Configuring Red Hat Enterprise Linux.
8 Edit the /etc/fstab file for the newly created file system by adding entries such as: /dev/sdb1 /opt/oracle/oradata ext3 defaults 1 2 /dev/sdc1 /opt/oracle/recovery ext3 defaults 1 2 9 Type: mount /dev/sdb1 /opt/oracle/oradata mount /dev/sdc1 /opt/oracle/recovery 10 Type: chown -R oracle.
To permanently disable SELinux, perform the following steps: 1 Open your grub.conf file. 2 Locate the kernel command line and append the following option: selinux=0 For example: kernel /vmlinuz-2.6.9-34.ELlargesmp ro root=LABEL=/ apic rhgb quiet selinux=0 3 Reboot your system. 4 Open a terminal window and log in as root.
Installing Oracle Database 10g Perform the following steps to install Oracle 10g: 1 Log in as root. 2 As user root, mount the Oracle Database 10g CD. 3 Type startx to start the X Window System. 4 Open a terminal window and type: xhost + 5 Log in as oracle. 6 Start the Oracle Universal Installer. In the terminal window, type the following and press : /runInstaller 7 In the Select Installation Method window, click Advanced Installation and then click Next.
Installing the Oracle Database 10g 10.2.0.2 Patchset Downloading and Extracting the Installation Software 1 Log in as oracle. 2 Create a folder for the patches and utilities at /opt/oracle/patches. 3 Open a web browser and navigate to the Oracle Metalink website at metalink.oracle.com. 4 Log in to your Oracle Metalink account. 5 Search for the patch number 4547817 with Linux x86-64 (AMD64/EM64T) as the platform. 6 Download the patch to the /opt/oracle/patches directory.
11 Press to accept the default answers to the questions generated by root.sh. NOTE: This procedure may take several minutes to complete. 12 When you complete executing root.sh, go back to Execute Configuration Scripts window and click OK. 13 In the End of Installation screen, click Exit. 14 Click Yes to exit the Oracle Universal Installer. 15 Restart the cssd process. To do so, type the following and press : /etc/init.d/init.cssd start Configuring the Listener 1 Log in as root.
11 In the Recovery Configuration window, click Browse, select the flashback recovery area that you created in "Configuring Database Storage Using ex3 File System" (for example, /opt/oracle/recovery), change the Flash Recovery Area size as needed, and click Next. 12 In the Database Content window, click Next. 13 In the Initialization Parameters window, click Next. 14 In the Database Storage window, click Next. 15 In the Creation Options window, click Create Database and click Finish.
10 When a message appears indicating that DBCA is ready to create and start the ASM instance, click OK. 11 In the ASM Disk Groups window, under Available Disk Groups, click Create New. 12 In the Create Disk Group window, enter the storage information for the database files and click OK. a Enter a name for the disk group to be created, such as databaseDG, select External Redundancy, and select the disks to include in the disk group. b If you are using the RAW device interface, select /dev/raw/ASM1.
23 Click Exit. 24 When database creation is completed, type the following commands to add the ORACLE_SID environment variable entry in the oracle user profile: echo "export ORACLE_SID=oradb" >> /home/oracle/.bash_profile source /home/oracle/.bash_profile This example assumes that oradb is the global database name that you defined in DBCA. NOTE: See the section "Securing Your System" and follow the steps for additional security setup.
Configuring the Shared Storage on the New Node To extend an existing RAC database to your new nodes, configure storage for the new nodes so that the storage is the same as on the existing nodes. This section provides the appropriate procedures for ASM. Configuring Shared Storage Using ASM If you are using ASM, ensure that the new nodes can access the ASM disks with the same permissions as the existing nodes. To configure the ASM disks: 1 Log in as root.
8 Ensure that the new node can access the ASM disks. In the terminal, type the following and press : service oracleasm scandisks 9 Ensure that the ASM disks are available on the new node. In the terminal window, type the following and press : service oracleasm listdisks All available disks on the remaining nodes are listed. For example: ASM1 ASM2 Adding a New Node to the Clusterware Layer 1 Log in as oracle into one of the existing nodes. 2 From the /crs/oracle/product/10.2.
4 In the Specify Cluster Nodes for Node Addition window, verify that the new node is selected and click Next. If all the verification checks pass, the Cluster Node Addition Summary window appears. 5 Click Install. The Cluster Node Addition Progress window displays the status of the node addition process. 6 When prompted, as user root run /opt/oracle/product/10.2.0/db_1/root.sh on the new node and press when asked to enter the full path name of the local bin directory. 7 When root.
Adding a New Node to the Database Instance Layer 1 On one of the existing nodes, as user oracle, type dbca & to start DBCA. 2 In the Welcome window, click Next. 3 In the Operations window, click Instance Management and click Next. 4 In the Instance Management window, click Add Instance and click Next. 5 In the List of Cluster Databases window, select the existing database.
4 In the Operations window, click Instance Management and click Next. 5 In the Instance Management window, click Delete an instance and click Next. 6 In the List of Cluster Databases window, select a RAC database from which to delete an instance. If your user name is not operating system-authenticated, the DBCA prompts you for a user name and password for a database user with SYSDBA privileges. 7 Enter the user name sys and the password, and click Next.
To Stop and Remove ASM From the Node That is Deleted On one of the remaining nodes, perform the following steps: 1 Open a terminal window. 2 Type: srvctl stop asm -n where is the node you want to remove from the cluster. 3 Type: srvctl remove asm -n where is the node you want to remove from the cluster. Deleting the Node From the Database Layer 1 On the node being deleted, log in as oracle.
Reinstalling the Software NOTICE: Reinstalling the software erases all information on the hard drives. NOTICE: You must disconnect all external storage devices from the system before you reinstall the software. NOTICE: Dell recommends that you perform regular backups of your database and individual nodes so that you do not lose valuable data. Reinstall the node software only if you have no other options.
Table 1-7. Supported Software Versions (continued) Software Component Supported Versions QLogic HBA QLE2460 (QLA2400) 8.01.02-d4 QLogic HBA QLE2462 (QLA2400) 8.01.02-d4 Emulex HBA LP1000 & LP1150e (lpfc) 8.0.16.18 PERC 4e/Si, PERC 4e/Di (megaraid_mbox) 2.20.4.6 PERC 5/e, PERC 5/I (megaraid_sas) 00.00.02.00 Intel PRO/100 S NIC driver (e100) 6.1.16-k3-NAPI Intel PRO/1000 XT/MT/MT DP NIC driver (e1000) 6.1.16-k3-NAPI Broadcom NetXtreme BCM5704 (tg3) 3.
4 View the /etc/modprobe.conf file by typing: more /etc/modprobe.conf Several lines appear with the format alias ethx driver-module, where x is the Ethernet interface number and driver-module is the module you determined in step 3. For example, the line alias eth1 tg3 appears if your operating system assigned eth1 to a Broadcom NetXtreme Gigabit NIC. 5 Determine which Ethernet interfaces (ethx) are assigned to the type of Gigabit NIC that is connected to the Gigabit switch.
Table 1-9. Troubleshooting (continued) Category Problem / Symptom Cause Recommended Corrective Action Database ERROR IN KQLMBIVG SEE LCK TRACE FILE" [LT] [LB] KJUSERCLIENT LOCK Due to Oracle bug Apply patch 4690794 available on the Oracle Metalink 4690794. See the website at metalink.oracle.com. Oracle Metalink website at metalink.oracle.com. Database LMD0 PROCESS Due to Oracle bug RECEIVED OS 5036588.
Table 1-9. Category Troubleshooting (continued) Problem / Symptom Performance Unknown interface and stability type warning appears in Oracle alert file. Poor system performance. Cause Recommended Corrective Action The public interface Force cluster communications to the private interface is configured as by performing the following steps on one node: cluster 1 Log in as oracle. communications 2 Type sqlplus "/ as sysdba" at the command (private interface). prompt. The SQL> prompt appears.
Table 1-9. Troubleshooting (continued) Category Problem / Symptom Cause CRS CRS fails to start when you reboot the nodes, or type /etc/ini.d/ini t.crs start. • Attempt to start the service again by rebooting the The Cluster Ready node or typing root.sh from Services CSS /crs/oracle/product/10.2.0/crs/. daemon cannot write to the quorum disk. • Verify that each node has access to the quorum disk and the root user can write to the disk. • Check the last line in the file $ORA_CRS_HOME/css/log/ocssd.log.
Table 1-9. Troubleshooting (continued) Category Problem / Symptom Cause CRS When you run Other CRS root.sh, CRS fails to troubleshooting steps start. are attempted without success. Recommended Corrective Action 1 Enable debugging by adding the following line to root.sh: set -x 2 Attempt to start the service again by running root.sh from: /crs/oracle/product/10.2.
Table 1-9. Troubleshooting (continued) Category Problem / Symptom Cause DBCA There is no response Java Runtime Click again. If there is still no response, restart DBCA. when you click OK Environment timing in the DBCA issue. Summary window. Software installation You receive dd failure error messages while installing the software using Dell Deployment CD 1.
Table 1-9. Troubleshooting (continued) Category Problem / Symptom Fibre Channel storage system You receive I/O The HBA driver, errors and warnings BIOS, or firmware when you load the needs to be updated. Fibre Channel HBA driver module. ASM Library When you type Driver service oracleasm start, the procedure fails. Operating System Cause SELinux is enabled. When you add a Kudzu is disabled. new peripheral device to your PowerEdge system, the operating system does not recognize the device.
Obtaining and Using Open Source Files The software contained on the Dell Deployment CD is an aggregate of third-party programs as well as Dell programs. Use of the software is subject to designated license terms. All software that is designated as "under the terms of the GNU GPL" may be copied, distributed, and/or modified in accordance with the terms and conditions of the GNU General Public License, Version 2, June 1991.
Deployment Guide
Index A adding and removing nodes, 41 additional configuration options adding and removing nodes, 41 additional information, 48 determining the private network interface, 49 ASM configuring database storage, 34 B bonding, 16 C cluster Fibre Channel hardware connections, example, 10 cluster setup Fibre Channel, 10 configuring database storage (single node), 33 database storage (single node) using ASM, 34 database storage (single node) using ex3, 33 Oracle Database 10g (single node), 33 Oracle RAC 10g, 15
Index G N getting help, 56 node adding and removing, 41 removing, 45 H reinstalling software, 48 remote shell (rsh) disabling, 32 removing a node, 45 hardware Fibre Channel cluster minimum requirements, 6 Fibre Channel interconnections, 11 single-node minimum requirements, 7 hardware and software configurations Fibre Channel, 12 I installing CRS, 22 Oracle Database 10g, 25 Oracle Database 10g (single node), 36 Oracle RAC 10g, 22 Red Hat Enterprise Linux, 8 using Dell Deployment CD, 8 integrated
Dell™ PowerEdge™ 系统 Oracle Database 10g 64 位扩 展内存技术 (EM64T) 企业版 Linux 部署指南 2.1 版 w w w. d e l l . c o m | s u p p o r t . d e l l .
注和注意 注:注表示可以帮助您更好地使用计算机的重要信息。 注意:注意表示可能会损坏硬件或导致数据丢失,并告诉您如何避免此类问题。 ____________________ 本说明文件中的信息如有更改,恕不另行通知。 © 2006 Dell Inc. 版权所有,翻印必究。 未经 Dell Inc. 书面许可,严禁以任何形式进行复制。 本文中使用的商标:Dell、DELL 徽标和 PowerEdge 是 Dell Inc. 的商标; EMC、PowerPath 和 Navisphere 是 EMC Corporation 的注 册商标; Intel 和 Xeon 是 Intel Corporation 的注册商标; Red Hat 是 Red Hat, Inc. 的注册商标。 本文件中述及的其它商标和产品名称是指拥有相应商标和名称的公司或其制造的产品。 Dell Inc.
目录 Oracle RAC 10g 部署服务. 软件和硬件要求 . 许可协议 . . . 重要说明文件 . 开始之前 . . . . . . . . . . . . . . . . . . . . . 65 . . . . . . . . . . . . . . . . . . . . . . . . 66 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 安装和配置 Red Hat Enterprise Linux . . . . . . . . . . 使用 Deployment CD 安装 Red Hat Enterprise Linux . 配置 Red Hat Enterprise Linux . . . . . . . . . . . . 使用 Red Hat Network 对系统软件包进行更新 . . .
配置和部署 Oracle Database 10g(单个节点) . 配置公共网络 . . . . . . . . . . . . . . . . . . . 配置数据库存储 . . . . . . . . . . . . . . . . . 使用 Oracle ASM 库驱动程序配置数据库存储. 安装 Oracle Database 10g. . . . . . . . . . . . . 安装 Oracle Database 10g 10.2.0.2 增补软件集 . 配置监听程序 . . . . . . . . . . . . . . . . . . . 创建基础数据库 . . . . . . . . . . . . . . . . . 添加和删除节点 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93 93 93 94 96 97 98 98 101 .
本说明文件介绍有关在 Dell|Oracle 支持的配置上安装、配置、重新安装和使用 Oracle Database 10g 企业版及 Oracle Real Application Clusters (RAC) 软件的信息。请将本说明文件与 Dell Deployment CD、Red Hat Enterprise Linux CD 和 Oracle RAC 10g 软件 CD 配合使用来安装软件。 注:如果您仅使用操作系统 CD 来安装操作系统,则本说明文件中的步骤可能不适用。 本说明文件包括以下主题: • 软件和硬件要求 • 安装和配置 Red Hat® Enterprise Linux • 验证群集硬件与软件配置 • 为 Oracle RAC 配置存储和网络 • 安装 Oracle RAC • 配置和安装 Oracle Database 10g(单个节点) • 添加和删除节点 • 重新安装软件 • 附加信息 • 故障排除 • 获得帮助 • 获取和使用开放源代码文件 有关 Dell 支持的 Oracle 配置的详情,请参阅“经 Dell|Oracle 测试
软件和硬件要求 在系统上安装 Oracle RAC 软件之前: • 从 Red Hat 网站 rhn.redhat.com 下载 Red Hat CD 映像。 • 找到 Oracle CD 套件。 • 从“经 Dell|Oracle 测试和验证的配置”网站 www.dell.com/10g 下载适用于要安装的解决方案 的 Dell Deployment CD 映像。将所有这些下载的 CD 映像刻录成 CD。 表 1-1 列出了 Dell 支持的 Oracle 配置的基本软件要求。表 1-2 至表 1-3 列出了硬件要求。有关驱动 程序和应用程序最低软件版本的详情,请参阅“支持的软件版本。” 表 1-1. 软件要求 软件组件 配置 Red Hat Enterprise Linux AS EM64T (第 4 版) 更新 3 Oracle Database 10g 10.2 版 • 企业版,包括用于群集的 RAC 选件 • 用于单个节点配置的企业版 EMC® PowerPath® 4.5.
表 1-2. 最低硬件要求 — 光纤信道群集 (续) 硬件组件 配置 千兆位以太网交换机(两个) 有关支持的配置信息,请访问“经 Dell|Oracle 测试和验证的配置” 网站 www.dell.com/10g Dell|EMC 光纤信道交换机(两个) 用于两个至六个节点的八个端口 用于七个或八个节点的十六个端口 表 1-3. 最低硬件要求 — 单个节点 硬件组件 配置 PowerEdge 系统 Intel Xeon 处理器系列 1 GB 的 RAM 连接至 PERC 的两个 73 GB 硬盘驱动器 (RAID 1) 两个 NIC 端口 Dell|EMC 光纤信道存储系统(可选) 有关支持的配置信息,请访问“经 Dell|Oracle 测试和验证的配置” 网站 www.dell.
5 在 Channel Name(信道名称)菜单中,单击与 Red Hat Enterprise Linux 软件对应的 ISO 映像。 6 从“经 Dell|Oracle 测试和验证的配置”网站 www.dell.
配置 Red Hat Enterprise Linux 1 作为 root 用户登录。 2 将 Dell Deployment CD 2 插入 CD 驱动器,然后键入以下命令: mount /dev/cdrom /media/cdrom/install.sh CD 中的内容将被复制到 /usr/lib/dell/dell-deploy-cd 目录中。复制过程完成后,键入 umount /dev/cdrom,然后从 CD 驱动器中取出 CD。 3 键入 cd /dell-oracle-deployment/scripts/standard,浏览至含有从 Dell Deployment CD 安装的脚本的目录。 注:脚本将查找并验证安装的组件版本,并根据需要将组件更新为支持的级别。 4 键入 ./005-oraclesetup.py,配置 Red Hat Enterprise Linux 以便安装 Oracle。 5 键入 source /root/.bash_profile 以启动环境变量。 6 键入 ./010-hwCheck.
验证群集硬件与软件配置 在开始群集设置之前,请验证整个群集的硬件安装、通信互连和节点软件配置。以下各节提供了有 关硬件和软件光纤信道群集配置的设置信息。 光纤信道群集设置 Dell 专业服务代表已为您完成了光纤信道群集的设置。请根据本节所述的内容,验证硬件连接以及 硬件和软件配置。图 1-1 和图 1-3 所示为群集要求的连接概览,表 1-4 概述了群集连接。 图 1-1.
表 1-4.
光纤信道硬件和软件配置 • 每个节点都必须包含表 1-2 中说明的最低要求的硬件外围组件。 • 每个节点均必须安装以下软件: • – Red Hat Enterprise Linux 软件(请参阅表 1-1) – 光纤信道 HBA 驱动程序 光纤信道存储系统必须具有以下配置: – 创建并分配给群集存储组至少三个 LUN(请参阅表 1-5) – LUN 大小至少为 5 GB 表 1-5.
图 1-2.
图 1-3.
8 从 SP-B 端口 3 至光纤信道交换机 0 连接一条光缆。 9 从节点 1 上的 HBA0 至光纤信道交换机 0 连接一条光缆。 10 从节点 1 上的 HBA1 至光纤信道交换机 1 连接一条光缆。 11 从节点 2 上的 HBA0 至光纤信道交换机 0 连接一条光缆。 12 从节点 2 上的 HBA1 至光纤信道交换机 1 连接一条光缆。 为 Oracle RAC 10g 配置存储和网络 本节介绍了对运行基础 (seed) 数据库的光纤信道群集进行设置的信息和过程: • 配置公共和专用网络 • 保护系统 • 验证存储配置 • 为群集就绪服务 (CRS) 和 Oracle 数据库配置共享存储 Oracle RAC 10g 是一项复杂的数据库配置,要求按顺序执行以下一系列过程。要想用最少的时间配 置网络和存储,请按顺序执行以下过程。 配置公共和专用网络 本节将向您介绍配置公共和专用群集网络的步骤。 注:每个节点都需要一个唯一的公共和专用网际协议 (Internet Protocol, IP) 地址,以及一个附加公共 IP 地 址,该附加公共 IP 地址作为客户端连接
配置公共网络 注:确保公共 IP 地址是有效且可路由的 IP 地址。 如果您尚未配置公共网络,请在每个节点上执行以下步骤进行配置: 1 作为 root 用户登录。 2 编辑网络设备文件 /etc/sysconfig/network-scripts/ifcfg-eth#,其中 # 是网络设备号,并按以下方 式配置文件: DEVICE=eth0 ONBOOT=yes IPADDR=< 公共 IP 地址 > NETMASK=< 子网掩码 > BOOTPROTO=static HWADDR= SLAVE=no 3 编辑 /etc/sysconfig/network 文件,如果需要,用完全限定的公共节点名称替换 localhost.localdomain。 例如,节点 1 对应的行应该如下所示: HOSTNAME=node1.domain.
4 在 /etc/sysconfig/network-scripts/ 目录中,创建或编辑 ifcfg-bond0 配置文件。 例如,使用样本网络参数时,该文件会显示如下: DEVICE=bond0 IPADDR=192.168.0.1 NETMASK=255.255.255.0 NETWORK=192.168.0.0 BROADCAST=192.168.0.
9 在每个节点上,添加以下行来修改 /etc/hosts 文件: 127.0.0.1 localhost.localdomain < 专用 IP node1> < 专用主机名 node1> < 专用 IP node2> < 专用主机名 node2> localhost < 公共 IP node1> < 公共主机名 node1> < 公共 IP node2> < 公共主机名 node2 > < 虚拟 IP node1> < 虚拟主机名 node1> < 虚拟 IP node2> < 虚拟主机名 node2> 注:本步骤和以下步骤中的示例针对的是双节点配置;其它每个节点都应该添加以下行。 10 在每个节点上,通过列出所有公共 IP 地址或主机名来创建或修改 /etc/hosts.
屏幕将显示一个列表,列出节点检测到的 LUN 或逻辑磁盘以及在这些外部设备上创建的分区。 列表中还将列出 PowerPath 虚拟设备,如 /dev/emcpowera、/dev/emcpowerb 和 /dev/emcpowerc。 5 在 /proc/partitions 文件中,确保: • 对于所有节点,出现在该文件中的所有 PowerPath 虚拟设备都具有类似的设备名称。 例如,/dev/emcpowera、dev/emcpowerb 和 /dev/emcpowerc。 • 光纤信道 LUN 显示为 SCSI 设备,且每个节点均配置了相同数量的 LUN。 例如,如果对节点进行配置,使 SCSI 驱动器或 RAID 容器连接到具有三个逻辑磁盘的光 纤信道存储设备,则 sda 可以识别节点的 RAID 容器或内部驱动器,而 emcpowera、 emcpowerb 和 emcpowerc 可以识别 LUN(或 PowerPath 虚拟设备)。 如果外部存储设备未出现在 /proc/partitions 文件中,请重新引导该节点。 为群集件配置共享存储 本节介绍为 Oracle 群集件配置共享
使用 ASM 为数据库配置共享存储 本节介绍使用 ASM 配置共享存储的过程。 注:在配置 ASM 库驱动程序之前,先禁用 SELinux。 要临时禁用 SELinux,请执行以下步骤: 1 作为 root 用户登录。 2 在命令提示符下键入: setenforce 0 要永久禁用 SELinux,请在所有节点上执行以下步骤: 1 打开 grub.conf 文件。 2 找到内核命令行,并添加以下选项: selinux=0 例如: kernel /vmlinuz-2.6.9-34.
4 要添加附加的 ASM 磁盘(例如,ASM3),请编辑所有节点上的 /etc/udev/scripts/raw-dev.sh 文 件,并按如下所示添加相应的粗体条目。 MAKEDEV raw mv /dev/raw/raw1 /dev/raw/votingdisk mv /dev/raw/raw2 /dev/raw/ocr.dbf mv /dev/raw/raw3 /dev/raw/spfile+ASM.ora mv /dev/raw/raw4 /dev/raw/ASM1 mv /dev/raw/raw5 /dev/raw/ASM2 mv /dev/raw/raw6 /dev/raw/ASM3 chmod 660 /dev/raw/{votingdisk,ocr.dbf,spfile+ASM.ora,ASM1,ASM2,ASM3} chown oracle.dba /dev/raw/{votingdisk,ocr.dbf,spfile+ASM.
5 验证是否已为使用 ASM 创建和标记了 ASM 磁盘。 在终端窗口中,键入下列命令并按 键: service oracleasm listdisks 屏幕将显示在步骤 3 中创建的磁盘。 例如: ASM1 ASM2 6 确保其它节点可以访问您在步骤 3 中创建的 ASM 磁盘。 在其它每个节点上,打开终端窗口,键入以下命令并按 键: service oracleasm scandisks 安装 Oracle RAC 10g 本节将说明安装 Oracle RAC 10g 所需的步骤,其中包括安装 CRS 和安装 Oracle Database 10g 软件。 Dell 建议您创建基础 (seed) 数据库,以便在生产环境下部署群集之前先检查群集是否工作正常。 开始之前 要避免在安装过程中出现故障,请为所有节点配置完全相同的系统时钟设置。 使节点系统时钟与网络时间协议 (NTP) 服务器同步。如果您无法访问 NTP 服务器,请执行以下过 程之一: • 确保 Oracle 数据库软件安装节点上的系统时钟设置为比其它节点的时钟稍晚一些。 • 将其中一个节点配置为 N
5 键入: /cluvfy/runcluvfy.sh stage -pre crsinst -n node1,node2 -r 10gR2 -verbose 其中,node1 和 node2 是公共主机名。 如果系统配置不正确,则排除相关的问题,然后重复执行上述 runcluvfy.sh 命令。 如果系统配置正确,屏幕将显示以下信息: Pre-check for cluster services setup was successful on all the nodes. (对所有节点上群集服务设置的预检查成功。) 6 键入: su - oracle 7 键入以下命令以启动 Oracle Universal Installer(Oracle 通用安装程序): unset ORACLE_HOME /runInstaller 屏幕将显示以下信息: Was rootpre.sh been run by root?(root 用户是否运行了“rootpre.
13 在 Specify Network Interface Usage(指定网络接口使用)窗口中,确保公共接口名称和专用接 口名称正确。 要修改接口,请执行以下步骤: 14 15 16 a 选择接口名称,然后单击 Edit(编辑)。 b 在 Edit private interconnect type(编辑专用互连类型)窗口的 Interface Type(接口类型)框 中,选择相应的接口类型,然后单击 OK(确定)。 c 在 Specify Network Interface Usage(指定网络接口使用)窗口中,确保公共接口名称和专用 接口名称正确,然后单击 Next(下一步)。 在 Specify Oracle Cluster Registry (OCR) Location(指定 Oracle 群集注册表 (OCR) 位置)窗口 中,执行以下步骤: a 在 OCR Configuration(OCR 配置)框中,选择 External Redundancy(外部冗余)。 b 在 Specify OCR Location(指定 OCR 位置)字段中,键入: /dev/raw/
20 在所有节点上,执行以下步骤: a 通过键入以下命令,验证群集件安装: olsnodes -n -v 此时将显示群集中所有节点的公共节点名称列表。 b 键入: crs_stat -t 屏幕将显示所有正在运行的群集件服务。 安装 Oracle Database 10g 软件 1 作为 root 用户登录,并键入: cluvfy stage -pre dbinst -n node1,node2 -r 10gR2 -verbose 其中,node1 和 node2 是公共主机名。 如果系统配置不正确,请参阅“故障排除”了解详情。 如果系统配置正确,屏幕将显示以下信息: Pre-check for database installation was successful.
10 在 Select Configuration Option(选择配置选项)窗口中,选择 Install database Software only (仅安装数据库软件),然后单击 Next(下一步)。 11 在 Summary(摘要)窗口中,单击 Install(安装)。 在群集上安装 Oracle 数据库软件。 接下来,屏幕将显示 Execute Configuration Scripts(执行配置脚本)窗口。 12 按照窗口中的说明操作,然后单击 OK(确定)。 13 在 End of Installation(安装完成)窗口中,单击 Exit(退出)。 RAC 部署后修复程序和增补软件 本节介绍部署 Oracle RAC 10g 所需的修复程序和增补软件信息。 重新配置 CSS 计数误差以进行正确的 EMC PowerPath 故障转移 当 HBA、交换机或 EMC 存储处理器 (SP) 发生故障时,切换到备用设备所需的总 PowerPath 故障转 移时间可能会超过 105 秒。Oracle 10g R2 10.2.0.
升级群集件安装 1 在节点 1 上,作为 root 用户登录。 2 关闭群集件。为此,请在终端窗口中键入以下命令,并按 键: crsctl stop crs 3 在其余节点上,打开终端窗口,然后重复步骤 1 和步骤 2。 4 在节点 1 上,作为 oracle 用户登录。 5 在终端窗口中,键入下列命令并按 键: export ORACLE_HOME=/crs/oracle/product/10.2.0/crs 6 启动 Oracle Universal Installer。为此,请在终端窗口中键入以下命令,并按 键: cd /opt/oracle/patches/Disk1/ .
升级 RAC 安装 1 在节点 1 上,打开终端窗口。 2 作为 oracle 用户登录。 3 从安装 Oracle 数据库软件的同一节点上,运行 Oracle Universal Installer(Oracle 通用安装程序)。 a 在节点 1 上,打开终端窗口。 b 作为 oracle 用户登录。 c 关闭所有节点上的群集件节点应用程序。 在终端窗口中,键入下列命令并按 键: $ORACLE_HOME/bin/srvctl stop nodeapps -n < 节点名称 > 注:忽略可能显示的任何警告信息。 4 在其它节点上重复执行步骤 3 (c),并更改给定节点的节点名称。 5 在节点 1 上,打开终端窗口。 6 作为 oracle 用户登录。 7 打开终端窗口。 8 键入下列命令并按 键: export ORACLE_HOME=/opt/oracle/product/10.2.
16 按照每次一个节点的方式,在其余节点上重复步骤 14 和步骤 15。 安装完成后,将显示 End of Installation(安装结束)屏幕。 注:完成此过程可能需要几分钟。 17 在 End of Installation(安装结束)屏幕中,单击 Exit(退出)。 18 单击 Yes(是)以退出 Oracle Universal Installer(Oracle 通用安装程序)。 19 在节点 1 上,打开终端窗口。 20 作为 oracle 用户登录。 21 键入下列命令并按 键: srvctl start nodeapps -n < 节点名称 > 其中,< 节点名称 > 为节点的公共主机名。 22 在所有其它节点上,通过发出以下命令关闭 CRS: crsctl stop crs 23 作为 oracle 用户,从应用增补软件集的节点,将 /opt/oracle/product/10.2.0/db_1/rdbms/lib/libknlopt.
8 在 Listener Configuration, Listener(监听程序配置,监听程序)窗口中,选择 Add(添加),然 后单击 Next(下一步)。 9 在 Listener Configuration, Listener Name(监听程序配置,监听程序名称)窗口的 Listener Name (监听程序名称)字段中键入 LISTENER,然后单击 Next(下一步)。 10 在 Listener Configuration, Select Protocols(监听程序配置,选择协议)窗口中选择 TCP,然后 单击 Next(下一步)。 11 在 Listener Configuration, TCP/IP Protocol(监听程序配置,TCP/IP 协议)窗口中,选择 Use the standard port number of 1521(使用标准端口号 1521),然后单击 Next(下一步)。 12 在 Listener Configuration, More Listeners?(监听程序配置,是否多个监听程序?)窗口中,选 择 No(否),然后单击 Next(下一
10 在 Storage Options(存储选项)窗口中,单击 Automatic Storage Management (ASM)(自动存 储管理 [ASM]),然后单击 Next(下一步)。 11 在 Create ASM Instance(创建 ASM 实例)窗口中,执行以下步骤: a 在 SYS password(SYS 密码)字段中,键入密码。 b 选择 Create server parameter file (SPFILE)(创建服务器参数文件 [SPFILE])。 c 在 Server Parameter Filename(服务器参数文件名)字段中,键入: /dev/raw/spfile+ASM.
22 在 Creation Options(创建选项)窗口中,选择 Create database(创建数据库),然后单击 Finish(完成)。 23 在 Summary(摘要)窗口中,单击 OK(确定)创建数据库。 注:完成此过程可能需要一个小时或更多时间。 完成数据库创建后,屏幕上将显示 Database Configuration Assistant(数据库配置助手)窗口。 24 单击 Password Management(密码管理),向授权用户分配特定的密码(如果需要)。否则, 单击 Exit(退出)。 屏幕上会显示一则消息,提示正在所有节点上启动群集数据库。 25 在每个节点上执行以下步骤: a 键入 srvctl status database -d < 数据库名称 > 以确定该节点上存在的数据库实例。 b 键入以下命令,在 oracle 用户配置文件中添加 ORACLE_SID 环境变量条目: echo "export ORACLE_SID=racdbx" >> /home/oracle/.bash_profile source /home/oracle/.
配置和部署 Oracle Database 10g(单个节点) 本节介绍有关完成在“安装和配置 Red Hat Enterprise Linux”所述的初始设置或完成重新安装过程 的信息。本节包括以下主题: • 配置公共网络 • 配置数据库存储 • 安装 Oracle 数据库 • 配置监听程序 • 创建基础数据库 配置公共网络 请确保您的公共网络正常运行,并且已为您的系统分配了 IP 地址和主机名。 配置数据库存储 使用 ex3 文件系统配置数据库存储 如果您具有附加存储设备,请执行以下步骤: 1 作为 root 用户登录。 2 键入: cd /opt/oracle 3 键入: mkdir oradata recovery 4 使用 fdisk 公用程序,创建一个要在其中存储数据库文件的分区(例如,如果存储设备为 sdb, 则该分区为 sdb1)。 5 使用 fdisk 公用程序,创建一个要在其中存储恢复文件的分区(例如,如果存储设备为 sdc,则 该分区为 sdc1)。 6 键入 cat /proc/partitions,验证新分区。 如果没有看到新分区,则键入
8 通过添加条目,为新创建的文件系统编辑 /etc/fstab 文件,例如: /dev/sdb1 /opt/oracle/oradata ext3 defaults 1 2 /dev/sdc1 /opt/oracle/recovery ext3 defaults 1 2 9 键入: mount /dev/sdb1 /opt/oracle/oradata mount /dev/sdc1 /opt/oracle/recovery 10 键入: chown -R oracle.
要永久禁用 SELinux,请执行以下步骤: 1 打开 grub.conf 文件。 2 找到内核命令行,并添加以下选项: selinux=0 例如: kernel /vmlinuz-2.6.9-34.
安装 Oracle Database 10g 要安装 Oracle 10g,请执行以下步骤: 1 作为 root 用户登录。 2 作为 root 用户装入 Oracle Database 10g CD。 3 键入 startx 以启动 X Window 系统。 4 打开终端窗口,然后键入: xhost + 5 作为 oracle 用户登录。 6 启动 Oracle Universal Installer。 在终端窗口中,键入下列命令并按 键: /runInstaller 7 在 Select Installation Method(选择安装方法)窗口中,单击 Advanced Installation(高级安 装),然后单击 Next(下一步)。 8 在 Select Installation Types(选择安装类型)窗口中,单击 Enterprise Edition(企业版),然后 单击 Next(下一步)。 9 在 Specify Home Details(指定主目录详细信息)窗口的 Path(路径)字段中,确保路径为: /
安装 Oracle Database 10g 10.2.0.2 增补软件集 下载并自解压安装软件 1 作为 oracle 用户登录。 2 为增补软件和公用程序创建一个文件夹 /opt/oracle/patches。 3 打开 Web 浏览器并浏览至 Oracle Metalink 网站 metalink.oracle.com。 4 登录到您的 Oracle Metalink 帐户。 5 查找以 Linux x86-64 (AMD64/EM64T) 作为平台的增补软件号 4547817。 6 将该增补软件下载到 /opt/oracle/patches 目录。 7 要解压下载的压缩文件,在终端窗口中键入以下命令,然后按 键: unzip p4547817_10202_LINUX-x86-64.zip 升级数据库软件 1 打开终端窗口。 2 作为 oracle 用户登录。 3 确保将 ORACLE_HOME 设置为 /opt/oracle/product/10.2.
11 按 键以接受由 root.sh 生成的问题的默认解答。 注:完成此过程可能需要几分钟。 12 完成执行 root.sh 后,返回 Execute Configuration Scripts(执行配置脚本)窗口,然后单击 OK (确定)。 13 在 End of Installation(安装结束)屏幕中,单击 Exit(退出)。 14 单击 Yes(是)以退出 Oracle Universal Installer(Oracle 通用安装程序)。 15 重新启动 cssd 进程。为此,请键入以下命令并按 键: /etc/init.d/init.
11 在 Recovery Configuration(恢复配置)窗口中,单击 Browse(浏览),选择您在“使用 ex3 文 件系统配置数据库存储”中创建的回闪恢复区域(例如,/opt/oracle/recovery),根据 需要更改回闪恢复区域大小,然后单击 Next(下一步)。 12 在 Database Content(数据库内容)窗口中,单击 Next(下一步)。 13 在 Initialization Parameters(初始化参数)窗口中,单击 Next(下一步)。 14 在 Database Storage(数据库存储)窗口中,单击 Next(下一步)。 15 在 Creation Options(创建选项)窗口中,单击 Create Database(创建数据库),然后单击 Finish(完成)。 16 在 Confirmation(确认)窗口中,单击 OK(确定)以创建数据库。 注:基础数据库的创建过程可能需要一个多小时才能完成。 完成数据库创建后,屏幕上将显示 Password Management(密码管理)窗口。 17 单击 Exit(退出)。 18
9 在 Create ASM Instance(创建 ASM 实例)窗口中,输入 SYS 用户的密码,然后单击 Next (下一步)。 10 当显示的消息表明 DBCA 已就绪,可以创建和启动 ASM 实例时,单击 OK(确定)。 11 在 ASM Disk Groups(ASM 磁盘组)窗口中的 Available Disk Groups(可用磁盘组)下,单击 Create New(新建)。 12 在 Create Disk Group(创建磁盘组)窗口中,输入数据库文件的存储信息,然后单击 OK (确定)。 a 为要创建的磁盘组输入名称(如 databaseDG),选择 External Redundancy (外部冗余),然后选择要包括在磁盘组中的磁盘。 b 如果使用的是原始设备接口,请选择 /dev/raw/ASM1。 c 如果您使用的是 ASM 库驱动程序,且无法访问候选磁盘,请单击 Change Disk Discovery String(更改磁盘查找字符串),键入 ORCL:* 作为字符串,然后选择 ASM1。 屏幕上显示一个窗口,提示正在创建磁盘组。 d 如果您使用
22 在 Confirmation(确认)窗口中单击 OK(确定)创建数据库。 注:创建基础 (seed) 数据库可能需要一个多小时。 数据库创建完成后,屏幕上将显示 Password Management(密码管理)窗口。 23 单击 Exit(退出)。 24 数据库创建完成后,键入以下命令,以便将 ORACLE_SID 环境变量条目添加到 oracle 用户配 置文件中: echo "export ORACLE_SID=oradb" >> /home/oracle/.bash_profile source /home/oracle/.
在新节点上配置共享存储 要将现有 RAC 数据库扩展到新节点,请为新节点配置存储,使新节点的存储与现有节点上的相 同。本节介绍用于 ASM 的相应过程。 使用 ASM 配置共享存储 如果您使用的是 ASM,应确保新节点可以使用与现有节点相同的权限访问 ASM 磁盘。 要配置 ASM 磁盘,请执行以下操作: 1 作为 root 用户登录。 2 在命令提示符下键入: setenforce 0 要永久禁用 SELinux: 1 打开 grub.conf 文件。 2 找到内核命令行,并添加以下选项: selinux=0 例如: kernel /vmlinuz-2.6.9-34.
9 确保新节点可以使用 ASM 磁盘。 在终端窗口中,键入下列命令并按 键: service oracleasm listdisks 列出其它节点上所有可用的磁盘。 例如: ASM1 ASM2 将新节点添加到群集件层 1 作为 oracle 用户登录到现有节点之一。 2 从该现有节点的 /crs/oracle/product/10.2.0/crs/oui/bin 目录中,键入 ./addNode.
5 单击 Install(安装)。 Cluster Node Addition Progress(群集节点添加进度)窗口会显示节点添加进度的状态。 6 出现提示时,作为 root 用户在新节点上运行 /opt/oracle/product/10.2.0/db_1/root.sh,并在要求 输入本地 bin 目录的完整路径名称时按 键。 7 在 Execute Configuration Scripts(执行配置脚本)窗口中完成 root.
将新节点添加到数据库实例层 1 在其中一个现有节点上,作为 oracle 用户,键入 dbca & 以启动 DBCA。 2 在 Welcome(欢迎)窗口中单击 Next(下一步)。 3 在 Operations(操作)窗口中,单击 Instance Management(实例管理),然后单击 Next (下一步)。 4 在 Instance Management(实例管理)窗口中,单击 Add Instance(添加实例),然后单击 Next (下一步)。 5 在 List of Cluster Databases(群集数据库列表)窗口中,选择现有的数据库。 如果您的用户名并未经过操作系统验证,DBCA 会提示您输入具有 SYSDBA 权限的数据库用 户名和密码。 6 输入用户名 sys 和密码,然后单击 Next(下一步)。 屏幕将显示 List of cluster database instances(群集数据库实例列表)窗口,其中显示了与选定 RAC 数据库相关的实例以及每个实例的状态。 7 在 List of Cluster Database Instances(群集数据
从数据库实例层中删除节点 1 作为 oracle 用户登录。 2 从其它某个节点上,键入: dbca & 3 在 Welcome(欢迎)窗口中单击 Next(下一步)。 4 在 Operations(操作)窗口中,单击 Instance Management(实例管理),然后单击 Next(下一 步)。 5 在 Instance Management(实例管理)窗口中,单击 Delete an instance(删除实例),然后单 击 Next(下一步)。 6 在 List of Cluster Databases(群集数据库列表)窗口中,选择要删除的实例所在的 RAC 数据库。 如果您的用户名并未经过操作系统验证,DBCA 会提示您输入具有 SYSDBA 权限的数据库用 户名和密码。 7 输入用户名 sys 和密码,然后单击 Next(下一步)。 屏幕将显示 List of cluster database instances(群集数据库实例列表)窗口,其中显示了与选定 RAC 数据库相关的实例以及每个实例的状态。 8 选择要删除的实例,然后单击 Next(下一步)。 此实例不
重新配置监听程序 1 键入 netca。 2 在 Real Application Clusters→ Configuration(配置)窗口中,选择 Cluster Configuration (群集配置),然后单击 Next(下一步)。 3 在 Real Application Clusters→ Active Nodes(活动节点)窗口中,选择要删除的节点,然后单 击 Next(下一步)。 4 在 Welcome(欢迎)窗口中,选择 Listener Configuration(监听程序配置),然后单击 Next (下一步)。 5 在 Listener Configuration(监听程序配置)→ Listener(监听程序)窗口中,选择 Delete (删除),然后单击 Next(下一步)。 6 在 Listener Configuration(监听程序配置)→ Select Listener(选择监听程序)窗口中,选择 LISTENER,然后单击 Next(下一步)。 当屏幕显示信息 Are you sure you want to delete listener LISTEN
从数据库层中删除节点 1 在要删除的节点上作为 oracle 用户登录。 2 使用要删除的节点的公用名称(例如,如果要删除 node3-pub)键入以下命令: srvctl stop nodeapps -n node3-pub 忽略警告有关该监听程序的错误 CRS-0210。 3 在将要删除的节点上,请作为 root 登录。 4 如果要删除 Oracle 数据库软件,请键入下列命令: rm -rf /opt/oracle/product/10.2.0/db_1/* 从群集件层中删除节点 1 在要删除的节点上,作为 root 用户键入以下命令来禁用 CRS: /crs/oracle/product/10.2.0/crs/install/rootdelete.sh remote nosharedvar 2 在其它某个节点上,作为 root 用户键入以下命令: /crs/oracle/product/10.2.0/crs/install/rootdeletenode.
重新安装软件 注意:重新安装软件将会清除硬盘驱动器上的所有信息。 注意:在重新安装软件之前,必须从系统中断开所有外部存储设备的连接。 注意:Dell 建议您定期对数据库和个别节点进行备份,以免丢失重要数据。仅在您没有其它选择时,才 重新安装节点软件。 使用 Dell Deployment CD 安装软件时,已在硬盘驱动器上创建了重新部署分区,其中包含了系统上 安装的所有软件映像。该重新部署分区使您可以快速重新部署 Oracle 软件。 如果要使用这种方法重新安装软件,需要将系统引导至重新部署分区。系统引导至此分区时,会自 动重新安装 Red Hat Linux 操作系统。 要使用此方法重新安装软件,请执行以下步骤: 1 断开外部存储设备的连接。 2 作为 root 用户登录至要重新安装软件的系统。 3 键入 vi /etc/grub.
表 1-7. 支持的软件版本 (续) 软件组件 支持的版本 QLogic HBA QLE2460 (QLA2400) 8.01.02-d4 QLogic HBA QLE2462 (QLA2400) 8.01.02-d4 Emulex HBA LP1000 和 LP1150e (lpfc) 8.0.16.18 PERC 4e/Si、PERC 4e/Di (megaraid_mbox) 2.20.4.6 PERC 5/e、PERC 5/I (megaraid_sas) 00.00.02.00 Intel PRO/100 S NIC 驱动程序 (e100) 6.1.16-k3-NAPI Intel PRO/1000 XT/MT/MT DP NIC 驱动程序 (e1000) 6.1.16-k3-NAPI Broadcom NetXtreme BCM5704 (tg3) 3.43-rh Broadcom NetXtreme BCM5708 (bnx2) 1.4.
4 键入以下命令查看 /etc/modprobe.conf 文件: more /etc/modprobe.conf 屏幕将以 alias ethx 驱动程序模块格式显示几行文本,其中,x 是以太网接口号,驱动程 序模块是在步骤 3 中确定的模块。 例如,如果您的操作系统已将 eth1 分配给 Broadcom NetXtreme Gigabit NIC,则屏幕将显示 alias eth1 tg3 文本行。 5 确定已将哪些以太网接口 (ethx) 分配给连接至千兆位交换机的千兆位 NIC 类型。 如果 /etc/modprobe.conf 中仅有一个代表驱动程序模块类型的条目,则表明已成功识别了专用 网络接口。 6 如果您的系统中配备了多个相同类型的 NIC,请尝试确定分配给每个 NIC 的以太网接口。 对于每个以太网接口,请执行“利用绑定功能配置专用网络”中的步骤安装正确的驱动程序模 块,直至识别出正确的以太网接口。 故障排除 表 1-9 提供了在部署或使用 Red Hat Enterprise Linux 和 Oracle 软件时可能遇到的问题的建议操作。 表 1-9.
表 1-9. 故障排除 (续) 类别 问题/症状 原因 建议的纠正措施 数据库 ERROR IN KQLMBIVG SEE LCK TRACE FILE" [LT] [LB] KJUSERCLIENT LOCK 起因是 Oracle 错误 应用 Oracle Metalink 网站 metalink.oracle.com 上提供 的增补软件 4690794。 4690794。请参阅 Oracle Metalink 网站 metalink.oracle.com。 数据库 LMD0 PROCESS 起因是 Oracle 错误 应用 Oracle Metalink 网站 metalink.oracle.
表 1-9.
表 1-9. 故障排除 (续) 类别 问题/症状 原因 CRS 当您重新引导节 群集就绪服务 CSS 点,或键入 守护程序无法向仲 /etc/ini.d/ini 裁磁盘写入数据。 t.crs start 时,CRS 无法 启动。 建议的纠正措施 • 尝试重新引导节点或从 /crs/oracle/product/10.2.0/crs/ 中键入 root.sh,再次启动服务。 • 验证每个节点是否具有访问仲裁磁盘的权限,以及 root 用户能否写入磁盘。 • 检查文件 $ORA_CRS_HOME/css/log/ocssd.log 中的 最后一行内容。 • 如果显示的是 clssnmvWriteBlocks:Failed to flush writes to (votingdisk)(无法刷 写到投票磁盘),请验证以下内容: – 每个节点上的 /etc/hosts 文件是否包含所有节点主 机名的正确 IP 地址,包括虚拟 IP 地址。 – 是否可以对公共和专用主机名执行 ping 命令。 – 仲裁磁盘可写入。 CRS 在运行 root.
表 1-9. 故障排除 (续) 类别 问题/症状 原因 CRS 在运行 root.sh 时, 已尝试其它的 CRS 故障排除步骤,但 CRS 无法启动。 没有成功。 建议的纠正措施 1 将以下文本行添加到 root.sh,启用调试功能: set -x 2 尝试从 /crs/oracle/product/10.2.0/crs/ 中运行 root.
表 1-9. 故障排除 (续) 类别 问题/症状 原因 建议的纠正措施 软件安装 使用 Dell 使用的是副本,而 Deployment CD 1 不是原始 Red Hat 安装软件时出现 dd CD。 失败错误信息。 刻录 CD 映像 (ISO) 时,如果使用 cdrecord 命令,请 使用正确的选项,如 -dao。 软件安装 当作为非 oracle 用 在远程节点上没有 户连接到数据库 设置所需的权限。 时,出现错误信息 ORA01034: ORACLE not available and Linux Error 13: Permission denied.
表 1-9. 故障排除 (续) 类别 问题/症状 原因 操作系统 当您向 PowerEdge 禁用了 Kudzu。 系统添加新的外围 设备时,操作系统 无法识别此设备。 建议的纠正措施 在向系统添加新的外围设备后,手动运行 Kudzu。 获得帮助 Dell 支持 有关系统使用方面的详情,请参阅随系统组件附带的说明文件。 有关白皮书、Dell 支持的配置和一般信息,请访问“经 Dell|Oracle 测试和验证的配置”网站 www.dell.com/10g。 要获得硬件和操作系统软件的 Dell 技术支持并下载最新的系统更新,请访问 Dell 支持 Web 站点 support.dell.com。Dell 联系信息包含在系统的《安装与故障排除指南》中。 我们现在还提供 Dell 企业培训与认证服务,请访问 www.dell.com/training 了解有关详情。此培训服 务可能不在所有地区提供。 Oracle 支持 有关 Oracle 软件和应用程序群集件的培训信息,请访问 Oracle 网站 www.oracle.
部署指南
索引 A F M ASM 配置数据库存储 , 94 附加配置选项 添加和删除节点 , 101 密码 设置 , 92 安全措施 , 92 附加信息 , 109 确定专用网络接口 , 110 安装 CRS, 82 Oracle Database 10g, 85 Oracle Database 10g (单个节点) , 96 Oracle RAC 10g, 82 Red Hat Enterprise Linux, 68 使用 Dell Deployment CD, 68 B 绑定 , 76 部署 Oracle RAC 10g , 75 C CRS 安装 , 82 CRS 配置 , 79 创建基础数据库 , 90, 98 重新安装 软件 , 109 G 公共网络 配置 , 75-76 故障排除 , 111 光纤信道群集设置 , 70 H 获得帮助 , 117 J 集成 NIC , 110 基础数据库 创建 , 90, 98 验证 , 92, 99 监听程序配置 , 89, 98, 104 节点 删除 , 105 添加和删除 , 101 O Oracle Database 10g 安装 ,
À˜“″ 配置 Oracle 10g, 70 验证硬件与软件配置 , 70 配置 Oracle Database 10g (单个节点) , 93, 98 创建基础数据库 , 98 配置 Oracle RAC 10g, 75 创建基础数据库 , 90 配置公共网络 , 76 配置共享存储 , 80 配置专用和公共网络 , 75 配置专用网络 , 76 Z 删除节点 , 105 支持的存储设备 , 109 示例 光纤信道群集硬件连接 , 70 专用网络 配置 , 75-76 确定接口 , 110 说明文件 , 67 T 添加和删除节点 , 101 X 许可协议 , 67 Q 确定专用网络接口 , 110 群集 光纤信道硬件连接,示例 , 70 群集设置 光纤信道 , 70 R Red Hat 更新系统软件包 , 69 Red Hat Enterprise Linux 安装 , 68 软件 要求 , 66, 109 重新安装 , 109 软件和硬件要求 , 66 120 S 索引 Y 验证 存储配置 , 78 基础数据库 , 92, 99 软件配置 , 70 硬件配置 , 7
Systèmes Dell™ PowerEdge™ Oracle Database 10g Enterprise Edition pour EM64T (Extended Memory 64 Technology) Guide de déploiement pour Linux Version 2.1 w w w. d e l l . c o m | s u p p o r t . d e l l .
Remarques et avis REMARQUE : une REMARQUE indique des informations importantes qui peuvent vous aider à mieux utiliser votre ordinateur. AVIS : un AVIS vous avertit d'un risque de dommage matériel ou de perte de données et vous indique comment éviter le problème. ____________________ Les informations contenues dans ce document peuvent être modifiées sans préavis. © 2006 Dell Inc. Tous droits réservés. La reproduction de ce document de quelque manière que ce soit sans l'autorisation écrite de Dell Inc.
Sommaire Service de déploiement d'Oracle RAC 10g . . . . . . . . . . . . . . . . . . Configuration matérielle et logicielle requise Contrats de licence . . . . . Documentation importante . Avant de commencer . . . . . . . . . . . . . . . . . . . . 126 . . . . . . . . . . . . . . . . . . . . . . . 127 127 127 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installation et configuration de Red Hat Enterprise Linux . . . . . . . . . .
Installation d'Oracle Database 10g . . . . . . . . . . . . . Installation du correctif 10.2.0.2 pour Oracle Database 10g Configuration de l'écouteur . . . . . . . . . . . . . . . . . Création de la base de données initiale . . . . . . . . . . Ajout et suppression de nœuds . . . . . . . 159 160 161 161 . . . . . . . . . . . . . . . . . . . . . . . . 165 . . . . . . . . . . . . . . . . . . . . . Ajout d'un nœud à la couche réseau . . . . . . . . . . . . . .
Ce document contient des informations concernant l'installation, la configuration, la réinstallation et l'utilisation d'Oracle Database 10g Enterprise Edition avec Real Application Clusters (Oracle RAC). Il fait partie du support fourni par Dell pour les configurations Oracle. Utilisez ce document avec les CD Dell Deployment, Red Hat Enterprise Linux et Oracle RAC 10g pour installer les logiciels.
Configuration matérielle et logicielle requise Avant d'installer le logiciel Oracle RAC sur le système : • Rendez-vous sur le site rhn.redhat.com et téléchargez les images des CD Red Hat. • Munissez-vous du kit CD d'Oracle. • Rendez-vous sur le site www.dell.com/10g et téléchargez les images de CD Dell Deployment correspondant à la solution installée. Gravez toutes les images téléchargées sur CD.
Tableau 1-2. Configuration matérielle requise — Cluster Fibre Channel (suite) Composant matériel Configuration Commutateur Ethernet Gigabit (deux) Pour plus d'informations sur les configurations Oracle prises en charge par Dell, rendez-vous sur le site www.dell.com/10g. Commutateur Fibre Channel Dell | EMC (deux) Huit ports pour deux à six nœuds Tableau 1-3.
4 Dans le menu gauche de la page qui s'affiche, cliquez sur All (Toutes). Les images ISO de tous les produits Red Hat s'affichent. 5 Dans le menu Channel Name (Nom du canal), cliquez sur l'image correspondant à votre logiciel Red Hat. 6 Téléchargez les images ISO correspondant à votre produit Red Hat Enterprise Linux et répertoriées dans le document "Solution Deliverable List" (Liste des éléments pris en charge).
9 Lorsque la fenêtre Network Setup (Configuration du réseau) s'affiche, cliquez sur Next. Vous paramétrerez le réseau ultérieurement. 10 Lorsque la fenêtre Security Level (Niveau de sécurité) s'affiche, désactivez le pare-feu. Vous pourrez le réactiver une fois le déploiement d'Oracle terminé. 11 Connectez-vous en tant que root. Configuration de Red Hat Enterprise Linux 1 Connectez-vous en tant que root.
Mise à jour des modules système à l'aide de Red Hat Network Red Hat publie régulièrement des mises à jour qui permettent de corriger les bogues, de résoudre les incidents liés à la sécurité et d'ajouter de nouvelles fonctionnalités. Ces mises à jour peuvent être téléchargées via le service Red Hat Network (RHN). Avant d'utiliser celui-ci pour installer les dernières mises à jour des logiciels, rendez-vous sur le site Web www.dell.
Figure 1-1.
Tableau 1-4.
Configuration matérielle et logicielle pour Fibre Channel • Chaque nœud doit inclure au minium les composants matériels répertoriés dans le tableau 1-2.
Figure 1-2. Câblage dans un cluster Fibre Channel connecté à un SAN Nœud 1 Nœud 2 Ports HBA (2) Ports HBA (2) 0 1 0 1 Ports SP SP-B 3 2 1 0 0 1 2 3 SP-A Système de stockage CX700 Configuration à connexion directe Pour créer une configuration à connexion directe pour les nœuds du cluster (voir la figure 1-2), procédez comme suit : 1 Installez un câble optique entre la carte HBA0 du nœud 1 et le port 0 du processeur SP-A.
Figure 1-3. Câblage dans un cluster Fibre Channel connecté à un SAN Nœud 2 Nœud 1 0 1 Ports HBA (2) Ports HBA (2) sw0 0 1 sw1 Ports SP 3 2 SP-B 1 0 0 1 Système de stockage CX700 2 3 SP-A Configuration avec connexion à un SAN Pour créer une configuration à 4 ports avec connexion à un SAN (voir la figure 1-3), procédez comme suit : 1 Installez un câble optique entre le port 0 du SP-A et le commutateur Fibre Channel 0.
8 Installez un câble optique entre le port 3 du SP-B et le commutateur Fibre Channel 0. 9 Installez un câble optique entre la carte HBA0 du nœud 1 et le commutateur Fibre Channel 0. 10 Installez un câble optique entre la carte HBA1 du nœud 1 et le commutateur Fibre Channel 1. 11 Installez un câble optique entre la carte HBA0 du nœud 2 et le commutateur Fibre Channel 0. 12 Installez un câble optique entre la carte HBA1 du nœud 2 et le commutateur Fibre Channel 1.
Configuration du réseau public REMARQUE : vérifiez que l'adresse IP publique est valide et routable. Si ce n'est déjà fait, effectuez les opérations ci-après sur chaque nœud pour configurer le réseau public : 1 Connectez-vous en tant que root.
3 Pour garantir une disponibilité optimale, modifiez le fichier /etc/modprobe.conf de manière à activer l'option de contrôle des liens. La valeur par défaut de miimon est 0, ce qui signifie que le contrôle des liens est désactivé. Réglez d'abord cette valeur sur 100 millièmes de seconde. Vous pourrez ensuite la modifier pour atteindre le niveau de performances requis.
7 Une fois les adresses IP privées définies sur chaque nœud, vérifiez le bon fonctionnement du réseau privé en lançant un test ping sur chaque adresse IP à partir d'un nœud. 8 Tapez ssh pour vous connecter à chaque nœud et vérifier que le réseau privé et ssh fonctionnent correctement. 9 Sur chaque nœud, modifiez le fichier /etc/hosts en ajoutant les lignes suivantes : 127.0.0.1 localhost.
2 Vérifiez les connexions des périphériques de stockage et des nœuds au commutateur Fibre Channel (voir la figure 1-1 et le tableau 1-4). 3 Vérifiez que vous êtes connecté en tant que root. 4 Sur chaque nœud, tapez : more /proc/partitions Le nœud détecte puis affiche les unités LUN ou disques logiques, ainsi que les partitions créées sur ces périphériques externes. REMARQUE : les périphériques apparaissant dans cette liste varient selon la façon dont le système de stockage est configuré.
3 Sur tous les nœuds, effectuez les opérations suivantes : a Éditez le fichier /etc/sysconfig/rawdevices et ajoutez-y les lignes suivantes pour un cluster Fibre Channel : /dev/raw/votingdisk /dev/raw/ocr.dbf /dev/raw/spfile+ASM.ora /dev/emcpowera1 /dev/emcpowera2 /dev/emcpowera3 b Tapez udevstart pour créer les périphériques bruts. c Tapez service rawdevices restart pour redémarrer le service RAW Devices.
Pour configurer le cluster avec ASM, effectuez la procédure suivante sur tous les nœuds : 1 Connectez-vous en tant que root. 2 Sur tous les nœuds, créez une partition sur chacun des deux autres périphériques de stockage externes, à l'aide de fdisk : a Tapez fdisk /dev/emcpowerx et créez une partition principale pour l'intégralité du périphérique. Pour consulter l'aide de l'utilitaire fdisk, tapez h. b Tapez cat /proc/partitions pour vérifier l'existence de la nouvelle partition.
Configuration du stockage à l'aide du pilote de bibliothèque ASM 1 Connectez-vous en tant que root. 2 Ouvrez une fenêtre de terminal et procédez comme suit sur tous les nœuds : a Tapez service oracleasm configure.
Installation d'Oracle RAC 10g Cette section indique comment installer Oracle RAC 10g. La procédure requise inclut l'installation des services CRS et du logiciel Oracle Database 10g. Dell conseille de créer une base de données initiale pour vérifier le fonctionnement du cluster avant de le déployer dans un environnement de production. Avant de commencer Pour éviter que des erreurs ne se produisent pendant l'installation, attribuez à tous les nœuds des paramètres d'horloge système identiques.
7 Tapez les commandes suivantes pour démarrer Oracle Universal Installer : unset ORACLE_HOME /runInstaller Le message suivant s'affiche : Was 'rootpre.sh' been run by root? (Le script 'rootpre.sh' a-t-il été lancé par l'utilisateur root ?) [y/n] (n) 8 Tapez y pour continuer. 9 Dans la fenêtre de bienvenue, cliquez sur Next. 10 Dans la fenêtre Specify Home Details (Indiquer l'emplacement racine), définissez le répertoire racine d'Oracle sur /crs/oracle/product/10.2.
14 Dans la fenêtre Specify Oracle Cluster Registry (OCR) Location (Indiquer l'emplacement du registre du cluster Oracle), procédez comme suit : a Dans la zone OCR Configuration (Configuration du registre du cluster Oracle), sélectionnez External Redundancy (Redondance externe). b Dans le champ Specify OCR Location (Indiquer l'emplacement du registre du cluster Oracle), tapez : /dev/raw/ocr.dbf c Cliquez sur Next.
Installation d'Oracle Database 10g 1 Connectez-vous en tant que root et tapez : cluvfy stage -pre dbinst -n nœud1,nœud2 -r 10gR2 -verbose où nœud1 et nœud2 sont les noms d'hôte public. Si le système n'est pas configuré correctement, voir "Dépannage" pour plus d'informations. Si le système est configuré correctement, le message suivant s'affiche : Pre-check for database installation was successful. (La vérification préalable pour l'installation de la base de données a abouti.
Correctifs RAC après déploiement Cette section fournit des informations sur les correctifs nécessaires au déploiement d'Oracle RAC 10g. Reconfiguration du paramètre css misscount pour un fonctionnement correct du basculement avec EMC PowerPath En cas de panne d'une carte HBA, d'un commutateur ou d'un processeur de stockage (SP) EMC, le temps total de la prise de relais PowerPath par un autre périphérique peut dépasser 105 secondes.
Mise à niveau de l'installation de Clusterware 1 Sur le nœud 1, connectez-vous en tant qu'utilisateur root. 2 Arrêtez Clusterware. Pour ce faire, tapez la commande suivante dans la fenêtre de terminal et appuyez sur : crsctl stop crs 3 Sur les autres nœuds, ouvrez une fenêtre de terminal et recommencez l'étape 1 et l'étape 2. 4 Sur le nœud 1, connectez-vous en tant qu'utilisateur oracle.
Mise à niveau de l'installation de RAC 1 Sur le nœud 1, ouvrez une fenêtre de terminal. 2 Connectez-vous en tant qu'utilisateur oracle. 3 Exécutez Oracle Universal Installer à partir du nœud sur lequel vous avez installé Oracle Database. a Sur le nœud 1, ouvrez une fenêtre de terminal. b Connectez-vous en tant qu'utilisateur oracle. c Arrêtez les applications Clusterware sur tous les nœuds.
16 Recommencez l'étape 14 et l'étape 15 sur chacun des autres nœuds (un à la fois). Lorsque l'installation est terminée, la fenêtre de fin s'affiche. REMARQUE : cette opération peut prendre plusieurs minutes. 17 Dans la fenêtre End of Installation (Fin de l'installation), cliquez sur Exit. 18 Cliquez sur Yes pour quitter Oracle Universal Installer. 19 Sur le nœud 1, ouvrez une fenêtre de terminal. 20 Connectez-vous en tant qu'utilisateur oracle.
7 Dans la fenêtre Welcome (Bienvenue), sélectionnez Listener Configuration (Configuration de l'écouteur), puis cliquez sur Next. 8 Dans la fenêtre Listener Configuration, Listener (Configuration de l'écouteur, Écouteur), sélectionnez Add, puis cliquez sur Next. 9 Dans la fenêtre Listener Configuration, Listener Name (Configuration de l'écouteur, Nom de l'écouteur), tapez LISTENER dans le champ Listener Name (Nom de l'écouteur), puis cliquez sur Next.
6 Dans la fenêtre Database Templates (Modèles de base de données), cliquez sur Custom Database (Base de données personnalisée), puis cliquez sur Next. 7 Dans la fenêtre Database Identification (Identification de la base de données), entrez un nom global de base de données dans la zone Global Database Name (racdb, par exemple), puis cliquez sur Next. 8 Dans la fenêtre Management Options (Options de gestion), cliquez sur Next.
17 Dans la fenêtre Database File Locations (Emplacement des fichiers de base de données), sélectionnez Use Oracle-Managed Files (Utiliser des fichiers gérés par Oracle), puis cliquez sur Next. 18 Dans la fenêtre Recovery Configuration (Configuration de la récupération), cliquez sur Browse (Parcourir), sélectionnez le groupe de récupération flashback créé à l'étape 15 (GDflashback, par exemple), puis modifiez la taille de la zone de récupération flash en fonction de vos besoins et cliquez sur Next.
26 Sur un nœud, tapez : srvctl status database -d nom de la base de données où nom de la base de données est l'identificateur global que vous avez attribué à la base de données dans l'assistant DBCA. Si les instances de la base de données sont en cours d'exécution, un message de confirmation s'affiche. Dans le cas contraire, tapez : srvctl start database -d nom de la base de données où nom de la base de données est l'identificateur global que vous avez attribué à la base de données dans l'assistant DBCA.
Configuration et déploiement d'Oracle Database 10g (nœud unique) Cette section contient des informations sur la configuration initiale et les procédures de réinstallation décrites dans le paragraphe "Installation et configuration de Red Hat Enterprise Linux".
8 Dans le fichier /etc/fstab, ajoutez les entrées correspondant au système de fichiers qui vient d'être créé, par exemple : /dev/sdb1 /opt/oracle/oradata ext3 defaults 1 2 /dev/sdc1 /opt/oracle/recovery ext3 defaults 1 2 9 Tapez : mount /dev/sdb1 /opt/oracle/oradata mount /dev/sdc1 /opt/oracle/recovery 10 Tapez : chown -R oracle.
Pour désactiver SELinux de façon permanente, procédez comme suit : 1 Ouvrez le fichier grub.conf. 2 Recherchez la ligne de commande du noyau et ajoutez l'option suivante : selinux=0 Exemple : kernel /vmlinuz-2.6.9-34.ELlargesmp ro root=LABEL=/ apic rhgb quiet selinux=0 3 Redémarrez le système. 4 Ouvrez une fenêtre de terminal et connectez-vous en tant que root. 5 Procédez comme suit : a Tapez service oracleasm configure.
Installation d'Oracle Database 10g Exécutez la procédure suivante pour installer Oracle 10g : 1 Connectez-vous en tant que root. 2 En tant qu'utilisateur root, montez le CD Oracle Database 10g. 3 Tapez startx pour lancer le système X Window. 4 Ouvrez une fenêtre de terminal et tapez : xhost + 5 Connectez-vous en tant qu'utilisateur oracle. 6 Démarrez Oracle Universal Installer.
Installation du correctif 10.2.0.2 pour Oracle Database 10g Téléchargement et extraction du programme d'installation 1 Connectez-vous en tant qu'utilisateur oracle. 2 Créez un dossier pour les correctifs et les utilitaires dans /opt/oracle/patches. 3 Ouvrez un navigateur Web et accédez au site Web d'Oracle Metalink (metalink.oracle.com). 4 Connectez-vous à votre compte Oracle Metalink. 5 Recherchez le correctif 4547817 pour la plate-forme Linux x86-64 (AMD64/EM64T).
10 Dans une fenêtre de terminal, tapez la commande suivante et appuyez sur : /opt/oracle/product/10.2.0/db_1/root.sh 11 Appuyez sur pour accepter les réponses par défaut générées par root.sh. REMARQUE : cette opération peut prendre plusieurs minutes. 12 Une fois l'exécution de root.sh terminée, revenez à la fenêtre Execute Configuration Scripts (Exécution des scripts de configuration) et cliquez sur OK. 13 Dans la fenêtre End of Installation (Fin de l'installation), cliquez sur Exit.
7 Dans la fenêtre Management Options (Options de gestion), cliquez sur Next. 8 Dans la fenêtre Database Credentials (Autorisations de la base de données), entrez et validez les mots de passe, puis cliquez sur Next. 9 Dans la fenêtre Storage Options (Options de stockage), sélectionnez File System (Système de fichiers), puis cliquez sur Next. 10 Dans la fenêtre Database File Locations (Emplacement des fichiers de la base de données), cliquez sur Next.
Création de la base de données initiale à l'aide d'Oracle ASM Si vous avez configuré le stockage à l'aide d'Oracle ASM, procédez comme suit pour créer une base de données initiale avec l'assistant DBCA : 1 Connectez-vous en tant qu'utilisateur oracle, puis tapez dbca & pour lancer l'assistant DBCA. 2 Dans la fenêtre de bienvenue, cliquez sur Next. 3 Dans la fenêtre Operations (Opérations), cliquez sur Create a Database (Créer une base de données), puis cliquez sur Next.
14 Dans la fenêtre Disk Group (Groupe de disques), entrez les informations relatives aux fichiers de récupération flashback, puis cliquez sur OK. a Entrez un nom pour le groupe de disques à créer (GDflashback, par exemple), sélectionnez External Redundancy (Redondance externe), puis sélectionnez les disques à inclure dans le groupe. b Si vous utilisez RAW Device Interface, sélectionnez /dev/raw/ASM2. Une fenêtre indique que la création du groupe de disques est en cours.
Ajout et suppression de nœuds Cette section indique comment ajouter ou supprimer un nœud dans un cluster. REMARQUE : le nouveau nœud doit posséder la même configuration que les nœuds existants (matériel et système d'exploitation). Pour ajouter un nœud à un cluster existant : • Ajoutez le nœud à la couche réseau. • Configurez le système de stockage partagé. • Ajoutez le nœud à la configuration du cluster, à la base de données et aux couches de l'instance de la base de données.
Pour désactiver SELinux de façon permanente, procédez comme suit : 1 Ouvrez le fichier grub.conf. 2 Recherchez la ligne de commande du noyau et ajoutez l'option suivante : selinux=0 Exemple : kernel /vmlinuz-2.6.9-34.ELlargesmp ro root=LABEL=/ apic rhgb quiet selinux=0 3 Redémarrez le système. 4 Ouvrez une fenêtre de terminal et connectez-vous en tant que root. 5 Copiez le fichier /etc/sysconfig/rawdevices depuis l'un des nœuds existants du cluster vers le même emplacement sur le nouveau nœud.
Ajout d'un nouveau nœud à la couche Clusterware 1 Connectez-vous en tant qu'utilisateur oracle sur l'un des nœuds existants. 2 Accédez au répertoire /crs/oracle/product/10.2.0/crs/oui/bin et tapez ./addNode.sh pour lancer Oracle Universal Installer. 3 Dans la fenêtre de bienvenue, cliquez sur Next. 4 Dans la fenêtre Specify Cluster Nodes to Add to Installation (Définition des nœuds à ajouter à l'installation), entrez les noms public et privé du nouveau nœud, puis cliquez sur Next.
Reconfiguration de l'écouteur Cette section indique comment reconfigurer l'écouteur, qui est requis pour la connexion des clients distants à la base de données. REMARQUE : les étapes ci-dessous supposent que vous souhaitiez arrêter l'écouter et le reconfigurer. Si tel n'est pas le cas, la procédure à suivre peut être légèrement différente. Sur un seul nœud, effectuez les opérations suivantes : 1 Connectez-vous en tant que root. 2 Tapez startx pour lancer le système X Window.
Ajout d'un nouveau nœud à la couche de l'instance de base de données 1 Sur l'un des nœuds existants, connectez-vous en tant qu'utilisateur oracle et tapez dbca & pour démarrer l'assistant DBCA. 2 Dans la fenêtre de bienvenue, cliquez sur Next. 3 Dans la fenêtre Operations, cliquez sur Instance Management (Gestion des instances), puis cliquez sur Next. 4 Dans la fenêtre Instance Management (Gestion des instances), cliquez sur Add Instance (Ajouter une instance), puis cliquez sur Next.
Suppression d'un nœud du cluster Lorsque vous effectuez les procédures décrites dans cette section, vérifiez que le nœud sélectionné est bien celui qui doit être supprimé. Suppression du nœud de la couche de l'instance de base de données 1 Connectez-vous en tant qu'utilisateur oracle. 2 Sur l'un des nœuds restants, tapez : dbca & 3 Dans la fenêtre de bienvenue, cliquez sur Next. 4 Dans la fenêtre Operations, cliquez sur Instance Management (Gestion des instances), puis cliquez sur Next.
Reconfiguration de l'écouteur 1 Tapez netca. 2 Dans la fenêtre Real Application Clusters→ Configuration, sélectionnez Cluster Configuration (Configuration du cluster) et cliquez sur Next. 3 Dans la fenêtre Real Application Clusters→ Active Nodes (Nœuds actifs), sélectionnez le noeud à supprimer et cliquez sur Next. 4 Dans la fenêtre Welcome (Bienvenue), sélectionnez Listener Configuration (Configuration de l'écouteur), puis cliquez sur Next.
Suppression du nœud de la couche de la base de données 1 Sur le nœud à supprimer, connectez-vous en tant qu'utilisateur oracle. 2 Tapez la commande suivante en utilisant le nom public du nœud supprimé (node3-pub dans cet exemple) : srvctl stop nodeapps -n node3-pub Ne tenez pas compte de l'erreur CRS-0210 concernant l'écouteur. 3 Sur le nœud à supprimer, connectez-vous en tant qu'utilisateur root. 4 Si vous souhaitez supprimer Oracle Database, tapez la commande suivante : rm -rf /opt/oracle/product/10.2.
Pour réinstaller les logiciels avec cette méthode, vous devez démarrer le système depuis la partition de redéploiement. Lorsque le système démarre depuis cette partition, il réinstalle automatiquement le système d'exploitation Red Hat Linux. La procédure est la suivante : 1 Déconnectez le périphérique de stockage externe. 2 Connectez-vous en tant qu'utilisateur root sur le système sur lequel vous souhaitez réinstaller les logiciels. 3 Pour éditer le fichier de configuration grub, tapez vi /etc/grub.
Tableau 1-7. Versions de logiciels prises en charge (suite) Composant logiciel Versions prises en charge Carte HBA QLogic QLE2460 (QLA2400) 8.01.02-d4 Carte HBA QLogic QLE2462 (QLA2400) 8.01.02-d4 Carte HBA Emulex LP1000 & LP1150e (lpfc) 8.0.16.18 PERC 4e/Si, PERC 4e/Di (megaraid_mbox) 2.20.4.6 PERC 5/e, PERC 5/I (megaraid_sas) 00.00.02.00 Pilote de NIC Intel PRO/100 S (e100) 6.1.16-k3-NAPI Pilote de NIC Intel PRO/1000 XT/MT/MT DP (e1000) 6.1.16-k3-NAPI Broadcom NetXtreme BCM5704 (tg3) 3.
4 Affichez le fichier /etc/modprobe.conf en tapant : more /etc/modprobe.conf Plusieurs lignes s'affichent, avec le format alias ethX module-pilote, où X correspond au numéro d'interface Ethernet et module-pilote, au module défini à l'étape 3. Par exemple, la ligne alias eth1 tg3 s'affiche si le système d'exploitation a attribué eth1 à un NIC Broadcom NetXtreme Gigabit. 5 Déterminez quelles interfaces Ethernet (ethX) ont été affectées au type de NIC Gigabit connecté au commutateur Gigabit.
Tableau 1-9. Dépannage (suite) Catégorie Incident/ Symptôme Cause Mesure recommandée Base de données Échec de LMS (Lock Manager Service) avec l'erreur ORA00600 : internal error code, arguments: [kclastf_1], [2], []. (Erreur de code interne, arguments [kclastf_1], [2], []) Cet incident Appliquez le correctif 5071492 disponible sur le site est dû au bogue metalink.oracle.com. Oracle 5071492. Reportez-vous au site d'Oracle Metalink (metalink.oracle.com).
Tableau 1-9. Dépannage (suite) Catégorie Incident/ Symptôme Cause Mesure recommandée Enterprise Manager L'agent d'Enterprise Le référentiel Tapez les commandes suivantes pour recréer le Manager s'arrête ou d'Enterprise Manager référentiel et le fichier de configuration pour la console échoue. est vide. de base de données : emca -config dbcontrol db repos recreate Pour plus d'informations, consultez l'article Oracle Metalink 330976.1.
Tableau 1-9. 178 Dépannage (suite) Catégorie Incident/ Symptôme Cause Mesure recommandée NETCA L'assistant NETCA ne parvient pas à configurer les nœuds distants, ou une erreur liée à la validation d'un périphérique brut (RAW) survient lors de l'exécution de l'assistant DBCA. Vérifiez que le fichier /etc/hosts.equiv de chaque nœud contient les adresses IP publique et virtuelle correctes.
Tableau 1-9. Dépannage (suite) Catégorie Incident/ Symptôme Cause Mesure recommandée CRS Les services CRS ne démarrent pas lors de l'exécution du script root.sh. Assurez-vous que les noms publics et privés du nœud sont correctement définis et que vous parvenez à leur envoyer des requêtes ping. Une fois les problèmes réseau corrigés, essayez de lancer à nouveau le service en redémarrant le nœud ou en exécutant le script root.sh à partir du répertoire /crs/oracle/product/10.2.0/crs/.
Tableau 1-9. Dépannage (suite) Catégorie Incident/ Symptôme Cause CRS Les services CRS ne démarrent pas lors de l'exécution du script root.sh. D'autres tentatives de dépannage des services CRS échouent. Mesure recommandée 1 Ajoutez la ligne suivante au script root.sh pour activer le débogage : set -x 2 Essayez de redémarrer le service en exécutant le script root.sh à partir du répertoire suivant : /crs/oracle/product/10.2.
Tableau 1-9. Dépannage (suite) Catégorie Incident/ Symptôme Cause CRS Le nœud redémarre L'interconnexion en boucle. privée est désactivée. Mesure recommandée 1 Démarrez Linux en mode mono-utilisateur. 2 Tapez : /etc/inet.d/init.crs disable 3 Vérifiez que le nœud peut envoyer une commande ping aux autres nœuds du cluster via l'interconnexion privée. 4 Tapez : /etc/inet.d/init.crs enable 5 Redémarrez le système.
Tableau 1-9. Dépannage (suite) Catégorie Incident/ Symptôme Cause Installation des logiciels Lorsque vous vous connectez à la base de données sous un ID utilisateur autre que oracle, vous recevez les messages d'erreur ORA01034: ORACLE not available (ORACLE n'est pas disponible) et Linux Error 13: Permission denied (Autorisation refusée). Les autorisations Sur tous les nœuds distants, connectez-vous en tant requises ne sont pas que root, et tapez : chmod 6751 $ORACLE_HOME définies sur le nœud distant.
Tableau 1-9. Dépannage (suite) Catégorie Incident/ Symptôme Cause Mesure recommandée Système de stockage Fibre Channel Vous recevez des erreurs d'E-S et des avertissements lorsque vous chargez le module du pilote de la carte adaptateur de bus hôte Fibre Channel. Le pilote de la carte adaptateur de bus hôte, le BIOS ou le micrologiciel doit être mis à jour. Consultez le document "Solution Deliverable List" (Liste des éléments pris en charge) qui se trouve sur le site www.dell.
Support Oracle Pour obtenir des informations sur les formations concernant le logiciel Oracle et les clusters, ou pour contacter Oracle, rendez-vous sur le site www.oracle.com ou consultez votre documentation Oracle. Le site Web metalink.oracle.com contient des informations de support technique, des fichiers téléchargeables et d'autres informations diverses. Obtention et utilisation de fichiers Open Source Le CD Dell Deployment comprend à la fois des programmes tiers et des programmes Dell.
Index A Agrégation de liens réseau, 137 Ajout et suppression de nœuds, 165 ASM configuration du stockage de la base de données, 157 Autres options de configuration ajout et suppression de nœuds, 165 B Base de données initiale création, 152, 161 vérification, 155, 162 C Cluster Fibre Channel, exemple de connexion matérielle, 131 Configuration Oracle Database 10g (nœud unique), 156 Oracle RAC 10g, 136 Red Hat Enterprise Linux, 129 services CRS, stockage partagé, 140 Configuration(Suite) stockage de la base
Index E M P Exemples Fibre Channel, connexions matérielles, 131 Matériel configuration minimale, clusters Fibre Channel, 126 interconnexions Fibre Channel, 132 nœud unique, configuration requise, 127 Périphériques de stockage pris en charge, 173 F Fibre Channel, configuration du cluster, 130 Mots de passe définition, 155 I Informations supplémentaires, 173 définition de l'interface du réseau privé, 174 Installation CRS, 144 Oracle Database 10g, 147 Oracle Database 10g (nœud unique), 159 Oracle
Dell™ PowerEdge™-Systeme Oracle Database 10g Extended Memory 64 Technology (EM64T) Enterprise Edition Linux Einrichtungsanleitung Version 2.1 w w w. d e l l . c o m | s u p p o r t . d e l l .
Anmerkungen und Hinweise ANMERKUNG: Eine ANMERKUNG macht auf wichtige Informationen aufmerksam, die die Arbeit mit dem Computer erleichtern. HINWEIS: Ein HINWEIS warnt vor möglichen Beschädigungen der Hardware oder vor Datenverlust und zeigt auf, wie derartige Probleme vermieden werden können. ____________________ Irrtümer und technische Änderungen vorbehalten. © 2006 Dell Inc. Alle Rechte vorbehalten. Die Reproduktion dieses Dokuments in jeglicher Form ohne schriftliche Genehmigung von Dell Inc.
Inhalt Einrichtungsdienst für Oracle RAC 10g . . . . . . . . . . . . . . . . . . . . Software- und Hardwareanforderungen Lizenzverträge . . . . . Wichtige Dokumentation Vorbereitungen . . . . . . . . . . . . . . . . . . . . . . . . 192 . . . . . . . . . . . . . . . . . . . . . . . . . 193 193 193 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installation und Konfiguration von Red Hat Enterprise Linux . . . . . . . . . . . . . . . . . 196 . .
Installation von Oracle Database 10g . . . . . . . . . . . . Installation des Patchsets 10.2.0.2 für Oracle Database 10g . Konfiguration des Listeners. . . . . . . . . . . . . . . . . . Erstellen der Startdatenbank . . . . . . . . . . . . . . . . . Hinzufügen und Entfernen von Knoten . . . . . . . 225 226 227 228 . . . . . . . . . . . . . . . . . . . . 231 . . . . . . . . . . . . . . . . . . . . . . 232 232 233 234 234 236 237 . . . . . . . . . . . . . . . . . . . . . . . . . 240 . . . . . . . . .
Dieses Dokument enthält Informationen über die Installation, Konfiguration, Neuinstallation und das Verwenden der Software Oracle Database 10g Enterprise Edition mit Oracle Real Application Clusters (RAC) auf Ihrer unterstützten Dell|Oracle-Konfiguration. Verwenden Sie dieses Dokument zusammen mit den CDs für Dell Deployment, Red Hat Enterprise Linux und Oracle RAC 10g, um die Software zu installieren.
Software- und Hardwareanforderungen Bevor Sie die Oracle-RAC-Software auf dem System installieren: • Laden Sie die Red Hat CD-Images von der Red-Hat-Website rhn.redhat.com herunter. • Halten Sie das Oracle-CD-Kit bereit. • Laden Sie die entsprechenden Dell Deployment CD-Images für die zu installierende Lösung im Bereich für von Dell für Oracle unterstützten Konfigurationen (Dell|Oracle Tested and Validated Configurations) unter www.dell.com/10g herunter.
Tabelle 1-2. Minimale Hardwareanforderungen – Fibre-Channel-Cluster (Fortsetzung) Hardwarekomponente Konfiguration Gigabit-Ethernet-Switch (zwei) Informationen über unterstützte Konfigurationen erhalten Sie im Bereich für von Dell|Oracle geprüfte und zugelassene Konfigurationen unter www.dell.com/10g. Dell|EMC Fibre-Channel-Switch (zwei) Acht Ports für zwei bis sechs Knoten Sechzehn Ports für sieben oder acht Knoten Tabelle 1-3.
3 Klicken Sie im linken Menü auf Easy ISOs. 4 Klicken Sie im linken Menü auf der Seite Easy ISOs auf All. Die ISO-Images für alle Red-Hat-Produkte werden angezeigt. 5 Klicken Sie im Menü Channel Name auf das entsprechende ISO-Image für Ihre Red Hat Enterprise Linux-Software.
8 Legen Sie nach Aufforderung ein root-Kennwort fest. 9 Wenn das Fenster Network Setup (Netzwerkeinrichtung) erscheint, klicken Sie auf Weiter. Die Netzwerkeinstellungen werden später vorgenommen. 10 Wenn das Fenster Security Level (Sicherheitsstufe) erscheint, deaktivieren Sie die Firewall. Sie können die Firewall nach der Einrichtung von Oracle aktivieren. 11 Melden Sie sich als root beim System an. Konfigurieren von Red Hat Enterprise Linux 1 Melden Sie sich als root beim System an.
Aktualisieren von Betriebssystempaketen über Red Hat Network Red Hat veröffentlicht regelmäßig Software-Updates zum Beheben von Programmfehlern und Sicherheitslücken und zum Hinzufügen neuer Funktionen. Diese Aktualisierungen können Sie über den RHN-Dienst (Red Hat Network) herunterladen. Informieren Sie sich auf der Dell|Oracle-Website für geprüfte und zugelassene Konfigurationen www.dell.com/10g über die aktuell unterstützten Konfigurationen, bevor Sie die Systemsoftware über den RHN-Dienst aktualisieren.
Abbildung 1-1. Hardwareverbindungen für einen Fibre-Channel-Cluster Client-Systeme Gb-Ethernet-Switches (privates Netzwerk) LAN/WAN PowerEdge-Systeme (Oracle Database) Dell|EMC Fibre-Channel-Switches (SAN) Dell|EMC Fibre-ChannelSpeichersysteme CAT 5e/6 (öffentlicher NIC) CAT 5e/6 (Kupfer-Gigabit-NIC) Glasfaserkabel Zusätzliche Glasfaserkabel Tabelle 1-4.
Tabelle 1-4.
Konfigurationen der Fibre-Channel-Hardware und -Software • Jeder Knoten muss mindestens über die Hardware-Peripheriekomponenten aus Tabelle 1-2 verfügen.
Abbildung 1-2. Fibre-Channel-Cluster mit Direktanschluss verkabeln Knoten 1 Knoten 2 HBA-Ports (2) HBA-Ports (2) 0 1 0 1 SP-Ports SP-B 3 2 1 0 0 1 2 3 SP-A CX700-Speichersystem Direkt verbundene Konfiguration (Direct-Attach) Um die Clusterknoten direkt mit dem Speichersystem zu verbinden (siehe Abbildung 1-2), gehen Sie wie folgt vor: 1 Installieren Sie ein Glasfaserkabel zwischen HBA0 von Knoten 1 mit Port 0 vom SP-A.
Abbildung 1-3. Fibre-Channel-Cluster in SAN-Umgebung verkabeln Knoten 2 Knoten 1 0 1 HBA-Ports (2) HBA-Ports (2) sw0 0 1 sw1 SP-Ports 3 2 SP-B 1 0 0 1 CX700-Speichersystem 2 3 SP-A SAN-verbundene Konfiguration Um die Clusterknoten in einer SAN-Konfiguration mit vier Ports einzurichten (siehe Abbildung 1-3), gehen Sie wie folgt vor: 1 Installieren Sie ein Glasfaserkabel zwischen SP-A-Port 0 und Fibre-Channel-Switch 0.
7 Installieren Sie ein Glaserfaserkabel zwischen SP-B-Port 2 und Fibre-Channel-Switch 1. 8 Installieren Sie ein Glaserfaserkabel zwischen SP-B-Port 3 und Fibre-Channel-Switch 0. 9 Installieren Sie ein Glaserfaserkabel zwischen HBA0 von Knoten 1 mit Fibre-Channel-Switch 0. 10 Installieren Sie ein Glasfaserkabel zwischen HBA1 von Knoten 1 und Fibre-Channel-Switch 1. 11 Installieren Sie ein Glasfaserkabel zwischen HBA0 von Knoten 2 mit Fibre-Channel-Switch 0.
Konfiguration des öffentlichen Netzwerks ANMERKUNG: Stellen Sie sicher, dass die öffentliche IP-Adresse gültig und routingfähig ist. Falls noch nicht erfolgt, konfigurieren Sie das öffentliche Netzwerk, indem Sie für jeden Knoten die folgenden Schritte durchführen: 1 Melden Sie sich als root beim System an.
3 Um die Verfügbarkeit zu erhöhen, öffnen Sie die Datei /etc/modprobe.conf und aktivieren Sie die Option für Verbindungsüberwachung (Link Monitoring). Der Standardwert für miimon ist 0, wodurch die Verbindungsüberwachung deaktiviert wird. Ändern Sie den Wert zunächst auf 100 Millisekunden, und passen Sie ihn danach entsprechend der benötigten Leistung an, wie im folgenden Beispiel gezeigt.
7 Senden Sie nach dem Einrichten der privaten IP-Adressen Ping-Befehle von einem der Knoten an alle eingerichteten Adressen, um das private Netzwerk zu testen. 8 Verbinden Sie sich mit dem Befehl ssh mit jedem Knoten und stellen Sie sicher, dass das private Netzwerk und ssh korrekt funktionieren. 9 Ändern Sie für jeden Knoten die Datei /etc/hosts durch Hinzufügen der unten angegebenen Zeilen. 127.0.0.1 localhost.
Überprüfen der Speicherkonfiguration Erstellen Sie bei der Konfiguration der Cluster Partitionen auf dem Fibre-Channel-Speichersystem. Um diese Partitionen erstellen zu können, müssen alle Clusterknoten die externen Speichergeräte erkennen können.
Konfiguration des gemeinsamen Speichers für Clusterware Dieser Abschnitt enthält Anweisungen für die Konfiguration des gemeinsamen Speichers für Oracle Clusterware.
Um SELinux dauerhaft zu deaktivieren, führen Sie auf allen Knoten folgende Schritte durch: 1 Öffnen Sie die Datei grub.conf. 2 Ergänzen Sie auf der Kernel-Befehlszeile die folgende Option: selinux=0 Beispiel: kernel /vmlinuz-2.6.9-34.ELlargesmp ro root=LABEL=/ apic rhgb quiet selinux=0 3 Starten Sie das System neu. Um den Cluster mit ASM zu konfigurieren, führen Sie auf allen Knoten folgende Schritte durch: 1 Melden Sie sich als root beim System an.
4 Um einen weiteren ASM-Datenträger hinzuzufügen (zum Beispiel ASM3), öffnen Sie auf allen Clusterknoten die Datei /etc/udev/scripts/raw-dev.sh und ergänzen Sie die entsprechenden fettgedruckten Einträge, wie unten dargestellt: MAKEDEV raw mv /dev/raw/raw1 /dev/raw/votingdisk mv /dev/raw/raw2 /dev/raw/ocr.dbf mv /dev/raw/raw3 /dev/raw/spfile+ASM.ora mv /dev/raw/raw4 /dev/raw/ASM1 mv /dev/raw/raw5 /dev/raw/ASM2 mv /dev/raw/raw6 /dev/raw/ASM3 chmod 660 /dev/raw/{votingdisk,ocr.dbf,spfile+ASM.
5 Überprüfen Sie, ob die ASM-Datenträger erstellt wurden und für ASM-Verwendung gekennzeichnet sind. Geben Sie im Terminalfenster den folgenden Befehl ein, und drücken Sie die : service oracleasm listdisks Die in Schritt 3 erstellten Datenträger werden angezeigt. Beispiel: ASM1 ASM2 6 Stellen Sie sicher, dass die übrigen Knoten auf die in Schritt 3 erstellten ASM-Datenträger zugreifen können.
5 Geben Sie ein: /cluvfy/runcluvfy.sh stage -pre crsinst -n Knoten1,Knoten2 -r 10gR2 -verbose wobei Knoten1 und Knoten2 die öffentlichen Hostnamen sind. Wenn das System nicht korrekt konfiguriert ist, beheben Sie die Fehler, und wiederholen Sie dann den obenstehenden Befehl runcluvfy.sh. Wenn das System korrekt konfiguriert ist, wird die folgende Meldung angezeigt: Pre-check for cluster services setup was successful on all the nodes.
13 Überprüfen Sie im Fenster Specify Network Interface Usage (Nutzung der Netzwerkschnittstelle festlegen), ob die öffentlichen und privaten Schnittstellennamen korrekt sind. Um eine Schnittstelle zu ändern, gehen Sie wie folgt vor: a Wählen Sie den Schnittstellennamen aus, und klicken Sie auf Edit (Bearbeiten).
20 Führen Sie auf allen Knoten die folgenden Schritte aus: a Überprüfen Sie die Clusterware-Installation, indem Sie folgenden Befehl eingeben: olsnodes -n -v Eine Liste der Namen aller öffentlichen Knoten im Cluster wird eingeblendet. b Geben Sie ein: crs_stat -t Alle aktiven Clusterware-Dienste werden angezeigt.
9 Überprüfen Sie, ob im Fenster Product-Specific Prerequisite Checks (Produktspezifische Vorüberprüfungen) in der Spalte Status für jede Systemüberprüfung der Eintrag Succeeded (Erfolgreich) angezeigt wird, und klicken Sie dann auf Weiter. ANMERKUNG: Ein bestimmten Fällen wird eventuell eine Warnmeldung zur swap size angezeigt. Übergehen Sie die Warnmeldung und klicken Sie auf Yes, um fortzufahren.
5 Suchen Sie nach der Patch-Nummer 4547817 mit Linux x86-64 (AMD64/EM64T) als Plattform. 6 Laden Sie den Patch in das Verzeichnis /opt/oracle/patches herunter. 7 Um die heruntergeladene Zip-Datei zu entpacken, geben Sie in einem Terminalfenster den folgenden Befehl ein, und drücken Sie die : unzip p4547817_10202_LINUX-x86-64.zip Upgrade der Clusterware-Installation 1 Melden Sie sich auf Knoten 1 als Benutzer root an. 2 Beenden Sie Clusterware.
14 Geben Sie den folgenden Befehl ein und drücken Sie die : $ORA_CRS_HOME/install/root102.sh 15 Wiederholen Sie Schritt 12 bis Schritt 14 auf den verbleibenden Knoten, und zwar jeweils nur für einen Knoten zugleich. 16 Kehren Sie auf Knoten 1 zum Bildschirm End of Installation (Installation abgeschlossen) zurück. 17 Klicken Sie auf Exit (Beenden). 18 Klicken Sie auf Yes (Ja), um den Oracle Universal Installer zu beenden.
12 Klicken Sie im Fenster Specify Hardware Cluster Installation Mode (Hardware-ClusterInstallationsmodus festlegen) auf Weiter. 13 Klicken Sie im Bildschirm Summary (Übersicht) auf Install (Installieren). Der Oracle Universal Installer untersucht das System, zeigt alle benötigten Patches an und installiert diese auf dem System. Nach Abschluss des Vorgangs wird der Bildschirm End of Installation (Installation abgeschlossen) angezeigt. Als Nächstes einscheint eine Meldung mit der Aufforderung, root.
Konfiguration des Listeners In diesem Abschnitt werden die Schritte zum Konfigurieren des Listeners beschrieben, der erforderlich ist, damit entfernte Clients Verbindung zu einer Datenbank aufnehmen können. Führen Sie auf einem der Knoten folgende Schritte aus: 1 Melden Sie sich als root beim System an. 2 Geben Sie startx ein, um das X-Window-System zu starten.
Erstellen der Startdatenbank mit ASM In diesem Abschnitt sind die Vorgehensweisen zum Erstellen einer Startdatenbank mit Oracle ASM sowie zum Überprüfen der Startdatenbank beschrieben. Gehen Sie wie folgt vor: 1 Melden Sie sich als root an und geben Sie ein: cluvfy stage -pre dbcfg -n Knoten1,Knoten2 -d $ORACLE_HOME -verbose wobei Knoten1 und Knoten2 die öffentlichen Hostnamen sind. Wenn das System nicht korrekt konfiguriert ist, lesen Sie „Fehlerbehebung“, um weitere Informationen zu erhalten.
12 Wenn in einer Meldung mitgeteilt wird, dass die ASM-Instanz vom DBCA erstellt und gestartet werden kann, klicken Sie auf OK. 13 Klicken Sie bei ASM Disk Groups (ASM-Datenträgergruppen) auf Create New (Neu erstellen).
21 Klicken Sie im Fenster Database Storage (Datenbankspeicher) auf Weiter. 22 Klicken Sie im Fenster Creation Options (Erstellungsoptionen) auf Create Database (Datenbank erstellen) und anschließend auf Finish (Fertig stellen). 23 Klicken Sie im Fenster Summary (Übersicht) auf OK, um die Datenbank zu erstellen. ANMERKUNG: Dieser Vorgang kann eine Stunde oder länger dauern. Nachdem die Datenbank erstellt wurde, wird das Fenster Database Configuration Assistant (Datenbankkonfigurationsassistent) angezeigt.
Systemsicherheit Um unerlaubten Zugriff auf das System zu verhindern, wird empfohlen, rsh nach der Installation der Oracle-Software zu deaktivieren. Um rsh zu deaktivieren, geben Sie Folgendes ein: chkconfig rsh off Festlegen des oracle-Benutzerkennworts Dell empfiehlt nachdrücklich, ein Kennwort für den Benutzer oracle einzurichten, um das System zu schützen. Gehen Sie wie folgt vor, um das oracle-Kennwort festzulegen: 1 Melden Sie sich als root beim System an.
Konfiguration des Datenbankspeichers Konfiguration des Datenbankspeichers mit ex3-Dateisystem Wenn Sie über ein zusätzliches Speichergerät verfügen, führen Sie folgende Schritte aus: 1 Melden Sie sich als root beim System an. 2 Geben Sie ein: cd /opt/oracle 3 Geben Sie ein: mkdir oradata recovery 4 Erstellen Sie mit dem Dienstprogramm fdisk eine Partition, auf der Sie die Datenbankdateien speichern möchten (etwa sdb1, wenn das Speichergerät sdb ist).
Konfiguration von ASM-Datenspeicher mit der RAW-Geräteschnittstelle 1 Öffnen Sie die Datei /etc/sysconfig/rawdevices, und fügen Sie folgende Zeilen hinzu: /dev/raw/ASM1 /dev/sdb1 /dev/raw/ASM2 /dev/sdc1 2 Geben Sie service rawdevices restart ein, um den RAW-Gerätedienst neu zu starten. Konfiguration des Datenbankspeichers mit dem Oracle ASM-Bibliothekstreiber Dieser Abschnitt enthält Vorgehensweisen für die Konfiguration des Speichergeräts mit ASM.
7 Wiederholen Sie Schritt 4 bis Schritt 6 für weitere zu erstellende ASM-Datenträger. 8 Überprüfen Sie, ob die ASM-Datenträger erstellt wurden und für ASM-Verwendung gekennzeichnet sind. Geben Sie im Terminalfenster den folgenden Befehl ein, und drücken Sie die : service oracleasm listdisks Die in Schritt 6 erstellten Datenträger werden im Terminalfenster aufgelistet.
14 Klicken Sie im Fenster Summary (Übersicht) auf Install (Installieren). 15 Öffnen Sie nach Aufforderung ein Terminalfenster und führen Sie root.sh aus. Kurzzeitig wird ein Statusfenster angezeigt. Anschließend wird End of Installation (Installation abgeschlossen) angezeigt. 16 Klicken Sie auf Exit (Beenden), und bestätigen Sie mit Ja. 17 Melden Sie sich als root beim System an. 18 Geben Sie ein: /opt/oracle/product/10.2.0/db_1/bin/localconfig add Die Installation ist damit abgeschlossen.
6 Klicken Sie auf Weiter. 7 Klicken Sie im Bildschirm Specify Home Details (Stammdetails festlegen) auf Weiter. 8 Klicken Sie im Fenster Specify Hardware Cluster Installation Mode (Hardware-ClusterInstallationsmodus festlegen) auf Weiter. 9 Klicken Sie im Bildschirm Summary (Übersicht) auf Install (Installieren). Der Oracle Universal Installer untersucht das System, zeigt alle benötigten Patches an und installiert diese auf dem System.
Erstellen der Startdatenbank Erstellen der Startdatenbank mit ext3-Dateisystem Gehen Sie wie folgt vor, um mit dem Datenbankkonfigurationsassistenten eine Startdatenbank zu erstellen: 1 Melden Sie sich als Benutzer oracle an. 2 Geben Sie dbca ein, um den Oracle DBCA zu starten. 3 Klicken Sie im Begrüßungsfenster auf Weiter. 4 Klicken Sie im Fenster Operations (Vorgänge) auf Create a Database (Datenbank erstellen) und anschließend auf Weiter.
18 Geben Sie export ORACLE_SID=dbname ein, wobei dbname der globale Bezeichner ist, den Sie im Datenbankkonfigurationsassistenten für die Datenbank definiert haben. 19 Überprüfen Sie, ob die Datenbank richtig ausgeführt wird, indem Sie folgende Schritte durchführen: a Geben Sie sqlplus "/ as sysdba" ein, um die SQL>-Eingabeaufforderung anzuzeigen.
12 Geben Sie im Fenster Create Disk Group (Datenträgergruppe erstellen) die Speicherinformationen für die Datenbankdateien ein, und klicken Sie auf OK. a Geben Sie einen Namen für die zu erstellende Datenträgergruppe ein, etwa databaseDG, wählen Sie External Redundancy (Externe Redundanz), und wählen Sie dann die Datenträger für die Datenträgergruppe aus. b Wenn Sie die RAW-Geräteschnittstelle verwenden, wählen Sie /dev/raw/ASM1.
19 Wählen Sie im Fenster Initialization Parameters (Initialisierungsparameter) die Option Typical (Typisch), und klicken Sie auf Weiter. 20 Klicken Sie im Fenster Database Storage (Datenbankspeicher) auf Weiter. 21 Klicken Sie im Fenster Creation Options (Erstellungsoptionen) auf Create Database (Datenbank erstellen) und anschließend auf Finish (Fertig stellen). 22 Klicken Sie im Fenster Confirmation (Bestätigung) auf OK, um die Datenbank zu erstellen.
Hinzufügen eines neuen Knotens zur Netzwerkschicht So fügen Sie der Netzwerkschicht einen neuen Knoten hinzu: 1 Installieren Sie auf dem neuen Knoten das Betriebssystem Red Hat Enterprise Linux. Siehe „Installation und Konfiguration von Red Hat Enterprise Linux“. 2 Konfigurieren Sie das öffentliche und private Netzwerk auf dem neuen Knoten. Siehe „Konfiguration des öffentlichen und privaten Netzwerks“. 3 Überprüfen Sie, ob jeder Knoten die Speicher-LUNs oder logischen Laufwerke erkennt.
7 Öffnen Sie ein Terminalfenster und führen Sie auf dem neuen Knoten die folgenden Schritte durch: a Geben Sie ein: service oracleasm configure. b Machen Sie auf allen Knoten die folgenden Eingaben: Default user to own the driver interface [ ]: oracle Default group to own the driver interface [ ]: dba Start Oracle ASM library driver on boot (y/n) [n]: y Fix permissions of Oracle ASM disks on boot (y/n) [y]: y 8 Überprüfen Sie, ob der neue Knoten auf die ASM-Datenträger zugreifen kann.
6 Wenn Sie aufgefordert werden, rootaddnode.sh auf dem lokalen Knoten und root.sh auf dem neuen Knoten als Benutzer root auszuführen, rufen Sie /crs/oracle/product/10.2.0/crs/install/rootaddnode.sh auf. 7 Wenn die Ausführung von root.sh im Fenster Execute Configuration Scripts (Konfigurationsskripte ausführen) beendet ist, klicken Sie auf OK. 8 Klicken Sie im Fenster End of Cluster Node Addition (Knoten hinzufügen: Fertig) auf Exit (Beenden) und klicken Sie im Fenster Exit (Beenden) auf Yes (Ja).
Führen Sie auf einem der Knoten folgende Schritte aus: 1 Melden Sie sich als root beim System an. 2 Geben Sie startx ein, um das X-Window-System zu starten. 3 Öffnen Sie ein Terminalfenster und geben Sie ein: xhost + 4 Geben Sie als Benutzer oracle den Befehl lsnrctl stop ein, um den Listener anzuhalten. 5 Wenn dies funktioniert hat, geben Sie netca ein, um den Netzwerkkonfigurationsassistenten zu starten.
Hinzufügen eines neuen Knotens zur Datenbankinstanzschicht 1 Geben Sie auf den bestehenden Knoten als Benutzer oracle den Befehl dbca & ein, um den Datenbankkonfigurationsassistenten (DBCA) zu starten. 2 Klicken Sie im Begrüßungsfenster auf Weiter. 3 Klicken Sie im Fenster Operations (Vorgänge) auf Instance Management (Datenbankinstanzen verwalten) und anschließend auf Weiter.
Entfernen eines Knotens aus dem Cluster Achten Sie beim Durchführen der Maßnahmen in diesem Abschnitt darauf, dass Sie den richtigen Knoten zum Entfernen aus dem Cluster auswählen. Löschen eines Knotens aus der Datenbankinstanzschicht 1 Melden Sie sich als Benutzer oracle an. 2 Geben Sie auf einem der anderen Knoten Folgendes ein: dbca & 3 Klicken Sie im Begrüßungsfenster auf Weiter.
10 Überprüfen Sie die Angaben zum Löschen der Instanz, und klicken Sie auf OK. Der DBCA entfernt die Instanz und die dazugehörige Oracle Net-Konfiguration. Dieser Vorgang wird durch einen Fortschrittsbalken visualisiert. Nach Abschluss des Vorgangs werden Sie in einem Dialogfeld gefragt, ob Sie einen weiteren Vorgang ausführen möchten. 11 Klicken Sie zum Beenden auf No (Nein). 12 Geben Sie srvctl config database -d ein, um zu überprüfen, ob der Knoten entfernt wurde.
Anhalten und Entfernen von ASM vom gelöschten Knoten Führen Sie auf einem der verbleibenden Knoten folgende Schritte durch: 1 Öffnen Sie ein Terminalfenster. 2 Geben Sie ein: srvctl stop asm -n wobei für den Knoten steht, der aus dem Cluster entfernt werden soll. 3 Geben Sie ein: srvctl remove asm -n wobei für den Knoten steht, der aus dem Cluster entfernt werden soll.
Neuinstallation der Software HINWEIS: Bei der Neuinstallation der Software werden sämtliche Daten von den Festplatten gelöscht. HINWEIS: Sie müssen sämtliche externe Speichergeräte vom System trennen, bevor Sie die Software neu installieren. HINWEIS: Dell empfiehlt, regelmäßige Sicherungen der Datenbank und der einzelnen Knoten durchzuführen, damit Sie keine wertvollen Daten verlieren. Installieren Sie die Knotensoftware nur dann neu, wenn keine andere Möglichkeit besteht.
Tabelle 1-7. Unterstützte Softwareversionen (Fortsetzung) Softwarekomponente Unterstützte Versionen DKMS 2.0.11-1 QLogic HBA QLE2362 (QLA2322) 8.01.02-d4 QLogic HBA QLE2460 (QLA2400) 8.01.02-d4 QLogic HBA QLE2462 (QLA2400) 8.01.02-d4 Emulex HBA LP1000 & LP1150e (lpfc) 8.0.16.18 PERC 4e/Si, PERC 4e/Di (megaraid_mbox) 2.20.4.6 PERC 5/e, PERC 5/I (megaraid_sas) 00.00.02.00 Intel PRO/100 S NIC-Treiber (e100) 6.1.16-k3-NAPI Intel PRO/1000 XT/MT/MT DP NIC-Treiber (e1000) 6.1.
3 Stellen Sie fest, welches Treibermodul der private NIC verwendet (siehe Tabelle 1-8 oben). 4 Zeigen Sie die Datei /etc/modprobe.conf an, indem Sie eingeben: more /etc/modprobe.conf Mehrere Zeilen haben das Format alias ethx Treibermodul, wobei x die EthernetSchnittstellennummer und Treibermodul das in Schritt 3 bestimmte Modul ist. So wird z. B. die Zeile alias eth1 tg3 angezeigt, wenn eth1 vom Betriebssystem einem Broadcom NetXtreme Gigabit-NIC zugewiesen wurde.
Tabelle 1-9. Fehlerbehebung (Fortsetzung) Kategorie Problem/Anzeichen Ursache Empfohlene Maßnahmen Datenbank Die Instanz wird eventuell mit einem ORA-600-Fehler [kclcls_5] in der RAC-Instanz beendet. Ursache ist der Wenden Sie den Patch 4639236 an, der auf der Oracle OracleMetalink-Website metalink.oracle.com bereitsteht. Programmfehler 4639236. Informationen erhalten Sie auf der Oracle MetalinkWebsite unter metalink.oracle.com.
Tabelle 1-9. Kategorie Fehlerbehebung (Fortsetzung) Problem/Anzeichen Ursache Leistung und Die Warnung Stabilität „Unknown interface type“ (Unbekannter Schnittstellentyp) wird im OracleAlarmprotokoll angezeigt. Die öffentliche Schnittstelle ist für interne Clusterkommunikation konfiguriert (private Schnittstelle). Schlechte Systemleistung.
Tabelle 1-9. Fehlerbehebung (Fortsetzung) Kategorie Problem/Anzeichen Ursache Empfohlene Maßnahmen NETCA Mit NETCA lassen sich keine Netzwerkknoten konfigurieren, oder Sie erhalten bei Ausführung des DBCA einen „RAW device validation error“ (Fehler beim Überprüfen eines Ursprungsgeräts). Die Datei /etc/hosts.equiv ist nicht vorhanden oder enthält nicht die zugewiesenen öffentlichen und virtuellen IPAdressen. Stellen Sie sicher, dass die Datei /etc/hosts.
Tabelle 1-9. 246 Fehlerbehebung (Fortsetzung) Kategorie Problem/Anzeichen Ursache Empfohlene Maßnahmen CRS Fehler beim Start von CRS, wenn Sie die Knoten neu starten oder den Befehl /etc/ini.d/ init.crs start ausführen. Der CSS-Daemon (Cluster Ready Services) kann nicht auf den QuorumDatenträger schreiben. • Versuchen Sie den Dienst neu zu starten, indem Sie den Knoten neu starten oder den Befehl root.sh im Verzeichnis /crs/oracle/product/10.2.0/crs/ ausführen.
Tabelle 1-9. Fehlerbehebung (Fortsetzung) Kategorie Problem/Anzeichen Ursache CRS CRS startet beim Ausführen von root.sh nicht. Der Benutzer oracle besitzt keine Zugriffsrechte auf das Verzeichnis /var/tmp (insbesondere /var/tmp/.oracle). 1 Legen Sie den Benutzer oracle als Besitzer des CRS startet beim Ausführen von root.sh nicht. Andere Schritte zur Fehlerbehebung bei CRS wurden ohne Erfolg durchgeführt.
Tabelle 1-9. Fehlerbehebung (Fortsetzung) Kategorie Problem/Anzeichen Ursache CRS Knoten startet ununterbrochen neu. Die private Verbindung ist ausgefallen. Empfohlene Maßnahmen 1 Starten Sie Linux im Einzelbenutzermodus. 2 Geben Sie ein: /etc/inet.d/init.crs disable 3 Überprüfen Sie, ob der Knoten die anderen Clusterknoten mit Ping-Befehlen über die private Verbindung erreicht. 4 Geben Sie ein: /etc/inet.d/init.crs enable 5 Starten Sie das System neu.
Tabelle 1-9. Fehlerbehebung (Fortsetzung) Kategorie Problem/Anzeichen Ursache Empfohlene Maßnahmen Softwareinstallation Oracle-Software lässt sich auf den Knoten nicht installieren. Die Systemzeiten der Führen Sie eines der folgenden Verfahren durch: Knoten sind nicht • Stellen Sie sicher, dass die Systemzeit auf dem Knoten identisch. für die Oracle-Installation auf eine spätere Zeit als die übrigen Knoten eingestellt ist.
Wie Sie Hilfe bekommen Dell Support Weitere Informationen zum Betrieb des Systems erhalten Sie in der zusammen mit den Systemkomponenten gelieferten Dokumentation. Whitepapers, Informationen zu den von Dell unterstützten Konfigurationen und allgemeine Informationen erhalten Sie auf der entsprechenden Dell|Oracle-Website www.dell.com/10g. Technischen Support von Dell für die Hardware und die Betriebssystemsoftware sowie aktuelle Updates für das System finden Sie auf der Dell Support-Webseite unter support.
Index A F I ASM Konfiguration des Datenbankspeichers, 223 Fehlerbehebung, 242 B G Beispiele Fibre-Channel-Cluster, Hardwareverbindungen, 197 Gemeinsamen Speicher für CRS konfigurieren, 207 Installation CRS, 210 Mit Dell DeploymentCD, 194 Oracle Database 10g, 213 Oracle Database 10g (Einzelknoten), 225 Oracle RAC 10g, 210 Red Hat Enterprise Linux, 194 Bonding (Bündelung), 203 C Cluster Fibre-ChannelHardwareverbindungen, Beispiel, 197 Cluster einrichten Fibre-Channel, 196 CRS Installation, 210 CRS
Index Konfiguration(Fortsetzung) Oracle Database 10g (Einzelknoten), 222 Oracle RAC 10g, 202 Red Hat Enterprise Linux, 195 Konfiguration der öffentlichen und privaten Netzwerke, 202 Konfiguration von Oracle 10g, 196 Hardware- und Softwarekonfigurationen überprüfen, 196 Konfiguration von Oracle RAC 10g, 202 Startdatenbank erstellen, 219 Konfigurieren des privaten Netzwerks, 203 L Listener, Konfiguration, 218, 227, 234 O R Öffentliches Netzwerk Konfiguration, 202-203 Red Hat Systempakete aktualisie
W Wie Sie Hilfe bekommen, 250 Z Zusätzliche Informationen, 240 Private Netzwerkschnittstelle identifizieren, 241 Zusätzliche Konfigurationsoptionen Hinzufügen und Entfernen von Knoten, 231 Index 253
Index 254 Index
Dell™ PowerEdge™ システム Oracle Database 10g Extended Memory 64 Technology(EM64T) Enterprise Edition Linux 導入ガイドバージョン 2.1 w w w. d e l l . c o m | s u p p o r t . d e l l .
メモおよび注意 メモ:コンピュータを使いやすくするための重要な情報を説明しています。 注意:ハードウェアの損傷やデータの損失の可能性があることを示し、その危険を回避するための方法を 説明しています。 ____________________ 本書の内容は予告なく変更されることがあります。 © 2006 すべての著作権は Dell Inc. にあります。 Dell Inc. の書面による許可のない複製は、いかなる形態においても厳重に禁じられています。 本書に使用されている商標:Dell、DELL ロゴ、および PowerEdge は Dell Inc. の商標です。EMC、PowerPath、および Navisphere は EMC Corporation の登録商標です。Intel および Xeon は Intel Corporation の登録商標です。Red Hat は Red Hat, Inc. の登録商標です。 本書では、必要に応じて上記以外の商標や会社名が使用されている場合がありますが、これらの商標や会社名は、一切 Dell Inc.
目次 Oracle RAC 10g Deployment Service . . . . . . . . . . . . . . . . . . . ソフトウェアおよびハードウェアの要件 ライセンス契約 . . . 重要なマニュアル . . 作業を開始する前に 259 . . . . . . . . . . . . . . . 260 . . . . . . . . . . . . . . . . . . . . . . . 261 262 262 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Red Hat Enterprise Linux のインストールおよび設定 . . . . . . . . . . 『Deployment CD』を使用した Red Hat Enterprise Linux のインストール . . . . . . Red Hat Enterprise Linux の設定 . . . . . . . . . . .
Oracle ASM Library Driver を使用したデータベース 記憶域の設定 . . . . . . . . . . . . . . . . . . . . . . . Oracle Database 10g のインストール. . . . . . . . . . . . Oracle Database 10g 10.2.0.2 パッチセットのインストール リスナーの構成 . . . . . . . . . . . . . . . . . . . . . . シードデータベースの作成 . . . . . . . . . . . . . . . . ノードの追加と削除 . . . . 291 292 293 295 295 . . . . . . . . . . . . . . . . . . . . . . . . . . 298 ネットワーク層への新しいノードの追加. . . . . . . . 新しいノードの共有ストレージの構成 . . . . . . . . . クラスタウェア層への新しいノードの追加 . . . . . . データベース層への新しいノードの追加. . . . . .
本書では、Dell|Oracle がサポートされた構成で Oracle Database 10g Enterprise Edition with the Oracle Real Application Clusters(RAC)ソフトウェアをインストール、設定、再インストール、 および使用するのに必要な情報について説明します。本書と『Dell Deployment CD』、『Red Hat Enterprise Linux CD』、および『Oracle RAC 10g ソフトウェア CD』を併用して、使用するソフト ウェアをインストールしてください。 メモ:再インストール用 CD のみを使用して OS をインストールする場合、本書の手順は該当しないこ とがあります。 本書では、以下の情報について説明します。 • ソフトウェアおよびハードウェアの要件 • Red Hat® Enterprise Linux のインストールと設定 • クラスタのハードウェアおよびソフトウェアの構成の確認 • Oracle RAC 用のストレージ(記憶域)およびネットワークの構成 • Oracle RAC のインス
ソフトウェアおよびハードウェアの要件 Oracle RAC ソフトウェアをシステムにインストールする前に、以下の手順を実行してください。 • Red Hat のウェブサイト rhn.redhat.com から『Red Hat CD』のイメージをダウンロードし ます。 • Oracle CD キットを用意します。 • Dell|Oracle Tested and Validated Configurations(Dell | Oracle で検証済みの構成)ウェブサ イト www.dell.com/10g から、インストールするソリューションに適した『Dell Deployment CD』のイメージをダウンロードします。ダウンロードした CD イメージをすべて CD に書き込みます。 表 1-1 に、デルがサポートする Oracle の構成の基本的なソフトウェア要件の一覧を示します。 表 1-2 ~ 表 1-3 は、ハードウェアの要件の一覧です。最低限必要なドライバとアプリケーションの バージョンの詳細については、「サポートされるソフトウェアのバージョン」を参照してください。 表 1-1.
表 1-2. ハードウェアの最小要件 ― ファイバーチャネルクラスタ ハードウェアコンポーネント Dell™ PowerEdge™ システム (Automatic Storage Management [ASM] を使用した 2 ~ 8 ノード) 構成 Intel® Xeon® プロセッサファミリー 1 GB RAM 内蔵ハードドライブ用の PERC(PowerEdge Expandable RAID Controller) PERC に接続された 73 GB のハードドライブ(RAID 1)2 台 ギガビットネットワークインタフェースコントローラ(NIC)ポー ト3個 光学式ホストバスアダプタ(HBA)ポート 2 個 Dell|EMC ファイバーチャネルスト レージシステム ギガビットイーサネットスイッチ (2 台) Dell|EMC ファイバーチャネルスイッ チ(2 台) サポートされる構成については、Dell|Oracle Tested and Validated Configurations(Dell|Oracle で検証済みの構成)ウェブ サイト www.dell.
重要なマニュアル 特定のハードウェアコンポーネントの詳細については、システムに付属のマニュアルを参照してくだ さい。 Oracle の製品情報については、Oracle CD キットの『How to Get Started』ガイドを参照してくだ さい。 作業を開始する前に Red Hat Enterprise Linux OS をインストールする前に、Red Hat Network ウェブサイト rhn.redhat.com から Red Hat Enterprise Linux Quarterly Update ISO イメージをダウンロード し、それらのイメージを CD に書き込みます。 ISO イメージをダウンロードするには、以下の手順を実行します。 1 Red Hat Network ウェブサイト rhn.redhat.
5 導入イメージのソースを尋ねる別のメニューが表示されたら、1 と入力して Copy solution by Deployment CD(『Deployment CD』によるソリューションをコピーする)を選択します。 メモ:この処理には数分かかることがあります。 6 表示されるメッセージに従って、『Dell Deployment CD2』および各『Red Hat Installation CD』を CD ドライブにセットします。 導入パーティションが作成され、CD に収められた各ファイルがここにコピーされます。コ ピー操作が完了すると、最後の CD が自動的にイジェクトされて、導入パーティションから起 動します。 インストールが完了すると、システムが自動的に再起動して、Red Hat セットアップエージェ ントの画面が表示されます。 7 Red Hat セットアップエージェントの ようこそ ウィンドウで、進む をクリックして OS の設 定を行います。この時点では OS ユーザーを設定しないでください。 8 表示されるメッセージに従って、root パスワードを指定します。 9 ネットワーク設
6 ./010-hwCheck.
図 1-1 ファイバーチャネルクラスタ用のハードウェアの接続 クライアントシステム ギガビットイーサネットスイッチ (プライベートネットワーク) LAN/WAN PowerEdge システ ム(Oracle データ ベース) Dell|EMC ファイバーチャネルス イッチ(SAN) Dell|EMC ファイバーチャネル ストレージシステム CAT 5e/6(パブリック NIC) CAT 5e/6(銅線 ギガビット NIC) 光ファイバーケーブル 追加の光ファイバーケーブル 表 1-4.
表 1-4.
ファイバーチャネルのハードウェアとソフトウェアの構成 • 各ノードには、少なくとも 表 1-2 に説明するハードウェア周辺機器が含まれている必要があり ます。 • 各ノードには、以下のソフトウェアをインストールする必要があります。 • – Red Hat Enterprise Linux ソフトウェア(表 1-1 を参照) – ファイバーチャネル HBA ドライバ ファイバーチャネルストレージシステムは、以下の構成が必須です。 – クラスタストレージグループに対して少なくとも 3 つの LUN を作成して割り当てる (表 1-5 を参照) – LUN のサイズは最小 5 GB 表 1-5.
図 1-2 直接接続のファイバーチャネルクラスタのケーブル接続 ノード 1 ノード 2 HBA ポート(2) HBA ポート(2) 0 1 0 1 SP ポート SP-B 3 2 1 0 0 1 2 3 SP-A CX700 ストレージシステム 直接接続構成 ノードを直接接続(図 1-2 を参照)で構成するには、以下の手順を実行します。 268 1 1 本の光ケーブルをノード 1 の HBA0 から SP-A のポート 0 に接続します。 2 1 本の光ケーブルをノード 1 の HBA1 から SP-B のポート 0 に接続します。 3 1 本の光ケーブルをノード 2 の HBA0 から SP-A のポート 1 に接続します。 4 1 本の光ケーブルをノード 2 の HBA1 から SP-B のポート 1 に接続します。 導入ガイド
図 1-3 SAN 接続のファイバーチャネルクラスタのケーブル接続 ノード 2 ノード 1 0 1 HBA ポート(2) HBA ポート(2) sw0 0 1 sw1 SP ポート 3 2 SP-B 1 0 0 1 CX700 ストレージシステム 2 3 SP-A SAN 接続構成 ノードを 4 ポートの SAN 接続(図 1-3 を参照)で構成するには、以下の手順を実行します。 1 1 本の光ケーブルを SP-A ポート 0 からファイバーチャネルスイッチ 0 に接続します。 2 1 本の光ケーブルを SP-A ポート 1 からファイバーチャネルスイッチ 1 に接続します。 3 1 本の光ケーブルを SP-A ポート 2 からファイバーチャネルスイッチ 0 に接続します。 4 1 本の光ケーブルを SP-A ポート 3 からファイバーチャネルスイッチ 1 に接続します。 5 1 本の光ケーブルを SP-B ポート 0 からファイバーチャネルスイッチ 1 に接続します。 6 1 本の光ケーブルを SP-B ポート 1 からファイバーチャネルスイッチ 0 に
8 1 本の光ケーブルを SP-B ポート 3 からファイバーチャネルスイッチ 1 に接続します。 9 1 本の光ケーブルをノード 1 の HBA0 からファイバーチャネルスイッチ 0 に接続します。 10 1 本の光ケーブルをノード 1 の HBA1 からファイバーチャネルスイッチ 1 に接続します。 11 1 本の光ケーブルをノード 2 の HBA0 からファイバーチャネルスイッチ 0 に接続します。 12 1 本の光ケーブルをノード 2 の HBA1 からファイバーチャネルスイッチ 1 に接続します。 Oracle RAC 10g 用のストレージ(記憶域)およびネットワー クの設定 本項では、シードデータベースを実行するファイバーチャネルクラスタのセットアップに関する情 報と手順を説明します。 • パブリックおよびプライベートネットワークの設定 • システムの保護 • ストレージ構成の確認 • Cluster Ready Services(CRS)および Oracle Database 向けの共有ストレージの構成 Oracle RAC 10g は、順序化された一連の手
パブリックネットワークの設定 メモ:パブリック IP アドレスが有効でルータブルな IP アドレスであることを確認してください。 パブリックネットワークの設定をまだ行っていない場合は、次の手順を各ノードで実行して設定を 行います。 1 2 3 root としてログインします。 ネットワークデバイスファイル /etc/sysconfig/network-scripts/ifcfg-eth# を編集します (# はネットワークデバイスの番号を表します)。ファイルの設定は次のとおりです。 DEVICE=eth0 ONBOOT=yes IPADDR=< パブリック IP アドレス > NETMASK=< サブネットマスク > BOOTPROTO=static HWADDR= SLAVE=no /etc/sysconfig/network ファイルを編集し、必要に応じて、localhost.localdomain を完全修飾 パブリックノード名に変えます。 たとえば、ノード 1 の行は次のようになります。 HOSTNAME=node1.domain.
3 可用性を高めるためには、/etc/modprobe.conf ファイルを編集して、リンク監視オプショ ンを設定します。 デフォルトでは miimon の値は 0 で、この場合、リンクの監視は行われません。まず、値を 100 ミリ秒に変更しておき、必要に応じて、次の例に示すように値を調整してパフォーマンス を改善します。次のように入力します。 options bonding miimon=100 mode=1 4 /etc/sysconfig/network-scripts/ ディレクトリで、ifcfg-bond0 設定ファイルを作成または 編集します。 たとえば、サンプルネットワークのパラメータを使用した場合、ファイルは以下のようになり ます。 DEVICE=bond0 IPADDR=192.168.0.1 NETMASK=255.255.255.0 NETWORK=192.168.0.0 BROADCAST=192.168.0.
6 各ノードで ifconfig と入力して、プライベートインタフェースが機能していることを確認します。 ノードのプライベート IP アドレスはプライベートインタフェース bond0 に割り当てる必要が あります。 7 各ノードにプライベート IP アドレスを設定したら、1 つのノードから各 IP アドレスを ping し て、プライベートネットワークが機能していることを確認します。 8 ssh < プライベート IP> と入力して各ノードに接続し、プライベートネットワークと ssh が正常 に機能していることを確認します。 9 各ノードで、/etc/hosts ファイルに以下の各行を追加して修正します。 127.0.0.1 localhost.
ストレージ構成の確認 クラスタの構成中に、ファイバーチャネルストレージシステムにパーティションを作成します。 パーティションを作成するには、すべてのノードが外付けストレージデバイスを検出できるように する必要があります。各ノードが各ストレージ LUN または論理ディスクを検出できることを確認す るには、次の手順を実行します。 1 Dell|EMC ファイバーチャネルストレージシステムでは、EMC Navisphere® エージェントと正 しいバージョンの PowerPath(表 1-7 を参照)が各ノードにインストールされていること、お よび EMC Navisphere ソフトウェアで各ノードが正しいストレージグループに割り当てられて いることを確認します。手順については、Dell|EMC ファイバーチャネルストレージシステム に付属のマニュアルを参照してください。 メモ:この作業はクラスタを設置したデルの公認技術者によって実行されています。ソフトウェ アをノードにインストールする場合は、この手順を実行する必要があります。 2 ストレージデバイスとノードが正しくファイバーチャネルスイッチに接続されてい
Clusterware 用の共有ストレージの構成 本項では、Oracle Clusterware 用の共有ストレージを構成する手順について説明します。 RAW デバイスインタフェースを使用した共有ストレージの構成 1 ノード 1 で、fdisk コマンドを使って、外付けストレージデバイスに 3 つのパーティションを 作成します。 fdisk /dev/emcpowerx と入力して、Cluster Repository、投票ディスク、および Oracle システム のパラメータファイルのそれぞれに 150 MB のパーティションを 3 つ作成します。 2 次のように入力して、新しいパーティションを確認します。 more /proc/partitions すべてのノードで、/proc/partitions ファイル内に新しいパーティションが表示されない場合 は、次のように入力します。 sfdisk -R /dev/< デバイス名 > 3 すべてのノードで以下の手順を実行します。 a /etc/sysconfig/rawdevices ファイルを編集して、ファイバーチャネルクラスタ用に以下 の行を追加
SELinux を無効のままにしておくには、すべてのノードで以下の手順を実行します。 1 grub.conf ファイルを開きます。 2 カーネルコマンドラインを確認し、次のオプションを追加します。 selinux=0 たとえば、次のとおりです。 kernel /vmlinuz-2.6.9-34.
4 ASM ディスク(たとえば、ASM3)をさらに追加するには、すべてのノードで /etc/udev/scripts/raw-dev.sh ファイルを編集し、以下に示すように該当する太字の項目を 追加します。 MAKEDEV raw mv /dev/raw/raw1 /dev/raw/votingdisk mv /dev/raw/raw2 /dev/raw/ocr.dbf mv /dev/raw/raw3 /dev/raw/spfile+ASM.ora mv /dev/raw/raw4 /dev/raw/ASM1 mv /dev/raw/raw5 /dev/raw/ASM2 mv /dev/raw/raw6 /dev/raw/ASM3 chmod 660 /dev/raw/{votingdisk,ocr.dbf,spfile+ASM.ora,ASM1,ASM2,ASM3} chown oracle.dba /dev/raw/{votingdisk,ocr.dbf,spfile+ASM.
5 ASM ディスクが作成され、ASM 使用のマークが付いていることを確認します。 ターミナルウィンドウで次のテキストを入力し、 を押します。 service oracleasm listdisks 手順 3 で作成したディスクが表示されます。 たとえば、次のとおりです。 ASM1 ASM2 6 残りのノードが 手順 3 で作成した ASM ディスクにアクセスできることを確認します。 残りの各ノードでターミナルを開き、次のテキストを入力し、 を押します。 service oracleasm scandisks Oracle RAC 10g のインストール 本項では Oracle RAC 10g のインストール手順について説明します。これには CRS のインストール および Oracle Database 10g ソフトウェアのインストールが含まれます。クラスタを実働環境に導 入する前に、シードデータベースを作成してそのクラスタが正しく動作するかどうか確認すること をお勧めします。 作業を開始する前に インストール中のエラーを避けるために、すべてのノードでシステムクロックの
5 次のように入力します。 /cluvfy/runcluvfy.sh stage -pre crsinst -n node1,node2 -r 10gR2 -verbose node1 および node2 はパブリックホスト名です。 お使いのシステムが正しく構成されていない場合は、問題を解決してから上記の runcluvfy.sh コマンドを繰り返します。 お使いのシステムが正しく構成されると、次のメッセージが表示されます。 Pre-check for cluster services setup was successful on all the nodes. (クラスタサービスセットアッ プのプリチェックがすべてのノードで成功しました)。 6 次のように入力します。 su - oracle 7 次のコマンドを入力して、Oracle Universal Installer を起動します。 unset ORACLE_HOME /runInstaller 次のメッセージが表示されます。 Was Orootpre.
13 Specify Network Interface Usage(ネットワークインタフェースの用途を指定する)ウィ ンドウで、パブリックインタフェース名とプライベートインタフェース名が正しいことを確認 します。 インタフェースを変更するには、次の手順を実行します。 14 a インタフェース名を選択し、編集 をクリックします。 b インタフェースタイプ ボックスの Edit private interconnect type(プライベート相互 接続タイプの編集)ウィンドウで、適切なインタフェースタイプを選択し、OK をクリッ クします。 c Specify Network Interface Usage(ネットワークインタフェースの用途を指定する) ウィンドウで、パブリックインタフェース名とプライベートインタフェース名が正しいこ とを確認し、次へ をクリックします。 Specify Oracle Cluster Registry (OCR) Location(Oracle Cluster Registry(OCR)の場所 の指定)ウィンドウで、次の手順を実行します。 a OCR Conf
20 すべてのノードで、次の手順を実行します。 a 次のコマンドを入力して Clusterware のインストールを確認します。 olsnodes -n -v クラスタ内のすべてのノードのパブリックノード名が一覧表示されます。 b 次のように入力します。 crs_stat -t 実行中のすべての Clusterware サービスが表示されます。 Oracle Database 10g ソフトウェアのインストール 1 root としてログインし、次のように入力します。 cluvfy stage -pre dbinst -n node1,node2 -r 10gR2 -verbose node1 および node2 はパブリックホスト名です。 お使いのシステムが正しく構成されない場合は、「トラブルシューティング」で詳細を参照し てください。 お使いのシステムが正しく構成されると、次のメッセージが表示されます。 Pre-check for database installation was successful.
9 製品固有の前提条件のチェック ウィンドウで、各システムチェックの ステータス 行に 成功し ました が表示されていることを確認し、次へ をクリックします。 メモ:スワップサイズ に関する警告が表示される場合があります。警告を無視し、はい をク リックして続行します。 10 構成オプションの選択 ウィンドウで データベースソフトウェアのみインストール を選択し、 次へ をクリックします。 11 サマリー ウィンドウで インストール をクリックします。 Oracle Database ソフトウェアがクラスタにインストールされます。 次に、Execute Configuration Scripts(構成スクリプトの実行)ウィンドウが表示されます。 12 ウィンドウ内の指示に従い、OK をクリックします。 13 インストールの終了 ウィンドウで、終了 をクリックします。 RAC Post 導入のパッチと修正 本項では、Oracle RAC 10g 導入のために必要なパッチと修正について説明します。 EMC PowerPath を正常にフェイルオーバーさせるための CSS Miscount の再
5 Linux x86-64(AMD64/EM64T)をプラットフォームとして、パッチ番号 4547817 を検索します。 6 パッチを /opt/oracle/patches ディレクトリにダウンロードします。 7 ダウンロードした ZIP ファイルを解凍するには、ターミナルウィンドウに次のテキストを入力 し、 を押します。 unzip p4547817_10202_LINUX-x86-64.
15 残りのノードについて、一度に 1 つずつのノードで 手順 12 ~ 手順 14 を繰り返します。 16 ノード 1 で、インストールの終了 画面に戻ります。 17 終了 をクリックします。 18 はい をクリックして Oracle Universal Installer を終了します。 RAC のインストールのアップグレード 1 ノード 1 でターミナルウィンドウを開きます。 2 oracle としてログインします。 3 Oracle Database ソフトウェアをインストールしたのと同じノードから Oracle Universal Installer を実行します。 a ノード 1 でターミナルウィンドウを開きます。 b oracle としてログインします。 c すべてのノードで Clusterware ノードのアプリケーションをシャットダウンします。 ターミナルウィンドウで次のテキストを入力し、 を押します。 $ORACLE_HOME/bin/srvctl stop nodeapps -n < ノード名 > メモ:警告メッセージが表示されても無視
13 サマリー 画面で インストール をクリックします。 Oracle Universal Installer がお使いのシステムをスキャンし、インストールの必要なすべての パッチを表示して、お使いのシステムにインストールします。インストールが完了すると、イ ンストールの終了 画面が表示されます。 次に、ユーザー root として root.sh を実行するように指示するメッセージウィンドウが表示 されます。 14 ターミナルウィンドウを開きます。 15 以下のテキストを入力し、 を押します。 /opt/oracle/product/10.2.0/db_1/root.
リスナーの構成 本項では、データベースへのリモートクライアントの接続に必要なリスナーの構成手順について説 明します。 1 つのノードのみで、以下の手順を実行します。 1 root としてログインします。 2 startx と入力して X Window System を起動します。 3 ターミナルウィンドウを開き、次のように入力します。 xhost + 4 ユーザー oracle として、netca と入力して Net Configuration Assistant を起動します。 5 クラスタ構成 を選択し、次へ をクリックします。 6 TOPSNodes ウィンドウで すべてのノードを選択する をクリックし、次へ をクリックします。 7 ようこそ ウィンドウで リスナーの構成 を選択し、次へ をクリックします。 8 リスナーの構成 ― リスナー ウィンドウで 追加 を選択し、次へ をクリックします。 9 リスナーの構成 ― リスナー名 ウィンドウの リスナー名 フィールドに LISTENER と入力し、次 へ をクリックします。 10 リスナーの構成 ― プロトコルの選
2 ノード 1 で、ユーザー oracle として dbca & と入力し、Oracle Database Creation Assistant (DBCA)を起動します。 3 ようこそ ウィンドウで Oracle Real Application Cluster データベース を選択し、次へ をク リックします。 4 操作 ウィンドウで データベースの作成 をクリックし、次へ をクリックします。 5 ノードの選択 ウィンドウで すべて選択 をクリックし、次へ をクリックします。 6 データベーステンプレート ウィンドウで カスタムデータベース をクリックし、次へ をクリッ クします。 7 データベース識別情報 ウィンドウで、racdb のような グローバルデータベース名 を入力してか ら、次へ をクリックします。 8 管理オプション ウィンドウで 次へ をクリックします。 9 データベース資格証明 ウィンドウでパスワードオプションを選択し、(要求された場合は)適 切なパスワード情報を入力し、次へ をクリックします。 10 記憶域オプション ウィンドウで、Automatic
15 flashbackDG をディスクグループ名として使用し、残りの ASM ディスクグループについて 手 順 14 を繰り返します。 16 ASM ディスクグループ ウィンドウで、データベース記憶域に使用するディスクグループを選 択し(たとえば、databaseDG)、次へ をクリックします。 17 データベースファイルの位置 ウィンドウで、Oracle Managed Files の使用 を選択し、次へ をクリックします。 18 リカバリ構成 ウィンドウで、参照 をクリックして、手順 15 で作成したフラッシュバックグ ループ(たとえば、flashbackDG)を選択し、必要に応じてフラッシュリカバリ領域のサイ ズを変更し、次へ をクリックします。 19 データベースサービス ウィンドウで、必要に応じてサービスの設定を行い、次へ をクリック します。 20 初期化パラメータ ウィンドウで、次の手順を実行します。 a カスタム を選択します。 b 共有メモリー管理 で 自動 を選択します。 c SGA サイズ ウィンドウと PGA サイズ ウィンドウに適切な情報を入力します
26 1 つのノードで、次のように入力します。 srvctl status database -d dbname dbname は、DBCA でデータベースに定義したグローバル識別子名です。 データベースインスタンスがすでに起動している場合は、確認メッセージが画面に表示されます。 データベースインストールが起動していない場合は、次のように入力します。 srvctl start database -d dbname dbname は、DBCA でデータベースに定義したグローバル識別子名です。 システムの保護 システムへの不正なアクセスを防ぐために、Oracle ソフトウェアのインストール後は rsh を無効に することをお勧めします。 rsh を無効にするには、次のテキストを入力します。 chkconfig rsh off oracle ユーザーパスワードの設定 システム保護のために、oracle ユーザーにはパスワードを設定することを強くお勧めします。以下 の手順に従って、oracle のパスワードを設定します。 1 root としてログインします。 2 passwd oracle と入力し、画面の
パブリックネットワークの設定 パブリックネットワークが機能していること、IP アドレスとホスト名がシステムに割り当てられて いることを確認します。 データベース記憶域の設定 ex3 ファイルシステムを使用したデータベース記憶域の設定 ストレージデバイスを追加した場合は、以下の手順を実行します。 1 root としてログインします。 2 次のように入力します。 cd /opt/oracle 3 次のように入力します。 mkdir oradata recovery 4 fdisk ユーティリティを使用して、データベースファイルを保管するパーティションを作成し ます(たとえば、ストレージデバイスが sdb なら sdb1)。 5 fdisk ユーティリティを使用して、リカバリファイルを保管するパーティションを作成します (たとえば、ストレージデバイスが sdc なら sdc1)。 6 新しいパーティションを確認するには、cat /proc/partitions と入力します。 新しいパーティションが見つからない場合は、次のように入力します。 sfdisk -R /dev/sdb sfdis
Oracle ASM を使用したデータベース記憶域の設定 以下の例では、データベースファイル用のディスクグループ 1 つ、およびフラッシュバックリカバ リとアーカイブログファイル用のディスクグループ 1 つをそれぞれ作成するために利用できる 2 台 のストレージデバイス(sdb および sdc)があることを前提とします。 1 root としてログインします。 2 fdisk /dev/sdb と入力して、デバイス全体に対するプライマリパーティションを作成します。 3 fdisk /dev/sdc と入力して、デバイス全体に対するプライマリパーティションを作成します。 raw デバイスインタフェースを使用した ASM 記憶域の設定 1 /etc/sysconfig/rawdevices ファイルを編集して、次の各行を追加します。 /dev/raw/ASM1 /dev/sdb1 /dev/raw/ASM2 /dev/sdc1 2 service rawdevices restart と入力して RAW デバイスサービスを再起動します。 Oracle ASM Library Driver を使
5 以下の手順を実行します。 a service oracleasm configure と入力します。 b すべてのノードについて、以下の入力を行います。 Default user to own the driver interface(ドライバインタフェースを所有するデ フォルトユーザー)[ ]: oracle Default group to own the driver interface(ドライバインタフェースを所有するデ フォルトグループ)[]: dba Start Oracle ASM library driver on boot(起動時に Oracle ASM ライブラリドライ バを開始する)(y/n) [n]: y Fix permissions of Oracle ASM disks on boot(起動時に Oracle ASM ディスクの パーミッションを修正する)(y/n) [y]: y 6 ターミナルウィンドウで、次のように入力します。 service oracleasm createdisk ASM1 /dev/sdb1 service oracleasm creat
6 Oracle Universal Installer を起動します。 ターミナルウィンドウで次のテキストを入力し、 を押します。 /runInstaller 7 インストール方法の選択 ウィンドウで 拡張インストール をクリックし、次へ をクリックします。 8 インストールタイプの選択 ウィンドウで Enterprise Edition をクリックし、次へ をクリッ クします。 9 ホームの詳細の指定 ウィンドウの パス フィールドに次のパスが表示されていることを確認し ます。 /opt/oracle/product/10.2.
5 Linux x86-64(AMD64/EM64T)をプラットフォームとして、パッチ番号 4547817 を検索します。 6 パッチを /opt/oracle/patches ディレクトリにダウンロードします。 7 ダウンロードした ZIP ファイルを解凍するには、ターミナルウィンドウに次のテキストを入力 し、 を押します。 unzip p4547817_10202_LINUX-x86-64.zip データベースソフトウェアのアップグレード 1 ターミナルウィンドウを開きます。 2 oracle としてログインします。 3 ORACLE_HOME が /opt/oracle/product/10.2.0/db_1 に設定されていることを確認します。 4 ユーザー root として、cssd の処理を停止します。停止するには、次のテキストを入力し、 を押します。 /etc/init.d/init.
13 インストールの終了 画面で、終了 をクリックします。 14 はい をクリックして Oracle Universal Installer を終了します。 15 cssd の処理を再開します。再開するには、次のテキストを入力し、 を押します。 /etc/init.d/init.
12 データベースコンテンツ ウィンドウで 次へ をクリックします。 13 初期化パラメータ ウィンドウで 次へ をクリックします。 14 データベース記憶域 ウィンドウで 次へ をクリックします。 15 作成オプション ウィンドウで、データベースの作成 をクリックし、終了 をクリックします。 16 確認 ウィンドウで OK をクリックするとデータベースが作成されます。 メモ:シードデータベースの作成には 1 時間またはそれ以上かかることがあります。 データベースの作成手順が完了すると、パスワード管理 ウィンドウが表示されます。 17 終了 をクリックします。 18 export ORACLE_SID=dbname と入力します。dbname は DBCA でデータベースに定義したグ ローバル識別子の名前です。 19 データベースが動作していることを確認するには、次の手順を実行します。 a sqlplus "/ as sysdba" と入力して、SQL> プロンプトを表示します。 b SQL> プロンプトで次のクエリーを入力します。 SELECT * FROM v$ins
11 ASM ディスクグループ ウィンドウで、使用可能なディスクグループ の下にある 新規作成 を クリックします。 12 ディスクグループの作成 ウィンドウでデータベースファイルのストレージ情報を入力し、OK をクリックします。 a databaseDG など、作成するディスクグループの名前を入力し、外部冗長性 を選択してか ら、ディスクグループに含めるディスクを選択します。 b RAW デバイスインタフェースを使用する場合は、/dev/raw/ASM1 を選択します。 c ASM ライブラリドライバを使用する場合で、候補ディスクにアクセスできない場合は、 ディスク検出パスの変更 をクリックし、ストリングとして ORCL:* と入力し、ASM1 を選 択します。 ディスクグループの作成が進行中であることを示すウィンドウが表示されます。 d ASM ライブラリドライバを使用する場合で、候補ディスクが表示されていなければ、ディ スク検出パスの変更 をクリックし、ストリングとして ORCL:* と入力します。 13 使用可能なディスクグループ で 新規作成 をクリックします。 14 デ
23 終了 をクリックします。 24 データベースの作成が完了したら、次のコマンドを入力して、Oracle のユーザープロファイル に ORACLE_SID 環境変数エントリを追加します。 echo "export ORACLE_SID=oradb" >> /home/oracle/.bash_profile source /home/oracle/.
ASM を使用した共有ストレージの構成 ASM を使用する場合は、新しいノードが既存のノードと同じ権限で ASM ディスクにアクセスでき るようにする必要があります。 ASM ディスクを設定するには、以下の手順を実行します。 1 root としてログインします。 2 コマンドプロンプトで、次のコマンドを入力します。 setenforce 0 SELinux を無効のままにしておくには、以下の手順を実行します。 1 grub.conf ファイルを開きます。 2 カーネルコマンドラインを確認し、次のオプションを追加します。 selinux=0 たとえば、次のとおりです。 kernel /vmlinuz-2.6.9-34.
8 新しいノードが ASM ディスクにアクセスできることを確認します。 ターミナルで次のテキストを入力し、 を押します。 service oracleasm scandisks 9 新しいノードで ASM ディスクが使用できることを確認します。 ターミナルウィンドウで次のテキストを入力し、 を押します。 service oracleasm listdisks 残りのノードで使用可能なディスクのすべてが表示されます。 たとえば、次のとおりです。 ASM1 ASM2 クラスタウェア層への新しいノードの追加 1 既存のノードの 1 つに oracle としてログインします。 2 この既存のノードの /crs/oracle/product/10.2.0/crs/oui/bin ディレクトリから ./addNode.
データベース層への新しいノードの追加 1 既存のノードの 1 つに oracle としてログインします。 2 この既存のノードの /opt/oracle/product/10.2.0/db_1/oui/bin ディレクトリから ./addNode.
10 リスナーの構成 ― リスナーの選択 ウィンドウで、プルダウンメニューから LISTENER を選択 し、次へ をクリックします。 11 リスナーの構成 ― プロトコルの選択 ウィンドウで TCP を選択し、次へ をクリックします。 12 リスナーの構成 ― TCP/IP プロトコル ウィンドウで 標準ポート番号 1521 を使用 を選択し、 次へ をクリックします。 13 リスナーの構成 ― リスナーの追加 ウィンドウで いいえ を選択し、次へ をクリックします。 14 リスナーの構成が終了しました ウィンドウで 次へ をクリックします。 15 完了 をクリックします。 データベースインスタンス層への新しいノードの追加 1 既存のノードの 1 つで、ユーザー oracle として dbca & と入力し、DBCA を起動します。 2 ようこそ ウィンドウで 次へ をクリックします。 3 操作 ウィンドウで Instance Management(インスタンス管理)をクリックしてから、次へ をクリックします。 4 Instance Management(インスタンス管理)
11 はい をクリックします。 次のメッセージが表示されます。 Do you want to perform another operation?(別の操作を実行しますか ?) 12 いいえ をクリックします。 13 いずれかのノードで、srvctl status database -d < データベース名 > を入力すると、インスタンス が正常に追加されたかどうかが確認できます。 メモ:「システムの保護」を参照して、追加のセキュリティセットアップを実行する手順に従ってく ださい。 クラスタからのノードの削除 本項の手順を実行する際には、クラスタから必ず正しいノードを選択し、削除してください。 データベースインスタンス層からのノードの削除 1 oracle としてログインします。 2 残りのノードの 1 つから、次のように入力します。 dbca & 3 ようこそ ウィンドウで 次へ をクリックします。 4 操作 ウィンドウで Instance Management(インスタンス管理)をクリックしてから、次へ をクリックします。 5 Instance Management(インスタ
8 削除するインスタンスを選択して、次へ をクリックします。 DBCA を実行しているローカルインスタンスは削除できません。ローカルインスタンスを選択 した場合、DBCA によって エラー ダイアログが表示されます。このような状況が発生した場 合は、OK をクリックして、別のインスタンスを選択してから、終了 をクリックします。 このインスタンスにサービスが割り当てられている場合は、DBCA Services Management (DBCA サービス管理)ウィンドウが表示されます。このウィンドウを使って、クラスタデー タベース内の別のインスタンスにサービスを割り当てなおします。 9 10 サマリー ウィンドウで OK をクリックします。 インスタンス削除の処理に関する情報を確認して、OK をクリックします。 DBCA がインスタンスとその Oracle Net 設定を削除している間、プログレスバーが表示され ます。処理が完了すると、別の操作を実行するかどうかを尋ねるダイアログが表示されます。 11 いいえ をクリックして、終了します。 12 srvctl config database -d <
削除されたノードでの ASM の停止と削除 残りのノードの 1 つで、次の手順を実行します。 1 ターミナルウィンドウを開きます。 2 次のように入力します。 srvctl stop asm -n はクラスタから削除するノードです。 3 次のように入力します。 srvctl remove asm -n はクラスタから削除するノードです。 データベース層からのノードの削除 1 削除するノードで、oracle としてログインします。 2 削除するノードのパブリック名を使用して、次のコマンドを入力します(たとえば、node3。 pub を削除する場合) srvctl stop nodeapps -n node3-pub リスナーに関するエラーを表示するエラー CRS-0210 は無視します。 3 削除するノードで、root としてログインします。 4 Oracle Database ソフトウェアを削除する場合は、次のコマンドを入力します。 rm -rf /opt/oracle/product/
ソフトウェアの再インストール 注意:ソフトウェアを再インストールすると、ハードドライブ上のすべての情報が削除されます。 注意:ソフトウェアを再インストールする前に、すべての外付けストレージデバイスをシステムから 取り外してください。 注意:貴重なデータを失わないように、データベースと個々のノードを定期的にバックアップするこ とをお勧めします。ノードソフトウェアの再インストールは最後の手段としてください。 『Dell Deployment CD』を使用してソフトウェアをインストールすると、ハードウェア上に再導入 パーティションが作成され、そのパーティションにはシステムにインストールされたソフトウェアイ メージのすべてが含まれています。再導入パーティションを使用すると、簡単に Oracle ソフトウェ アの再導入が行えます。 この方法でソフトウェアを再インストールするには、システムを再導入パーティションから起動す る必要があります。システムがこのパーティションから起動すると、Red Hat Linux OS が自動的に 再インストールされます。 この方法でソフトウェアを再インストールするには、次の手順を実行し
表 1-7. サポートされているソフトウェアのバージョン (続き) ソフトウェアコンポーネント サポートされているバージョン DKMS 2.0.11-1 QLogic HBA QLE2362(QLA2322) 8.01.02-d4 QLogic HBA QLE2460(QLA2400) 8.01.02-d4 QLogic HBA QLE2462(QLA2400) 8.01.02-d4 Emulex HBA LP1000 および LP1150e(lpfc) 8.0.16.18 PERC 4e/Si、PERC 4e/Di(megaraid_mbox) 2.20.4.6 PERC 5/e、PERC 5/I(megaraid_sas) 00.00.02.00 Intel PRO/100 S NIC ドライバ(e100) 6.1.16-k3-NAPI Intel PRO/1000 XT/MT/MT DP NIC ドライバ(e1000) 6.1.16-k3-NAPI Broadcom NetXtreme BCM5704 (tg3) 3.
3 プライベート NIC で使用しているドライバモジュールを確認します(上記 表 1-8 を参照)。 4 次のように入力して、/etc/modprobe.conf ファイルを表示します。 more /etc/modprobe.conf alias ethx driver-module のフォーマットで数行が表示されます。ここで、x はイーサネットイ ンタフェース番号、driver-module は手順 3 で確認したモジュールです。 たとえば、OS によって eth1 が Broadcom NetXtreme Gigabit NIC に割り当てられている場合 には、alias eth1 tg3 という行が表示されます。 5 ギガビットスイッチに接続されている Gigabit NIC に割り当てられているイーサネットインタ フェース(ethx)の種類を確認します。 お使いのドライバモジュールタイプについて、/etc/modprobe.
表 1-9. トラブルシューティング (続き) カテゴリ 問題 / 症状 原因 推奨する対応処置 データベース インスタンスが停 止して RAC インス タンス内に ORA600 エラー [kclcls_5] が発生す る場合がある。 Oracle バグ Oracle Metalink のウェブサイト 4639236 が原因。 metalink.oracle.com でパッチ 4639236 を入手 Oracle Metalink の して適用します。 ウェブサイト metalink.oracle. com を参照してく ださい。 データベース ERROR IN KQLMBIVG SEE LCK TRACE FILE" [LT] [LB] KJUSERCLIENTLOCK Oracle バグ Oracle Metalink のウェブサイト 4690794 が原因。 metalink.oracle.com でパッチ 4690794 を入手 Oracle Metalink の して適用します。 ウェブサイト metalink.oracle.
表 1-9.
表 1-9. トラブルシューティング (続き) カテゴリ 問題 / 症状 原因 推奨する対応処置 CRS CRS の起動が途中 Oracle バグ Oracle Metalink のウェブサイト で失敗する。 4698419 が原因。 metalink.oracle.com でパッチ 4698419 を入手 Oracle Metalink の して適用します。 ウェブサイト metalink.oracle. com を参照してく ださい。 CRS Clusterware のイ EMC PowerPath デ Clusterware をインストールする前に PowerPath ンストール手順が バイス名が全部の を再起動し、PowerPath デバイス名が全部のノー 失敗する。 ノードで統一され ドで統一されていることを確認します。 ていない。 CRS ノードの 再起動時または /etc/ini.d/init.crs start の 入力時に CRS が起 動できない。 CRS root.
表 1-9. トラブルシューティング (続き) カテゴリ 問題 / 症状 原因 CRS 再インストール後 の root.sh 実行時 に CRS が起動でき ない。 OCR ファイルと投 票ディスクがクリ アされず、古い情 報が残っている。 推奨する対応処置 1 以下の行を入力して、OCR と投票ディスクをクリ アします。 dd if=/dev/zero of=/dev/raw/ocr.dbf dd if=/dev/zero of= /dev/raw/votingdisk 2 該当ノードを再起動するか、または /crs/oracle/product/10.2.0/crs/ から root.sh を 実行して、もう一度このサービスが起動できるか どうか試してみます。 CRS root.sh 実行時に oracle ユーザーが 1 chown oracle.oinstall /var/tmp/.oracle と入力し CRS が /var/tmp(特に て、oracle ユーザーを /var/tmp/.oracle のオー 起動できない。 ナーにします。 /var/tmp/.
表 1-9. トラブルシューティング (続き) カテゴリ 問題 / 症状 原因 CRS ノードが再起動を ノードが共有スト 繰り返す。 レージ上のクォー ラムディスクにア クセスできない。 推奨する対応処置 1 シングルユーザーモードで Linux を起動します。 2 次のように入力します。 /etc/inet.d/init.crs disable 3 クォーラムディスクが利用可能で、プライベート 相互接続が有効であることを確認します。 4 再起動して、/etc/inet.d/init.crs enable と入力し ます。 CRS ノードが再起動を プライベート相互 繰り返す。 接続がダウンして いる。 1 シングルユーザーモードで Linux を起動します。 2 次のように入力します。 /etc/inet.d/init.crs disable 3 ノードがプライベート相互接続を介してクラスタ 内の残りのノードに ping を実行できることを確 認します。 4 次のように入力します。 /etc/inet.d/init.
表 1-9. トラブルシューティング (続き) カテゴリ 問題 / 症状 原因 推奨する対応処置 該当するリモート ノードに必要な権 限が設定されてい ない。 すべてのリモートノードで、root ユーザーとして、 次のように入力します。chmod 6751 $ORACLE_HOME ソフトウェ Oracle ソフトウェ ノードのシステム アのインス アがノードにイン クロックが同一で トール ストールできない。 ない。 次の方法のいずれかを行います。 • Oracle ソフトウェアのインストールを実行する ノードのシステムクロックが残りのノードよりも 遅い時刻に設定されていることを確認します。 • ノードの 1 つを NTP サーバーとして構成し、クラ スタ内の残りのノードを同期化します。 ソフトウェ oracle 以外のユー アのインス ザーとして、デー トール タベースに接続す る際に、 ORA01034: ORACLE not available および Linux Error 13:Permission denied というエ ラーメッセージが 表示される。 ソフトウェ root.
表 1-9. トラブルシューティング (続き) カテゴリ 問題 / 症状 原因 ASM Library Driver service oracleasm SELinux が有効に start と入力すると、 なっている。 処理が失敗する。 OS PowerEdge システ Kudzu が無効に ムに新しい周辺機 なっている。 器を追加すると、 OS がその周辺機器 を認識しない。 推奨する対応処置 「Clusterware 用の共有ストレージの構成」の手順 を実行して SELinux を無効にします。 システムに新しい周辺機器を追加した後で、Kudzu を手動で実行します。 困ったときは デルサポート システムの詳しい使い方については、システムコンポーネントに付属のマニュアルを参照してくだ さい。 各種の白書、デルがサポートする設定、一般情報については、Dell|Oracle Tested and Validated Configurations(Dell|Oracle で検証済みの構成)ウェブサイト www.dell.
オープンソースファイルの入手および使用 『Dell Deployment CD』に格納されているソフトウェアには、デルのプログラムのほかに、サード パーティ製のプログラムもあります。ソフトウェアの使用に際しては、そのソフトウェアを対象と した使用許諾条件が適用されます。"under the terms of the GNU GPL" と表記されているすべての ソフトウェアは、GNU General Public License、バージョン 2(1991 年 6 月)の条項および条件に 従ってコピー、配布、およびまたは修正を行うことが認められています。"under the terms of the GNU LGPL"(または "Lesser GPL")と表記されているすべてのソフトウェアは、GNU Lesser General Public License、バージョン 2.
索引 A ASM データベース記憶域 の設定 , 291 C CRS インストール , 278 Oracle RAC 10g CRS の構成 , 275 インストール , 278 共有ストレージの構成 , 275 設定 , 270 Oracle RAC 10g の設定 , 270 シードデータベースの 作成 , 286 Oracle RAC 10g の導入 , 270 CRS の構成 , 275 CRS 用の共有ストレー ジの構成 , 275 O Oracle 10g の設定 , 264 ハードウェアおよびソフト ウェアの構成の 確認 , 264 Oracle Database 10g インストール , 281 インストール(シングル ノード), 292 シングルノードの設定 , 289 Oracle Database 10g の設定 (シングルノード), 289, 295 シードデータベースの 作成 , 295 R Red Hat システムパッケージのアッ プデート , 264 Red Hat Enterprise Linux インストール , 262 い インストール CRS, 278 Ora
ç ௠さ そ は 再インストール ソフトウェア , 306 ソフトウェア 再インストール , 306 要件 , 260, 306 ハードウェア シングルノードの最小 要件 , 261 ファイバーチャネルクラス タの最小要件 , 261 ファイバーチャネルの相互 接続 , 265 サポートされるストレージデ バイス , 306 し シードデータベース 確認 , 289, 296 作成 , 286, 295 シードデータベース の作成 , 286, 295 ソフトウェアおよびハード ウェアの要件 , 260 つ 追加情報 , 306 プライベートネットワーク インタフェースの 確認 , 307 追加設定オプション ノードの追加と削除 , 298 せ セキュリティ , 289 設定 ASM を使用したデータベー ス記憶域(シングルノー ド), 291 ex3 を使用したデータベ ース記憶域 (シングルノード), 290 Oracle Database 10g(シン グルノード), 289 Oracle RAC 10g, 270 Red Hat Enterprise Linux,
ほ ボンディング , 271 ま マニュアル , 262 ら ライセンス契約 , 261 り リスナーの構成 , 286, 295, 301 リモートシェル(rsh) 無効化 , 289 れ 例 ファイバーチャネルクラス タ用のハードウェ ア接続 , 265 索引 319
ç ௠320 索引
Sistemas Dell™ PowerEdge™ Base de datos Oracle 10g Extended Memory 64 Technology (EM64T) Enterprise Edition Guía de implantación para Linux versión 2.1 w w w. d e l l . c o m | s u p p o r t . d e l l .
Notas y avisos NOTA: una NOTA proporciona información importante que le ayudará a utilizar mejor el ordenador. AVISO: un AVISO indica la posibilidad de daños en el hardware o la pérdida de datos, e informa de cómo evitar el problema. ____________________ La información contenida en este documento puede modificarse sin previo aviso. © 2006 Dell Inc. Reservados todos los derechos. Queda estrictamente prohibida la reproducción de este documento en cualquier forma sin la autorización por escrito de Dell Inc.
Contenido Servicio de implantación de Oracle RAC 10g . . . . . . . . . . . . . . . . . 325 . . . . . . . . . . . . . . . . . . . . . 326 . . . . . . . . . . . . . . . . . . . . . . . 327 327 328 Requisitos de software y hardware . Contratos de licencia . . . . Documentación importante . Antes de comenzar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Configuración del almacenamiento de base de datos mediante el controlador de biblioteca Oracle ASM . . . . Instalación de la base de datos Oracle 10g . . . . . . . . . . . Instalación del patchset 10.2.0.2 de la base de datos Oracle 10g Configuración del proceso de escucha . . . . . . . . . . . . . Creación de la base de datos semilla . . . . . . . . . . . . . . Adición y eliminación de nodos . . . . . 357 359 360 361 361 . . . . . . . . . . . . . . . . . . . . . . . 365 . . . . . . . . . . . . . . . .
En este documento se proporciona información sobre cómo instalar, configurar, reinstalar y utilizar el software de la base de datos Oracle 10g Enterprise Edition con Oracle Real Application Clusters (RAC) en su configuración Dell|Oracle admitida. Para instalar el software, utilice este documento y los CD de software de implantación de Dell,, Red Hat Enterprise Linux y Oracle RAC 10g.
Requisitos de software y hardware Antes de instalar el software Oracle RAC en el sistema: • Descargue las imágenes del CD de Red Hat de la página web de Red Hat en rhn.redhat.com. • Localice el kit de CD de Oracle. • Descargue las imágenes del CD de implantación de Dell adecuadas para la solución que va a instalar desde la página web de configuraciones probadas y validas por Dell|Oracle en www.dell.com/10g. Grabe en CD todas las imágenes del CD que haya descargado.
Tabla 1-2. Requisitos mínimos de hardware: Clúster Fibre Channel (continuación) Componentes de hardware Configuración Sistema de almacenamiento Dell|EMC Fibre Channel Consulte la página web de configuraciones probadas y validadas de Dell|Oracle en www.dell.com/10g para obtener información sobre las configuraciones admitidas. Conmutador Ethernet Gigabit (dos) Consulte la página web de configuraciones probadas y validadas de Dell|Oracle en www.dell.
Antes de comenzar Antes de instalar el sistema operativo Red Hat Enterprise Linux, descargue las imágenes ISO de la actualización trimestral de Red Hat Enterprise Linux de la página web de Red Hat Network en rhn.redhat.com y grabe dichas imágenes en CD. Para descargar las imágenes ISO, realice los pasos siguientes: 1 Vaya a la página web de Red Hat Network en rhn.redhat.com. 2 Haga clic en Channels (Canales). 3 En el menú de la izquierda, haga clic en Easy ISOs (ISO fáciles).
6 Cuando se le indique, inserte el segundo CD de implantación de Dell y los distintos CD de instalación de Red Hat en la unidad de CD. Se crea una partición de implantación donde se copia el contenido de los CD. Una vez finalizada la operación de copia, el sistema expulsa automáticamente el último CD y se inicia desde la partición de implantación. Tras finalizar la instalación, el sistema se reinicia automáticamente y se abre Red Hat Setup Agent (Agente de instalación de Red Hat).
8 Vuelva a cargar el controlador HBA utilizando los mandatos rmmod y modprobe. Por ejemplo, para los HBA Emulex, vuelva a cargar el controlador lpfc emitiendo los comandos rmmod lpfc modprobe lpfc Para los controladores HBA QLA, identifique los controladores que se cargan (lsmod | grep qla) y vuelva a cargarlos.
Figura 1-1. Conexiones de hardware para un clúster Fibre Channel Sistemas cliente Conmutadores Ethernet Gb (red privada) LAN/WAN Sistemas PowerEdge (base de datos Oracle) Conmutadores Dell|EMC Fibre Channel (SAN) Sistemas de almacenamiento Dell|EMC Fibre Channel CAT 5e/6 (NIC pública) CAT 5e/6 (NIC Gigabit de cobre) Cables de fibra óptica Cables de fibra óptica adicionales Tabla 1-4.
Tabla 1-4. Interconexiones de hardware Fibre Channel (continuación) Componentes del clúster Conexiones Cada sistema de almacenamiento Dell|EMC Fibre Channel Dos cables CAT 5e o CAT 6 conectados a la LAN Cada conmutador Fibre Channel admite de una a cuatro conexiones de cable de fibra óptica.
Configuraciones de hardware y software para Fibre Channel • Cada nodo debe incluir, como mínimo, los componentes periféricos de hardware que se describen en la tabla 1-2.
Figura 1-2. Cableado en un clúster Fibre Channel de conexión directa Nodo 1 Nodo 2 Puertos HBA (2) Puertos HBA (2) 0 1 0 1 Puertos SP SP-B 3 2 1 0 0 1 2 3 SP-A Sistema de almacenamiento CX700 Configuración de conexión directa Para configurar los nodos con una conexión directa (consulte la figura 1-2), realice los pasos siguientes: 1 Conecte un cable óptico del HBA0 del nodo 1 al puerto 0 de SP-A. 2 Conecte un cable óptico del HBA1 del nodo 1 al puerto 0 de SP-B.
Figura 1-3. Cableado en un clúster Fibre Channel de conexión mediante SAN Nodo 2 Nodo 1 Puertos HBA (2) 0 1 Puertos HBA (2) sw0 0 1 sw1 Puertos SP 3 2 SP-B 1 0 0 1 2 3 SP-A Sistema de almacenamiento CX700 Configuración de conexión mediante SAN Para configurar los nodos con una conexión mediante SAN de cuatro puertos (consulte figura 1-3), realice los pasos siguientes: 1 Conecte un cable óptico del puerto 0 SP-A al conmutador 0 Fibre Channel.
7 Conecte un cable óptico del puerto 2 SP-B al conmutador 1 Fibre Channel. 8 Conecte un cable óptico del puerto 3 SP-B al conmutador 0 Fibre Channel. 9 Conecte un cable óptico del HBA0 del nodo 1 al conmutador 0 Fibre Channel. 10 Conecte un cable óptico del HBA1 del nodo 1 al conmutador 1 Fibre Channel. 11 Conecte un cable óptico del HBA0 del nodo 2 al conmutador 0 Fibre Channel. 12 Conecte un cable óptico del HBA1 del nodo 2 al conmutador 1 Fibre Channel.
Configuración de la red pública NOTA: asegúrese de que su dirección IP pública es una dirección IP válida y enrutable. Si todavía no ha configurado la red pública, lleve a cabo los siguientes pasos en cada nodo para configurarla: 1 Inicie la sesión como root.
3 Para obtener una alta disponibilidad, edite el archivo /etc/modprobe.conf y configure la opción para supervisar enlaces. El valor predeterminado para miimon es 0, que desactiva la opción de supervisión de enlaces. Inicialmente, cambie el valor a 100 milisegundos, y ajústelo según sea necesario para mejorar el rendimiento, como se muestra en el ejemplo siguiente.
7 Cuando las direcciones IP privadas están configuradas en cada nodo, ejecute el comando ping para cada dirección IP desde un nodo para asegurarse de que la red privada está operativa. 8 Escriba ssh para conectarse a cada nodo y compruebe que la red privada y ssh funcionan correctamente. 9 Modifique el archivo /etc/hosts en cada nodo añadiendo las siguientes líneas: 127.0.0.1 localhost.
2 Compruebe visualmente que los dispositivos de almacenamiento y los nodos están conectados correctamente al conmutador Fibre Channel (vea la figura 1-1 y la tabla 1-4). 3 Verifique que ha iniciado la sesión como root. 4 Escriba lo siguiente en cada nodo: more /proc/partitions El nodo detecta y muestra los LUN o discos lógicos, así como las particiones creadas en estos dispositivos externos. NOTA: los dispositivos de la lista varían según la configuración del sistema de almacenamiento.
3 Realice los pasos siguientes en todos los nodos: a Edite el archivo /etc/sysconfig/rawdevices y añada las líneas siguientes para un clúster Fibre Channel: /dev/raw/votingdisk /dev/raw/ocr.dbf /dev/raw/spfile+ASM.ora /dev/emcpowera1 /dev/emcpowera2 /dev/emcpowera3 b Escriba udevstart para crear los dispositivos sin formato. c Escriba service rawdevices restart para reiniciar el servicio de dispositivos sin formato.
Para configurar el clúster mediante ASM, realice los pasos siguientes en todos los nodos: 1 Inicie la sesión como root. 2 En todos los nodos, cree una partición en cada uno de los dos dispositivos de almacenamiento externo con la utilidad fdisk : a Escriba fdisk /dev/emcpowerx y cree una partición primaria para todo el dispositivo. Escriba h para obtener ayuda en la utilidad fdisk. b Escriba cat/proc/partitions para comprobar que la nueva partición existe.
Configuración del almacenamiento mediante el controlador de biblioteca ASM 1 Inicie la sesión como root. 2 Abra una ventana de terminal y realice los pasos siguientes en todos los nodos: a Escriba service oracleasm configure.
Instalación de Oracle RAC 10g En esta sección se describen los pasos necesarios para instalar Oracle RAC 10g, proceso que implica la instalación de CRS y del software de base de datos Oracle 10g. Dell recomienda crear una base de datos semilla para verificar que el clúster funciona correctamente antes de implantarlo en un entorno de producción.
7 Escriba los comandos siguientes para iniciar Oracle Universal Installer: unset ORACLE_HOME /runInstaller Aparece el mensaje siguiente: Was ’rootpre.sh’ been run by root? [y/n] (n) (¿El usuario root ha ejecutado "rootpre.sh"?) 8 Escriba y para continuar. 9 En la ventana de bienvenida, haga clic en Next (Siguiente). 10 En la ventana Specify Home Details (Especificar detalles de la ubicación principal), cambie la ruta principal de Oracle a /crs/oracle/product/10.2.
14 En la ventana Specify Oracle Cluster Registry (OCR) Location (Especificar ubicación del registro de clúster Oracle [OCR]), realice los pasos siguientes: a En la casilla OCR Configuration (Configuración de OCR), seleccione External Redundancy (Redundancia externa). b En el campo Specify OCR Location (Especificar ubicación de OCR), escriba: /dev/raw/ocr.dbf c Haga clic en Next (Siguiente).
Instalación del software de la base de datos Oracle 10g 1 Inicie la sesión como root y escriba: cluvfy stage -pre dbinst -n nodo1,nodo2 -r 10gR2 -verbose donde nodo1 y nodo2 son los nombres de host públicos. Si el sistema no está configurado correctamente, consulte "Solución de problemas" para obtener más información. Si el sistema está configurado correctamente, aparece el mensaje siguiente: Pre-check for database installation was successful.
11 En la ventana Summary (Resumen), haga clic en Install (Instalar). El software de base de datos Oracle se instala en el clúster. A continuación, aparece la ventana Execute Configuration Scripts (Ejecutar secuencias de comandos de configuración). 12 Siga las instrucciones de la ventana y haga clic en OK (Aceptar). 13 En la ventana End of Installation (Fin de la instalación), haga clic en Exit (Salir).
Actualización de la instalación del software de clúster 1 En el nodo 1, inicie sesión como usuario root. 2 Apague el software de clúster. Para ello, escriba lo siguiente en la ventana de terminal y pulse : crsctl stop crs 3 En los nodos restantes, abra una ventana de terminal y repita el paso 1 y el paso 2. 4 En el nodo 1, inicie la sesión como oracle. 5 En la ventana de terminal, escriba lo siguiente y pulse : export ORACLE_HOME=/crs/oracle/product/10.2.
Actualización de la instalación de RAC 1 En el nodo 1, abra una ventana de terminal. 2 Inicie la sesión como oracle. 3 Ejecute Oracle Universal Installer desde el mismo nodo en el que instaló el software de base de datos Oracle. a En el nodo 1, abra una ventana de terminal. b Inicie la sesión como oracle. c Cierre las aplicaciones de nodo del software de clúster de todos los nodos.
16 Repita el paso 14 y el paso 15 en los nodos restantes, de uno en uno. Una vez finalizada la instalación, aparece la pantalla End of Installation (Fin de la instalación). NOTA: este procedimiento puede tardar varios minutos en completarse. 17 En la pantalla End of Installation (Fin de la instalación), haga clic en Exit (Salir). 18 Haga clic en Yes (Sí) para salir de Oracle Universal Installer. 19 En el nodo 1, abra una ventana de terminal. 20 Inicie la sesión como oracle.
7 En la ventana de bienvenida, seleccione Listener Configuration (Configuración del proceso de escucha) y haga clic en Next (Siguiente). 8 En la ventana Listener Configuration, Listener (Configuración del proceso de escucha, proceso de escucha), seleccione Add (Agregar) y haga clic en Next (Siguiente).
5 En la ventana Node Selection (Selección de nodos), haga clic en Select All (Seleccionar todos) y, a continuación, en Next (Siguiente). 6 En la ventana Database Templates (Plantillas de base de datos), haga clic en Custom Database (Base de datos personalizada) y, a continuación, en Next (Siguiente). 7 En la ventana Database Identification (Identificación de la base de datos), especifique un nombre de base de datos global (Global Database Name), como por ejemplo racdb y pulse Next (Siguiente).
15 Repita el paso 14 para el grupo de discos ASM restante, utilizando flashbackDG como nombre del grupo de discos. 16 En la ventana ASM Disk Groups (Grupos de discos ASM), seleccione el grupo de discos que desea utilizar para el almacenamiento de la base de datos (por ejemplo, basededatosDG) y haga clic en Next (Siguiente).
25 Realice los pasos siguientes en cada uno de los nodos: a Escriba srvctl status database -d para determinar qué instancia de base de datos está presente en ese nodo. b Escriba los siguientes comandos para añadir la entrada de la variable de entorno ORACLE_SID al perfil de usuario oracle: echo "export ORACLE_SID=racdbx" >> /home/oracle/.bash_profile source /home/oracle/.bash_profile donde racdbx corresponde al identificador de la instancia de la base de datos asignado al nodo.
Configuración e implantación de la base de datos Oracle 10g (un solo nodo) En esta sección se proporciona información sobre cómo completar los procedimientos de instalación inicial o reinstalación descritos en "Instalación y configuración de Red Hat Enterprise Linux".
8 Edite el archivo /etc/fstab para el sistema de archivos recién creado añadiendo entradas como, por ejemplo: /dev/sdb1 /opt/oracle/oradata ext3 defaults 1 2 /dev/sdc1 /opt/oracle/recovery ext3 defaults 1 2 9 Escriba lo siguiente: mount /dev/sdb1 /opt/oracle/oradata mount /dev/sdc1 /opt/oracle/recovery 10 Escriba lo siguiente: chown -R oracle.
Para desactivar SELinux de forma permanente, realice los pasos siguientes: 1 Abra el archivo grub.conf. 2 Localice la línea de comandos del kernel y añada la opción siguiente: selinux=0 Por ejemplo: kernel /vmlinuz-2.6.9-34.ELlargesmp ro root=LABEL=/ apic rhgb quiet selinux=0 3 Reinicie el sistema. 4 Abra una ventana de terminal e inicie la sesión como usuario root. 5 Realice los pasos siguientes: a Escriba service oracleasm configure.
Instalación de la base de datos Oracle 10g Siga estos pasos para instalar Oracle 10g: 1 Inicie la sesión como root. 2 Como usuario root, monte el CD Oracle Database 10g. 3 Escriba startx para iniciar el sistema X Window. 4 Abra una ventana de terminal y escriba lo siguiente: xhost + 5 Inicie la sesión como oracle. 6 Inicie Oracle Universal Installer.
Instalación del patchset 10.2.0.2 de la base de datos Oracle 10g Descarga y extracción del software de instalación 1 Inicie la sesión como oracle. 2 Cree una carpeta para los parches y las utilidades en /opt/oracle/patches. 3 Abra un explorador web y vaya a la página web de Oracle Metalink en metalink.oracle.com. 4 Inicie una sesión en su cuenta de Oracle Metalink. 5 Busque el parche 4547817 con Linux x86-64 (AMD64/EM64T) como plataforma. 6 Descargue el parche en el directorio /opt/oracle/patches.
11 Pulse para aceptar las respuestas predeterminadas a las preguntas que formuló root.sh. NOTA: este procedimiento puede tardar varios minutos en completarse. 12 Cuando haya finalizado la ejecución de root.sh, vuelva a Execute Configuration Scripts (Ejecutar secuencias de comandos de configuración) y haga clic en OK (Aceptar). 13 En la pantalla End of Installation (Fin de la instalación), haga clic en Exit (Salir). 14 Haga clic en Yes (Sí) para salir de Oracle Universal Installer.
8 En la ventana Database Credentials (Credenciales de base de datos), complete las entradas y selecciones de contraseña y haga clic en Next (Siguiente). 9 En la ventana Storage Options (Opciones de almacenamiento), seleccione File System (Sistema de archivos) y haga clic en Next (Siguiente). 10 En la ventana Database File Locations (Ubicaciones de archivos de base de datos), haga clic en Next (Siguiente).
Creación de la base de datos semilla mediante Oracle ASM Si ha configurado el almacenamiento mediante Oracle ASM, realice los pasos siguientes para crear una base de datos semilla con DBCA: 1 Como usuario oracle, escriba dbca & para iniciar DBCA. 2 En la ventana de bienvenida, haga clic en Next (Siguiente). 3 En la ventana Operations (Operaciones), haga clic en Create a Database (Crear una base de datos) y, a continuación, en Next (Siguiente).
13 En Available Disk Groups (Grupos de discos disponibles), haga clic en Create New (Crear nuevo). 14 En la ventana Disk Group (Grupo de discos), introduzca la información para los archivos de recuperación flashback y haga clic en OK (Aceptar). a Introduzca un nombre para el grupo de discos que va a crear, como por ejemplo flashbackDG, seleccione External Redundancy (Redundancia externa) y luego seleccione los discos que va a incluir en el grupo de discos.
23 Haga clic en Exit (Salir). 24 Una vez finalizada la creación de la base de datos, escriba los siguientes comandos para añadir la entrada de la variable de entorno ORACLE_SID al perfil de usuario oracle: echo "export ORACLE_SID=oradb" >> /home/oracle/.bash_profile source /home/oracle/.bash_profile En este ejemplo se presupone que oradb es el nombre global de la base de datos que ha definido en DBCA.
Configuración del almacenamiento compartido en el nodo nuevo Para ampliar una base de datos RAC existente para los nodos nuevos, configure el almacenamiento de los nodos nuevos de forma que el almacenamiento sea el mismo que en los nodos existentes. En esta sección se proporcionan los procedimientos correctos para ASM. Configuración del almacenamiento compartido mediante ASM Si utiliza ASM, asegúrese de que los nodos nuevos puedan acceder a los discos ASM con los mismos permisos que los nodos existentes.
8 Asegúrese de que el nuevo nodo puede acceder a los discos ASM. En el terminal, escriba lo siguiente y pulse : service oracleasm scandisks 9 Asegúrese de que los discos ASM están disponibles en el nuevo nodo. En la ventana de terminal, escriba lo siguiente y pulse : service oracleasm listdisks Se muestra una lista de todos los discos disponibles en los nodos restantes.
Adición de un nuevo nodo al nivel de base de datos 1 Inicie una sesión como oracle en uno de los nodos existentes. 2 Desde el directorio /opt/oracle/product/10.2.0/db_1/oui/bin del nodo existente, escriba ./addNode.sh para iniciar Oracle Universal Installer. 3 En la ventana de bienvenida, haga clic en Next (Siguiente). 4 En la ventana Specify Cluster Nodes for Node Addition (Especificar nodos de clúster para adición de nodos), compruebe que el nuevo nodo esté seleccionado y haga clic en Next (Siguiente).
8 En la ventana de bienvenida, seleccione Listener configuration (Configuración del proceso de escucha) y haga clic en Next (Siguiente). 9 En la ventana Listener Configuration, Listener (Configuración del proceso de escucha, Proceso de escucha), seleccione Reconfigure (Reconfigurar) y haga clic en Next (Siguiente).
9 En la ventana Instance Storage (Almacenamiento de instancias), haga clic en Finish (Finalizar). 10 En la ventana Summary (Resumen), haga clic en OK (Aceptar) para añadir la instancia de la base de datos. Aparece una barra de progreso, seguida de un mensaje en que se le pregunta si desea ampliar ASM al nuevo nodo. 11 Haga clic en Yes (Sí). Aparece el mensaje siguiente: Do you want to perform another operation? (¿Desea realizar otra operación?) 12 Haga clic en No.
8 Seleccione la instancia que desee eliminar y haga clic en Next (Siguiente). Esta instancia no puede ser la instancia local desde la que está ejecutando DBCA. Si selecciona la instancia local, DBCA muestra un cuadro de diálogo de error. En este caso, haga clic en OK (Aceptar), seleccione otra instancia y haga clic en Finish (Finalizar). Si se han asignado servicios a esta instancia, se mostrará la ventana DBCA Services Management (Administración de servicios DBCA).
Detención y eliminación de ASM del nodo suprimido En uno de los nodos restantes, realice los pasos siguientes: 1 Abra una ventana de terminal. 2 Escriba lo siguiente: srvctl stop asm -n donde es el nodo que desea eliminar del clúster. 3 Escriba lo siguiente: srvctl remove asm -n donde es el nodo que desea eliminar del clúster. Eliminación del nodo del nivel de la base de datos 1 En el nodo que se esté eliminando, inicie la sesión como oracle.
Reinstalación del software AVISO: la reinstalación del software borra toda la información de las unidades de disco duro. AVISO: debe desconectar todos los dispositivos de almacenamiento externos del sistema antes de reinstalar el software. AVISO: Dell recomienda realizar copias de seguridad periódicamente de la base de datos y de cada uno de los nodos para no perder datos valiosos. Reinstale el software de nodos sólo si no tiene ninguna otra opción.
Tabla 1-7. Versiones de software admitidas (continuación) Componentes de software Versiones admitidas HBA QLogic QLE2460 (QLA2400) 8.01.02-d4 HBA QLogic QLE2462 (QLA2400) 8.01.02-d4 HBA Emulex LP1000 & LP1150e (lpfc) 8.0.16.18 PERC 4e/Si, PERC 4e/Di (megaraid_mbox) 2.20.4.6 PERC 5/e, PERC 5/I (megaraid_sas) 00.00.02.00 Controlador NIC Intel PRO/100 S (e100) 6.1.16-k3-NAPI Controlador NIC Intel PRO/1000 XT/MT/MT DP (e1000) 6.1.16-k3-NAPI Broadcom NetXtreme BCM5704 (tg3) 3.
4 Para ver el archivo /etc/modprobe.conf, escriba lo siguiente: more /etc/modprobe.conf Aparecen varias líneas con el formato alias ethx módulo-controlador, donde x es el número de interfaz Ethernet y módulo-controlador es el módulo determinado en el paso 3. Por ejemplo, la línea alias eth1 tg3 aparece si el sistema operativo ha asignado eth1 a una NIC Broadcom NetXtreme Gigabit. 5 Determine las interfaces Ethernet (ethx) que han sido asignadas al tipo de NIC Gigabit conectada al conmutador Gigabit.
Tabla 1-9. Solución de problemas (continuación) Categoría Problema / síntoma Causa Acción correctiva recomendada Espacio en disco La instancia puede finalizar con el error ORA-600 [kclcls_5] en la instancia de RAC. Debido al error Aplique el parche 4639236, que se encuentra disponible 4639236 de Oracle. en la página web de Oracle Metalink en Visite la página web metalink.oracle.com. de Oracle Metalink en metalink.oracle.com.
Tabla 1-9. Categoría Solución de problemas (continuación) Problema / síntoma Rendimiento Se muestra una y estabilidad advertencia de tipo de interfaz desconocida en el archivo de alertas de Oracle. Rendimiento del sistema bajo. Causa Acción correctiva recomendada La interfaz pública Para forzar que las comunicaciones del clúster tengan está configurada para lugar en la interfaz privada, realice los pasos siguientes las comunicaciones en un nodo: de clúster (interfaz 1 Inicie la sesión como oracle.
Tabla 1-9. 378 Solución de problemas (continuación) Categoría Problema / síntoma Causa CRS CRS se detiene antes de tiempo cuando intenta iniciarse. Debido al error Aplique el parche 4698419, que se encuentra disponible 4698419 de Oracle. en la página web de Oracle Metalink en Visite la página web metalink.oracle.com. de Oracle Metalink en metalink.oracle.com. CRS El procedimiento de instalación del software de clúster falla. Los nombres de dispositivo EMC PowerPath no son uniformes en los nodos.
Tabla 1-9. Solución de problemas (continuación) Categoría Problema / síntoma Causa CRS Cuando se ejecuta root.sh tras efectuar la reinstalación, no se puede iniciar CRS. No se ha borrado el archivo OCR ni el disco de votación y aún contienen información obsoleta. CRS CRS CRS Acción correctiva recomendada 1 Borre los discos OCR y de votación escribiendo las líneas siguientes: dd if=/dev/zero of=/dev/raw/ocr.
Tabla 1-9. Solución de problemas (continuación) Categoría Problema / síntoma Causa CRS El nodo se reinicia constantemente. La interconexión privada está fuera de servicio. Acción correctiva recomendada 1 Inicie Linux en modo de un solo usuario. 2 Escriba lo siguiente: /etc/inet.d/init.crs disable 3 Compruebe que el nodo puede ejecutar el comando ping para la interconexión privada a los nodos restantes del clúster. 4 Escriba lo siguiente: /etc/inet.d/init.crs enable 5 Reinicie el sistema.
Tabla 1-9. Solución de problemas (continuación) Categoría Problema / síntoma Causa Acción correctiva recomendada Instalación de software El software Oracle no se instala correctamente en los nodos. Los relojes del Realice uno de los procedimientos siguientes: sistema de los nodos • Asegúrese de que el reloj del sistema en el nodo de no son idénticos. instalación del software Oracle tiene una hora posterior a la de los demás nodos.
Obtención de ayuda Asistencia de Dell Para obtener información detallada sobre el uso del sistema, consulte la documentación incluida con los componentes del sistema. Para obtener documentos técnicos, las configuraciones admitidas por Dell e información general, visite la página web de configuraciones probadas y validadas por Dell|Oracle en www.dell.com/10g.
Índice A añadir y eliminar nodos, 365 ASM configurar almacenamiento de base de datos, 357 B base de datos Oracle 10g configuración de un solo nodo, 356 instalar, 347 instalar (un solo nodo), 359 base de datos semilla crear, 352, 361 verificar, 355, 362 bonding, 337 C configuraciones de hardware y software Fibre Channel, 333 configurar almacenamiento compartido, 341 almacenamiento compartido para CRS, 340 almacenamiento de base de datos (un solo nodo), 356 almacenamiento de base de datos (un solo nodo) me
Índice F N Fibre Channel, configuración del clúster, 330 NIC integradas, 374 H hardware interconexiones Fibre Channel, 331 requisitos mínimos para clústeres Fibre Channel, 326 requisitos mínimos para un solo nodo, 327 I implantar Oracle RAC 10g, 336 información adicional, 373 determinar interfaz de red privada, 374 instalar base de datos Oracle 10g, 347 base de datos Oracle 10g (un solo nodo), 359 CD de implantación de Dell, 328 CRS, 344 Oracle RAC 10g, 344 Red Hat Enterprise Linux, 328 384 Índ