Dell™ PowerEdge™ Systems Oracle Database 10g – Linux for Intel® 32-Bit Technology (x86) Deployment Guide Version 1.2 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. . . . . . . . . . . . . . . . . . . . . . . 6 . . . . . . . . . . . . . . . . . . . . . . . . . . 7 7 . . . . . . . . . . . . . . . . . . . . . . . . . . Installing and Configuring Red Hat Enterprise Linux . . . . . . . . . . . . . . . Installing Red Hat Enterprise Linux Using the Deployment CDs Configuring Hugemem Kernel . .
Configuring and Deploying Oracle Database 10g (Single Node) . . . . . . . . 29 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 29 31 31 31 32 32 35 . . . . . . . . . . . . . . . . . . . . . . . . . . 35 Configuring the Public Network . . . . . . Configuring Database Storage . . . . . . . Installing Oracle Database 10g . . . . . . . Applying the 10.1.0.5 Patchset . . . . . . . Patching the Database to 10.1.0.5 Patchset Configuring the Listener . . . . . . . . . .
This document provides information about installing, configuring, reinstalling, and using Oracle 10g Enterprise Edition with Real Application Clusters (RAC) software on your Dell | Oracle supported configuration. NOTE: Use this document in conjunction with the Dell Deployment CD to install your software. If you install your operating system using only the operating system CDs, the instructions in this document may not be applicable.
Software and Hardware Requirements Before you install the Oracle RAC software on your system, follow the instructions in the Deploying Dell-Tested and Validated Configurations for Oracle Database document shipped with your kit, to: • Download the Red Hat CDs from the Red Hat website located at www.rhn.redhat.com. • Locate your Oracle CD kit, or download the Oracle software from Oracle's website located at www.oracle.com. • Download the Dell Deployment CD images from the Dell and Oracle website at www.
Table 1-2.
Installing and Configuring Red Hat Enterprise Linux NOTICE: To ensure that the operating system is installed correctly, disconnect all external storage devices from the system before you install the operating system. This section describes the installation of the Red Hat Enterprise Linux AS operating system and the configuration of the operating system for Oracle deployment. Installing Red Hat Enterprise Linux Using the Deployment CDs 1 Disconnect all external storage devices from the system.
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 /mnt/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. 3 Type cd /dell-oracle-deployment/scripts/standard to navigate to the directory containing the scripts installed from the Dell Deployment CD.
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 following minimum hardware peripheral components: – One or two hard drives (36-GB minimum) in the internal hard-drive bay – Three Gigabit NIC ports – Two Fibre Channel HBAs Each node must have the following software installed: – Red Hat Enterprise Linux software (see Table 1-1) – Fibre Channel HBA driver – OCFS1 module for the kernel and the configuration tools for OCFS NOTE: OCFS supports two kinds of kernel, na
Configuring the Public and Private Networks This section presents steps to configure the public and private cluster networks. NOTE: Each node requires a unique public and private IP address and an additional public IP address to serve as the virtual IP address for the client connections and connection failover. The virtual IP address must belong to the same subnet as the public IP. All public IP addresses, including the virtual IP address, should be registered with DNS.
4 Type: service network restart 5 Type ifconfig to verify that the IP addresses are set correctly. 6 To check your network configuration, ping each public IP address from a client on the local area network (LAN) outside the cluster. 7 Connect to each node to verify that the public network is functioning and type ssh to verify that secure shell (ssh) is working.
5 For each device that is a bond member, perform the following steps: a In the directory /etc/sysconfig/network-scripts/, edit the ifcfg-ethn file, containing the following lines: DEVICE=ethn HWADDR= ONBOOT=yes TYPE=Ethernet USERCTL=no MASTER=bond0 SLAVE=yes BOOTPROTO=none b Type service network restart and ignore any warnings. 6 On each node, type ifconfig to verify that the private interface is functioning.
Securing Your System To prevent unauthorized users from accessing your system, Dell recommends that you disable rsh after you install the Oracle software. Type chkconfig rsh off to disable rsh. Verifying the Storage Configuration While configuring the clusters, create partitions on your Fibre Channel storage. In order to create the partitions, all cluster nodes must be able to detect the external storage devices.
If the external storage devices do not appear in the /proc/partitions file: 1 Stop the PowerPath service on all nodes by typing: service naviagent stop service PowerPath stop 2 Reload the HBA driver on all nodes to synchronize the kernel's partition tables on all nodes by typing: • For QLogic HBAs: rmmod qla2300 modprobe qla2300 • For Emulex HBAs: rmmod lpfc modprobe lpfc 3 Restart the PowerPath service on all nodes by typing: service PowerPath start service naviagent start 4 Confirm that all nodes see
3 On each node, perform the following steps: a Type the following commands to change and identify the names of the raw character devices: mv /dev/raw/raw1 mv /dev/raw/raw2 mv /dev/raw/raw3 b /dev/raw/votingdisk /dev/raw/ocr.dbf /dev/raw/spfile+ASM.ora Type the following commands to set user oracle ownership of the Cluster Repository and voting disk: chown oracle.dba /dev/raw/votingdisk chown oracle.dba /dev/raw/ocr.dbf chown oracle.dba /dev/raw/spfile+ASM.
3 For a Fibre Channel cluster, on the first node, create one partition on each of the other two external storage devices with fdisk: a Type fdisk /dev/emcpowerx and create a primary partition for the entire device. Type h for help within the fdisk utility. b Type cat /proc/partitions to verify that the new partition exists. If you do not observe the new partition, type: sfdisk -R /dev/ NOTE: The following steps use the sample values /u01 and /u02 for mount points and u01 and u02 as labels.
Configuring the Storage Using ASM To configure your cluster using ASM, perform the following steps on all nodes: 1 Log in as root. 2 Type the following commands to change and identify the names of the raw character devices: mv /dev/raw/raw4 mv /dev/raw/raw5 /dev/raw/ASM1 /dev/raw/ASM2 3 Type the following commands to set user oracle ownership of the Datafile disk and Flashback Recovery disk: chown oracle.dba /dev/raw/ASM1 chown oracle.
5 Type: su - oracle 6 Type the following commands to start the Oracle Universal Installer: unset ORACLE_HOME /mnt/cdrom/runInstaller 7 In the Welcome window, click Next. 8 In the Specify File Locations window, verify that the Oracle home path is /opt/oracle/product/10.1.0/crs_1 and click Next. 9 In the Language Selection window, select a language and click Next.
Installing the Oracle Database 10g Software 1 As user root, mount the Oracle Database 10g CD1. 2 As user oracle, type: /mnt/cdrom/runInstaller The Oracle Universal Installer starts. 3 In the Welcome window, check the Advanced Installation option and click Next. 4 In the Specify File Locations window, verify that the complete Oracle home path is /opt/oracle/product/10.1.0/db_1 and click Next.
e Click Finish in the summary window. A progress window appears. f When the configuration is complete, click OK and click Exit to exit the VIPCA. g Run root.sh on each of the other nodes in your cluster. Wait for root.sh to finish running on each node before you run it on the next node. 11 Click OK in the Setup Privileges window. 12 Click Exit in the End of Installation window and confirm by clicking Yes. Applying the 10.1.0.5 Patchset 1 Download the 10.1.0.
9 On all nodes, perform the following steps: a Verify the CRS installation by typing the following command from the /opt/oracle/product/10.1.0/crs_1/bin directory: olsnodes -n -v A list of the public node names of all nodes in the cluster appears. b Type: crs_stat The list of all services running will be displayed. Patching the Database to 10.1.0.5 Patchset 1 Log in as oracle.
4 As user oracle, run source /home/oracle/.bash_profile and type netca to start the Net Configuration Assistant. 5 Select Cluster Configuration and click Next. 6 On the TOPSNodes window, click Select All Nodes and click Next. 7 On the Welcome window, select Listener Configuration and click Next. 8 On the Listener Configuration, Listener window, select Add and click Next. 9 On the Listener Configuration, Listener Name window, type LISTENER in the Listener Name field and click Next.
13 In the Database Services window, click Next. 14 In the Initialization Parameters window, if your cluster has more than four nodes, change the Shared Pool value to 500 MB, and click Next. 15 In the Database Storage window, click Next. 16 In the Creation Options window, check Create Database and click Finish. 17 In the Confirmation window click OK to create the database. NOTE: The creation of the seed database may take more than an hour.
11 When a message appears indicating that DBCA is ready to create and start the ASM instance, click OK. 12 Under Available Disk Groups, click Create New. 13 Enter the information in the Disk Group window for the database files and click OK. 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 (for example, /dev/raw/ASM1). A window appears indicating that disk group creation is in progress.
26 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.
Setting the Oracle User Password Dell strongly recommends that you set a password for the user oracle to protect your system. Complete the following steps to create the oracle password: 1 Log in as root. 2 Type passwd oracle and follow the instructions on the screen to create the oracle password.
6 Type cat /proc/partitions to verify the new partition. If you do not observe the new partition, type: sfdisk -R /dev/sdb sfdisk -R /dev/sdc 7 Type: mke2fs -j /dev/sdb1 mke2fs -j /dev/sdc1 8 Modify the /etc/fstab file by adding an entry for the newly created file system. 9 Type: mount /dev/sdb1 /opt/oracle/oradata mount /dev/sdc1 /opt/oracle/recovery 10 Type: chown oracle.
Installing Oracle Database 10g Perform the following steps to install Oracle Database 10g: 1 Log in as root. 2 As user root, mount the Oracle Database 10g CD1 CD. 3 Log in as oracle. 4 As user oracle, type /mnt/cdrom/runInstaller to start the Oracle Universal Installer. 5 Type startx to start the X Window System. 6 Open a terminal window and type: xhost + 7 In the Welcome window, click Next. 8 In the Specify File Locations window, verify that the complete Oracle home path is /opt/oracle/product/10.1.
5 In the Destination section, select the database name from the pull-down menu. Make sure that the path points to the database home of the 10.1.0.3 installation and click Next. 6 In the Selected Nodes window, ensure that all the member nodes of the 10.1.0.3 installation are displayed and click Next. 7 In the Available Product Components window, click Next. 8 The installer prompts you to run the rootxxx.sh script on all the nodes after the process is completed. Log in as root on each node and run the 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), 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. 16 In the Confirmation window, click OK to create the database.
11 In the ASM Disk Groups window, under Available Disk Groups, click Create New. 12 Enter the storage information in the Create Disk Group window for the database files and click OK. 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 (for example, /dev/raw/ASM1). A window appears indicating that disk group creation is in progress. 13 Under Available Disk Groups, click Create New.
Setting the oracle User Password Dell strongly recommends that you set a password for the user oracle to protect your system. Complete the following steps to create the oracle password: 1 Log in as root. 2 Type passwd oracle and follow the instructions on the screen to create the oracle password. Adding and Removing Nodes This section describes the steps to add a node to an existing cluster and the steps to remove a node from a cluster.
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. 2 If your existing nodes were not configured using raw devices, go to step 3.
Configuring Shared Storage Using OCFS If you are using Oracle Cluster File System (OCFS) for either CRS, quorum, or database files, ensure that the new nodes can access the cluster file systems in the same way as the existing nodes.
7 When prompted, run root.sh on the new node. When root.sh finishes running, click OK. 8 In the End of Cluster Node Addition window, click Exit. 9 From the /opt/oracle/product/10.1.0/crs_1/oui/bin directory on one of the existing nodes, type (for example) the following line: racgons add_config node3-pub:4948 In this example, node3 is being added to an existing two-node cluster. Adding a New Node to the Database Layer 1 Log in as oracle. 2 From the /opt/oracle/product/10.1.
e When the configuration is complete, click OK and click Exit to exit the VIPCA. Adding a New Node to the Database Instance Layer 1 On node 1, as user oracle, type dbca & to start the DBCA. 2 In the Welcome window, click Next. 3 In the Oracle Real Application Cluster Database window, click Next. 4 In the Operations window, click Instance Management and click Next. 5 In the Instance Management window, click Add 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. The List of Cluster Database Instances window appears, showing the instances associated with the RAC database that you selected and the status of each instance.
Removing the Node from the Clusterware Layer 1 On the node that you are deleting, as user root, disable CRS by typing the following command: /opt/oracle/product/10.1.0/crs_1/install/rootdelete.sh remote nosharedvar 2 On one of the remaining nodes, as user root, type the following command: /opt/oracle/product/10.1.0/crs_1/install/rootdeletenode.sh , To determine the node number of any node, type the following command: /opt/oracle/product/10.1.
Additional Information Supported Software Versions NOTE: For this release of Dell Supported Configurations for Oracle, Emulex HBAs are not supported. Table 1-6 lists the supported software at the time of release. For the latest supported hardware and software, see the Dell and Oracle website at www.dell.com/oracle and download the Oracle Database 10g EM64T x86 Version 1.2 Solution Deliverable List for the latest supported versions. Table 1-6.
Table 1-6. Supported Software Versions (continued) Software Component Supported Versions Intel PRO/100 S NIC drivers (e100) 6.0.54-k2-NAPI Intel PRO/1000 MT NIC drivers (e1000) 6.0.54-k2-NAPI Broadcom NetXtreme BCM5704 NIC drivers(5703, 5701)(tg3) v3.
To configure the automatic reboot option, perform the following steps: 1 Type: omconfig system recovery action=reboot This command sets the automatic reboot timer to a default setting of 480 seconds—the time delay before the timer automatically reboots an unresponsive system.
2 Verify that a Broadcom NetXtreme Gigabit or Intel PRO/1000 family NIC is connected with a Cat 5e cable to the Gigabit Ethernet switch. This is your private NIC. 3 Determine which driver module your private NIC uses. The Broadcom NetXtreme Gigabit uses tg3, and the Intel PRO/1000 family uses e1000. 4 View the /etc/modules.conf file by typing: more /etc/modules.
Troubleshooting Table 1-8 provides recommended actions for problems that you may encounter while deploying and using your Red Hat Enterprise Linux and Oracle software. Table 1-8. Category Troubleshooting Problem / Symptom Cause Recommended Corrective Action Performance Red Hat Enterprise The Oracle System Global and stability Linux exhibiting Area (SGA) exceeds the poor performance recommended size. and instability. Excessive use of swap space.
Table 1-8. Troubleshooting (continued) Category Problem / Symptom Cause OCFS The system hangs or displays a kernel panic message. The Red Hat Linux system by default has a daily cron job routine set up to perform updatedb on certain file systems in /etc/cron.daily and /etc/updatedb.conf. OCFS does not support updatedb on its file systems. Recommended Corrective Action 1 Edit the /etc/cron.d/slocate.conf file and add ocfs to the excluded file system list.
Table 1-8. Troubleshooting (continued) Category Problem / Symptom Cause Recommended Corrective Action NETCA NETCA cannot configure remote nodes or a raw device validation error occurs while running DBCA. The /etc/hosts.equiv file either does not exist or does not include the assigned public or virtual IP addresses. Verify that the /etc/hosts.equiv file on each node contains the correct public and virtual IP address. Try to rsh to other public names and VIP addresses as oracle user.
Table 1-8. Troubleshooting (continued) Category Problem / Symptom Cause CRS When you run root.sh, CRS fails to start. The oracle user does not have permissions on /var/tmp (specifically /var/tmp/.oracle). 1 Make oracle user the owner of /var/tmp/.oracle When you run root.sh, CRS fails to start. Other CRS troubleshooting steps have been attempted without success. 1 Enable debugging by adding the following line Node continually reboots.
Table 1-8. 50 Troubleshooting (continued) Category Problem / Symptom Cause DBCA There is no response when you click OK in the DBCA Summary window. DBCA While creating the Known intermittent issue. seed database using DBCA on OCFS volumes, you get error ORA-60, ORA-06512, or ORA-34740. Click Ignore; the seed database is created normally. Software installation You receive dd failure error messages while installing the software using Dell Deployment CD 1.
Table 1-8. Category Troubleshooting (continued) Problem / Symptom Cause Recommended Corrective Action 8-node You receive the The default memory OCFS setup error message allocation for an 8-node with DBCA ORA-04031 cluster is too small. unable to allocate 4180 bytes of shared memory. In the Initialization Parameters Window, change the value of the Shared Pool to 500 MB from the default value of 95 MB and click Next. PowerPath Ignore it. This issue is resolved in PowerPath version 4.3.1.
Getting Help Dell Support For detailed information on the use of your system, see the documentation that came with your system components. For white papers, Dell supported sonfigurations, and general information, visit the Dell and Oracle website at www.dell.com/oracle. For Dell technical support for your hardware and operating system software and to download the latest updates for your system, visit the Dell Support website at www.support.dell.com.
Index A adding and removing nodes, 35 additional configuration options adding and removing nodes, 35 additional information, 42 configuring automatic reboot, 43 determining the private network interface, 44 ASM configuring database storage, 30 ASM configuration, 20 B database storage (single node) using ASM, 30 database storage (single node) using ex3, 29 OCFS, 18 Oracle Database 10g (single node), 29 Oracle RAC 10g, 12 Red Hat Enterprise Linux, 8 shared storage, 18 shared storage for CRS, 17 shared stora
Index H O hardware Fibre Channel cluster minimum requirements, 7 Fibre Channel interconnections, 11 single-node minimum requirements, 7 OCFS configuring shared storage, 37 hardware and software configurations Fibre Channel, 12 Hugemem, 8, 12 I installing CRS, 20 Oracle Database 10g, 22 Oracle Database 10g (single node), 31 Oracle RAC 10g, 20 Red Hat Enterprise Linux, 8 using Dell Deployment CD, 8 integrated NICs, 44 Oracle Database 10g installing, 22 installing (single node), 31 single node confi
Dell™ PowerEdge™ 系统 Oracle Database 10g – 适用于 Intel® 32 位 技术 (x86) 的 Linux 部署指南 1.2 版 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 徽标、Dell OpenManage 和 PowerEdge 是 Dell Inc. 的商标; EMC、PowerPath 和 Navisphere 是 EMC Corporation 的注册商标; Intel 是 Intel Corporation 的注册商标,Xeon 是 Intel Corporation 的商标; Red Hat 是 Red Hat, Inc. 的注 册商标。 本文件中述及的其它商标和产品名称是指拥有相应商标和名称的公司或其制造的产品。Dell Inc.
目录 Oracle RAC 10g 部署服务 . 软件和硬件要求 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 61 61 许可协议 . . . 重要说明文件 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 安装和配置 Red Hat Enterprise Linux . . . . . . . . . . . . . . . . . . . . . 使用 Deployment CD 安装 Red Hat Enterprise Linux 配置 Hugemem 内核 . . . . . . . . . . . . . . . . . 配置 Red Hat Enterprise Linux .
配置和部署 Oracle Database 10g (单个节点) 配置公共网络 . . . . . . . . . . . . . 配置数据库存储 . . . . . . . . . . . . 安装 Oracle Database 10g . . . . . . . 应用 10.1.0.5 增补软件集 . . . . . . . 将数据库修补至 10.1.0.5 增补软件集. 配置监听程序 . . . . . . . . . . . . . 创建基础 (Seed) 数据库 . . . . . . . . 设置 oracle 用户密码 . . . . . . . . . 添加和删除节点 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
本说明文件提供有关在 Dell | Oracle 支持的配置上安装、配置、重新安装和使用 Oracle 10g 企业版及 Real Application Clusters (RAC) 软件的信息。 注:请将本说明文件与 Dell Deployment CD 配合使用来安装软件。如果您仅使用操作系统 CD 来安装操作 系统,则本说明文件中的说明可能不适用。 包括以下内容: • 软件和硬件要求 • 安装和配置 Red Hat® Enterprise Linux • 验证群集硬件与软件配置 • 为 Oracle RAC 10g 配置网络和存储 • 在多个节点上部署 Oracle RAC 10g 数据库和增补软件集并创建启动程序数据库 • 配置和部署 Oracle Database 10g(单个节点) • 添加和删除节点 • 重新安装软件 • 附加信息 • 故障排除 • 获得帮助 • 获取和使用开放源代码文件 有关 Dell 支持的 Oracle 配置的详情,请访问 Dell 和 Oracle 网站 www.dell.
软件和硬件要求 在系统上安装 Oracle RAC 软件之前,请按照随套件提供的为 Oracle 数据库部署经 Dell 测试和验证的 配置说明文件中的说明操作,以便: • 从 Red Hat 网站 www.rhn.redhat.com 下载 Red Hat CD 的内容。 • 找到 Oracle CD 套件,或从 Oracle 网站 www.oracle.com 下载 Oracle 软件。 • 从 Dell 和 Oracle 网站 www.dell.com/oracle 下载 Dell Deployment CD 映像,然后通过这些 CD 映像 创建要使用的 Dell Deployment CD。 表 1-1 列出了 Dell 支持的 Oracle 配置的基本软件要求。表 1-2 至表 1-3 列出了硬件要求。有关驱动程序 和应用程序最低软件版本的详情,请参阅“支持的软件版本”。 表 1-1. 软件要求 软件组件 配置 适用于 Intel® 32 位技术 (x86) 的 季度更新 6 适用于 32 位 Linux 的 Oracle 10g R1 10.1.0.
表 1-2. 最低硬件要求 — 光纤信道群集 硬件组件 配置 Dell™ PowerEdge ™1750、 1850、 2600、 2650、 2800、 2850、 4600、 6600、 6650、 6800 和 6850 系统 (使用 Oracle 群集文件系统 [OCFS] 或自动存储管理 [ASM] 时为二至八个 节点) ) 3-GHz Intel Xeon™ 处理器 1 GB 的 RAM 内部硬盘驱动器使用的 PowerEdge 可扩充 RAID 控制器 (PERC) 连接至一个 PERC 的两个 36 GB 硬盘驱动器 (RAID 1) 三个千兆位 NIC 端口 两个光学主机总线适配器 (HBA) 端口 Dell | EMC CX200、 CX300、 CX400、 有关支持的配置信息,请访问 www.dell.com/oracle CX500 或 CX700 光纤信道存储系统 千兆位以太网交换机 (两个) 有关支持的配置信息,请访问 www.dell.
安装和配置 Red Hat Enterprise Linux 注意:为确保正确地安装操作系统,在安装操作系统之前,应断开系统与所有外部存储设备的连接。 本节将向您介绍 Red Hat Enterprise Linux AS 操作系统的安装以及操作系统的配置以进行 Oracle 部署。 使用 Deployment CD 安装 Red Hat Enterprise Linux 1 从系统中断开所有外部存储设备的连接。 2 找到您的 Dell Deployment CD 以及带更新 6 的原始 Red Hat Enterprise Linux AS CD。 3 将 Dell Deployment CD 1 插入 CD 驱动器,然后重新引导系统。 计算机会引导至 Dell Deployment CD。 4 出现提示时,键入 1 并按 键以选择 Red Hat Enterprise Linux 3 for Oracle Database。 系统提示您创建空白公用程序分区时,请键入 yes。 5 根据提示将每张 Red Hat Installation CD 插入 CD 驱动器。 系统
配置 Red Hat Enterprise Linux 1 作为 root 用户登录。 2 将 Dell Deployment CD 2 插入 CD 驱动器,然后键入以下命令: mount /dev/cdrom /mnt/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-4 概述了群集连接。 图 1-1.
表 1-4.
光纤信道硬件和软件配置 • • 每个节点均必须包含以下最低要求的硬件外围组件: – 内部硬盘驱动器托架中的一个或两个硬盘驱动器(最少 36 GB) – 三个千兆位 NIC 端口 – 两个光纤信道 HBA 每个节点均必须安装以下软件: – Red Hat Enterprise Linux 软件(请参阅表 1-1) – 光纤信道 HBA 驱动程序 – 用于内核的 OCFS1 模块和用于 OCFS 的配置工具 注:OCFS 支持两种内核,即 hugemem 和对称多处理 (SMP)。根据内核选择 OCFS 类型。 • 光纤信道存储设备必须具有以下配置: – 创建并分配给群集至少三个 LUN – LUN 大小至少为 5 GB 为 Oracle RAC 10g 配置网络和存储 本节介绍对运行基础 (seed) 数据库的光纤信道群集进行设置的信息,其中包括以下过程: • 配置公共和专用网络 • 保护系统 • 验证存储配置 • 为群集就绪服务 (CRS) 和 Oracle 数据库配置共享存储 Oracle RAC 10g 是一项复杂的数据库配置,要求按顺序执行以下一系
配置公共和专用网络 本节将向您介绍配置公共和专用群集网络的步骤。 注:每个节点都需要一个唯一的公共和专用 IP 地址,以及一个附加公共 IP 地址,该附加公共 IP 地址作 为客户端连接和连接故障转移的虚拟 IP 地址。虚拟 IP 地址必须与公共 IP 属于同一个子网。所有公共 IP 地 址,包括虚拟 IP 地址,都应该向 DNS 注册。 根据可用的 NIC 端口的数目,按照表 1-5 中所示配置接口。 表 1-5.
4 键入: service network restart 5 键入 ifconfig,验证 IP 地址设置是否正确。 6 要检查网络配置是否正确,请从群集外的某台局域网 (LAN) 客户机对每个公共 IP 地址执行 ping 命令。 7 连接至每个节点以验证公共网络是否正常工作,然后键入 ssh < 公共 IP> 以验证安全命令解释 程序 (ssh) 是否发挥作用。 利用绑定功能配置专用网络 在部署群集之前,应将专用群集网络设置为允许节点之间相互通信。此过程包括配置网络绑定以及为群 集中的每个节点分配专用 IP 地址和主机名。要为 Broadcom 或 Intel 网络接口卡 (NIC) 设置网络绑定并 配置专用网络,请在每个节点上执行以下步骤: 1 作为 root 用户登录。 2 在 /etc/modules.conf 文件中添加以下行: alias bond0 bonding 3 为了获得高可用性,请编辑 /etc/modules.
5 6 对于属于绑定成员的每个设备,执行以下步骤: a 在目录 /etc/sysconfig/network-scripts/ 中,编辑 ifcfg-ethn 文件,包括以下几行: DEVICE=ethn HWADDR= ONBOOT=yes TYPE=Ethernet USERCTL=no MASTER=bond0 SLAVE=yes BOOTPROTO=none b 键入 service network restart 并忽略任何警告。 在每个节点上,键入 ifconfig 以验证专用接口是否正常工作。 节点的专用 IP 地址应该分配给专用接口 bond0。 7 每个节点上均已设置专用 IP 地址后,请从一个节点 ping 每个 IP 地址,确保专用网络可以正常 工作。 8 键入 ssh < 专用 IP> 以连接到每个节点并验证专用网络和 ssh 是否正常工作。 9 在每个节点上,添加以下行来修改 /etc/hosts 文件: 127.0.0.1 localhost.
保护系统 为防止未经授权的用户访问系统,Dell 建议您在安装 Oracle 软件之后禁用 rsh。 键入 chkconfig rsh off 以禁用 rsh。 验证存储配置 配置群集时,在光纤信道存储设备上创建分区。要创建分区,所有群集节点均必须能够检测外部存储设 备。要验证是否每个节点都能检测各存储 LUN 或逻辑磁盘,请执行以下步骤: 1 对于 Dell | EMC 光纤信道存储设备,验证每个节点上是否均已安装了 EMC Navisphere® 代理和 正确的 PowerPath 版本(请参阅表 1-6),以及是否已在 EMC Navisphere 软件中将每个节点分配 给正确的存储分组。有关说明,请参阅随 Dell | EMC 光纤信道存储设备附带的说明文件。 注:为您安装群集的 Dell 专业服务代表已执行此步骤。如果您在节点中重新安装软件,则必须完成 此步骤。 2 通过外观检查来验证存储设备和群集节点是否已正确连接至光纤信道交换机 (请参阅图 1-1 和表 1-4)。 3 验证您是否已作为 root 用户登录。 4 在每个节点上,键入: more /proc/partitions
如果外部存储设备未出现在 /proc/partitions 文件中: 1 键入以下命令,在所有节点上停止 PowerPath 设备: service naviagent stop service PowerPath stop 2 键入以下命令,在所有节点上重新载入 HBA 驱动程序以使所有节点上的内核分区表保持同步: • 对于 Qlogic HBA: rmmod qla2300 modprobe qla2300 • 对于 Emulex HBA: rmmod lpfc modprobe lpfc 3 键入以下命令,在所有节点上重新启动 PowerPath 服务: service PowerPath start service naviagent start 4 键入以下命令,确认所有节点都能看到外部存储设备: more /proc/partitions 为 CRS 配置共享存储 本节提供了有关为群集就绪服务 (Cluster Ready Services, CRS) 配置共享存储的说明。可以在共享的 OCFS 分区或原始设备上创建投票磁盘和 Oracle 群集注册表 (OCR) 文件。要为
3 在每个节点上,执行以下步骤: a 键入以下命令以更改和标识原始字符设备的名称: mv /dev/raw/raw1 /dev/raw/votingdisk mv /dev/raw/raw2 /dev/raw/ocr.dbf mv /dev/raw/raw3 /dev/raw/spfile+ASM.ora b 键入下列命令,设置群集库和投票磁盘的 oracle 用户所有权: chown oracle.dba /dev/raw/votingdisk chown oracle.dba /dev/raw/ocr.dbf chown oracle.dba /dev/raw/spfile+ASM.ora c 编辑 /etc/sysconfig/rawdevices 文件,添加以下用于光纤信道群集的行: /dev/raw/votingdisk /dev/emcpowera1 /dev/raw/ocr.dbf /dev/emcpowera2 /dev/raw/spfile+ASM.
3 对于光纤信道群集,在第一个节点上,使用 fdisk 在另外两个外部存储设备上各创建一个分区: a 键入 fdisk /dev/emcpowerx,并为整个设备创建主分区。 键入 h,获取 fdisk 公用程序内的帮助。 b 键入 cat /proc/partitions,验证新分区是否存在。 如果没有看到新分区,则键入: sfdisk -R /dev/< 设备名称 > 注:以下步骤使用样本值 /u01 和 /u02 作为安装点,并使用 u01 和 u02 作为标记。 4 仅在一个节点上键入以下命令,针对 OCFS 将外部存储设备格式化: mkfs.ocfs -b 128 -F -u -g -L < 卷标 > -m < 安装点 > -p 要查找用户标识号和组标识号,请键入: id oracle 对于光纤信道群集,请键入以下命令格式化 PowerPath 虚拟设备分区: mkfs.
使用 ASM 配置存储 要使用 ASM 配置群集,请在所有节点上执行以下步骤: 1 作为 root 用户登录。 2 键入以下命令以更改和标识原始字符设备的名称: mv /dev/raw/raw4 /dev/raw/ASM1 mv /dev/raw/raw5 /dev/raw/ASM2 3 键入下列命令,设置数据文件磁盘和回闪恢复磁盘的 oracle 用户所有权: chown oracle.dba /dev/raw/ASM1 chown oracle.
6 键入以下命令以启动 Oracle Universal Installer(Oracle 通用安装程序): unset ORACLE_HOME /mnt/cdrom/runInstaller 7 在 Welcome(欢迎)窗口中单击 Next(下一步)。 8 在 Specify File Locations(指定文件位置)窗口中,验证 Oracle 主目录路径是否为 /opt/oracle/product/10.1.
安装 Oracle Database 10g 软件 1 作为 root 用户装入 Oracle Database 10g CD1。 2 作为 oracle 用户,键入: /mnt/cdrom/runInstaller Oracle Universal Installer 将会启动。 3 在 Welcome(欢迎)窗口中,选择 Advanced Installation(高级安装)选项,然后单击 Next (下一步)。 4 在 Specify File Locations(指定文件位置)窗口中,验证完整的 Oracle 主目录路径是否为 /opt/oracle/product/10.1.
e 在摘要窗口中单击 Finish(完成)。 屏幕将显示进度窗口。 f 配置完成后,单击 OK(确定),然后单击 Exit(退出),退出 VIPCA。 g 在群集中的其它各个节点上运行 root.sh。 在下一个节点上运行 root.sh 之前,要等到 root.sh 在当前节点上完成运行。 11 在 Setup Privileges(设置权限)窗口中单击 OK(确定)。 12 在 End of Installation(安装结束)窗口中单击 Exit(退出),然后单击 Yes(是)进行确认。 应用 10.1.0.5 增补软件集 1 从 Oracle Metalink 下载 10.1.0.5 增补软件集 (p4505133_10105_LINUX.ZIP)。 2 在其中一个节点上,将增补软件集复制到文件夹 /oracle_cds/10.1.0.5。 3 将增补软件集解压。 4 仅在一个节点上运行安装程序。该程序将修补所有作为 RAC 群集一部分的节点。10.1.0.5 增补软 件集将修补 CRS 以及数据库主目录。 注:10.1.0.
9 在所有节点上,执行以下步骤: a 从 /opt/oracle/product/10.1.0/crs_1/bin 目录中键入下列命令,验证 CRS 安装: olsnodes -n -v 此时将显示群集中所有节点的公共节点名称列表。 b 键入: crs_stat 将显示正在运行的所有服务的列表。 将数据库修补至 10.1.0.5 增补软件集 1 作为 oracle 用户登录。 2 在升级增补软件集之前,通过运行以下命令,停止 Oracle 通知服务 (ONS): $onsctl stop 3 键入以下命令以启动 Oracle 安装程序: $/oracle_cds/10.1.0.5/Disk1/runInstaller 4 在 Welcome(欢迎)窗口中单击 Next(下一步)。 5 在 Specify File Locations(指定文件位置)窗口中,确保源路径指向 10.1.0.5 分级区域的 products.xml 文件。 6 在 Destination(目标)部分中,从下拉式菜单中选择数据库名称。确保路径指向安装了 10.1.0.
5 选择 Cluster Configuration(群集配置),然后单击 Next(下一步)。 6 在 TOPSNodes 窗口中,单击 Select All Nodes(选择全部节点),然后单击 Next(下一步)。 7 在 Welcome(欢迎)窗口中,选择 Listener Configuration(监听程序配置),然后单击 Next (下一步)。 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 Pr
10 在 Database File Locations(数据库文件位置)窗口中单击 Next(下一步)。 11 在 Recovery Configuration(恢复配置)窗口中,单击 Specify flash recovery area(指定闪存恢复 区域),再单击 Browse(浏览)并选择 /u02,指定闪存恢复大小,然后单击 Next(下一步)。 12 在 Database Content(数据库内容)窗口中,单击 Next(下一步)。 13 在 Database Services(数据库服务)窗口中,单击 Next(下一步)。 14 在 Initialization Parameters(初始化参数)窗口中,如果您的群集有四个以上节点,请将 Shared Pool(共享池)的值改为 500 MB,然后单击 Next(下一步)。 15 在 Database Storage(数据库存储)窗口中,单击 Next(下一步)。 16 在 Creation Options(创建选项)窗口中,选择 Create database(创建数据库),然后单击 Finish (完成)。 1
6 在 Database Identification(数据库标识)窗口中,输入 Global Database Name(全局数据库名 称),如 racdb,然后单击 Next(下一步)。 7 在 Management Options(管理选项)窗口中,单击 Next(下一步)。 8 在 Database Credentials(数据库证书)窗口中,单击 Use the Same Password for All Accounts (对所有帐户使用相同密码),完成密码选择和输入,然后单击 Next(下一步)。 9 在 Storage Options(存储选项)窗口中,单击 ASM,然后单击 Next(下一步)。 10 在 Create ASM Instance(创建 ASM 实例)窗口中,输入用户 SYS 的密码,单击 Create server parameter file(创建服务器参数文件),将位置更改为 /dev/raw/spfile+ASM.
24 在 Confirmation(确认)窗口中单击 OK(确定)创建数据库。 注:基础 (seed) 数据库的创建过程可能需要一个多小时。 数据库创建完成后,屏幕上将显示 Password Management(密码管理)窗口。 25 单击 Exit(退出)。 屏幕上会显示一则消息,提示正在所有节点上启动群集数据库。 26 在每个节点上执行以下步骤: a 键入 srvctl status database -d < 数据库名称 > 以确定该节点上存在的数据库实例。 b 键入以下命令,在 oracle 用户配置文件中添加 ORACLE_SID 环境变量条目: echo "export ORACLE_SID=racdbx" >> /home/oracle/.bash_profile source /home/oracle/.
设置 Oracle 用户密码 Dell 郑重建议您为 oracle 用户设置密码,以便保护您的系统。完成以下步骤,创建 oracle 密码: 1 作为 root 用户登录。 2 键入 passwd oracle,然后按照屏幕上的说明创建 oracle 密码。 配置和部署 Oracle Database 10g(单个节点) 本节介绍有关完成在“安装和配置 Red Hat Enterprise Linux”所述的初始设置或完成重新安装过程的信 息。本节包括以下主题: • 配置公共网络 • 配置数据库存储 • 安装 Oracle 数据库 • 配置监听程序 • 创建基础 (seed) 数据库 • 设置 oracle 用户密码 配置公共网络 请确保您的公共网络正常运行,并且已为您的系统分配了 IP 地址和主机名。 配置数据库存储 使用 ex3 文件系统配置数据库存储 如果您具有附加存储设备,请执行以下步骤: 1 作为 root 用户登录。 2 键入: cd /opt/oracle 3 键入: mkdir oradata recovery 4 使用 fdisk,创建一个用
6 键入 cat /proc/partitions,验证新分区。 如果没有看到新分区,则键入: sfdisk -R /dev/sdb sfdisk -R /dev/sdc 7 键入: mke2fs -j /dev/sdb1 mke2fs -j /dev/sdc1 8 为新创建的文件系统添加一个条目来修改 /etc/fstab 文件。 9 键入: mount /dev/sdb1 /opt/oracle/oradata mount /dev/sdc1 /opt/oracle/recovery 10 键入: chown oracle.
安装 Oracle Database 10g 要安装 Oracle Database 10g,请执行以下步骤: 1 作为 root 用户登录。 2 作为 root 用户,装入 Oracle Database 10g CD1 CD。 3 作为 oracle 用户登录。 4 作为 oracle 用户键入 /mnt/cdrom/runInstaller,以启动 Oracle Universal Installer。 5 键入 startx 以启动 X Window 系统。 6 打开终端窗口,然后键入: xhost + 7 在 Welcome(欢迎)窗口中单击 Next(下一步)。 8 在 Specify File Locations(指定文件位置)窗口中,验证完整的 Oracle 主目录路径是否为 /opt/oracle/product/10.1.0/db_1,然后单击 Next(下一步)。 9 在 Select a Product to Install(选择要安装的产品)窗口中,单击 Oracle Database 10g 10.1.0.3.
将数据库修补至 10.1.0.5 增补软件集 1 作为 oracle 用户登录。 2 键入以下命令以启动 Oracle 安装程序: $/oracle_cds/10.1.0.5/Disk1/runInstaller 3 在 Welcome(欢迎)窗口中单击 Next(下一步)。 4 在 Specify File Locations(指定文件位置)窗口中,确保源路径指向 10.1.0.5 分级区域的 products.xml 文件。 5 在 Destination(目标)部分中,从下拉式菜单中选择数据库名称。确保路径指向安装了 10.1.0.3 的数据库主目录,然后单击 Next(下一步)。 6 在 Selected Nodes(所选节点)窗口中,确保显示安装了 10.1.0.3 的所有成员节点,然后单击 Next (下一步)。 7 在 Available Product Components(可用产品组件)窗口中,单击 Next(下一步)。 8 完成此过程后,安装程序将提示您在所有节点上运行 rootxxx.
5 在 Database Templates(数据库模板)窗口中,单击 Custom Database(自定义数据库), 然后单击 Next(下一步)。 6 在 Database Identification(数据库标识)窗口的 Global Database Name(全局数据库名称)和 SID Prefix(SID 前缀)字段中,键入要创建的数据库的名称,然后单击 Next(下一步)。 7 在 Management Options(管理选项)窗口中,单击 Next(下一步)。 8 在 Database Credentials(数据库证书)窗口中,完成密码选择和输入,然后单击 Next(下一步)。 9 在 Storage Options(存储选项)窗口中选择 File System(文件系统),然后单击 Next(下一步)。 10 在 Database File Locations(数据库文件位置)窗口中单击 Next(下一步)。 11 在 Recovery Configuration(恢复配置)窗口中,单击 Browse(浏览),选择您在“使用 ex3 文件 系统配置数据库存储”
使用 Oracle ASM 创建基础 (seed) 数据库 如果您使用 Oracle ASM 配置了存储,请执行以下步骤,使用 Oracle 数据库创建助手 (DBCA) 来创建一 个基础 (seed) 数据库: 1 作为 oracle 用户键入 dbca &,以启动 DBCA。 2 在 Welcome(欢迎)窗口中单击 Next(下一步)。 3 在 Operations(操作)窗口中,单击 Create a Database(创建数据库),然后单击 Next (下一步)。 4 在 Database Templates(数据库模板)窗口中,单击 Custom Database(自定义数据库), 然后单击 Next(下一步)。 5 在 Database Identification(数据库标识)窗口中,输入 Global Database Name(全局数据库名称) (如 oradb),然后单击 Next(下一步)。 6 在 Management Options(管理选项)窗口中,单击 Next(下一步)。 7 在 Database Credentials(数据库证书)窗口中,单击
18 在 Database Content(数据库内容)窗口中,单击 Next(下一步)。 19 在 Initialization Parameters(初始化参数)窗口中,选择 Typical(典型),然后单击 Next (下一步)。 20 在 Database Storage(数据库存储)窗口中,单击 Next(下一步)。 21 在 Creation Options(创建选项)窗口中,选择 Create database(创建数据库),然后单击 Finish (完成)。 22 在 Confirmation(确认)窗口中单击 OK(确定)创建数据库。 注:创建基础 (seed) 数据库可能需要一个多小时。 数据库创建完成后,屏幕上将显示 Password Management(密码管理)窗口。 23 单击 Exit(退出)。 24 数据库创建完成后,键入以下命令,以便将 ORACLE_SID 环境变量条目添加到 oracle 用户配 置文件中: echo "export ORACLE_SID=oradb" >> /home/oracle/.
添加和删除节点 本节介绍在现有群集中添加节点的步骤和从群集中删除节点的步骤。 要向现有群集添加节点,请执行以下操作: • 将节点添加到网络层。 • 配置共享存储。 • 将节点添加到群集件层、数据库层和数据库实例层。 要从现有群集中删除节点,则按相反顺序执行该过程,即依次从数据库实例层、数据库层和群集件层删 除该节点。 有关在现有群集中添加其它节点的详情,请参阅 Oracle 网站 oracle.
使用 ASM 配置共享存储 如果您使用的是 ASM,应确保新节点可以使用与现有节点相同的权限访问 ASM 磁盘。 要配置 ASM 磁盘,请执行以下操作: 1 作为 root 用户登录。 2 如果未使用原始设备配置现有节点,则转到步骤 3。 如果已使用用于 CRS 的原始设备配置现有节点,则执行以下操作: a 键入下列命令,更改原始字符设备的名称,使设备能够被识别: mv /dev/raw/raw1 /dev/raw/votingdisk mv /dev/raw/raw2 /dev/raw/ocr.dbf mv /dev/raw/raw3 /dev/raw/spfile+ASM.ora b 键入下列命令,设置群集库和投票磁盘的 oracle 用户所有权: chown oracle.dba /dev/raw/votingdisk chown oracle.dba /dev/raw/ocr.dbf chown oracle.dba /dev/raw/spfile+ASM.
使用 OCFS 配置共享存储 如果要对 CRS、法定磁盘或数据库文件使用 Oracle 群集文件系统 (OCFS),请确保新节点可以与现有 节点采用相同的访问方法来访问群集文件系统。 1 编辑新节点上的 /etc/fstab 文件,并完全按照现有节点上所显示的内容添加 OCFS 卷信息: 例如: /dev/emcpowera1 /dev/emcpowerb1 /dev/emcpowerc1 /u01 /u02 /u03 ocfs ocfs ocfs _netdev 0 0 _netdev 0 0 _netdev 0 0 2 按照现有节点上存在的 OCFS 安装点(例如,/u01、/u02 和 /u03),在新节点上创建 OCFS 安 装点。 3 执行以下步骤,运行 ocfstool 以生成 OCFS 配置文件 /etc/ocfs.
7 出现提示时,在新节点上运行 root.sh。 root.sh 完成运行后,单击 OK(确定)。 8 在 End of Cluster Node Addition(群集节点添加结束)窗口中,单击 Exit(退出)。 9 从某个现有节点上的 /opt/oracle/product/10.1.0/crs_1/oui/bin 目录中,键入如下一行内容: racgons add_config node3-pub:4948 在该示例中,node3 将被添加到现有的两个节点的群集中。 将新节点添加到数据库层 10 作为 oracle 用户登录。 11 从某个现有节点上的 /opt/oracle/product/10.1.0/db_1/oui/bin 目录中,键入 addNode.
将新节点添加到数据库实例层 1 在节点 1 上,作为 oracle 用户键入 dbca &,启动 DBCA。 2 在 Welcome(欢迎)窗口中单击 Next(下一步)。 3 在 Oracle Real Application Cluster Database(Oracle Real Application Cluster 数据库)窗口中, 单击 Next(下一步)。 4 在 Operations(操作)窗口中,单击 Instance Management(实例管理),然后单击 Next (下一步)。 5 在 Instance Management(实例管理)窗口中,单击 Add Instance(添加实例),然后单击 Next (下一步)。 6 在 List of Cluster Databases(群集数据库列表)窗口中,选择现有的数据库。 如果您的用户名并未经过操作系统验证,DBCA 会提示您输入具有 SYSDBA 权限的数据库用户名 和密码。 7 输入用户名 sys 和密码,然后单击 Next(下一步)。 屏幕将显示 List of cluster database ins
5 在 Instance Management(实例管理)窗口中,单击 Delete Instance(删除实例),然后单击 Next (下一步)。 6 在 List of Cluster Databases(群集数据库列表)窗口中,选择要删除的实例所在的 RAC 数据库。 如果您的用户名并未经过操作系统验证,DBCA 会提示您输入具有 SYSDBA 权限的数据库用户名 和密码。 7 输入用户名 sys 和密码,然后单击 Next(下一步)。 屏幕将显示 List of cluster database instances(群集数据库实例列表)窗口,其中显示了与选定 RAC 数据库相关的实例以及每个实例的状态。 8 选择要删除的实例,然后单击 Finish(完成)。 此实例不能是运行 DBCA 所在的本地实例。如果您选择本地实例,DBCA 将显示 Error(错误) 对话框。如果出现此对话框,请单击 OK(确定)并选择另一个实例,然后单击 Finish(完成)。 如果服务已分配给该实例,则会显示 DBCA Services Management(DBCA 服务管理)窗口。 使用该窗口将服务重新分
从群集件层中删除节点 1 在要删除的节点上,作为 root 用户键入以下命令来禁用 CRS: /opt/oracle/product/10.1.0/crs_1/install/rootdelete.sh remote nosharedvar 2 在其它某个节点上,作为 root 用户键入以下命令: /opt/oracle/product/10.1.0/crs_1/install/rootdeletenode.sh < 公共节点名 称 >, < 节点号 > 要确定任何节点的节点号,请键入下列命令: /opt/oracle/product/10.1.0/crs_1/bin/olsnodes -n 3 在要删除的节点上,如果要删除 Oracle CRS 软件,请键入以下命令: rm -rf /opt/oracle/product/10.1.
附加信息 支持的软件版本 注:Dell 支持的 Oracle 配置这一版本不支持 Emulex HBA。 表 1-6 列出了发行时支持的软件。要了解支持的最新硬件和软件,请访问 Dell 和 Oracle 网站 www.dell.com/oracle,并下载 Oracle Database 10g EM64T x86 1.2 版的 Solution Deliverable List (可提供的解决方案列表),以获得支持的最新版本。 表 1-6. 支持的软件版本 软件组件 支持的版本 适用于 Intel x86 的 Red Hat Enterprise Linux AS (第 3 版)季度更新 6 操作系统 2.4.21-37.EL Oracle 增补软件集 10.1.0.5 OCFS ocfs1-2.4.21-EL-1.0.14-1 ; ocfs1-2.4.21-EL-smp-1.0.14-1 ; ocfs1-2.4.21-EL-hugemem-1.0.14-1 PowerPath for Linux 4.3.4 DKMS 2.0.
表 1-6. 支持的软件版本 (续) 软件组件 支持的版本 Intel PRO/100 S NIC 驱动程序 (e100) 6.0.54-k2-NAPI Intel PRO/1000 MT NIC 驱动程序 (e1000) 6.0.54-k2-NAPI Broadcom NetXtreme BCM5704 NIC 驱动程序 (5703、 5701) (tg3) v3.27-rh 配置暂挂操作系统的自动重新引导 通过执行以下步骤,安装 Red Hat Enterprise Linux 的管理型系统软件: 1 在您准备安装管理型系统组件的系统上,使用管理员权限登录。 2 退出已打开的所有应用程序,并且禁用任何病毒扫描软件。 3 键入 startx 以启动 X Window 系统。 4 打开终端窗口,然后键入: xhost + 5 将 Dell OpenManage Installation and Server Management CD 插入系统的 CD 驱动器。 6 键入 mount /mnt/cdrom 装入 CD。 7 单击 CD 根目录下的 start.
要配置自动重新引导选项,请执行以下步骤: 1 键入: omconfig system recovery action=reboot 此命令会将自动重新引导计时器设置为默认的 480 秒设置,这是计时器在自动重新引导无反应系 统之前的延迟时间。 2 要将计时器设置更改为不同的值,请键入: omconfig system recovery timer=< 秒数 > 3 要验证系统重新引导计时器设置,请键入: omreport system recovery 确定专用网络接口 要确定为每个网络接口分配的接口设备名称,请执行以下步骤: 1 确定系统中的 NIC 类型。 参考表 1-7,识别系统中有哪些集成 NIC。您的添加式 NIC 可能是 Intel PRO/100 系列或 PRO/1000 系列插卡,也可能是 Broadcom NetXtreme Gigabit 插卡。您可能需要打开系统,然后查看以确定 您配备的添加式插卡。 表 1-7.
2 验证 Broadcom NetXtreme Gigabit 或 Intel PRO/1000 系列 NIC 是否已使用 Cat 5e 电缆连接至千兆 位以太网交换机。这是您的专用 NIC。 3 确定您的专用 NIC 所使用的驱动程序模块。 Broadcom NetXtreme Gigabit 使用的是 tg3,Intel PRO/1000 系列使用的是 e1000。 4 键入以下命令查看 /etc/modules.conf 文件: more /etc/modules.conf 屏幕将以 alias ethX 驱动程序模块格式显示几行文本,其中,X 是以太网接口号,驱动程序 模块是在步骤 3 中确定的模块。 例如,如果操作系统已将 eth1 分配给 Broadcom NetXtreme Gigabit NIC,则屏幕将显示 alias eth1 tg3 文本行。 5 确定已将哪些以太网接口 (ethX) 分配给连接至千兆位交换机的千兆位 NIC 类型。 如果 modules.
故障排除 表 1-8 提供了在部署或使用 Red Hat Enterprise Linux 和 Oracle 软件时可能遇到的问题的建议操作。 表 1-8.
表 1-8. 故障排除 (续) 类别 问题/症状 原因 OCFS 系统挂起或显示内 默认情况下,Red Hat 核严重错误消息。 Linux 系统设置了每天的 cron 作业例行程序,对 /etc/cron.daily 和 /etc/updatedb.conf 中的某 些文件系统执行 updatedb。 OCFS 不支持对其文件系 统执行 updatedb。 建议的纠正措施 1 编辑 /etc/cron.d/slocate.conf 文件,将 ocfs 添 加到排除的文件系统列表中。该文件应该类似 如下所示: #!/bin/sh renice +19 -p $$ >/dev/null 2>&1 /usr/bin/updatedb -f "ocfs nfs,smbfs,ncpfs,proc,devpts" -e "/tmp,/var/tmp,/usr/tmp,/afs,/net" 2 编辑 /etc/updatedb.
表 1-8. 故障排除 (续) 类别 问题/症状 原因 建议的纠正措施 CRS 当您重新引导节点 群集就绪服务 CSS 守护 或键入 程序无法向仲裁磁盘写入 /etc/ini.d/in 数据。 it.crs start 时,CRS 无法启动。 CRS 在运行 root.sh 时, 检查并确保已定义了公共和 在解决网络问题之后,尝试重新引导节点或从 CRS 无法 启动。 专用节点名称并且可以对 /opt/oracle/product/10.1.0/crs_1/ 中运行 root.sh, 节点名称执行 ping 命令。 再次启动服务。 CRS 在运行 root.sh 时, OCR 文件和投票磁盘无法 解决 I/O 问题,并尝试重新引导节点或从 CRS 无法 启动。 访问。 /opt/oracle/product/10.1.0/crs_1/ 中运行 root.sh, 再次启动服务。 CRS 在重新安装之后运 OCR 文件和投票磁盘尚未 清除,仍包含旧信息。 行 root.sh 时, CRS 无法启动。 • 尝试重新引导节点或从 /opt/oracle/product/10.1.
表 1-8. 故障排除 (续) 类别 问题/症状 原因 CRS 在运行 root.sh 时, 已尝试其它的 CRS 故障排 CRS 无法 启动。 除步骤,但没有成功。 建议的纠正措施 1 将以下文本行添加到 root.sh,启用调试功能: set -x 2 尝试从 /opt/oracle/product/10.1.0/crs_1/ 中运行 root.
表 1-8. 故障排除 (续) 类别 问题/症状 原因 建议的纠正措施 软件安装 使用 Dell Deployment CD 1 安装软件时 出现 dd 失败错误 信息。 使用的是副本,而不是原 始 Red Hat CD。 使用系统附带的原始 Red Hat CD。 软件安装 当作为非 oracle 在远程节点上没有设置所 用户连接到数据库 需的权限。 时,出现错误信息 ORA01034: ORACLE not available and Linux Error 13: Permission denied. (ORACLE 不可用 和 Linux 错误 13: 权限被拒绝。) 在所有远程节点上,作为 root 用户,键入: chmod 6751 $ORACLE_HOME 光纤信道 存储 载入光纤信道 HBA 需要更新 HBA 驱动程序、 驱动程序模块时, BIOS 或固件。 出现 I/O 错误和 警告。 查看 www.dell.
表 1-8. 故障排除 (续) 类别 问题/症状 原因 使用 DBCA 收到以下错误消息: 为 8 节点群集分配的默认 进行 8 节点 ORA-04031 内存太小。 OCFS 设置 unable to allocate 4180 bytes of shared memory (ORA-04031 无 法分配 4180 字 节的共享内存)。 PowerPath 建议的纠正措施 在 Initialization Parameters(初始化参数)窗口 中,将 Shared Pool(共享池)的值从默认值 95 MB 改为 500 MB,然后单击 Next(下一步)。 如果在 RHEL 3.0 PowerPath 设备扫描问题。 忽略此问题。PowerPath 4.3.
Oracle 支持 有关 Oracle 软件和应用程序群集件的培训信息,请访问 Oracle 网站 oracle.com 或参阅 Oracle 说明文 件,了解 Oracle 联系信息。 技术支持、下载和其它技术信息可以在 Oracle MetaLink 网站 metalink.oracle.com 上找到。 获取和使用开放源代码文件 Dell Deployment CD 中包含的软件是第三方程序与 Dell 程序的集合。使用该软件必须遵循指定的许可 条款。“依据 GNU GPL 条款”指定的所有软件均可复制、分发和/或修改,但是必须遵循 GNU 一 般公共许可第 2 版(1991 年 6 月)的条款和条件。“依据 GNU LGPL 条款”(或“Lesser GPL”)指 定的所有软件均可复制、分发和/或修改,但是必须遵循 GNU Lesser 一般公共许可 2.
部署指南
索引 A F M ASM 配置数据库存储 , 84 附加配置选项 添加和删除节点 , 90 密码 设置 , 83, 89 ASM 配置 , 74 附加信息 , 97 配置自动重新引导 , 98 确定专用网络接口 , 99 O 安全措施 , 70 安装 CRS, 74 Oracle Database 10g, 76 Oracle Database 10g (单个节点) , 85 Oracle RAC 10g, 74 Red Hat Enterprise Linux, 62 使用 Dell Deployment CD, 62 B 绑定 , 68 部署 Oracle RAC 10g, 66 C CRS 安装 , 74 CRS 配置 , 71 创建基础 (seed) 数据库 , 79, 86 ASM, 80 OCFS, 79 G 公共网络 配置 , 67 故障排除 , 101 光纤信道群集设置 , 64 H Hugemem, 62, 66 获得帮助 , 106 J 集成 NIC, 99 基础 (seed) 数据库 创建 , 79, 86 验证 , 82, 87 监听程序配置 , 78, 8
À˜“″ 配置 (续) 使用 ASM 的共享存储 , 74 使用 OCFS 的共享存储 , 72 数据库存储 (单个节点) , 83 数据库存储 (单个节点), 使用 ASM, 84 数据库存储 (单个节点), 使用 ex3, 83 配置 CRS 的共享存储 , 71 配置 Oracle 10g , 64 验证硬件与软件配置 , 64 配置 Oracle Database 10g (单个节点) , 83, 86 创建基础 (seed) 数据库 , 86 配置 Oracle RAC 10g , 66 创建基础 (seed) 数据库 , 79 配置公共网络 , 67 配置共享存储 , 72 ASM, 74 OCFS, 72 配置专用和公共网络 , 67 配置专用网络 , 68 配置自动重新引导 , 98 R Y Red Hat 更新系统软件包 , 63 验证 存储配置 , 70 基础 (seed) 数据库 , 82, 87 软件配置 , 64 硬件配置 , 64 Red Hat Enterprise Linux 安装 , 62 软件 要求 , 60, 97 重新安装 , 96 软件和硬件要求
Systèmes Dell™ PowerEdge™ Oracle Database 10g – Guide de déploiement de Linux pour Intel® 32 bits (x86) Version 1.2 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 dommage ou d'une perte de données potentiels et vous indique comment éviter ce 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 Oracle RAC 10g . . . . . . . . . . . . . . . . . . . Configuration matérielle et logicielle requise Contrats de licence . . . . . Documentation importante . . . . . . . . . . . . . . . . . 116 . . . . . . . . . . . . . . . . . . . . . . . 117 117 . . . . . . . . . . . . . . . . . . . . . . . Installation et configuration de Red Hat Enterprise Linux . . . . . . . . . . Installation de Red Hat Enterprise Linux à l'aide des CD de déploiement . . . . . . . . . . . . . .
Configuration et déploiement d'Oracle Database 10g (nœud unique) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ajout et suppression de nœuds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149 149 151 152 153 154 . . . . . . . . . . . . . . . . . . . . . . . . . . 156 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 10g Enterprise Edition avec Real Application Clusters (RAC) dans le cadre de votre configuration Dell | Oracle. REMARQUE : pour installer le logiciel, utilisez ce document ainsi que le CD Dell Deployment. Si vous utilisez uniquement les CD du système d'exploitation pour installer ce dernier, les instructions fournies dans ce document peuvent ne pas s'appliquer.
Configuration matérielle et logicielle requise Avant d'installer Oracle RAC sur votre système, suivez les instructions du document Déploiement de configurations testées et validées par Dell pour Oracle Database (fourni avec le kit) pour effectuer les opérations suivantes : • Téléchargez les CD Red Hat à partir du site www.rhn.redhat.com. • Munissez-vous du kit CD d'Oracle ou téléchargez Oracle à partir du site www.oracle.com. • Téléchargez les images du CD Dell Deployment à partir du site www.dell.
Tableau 1-2.
Installation et configuration de Red Hat Enterprise Linux AVIS : déconnectez tous les périphériques de stockage externes avant d'installer le système d'exploitation, pour vous assurer que ce dernier sera correctement installé. La présente section décrit l'installation du système d'exploitation Red Hat Enterprise Linux AS et sa configuration pour le déploiement d'Oracle.
Configuration du noyau Hugemem Pour que vous puissiez configurer Oracle RDBMS pour augmenter la taille de la mémoire tampon au-delà de la valeur par défaut (1,7 Go), vous devez utiliser le noyau hugemem de Red Hat Enterprise Linux 3. Ce noyau est installé automatiquement par le programme d'installation Dell. Modifiez les paramètres d'amorçage par défaut du fichier de configuration /etc/grub.conf pour activer cette option.
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 système, consultez le site Web www.dell.
Figure 1-1.
Tableau 1-4. Interconnexions matérielles pour Fibre Channel (suite) Composant du cluster Connexions Pour chaque système de stockage Fibre Channel Dell | EMC Deux câbles CAT 5e connectés au réseau local Pour chaque commutateur Fibre Channel Dell | EMC De une à quatre connexions optiques au système de stockage Fibre Channel Dell | EMC De une à quatre connexions optiques pour chaque commutateur Fibre Channel.
Configuration matérielle et logicielle pour Fibre Channel • • Chaque nœud doit comporter au minimum le matériel suivant : – Un ou deux disques durs (de 36 Go minimum) dans la baie interne – Trois ports pour NIC Gigabit – Deux cartes adaptateurs de bus hôte Fibre Channel Les logiciels suivants doivent être installés sur chacun des nœuds : – Red Hat Enterprise Linux (voir le tableau 1-1) – Pilote de la carte adaptateur de bus hôte Fibre Channel – Module OCFS1 pour le noyau et outils de configura
Configuration des réseaux publics et privés Cette section explique comment configurer les réseaux publics et privés du cluster. REMARQUE : chaque nœud doit être associé à une adresse IP publique et privée unique. Une adresse IP publique supplémentaire doit être utilisée comme adresse IP virtuelle pour les connexions des clients et le basculement en cas de panne. L'adresse IP virtuelle doit appartenir au même sous-réseau que l'adresse IP publique.
4 Tapez : service network restart 5 Tapez ifconfig pour vérifier que les adresses IP sont configurées correctement. 6 Pour vérifier que le réseau est configuré correctement, lancez un test ping sur chaque adresse IP publique à partir d'un client du réseau local situé hors du cluster. 7 Connectez-vous à chaque nœud pour vérifier que le réseau public fonctionne et tapez ssh pour vérifier que ssh fonctionne également.
5 Pour chaque périphérique faisant partie du lien, procédez comme suit : a Dans le répertoire /etc/sysconfig/network-scripts/, modifiez le fichier ifcfg-ethn. Ce dernier contient les lignes suivantes : DEVICE=ethn HWADDR= ONBOOT=yes TYPE=Ethernet USERCTL=no MASTER=bond0 SLAVE=yes BOOTPROTO=none b Tapez service network restart et ne tenez pas compte des avertissements. 6 Sur chaque nœud, tapez ifconfig pour vérifier le bon fonctionnement de l'interface privée.
11 Connectez-vous en tant qu'utilisateur oracle et connectez-vous à chaque nœud pour vérifier que le shell distant (rsh) fonctionne, en tapant rsh , où n est le numéro du nœud. Sécurité du système Pour protéger le système contre toute tentative d'accès non autorisé, Dell vous conseille de désactiver rsh une fois l'installation du logiciel Oracle terminée. Pour ce faire, tapez chkconfig rsh off.
5 Dans le fichier /proc/partitions, vérifiez que : • Tous les périphériques PowerPath virtuels apparaissent dans le fichier avec des chemins d'accès similaires. Exemple : /dev/emcpowera, dev/emcpowerb et /dev/emcpowerc. • Les unités logiques Fibre Channel s'affichent comme périphériques SCSI et chaque nœud de cluster est configuré avec le même nombre d'unités logiques.
Configuration du stockage partagé pour les services CRS Cette section indique comment configurer des périphériques de stockage partagés pour les services CRS (Cluster Ready Services). Les fichiers du disque de vote et du registre de cluster Oracle (OCR) peuvent être créés sur une partition OCFS partagée ou sur des périphériques bruts. Pour créer une partition OCFS pour les fichiers des services CRS, voir “Configuration du stockage partagé à l'aide d'OCFS”.
Configuration du stockage partagé pour la base de données Cette section indique comment configurer les périphériques de stockage partagés avec OCFS (Oracle Cluster File System) ou ASM (Automatic Storage Management). Configuration du stockage partagé à l'aide d'OCFS 1 Connectez-vous en tant que root. 2 Sur chaque nœud, effectuez les opérations suivantes : a Tapez startx pour lancer le système X Window. b Tapez ocfstool pour formater le périphérique de stockage en OCFS.
5 Sur chaque nœud, effectuez les opérations suivantes : a Créez des points de montage pour chaque partition OCFS. Pour effectuer cette opération, créez les répertoires de partition cible et définissez les propriétaires en tapant : mkdir -p /u01 /u02 chown -R oracle.
5 Éditez le fichier /etc/sysconfig/rawdevices et ajoutez-y les lignes suivantes pour un cluster Fibre Channel : /dev/raw/ASM1 /dev/raw/ASM2 /dev/emcpowerb1 /dev/emcpowerc1 6 Tapez service rawdevices restart pour redémarrer le service des périphériques bruts. Installation d'Oracle RAC 10g Cette section indique comment installer Oracle RAC 10g version 10.1.0.3. La procédure requise inclut l'installation des services CRS et du logiciel Oracle Database 10g.
11 Dans la fenêtre Private Interconnect Enforcement (Interfaces de l'interconnexion privée), cliquez sur chacun des types d'interface et sélectionnez public (publique), private (privée) ou Do not use (Ne pas utiliser), puis cliquez sur Next. REMARQUE : les affectations sélectionnées à cette étape pour les NIC publics et privés doivent être identiques et disponibles sur tous les nœuds.
6 Dans la fenêtre Select Installation Type (Sélectionner le type d'installation), cliquez sur Enterprise Edition, puis cliquez sur Next. L'état des vérifications en cours est indiqué. Une fois celles-ci terminées, il est possible que vous receviez un message vous avertissant d'un conflit de version lié au module openmotif. Cochez l'option Warning (Avertissement) et cliquez sur Next.
Application du correctif 10.1.0.5 1 Téléchargez le correctif 10.1.0.5 (p4505133_10105_LINUX.ZIP) à partir d'Oracle Metalink. 2 Copiez ce fichier dans le dossier /oracle_cds/10.1.0.5 de l'un des nœuds. 3 Décompressez le correctif. 4 Lancez le programme d'installation à partir d'un seul nœud. Le correctif affecte tous les nœuds faisant partie du cluster RAC. Il s'applique aux services CRS et à l'emplacement d'installation de la base de données. REMARQUE : le correctif 10.1.0.
Application du correctif 10.1.0.5 à la base de données 1 Connectez-vous en tant qu'utilisateur oracle. 2 Avant d'appliquer le correctif, arrêtez les services de notification d'Oracle (ONS) en exécutant la commande suivante : $onsctl stop 3 Tapez la commande suivante pour démarrer le programme d'installation d'Oracle : $/oracle_cds/10.1.0.5/Disk1/runInstaller 4 Dans la fenêtre de bienvenue, 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. 10 Dans la fenêtre Listener Configuration, Select Protocols (Configuration de l'écouteur, Sélection des protocoles), sélectionnez TCP, puis cliquez sur Next.
9 Dans la fenêtre Storage Options (Options de stockage), sélectionnez Cluster File System (Système de fichiers du cluster), puis cliquez sur Next. 10 Dans la fenêtre Database File Locations (Emplacement des fichiers de la base de données), cliquez sur Next. 11 Dans la fenêtre Recovery Configuration (Configuration de la récupération), cliquez sur Specify flash recovery area (Indiquer la zone de récupération flash). Cliquez sur Browse (Parcourir) et sélectionnez /u02.
Création de la base de données initiale à l'aide d'ASM Pour créer une base de données initiale à l'aide d'Oracle ASM, procédez comme suit : 1 Sur le nœud 1, connectez-vous en tant qu'utilisateur oracle, puis tapez dbca & pour démarrer l'assistant DBCA. 2 Dans la fenêtre Welcome (Bienvenue), sélectionnez Oracle Real Application Cluster Database (Base de données Oracle Real Application Cluster), puis cliquez sur Next.
16 Dans la fenêtre Select disk groups to be used as storage for database (Sélectionner les groupes de disques à utiliser pour le stockage de la base de données), cochez le groupe à utiliser (GDbdd, par exemple), puis cliquez sur Next. 17 Dans la fenêtre Select File Locations (Sélectionner l'emplacement des fichiers), cochez l'option Use Common Location for All Database Files (Utiliser un emplacement commun pour tous les fichiers de base de données), puis cliquez sur Next.
27 Sur un seul 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.
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 “Installation et configuration de Red Hat Enterprise Linux”.
7 Tapez : mke2fs -j /dev/sdb1 mke2fs -j /dev/sdc1 8 Modifiez le fichier /etc/fstab en ajoutant une entrée pour le système de fichiers qui vient d'être créé. 9 Tapez : mount /dev/sdb1 /opt/oracle/oradata mount /dev/sdc1 /opt/oracle/recovery 10 Tapez : chown oracle.
Installation d'Oracle Database 10g Exécutez la procédure suivante pour installer Oracle Database 10g : 1 Connectez-vous en tant que root. 2 En tant qu'utilisateur root, montez le CD n°1 d'Oracle Database 10g. 3 Connectez-vous en tant qu'utilisateur oracle. 4 En tant qu'utilisateur oracle, tapez /mnt/cdrom/runInstaller pour lancer Oracle Universal Installer. 5 Tapez startx pour lancer le système X Window. 6 Ouvrez une fenêtre de terminal et tapez : xhost + 7 Dans la fenêtre de bienvenue, cliquez sur Next.
Application du correctif 10.1.0.5 à la base de données 1 Connectez-vous en tant qu'utilisateur oracle. 2 Tapez la commande suivante pour démarrer le programme d'installation d'Oracle : $/oracle_cds/10.1.0.5/Disk1/runInstaller 3 Dans la fenêtre de bienvenue, cliquez sur Next. 4 Dans la fenêtre Specify File Locations (Indiquer l'emplacement des fichiers), vérifiez que le chemin source pointe vers le fichier products.xml de la zone de transition du correctif 10.1.0.5.
Création de la base de données initiale Création de la base de données initiale à l'aide du système de fichiers ext3 Procédez comme suit pour créer une base de données initiale avec l'assistant DBCA d'Oracle : 1 Connectez-vous en tant qu'utilisateur oracle. 2 Pour démarrer l'assistant DBCA d'Oracle, tapez dbca. 3 Dans la fenêtre de bienvenue, cliquez sur Next. 4 Dans la fenêtre Operations (Opérations), cliquez sur Create a Database (Créer une base de données), puis cliquez sur Next.
18 Tapez export ORACLE_SID=nom de la base de données, nom de la base de données correspondant à l'identificateur global défini pour la base de données dans l'assistant DBCA. 19 Pour vérifier que la base de données fonctionne correctement, procédez comme suit : a Tapez sqlplus "/ as sysdba" pour afficher l'invite SQL>.
12 Dans la fenêtre Create Disk Group (Créer un groupe de disques), entrez les informations de stockage pour les fichiers de la base de données, puis cliquez sur OK. Entrez un nom pour le groupe de disques à créer (GDbdd, par exemple), sélectionnez une redondance externe, puis choisissez les disques à inclure dans le groupe (par exemple, /dev/raw/ASM1). Une fenêtre indique que le groupe de disques est en cours de création.
Définition du mot de passe de l'utilisateur oracle Dell recommande vivement de protéger le système en définissant un mot de passe pour l'utilisateur oracle. Procédez comme suit pour créer le mot de passe oracle : 1 Connectez-vous en tant que root. 2 Pour créer le mot de passe Oracle, tapez passwd oracle et suivez les instructions à l'écran. Ajout et suppression de nœuds Cette section indique comment ajouter ou supprimer un nœud dans un cluster.
Configuration du stockage partagé à l'aide d'ASM Si vous utilisez ASM, assurez-vous que les nouveaux nœuds ont accès aux disques ASM avec les mêmes autorisations que les nœuds existants. Pour configurer les disques ASM : 1 Connectez-vous en tant que root. 2 Si les nœuds n'ont pas été configurés à l'aide de périphériques bruts, passez à l'étape 3.
Configuration du stockage partagé à l'aide d'OCFS Si vous utilisez le système de fichiers OCFS pour les services CRS, la ressource quorum ou les fichiers de base de données, assurez-vous que les nouveaux nœuds ont accès aux systèmes de fichiers du cluster de la même façon que les nœuds existants.
5 Cliquez sur Next. La fenêtre Cluster Node Addition Progress (Progression de l'ajout du nœud au cluster) affiche l'état de l'opération. 6 Lorsque vous y êtes invité, exécutez le script rootaddnode.sh sur le nœud local. Une fois cette opération terminée, cliquez sur OK. 7 À l'invite, exécutez le script root.sh sur le nouveau nœud. Une fois cette opération terminée, cliquez sur OK. 8 Dans la fenêtre End of Cluster Node Addition (Fin de l'ajout du nœud au cluster), cliquez sur Exit.
8 À partir du répertoire /opt/oracle/product/10.1.0/db_1/oui/bin de l'un des nœuds existants, tapez (par exemple) la ligne suivante : vipca -nodelist node1-pub,node2-pub,node3-pub Dans cet exemple, node3 (le nœud 3) est ajouté à un cluster comprenant deux nœuds existants. L'assistant de configuration du protocole Internet virtuel (VIPCA) démarre. a Dans la première fenêtre de l'assistant, cliquez sur Next.
8 Cliquez sur Next. 9 Dans la fenêtre Adding an Instance (Ajouter une instance), entrez le nom de l'instance en haut de la fenêtre, sélectionnez le nom du nœud, puis cliquez sur Next. 10 Dans la fenêtre Services, cliquez sur Next. 11 Dans la fenêtre Instance Storage (Stockage de l'instance), cliquez sur Finish. 12 Dans la fenêtre Summary (Résumé), cliquez sur OK pour ajouter l'instance de la base de données.
8 Sélectionnez l'instance à supprimer et cliquez sur Finish. Il ne peut pas s'agir de l'instance locale à partir de laquelle vous exécutez l'assistant DBCA. Si vous sélectionnez l'instance locale, l'assistant DBCA affiche une erreur. Le cas échéant, cliquez sur OK, sélectionnez une autre instance, puis cliquez sur Finish. Si des services sont attribués à cette instance, la fenêtre DBCA Services Management (Gestion des services de l'assistant DBCA) s'affiche.
Suppression du nœud de la couche du cluster 1 Connectez-vous en tant que root sur le nœud à supprimer, puis désactivez les services CRS en tapant : /opt/oracle/product/10.1.0/crs_1/install/rootdelete.sh remote nosharedvar 2 Connectez-vous ensuite en tant que root sur l'un des nœuds restants et tapez : /opt/oracle/product/10.1.0/crs_1/install/rootdeletenode.sh , Pour connaître le numéro d'un nœud, tapez : /opt/oracle/product/10.1.
Informations supplémentaires Versions de logiciels prises en charge REMARQUE : les cartes adaptateurs de bus hôte Emulex ne sont pas compatibles avec cette version de configuration Oracle prise en charge par Dell. Le tableau 1-6 répertorie les logiciels pris en charge au moment de la publication de ce document. Pour télécharger des informations sur les éléments matériels et logiciels les plus récents pris en charge, rendez-vous sur le site www.dell.
Tableau 1-6. Versions de logiciels prises en charge (suite) Composant logiciel Versions prises en charge Pilote du contrôleur PERC 4/DC, PERC 4/Di, PERC 4e/Di, PERC 4e/Si ou PERC 4e/DC (megaraid2) 2.10.8.2 Pilotes de NIC Intel PRO/100 S (e100) 6.0.54-k2-NAPI Pilotes de NIC Intel PRO/1000 MT (e1000) 6.0.54-k2-NAPI Pilotes de NIC Broadcom NetXtreme BCM5704 (5703, 5701)(tg3) v3.
12 Une fois l'installation terminée, cliquez sur Finish. Pour plus d'instructions sur la désinstallation des logiciels de système géré, reportez-vous au document Dell OpenManage Server Administrator User's Guide (Guide d'utilisation de Dell OpenManage Server Administrator).
2 Vérifiez qu'un NIC Broadcom NetXtreme Gigabit ou Intel PRO/1000 est connecté via un câble Cat 5e au commutateur Ethernet Gigabit. Il s'agit du NIC privé. 3 Identifiez le pilote utilisé par le NIC privé. La carte Broadcom NetXtreme Gigabit utilise tg3. Les cartes de la gamme Intel PRO/1000 utilisent e1000. 4 Ouvrez le fichier /etc/modules.conf en tapant : more /etc/modules.
Dépannage Le tableau 1-8 indique les mesures recommandées en cas d'incident lié au déploiement et à l'utilisation de Red Hat Enterprise Linux et d'Oracle. Tableau 1-8. Dépannage Catégorie Incident/ Symptôme Cause Mesure recommandée Performances et stabilité Instabilité du système et performances amoindries sous Red Hat Enterprise Linux. Utilisation excessive de l'espace de pagination. La zone SGA (Oracle System Global Area) dépasse la taille recommandée.
Tableau 1-8. Dépannage (suite) Catégorie Incident/ Symptôme Cause OCFS Le système se bloque ou affiche un message signalant une erreur grave du noyau. Le système Red Hat Linux définit par défaut une tâche Cron quotidienne, qui permet d'exécuter updatedb sur certains systèmes de fichiers dans /etc/cron.daily et /etc/updatedb.conf. Le système de fichiers OCFS ne prend pas updatedb en charge. Mesure recommandée 1 Modifiez le fichier /etc/cron.d/slocate.
Tableau 1-8. Dépannage (suite) Catégorie Incident/ Symptôme Cause Mesure recommandée NETCA L'assistant NETCA échoue et provoque des erreurs liées à la création des bases de données. Le réseau public, le nom hôte ou l'adresse IP virtuelle ne sont pas répertoriés dans le fichier /etc/hosts.equiv. Avant d'exécuter netca, assurez-vous qu'un nom d'hôte est attribué au réseau public et que le fichier /etc/hosts.equiv contient les adresses IP publique et virtuelle.
Tableau 1-8. Dépannage (suite) Catégorie Incident/ Symptôme Cause CRS Les services CRS ne démarrent pas lorsque vous exécutez le script root.sh après une réinstallation. Le fichier OCR et le disque de vote n'ont pas été vidés et contiennent d'anciennes données. Les services CRS ne démarrent pas lors de l'exécution du script root.sh. L'utilisateur oracle ne dispose pas des autorisations adéquates sur /var/tmp (plus particulièrement, /var/tmp/.oracle).
Tableau 1-8. Dépannage (suite) Catégorie Incident/ Symptôme Cause CRS Le nœud redémarre Le nœud n'a pas accès au en boucle. disque quorum sur la ressource de stockage partagé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 disque quorum est accessible en lecture et en écriture. Dans le cas contraire, vérifiez les connexions matérielles et assurezvous que les volumes OCFS sont correctement montés.
Tableau 1-8. Catégorie Dépannage (suite) Incident/ Symptôme Cause Mesure recommandée Installation du Lorsque vous vous Les autorisations requises logiciel connectez à la base ne sont pas définies sur le de données sous un nœud distant. 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).
Tableau 1-8. Dépannage (suite) Catégorie Incident/ Symptôme Cause Mesure recommandée Configuration d'OCFS sur un cluster à 8 nœuds à l'aide de l'assistant DBCA Vous recevez le L'allocation de mémoire par message d'erreur défaut pour un cluster de suivant : 8 nœuds est trop restreinte. ORA-04031 unable to allocate 4180 bytes of shared memory (Impossible d'allouer 4180 octets de mémoire partagée).
Obtention d'aide Support Dell Pour plus de précisions sur l'utilisation du système, reportez-vous à la documentation fournie avec ses composants. Vous trouverez des informations sur les configurations Dell prises en charge, des informations d'ordre général et les livres blancs sur le site www.dell.com/oracle. Pour obtenir une assistance technique sur votre matériel ou le système d'exploitation et télécharger les mises à jour appropriées les plus récentes pour le système, rendez-vous sur le site www.support.
Index A Ajout et suppression de nœuds, 149 ASM configuration du stockage de la base de données, 143 Autres options de configuration ajout et suppression de nœuds, 149 B Base de données initiale création, 137, 146 vérification, 141, 147 C Cluster Fibre Channel, exemple de connexion matérielle, 121 Configuration ASM, 131 connecteur A, 130 OCFS, 130 Oracle Database 10g (nœud unique), 142 Oracle RAC 10g, 123 périphériques de stockage partagés à l'aide d'ASM, 131 Configuration (suite) périphériques de stockag
Index D L O Définition de l'interface du réseau privé, 159 Liens réseau, 125 Obtention d'aide, 168 Logiciels configuration requise, 116, 157 réinstallation, 156 OCFS configuration du stockage partagé, 151 Dépannage, 161 Déploiement d'Oracle RAC 10g, 123 Documentation, 117 M E Exemples Fibre Channel, connexions matérielles, 121 H Hugemem, 119, 123 I Informations supplémentaires, 157 configuration du redémarrage automatique, 158 définition de l'interface du réseau privé, 159 Installation CRS,
Réseau privé configuration, 124-125 définition de l'interface, 159 Réseau public configuration, 124 S Sécurité, 127 Shell distant (rsh) désactivation, 127 Suppression d'un nœud, 154 V Vérification base de données initiale, 141, 147 configuration des systèmes de stockage, 127 configuration logicielle, 120 configuration matérielle, 120 Index 171
Index 172 Index
Dell™ PowerEdge™-Systeme Oracle Database 10g – Linux für Intel® 32-BitTechnologie (x86) – Einrichtungsanleitung Version 1.2 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 ist ohne schriftliche Genehmigung von Dell Inc.
Inhalt Oracle RAC 10g Einrichtungsservice . . . . . . . . . . . . . . . . . . . . . Software- und Hardwareanforderungen Lizenzvereinbarungen . Wichtige Dokumentation 177 . . . . . . . . . . . . . . . . . . . 178 . . . . . . . . . . . . . . . . . . . . . . . . . 179 180 . . . . . . . . . . . . . . . . . . . . . . . . . Installation und Konfiguration von Red Hat Enterprise Linux . . . . . . . . . . . . . . . 182 . . . . . . . . . . . . . . . . .
Konfigurieren und Einrichten von Oracle Database 10g (Einzelknoten) . . . 204 . . . . . . . . . . . . . . . . . . . . . . 205 205 206 207 207 208 208 211 . . . . . . . . . . . . . . . . . . . . 211 Konfiguration des öffentlichen Netzwerks . . . . . Konfiguration des Datenbankspeichers . . . . . . Installation von Oracle-Datenbank 10g . . . . . . . Anwendung des Patchsets 10.1.0.5 . . . . . . . . . Patchen der Datenbank mit dem Patchset 10.1.0.5 . Konfiguration des Listeners. . . . . . . . . . . . .
Dieses Dokument enthält Informationen zur Installation, Konfiguration, Neuinstallation und Verwendung der Software Oracle 10g Enterprise Edition mit Real Application Clusters (RAC) für Ihre Dell | Oracle-Konfiguration. ANMERKUNG: Konsultieren Sie dieses Dokument in Verbindung mit der Dell Deployment-CD, um die Software zu installieren. Wenn Sie das Betriebssystem ausschließlich von den Betriebssystem-CDs installieren, sind die Anweisungen im vorliegenden Dokument für Sie unter Umständen nicht relevant.
Software- und Hardwareanforderungen Bevor Sie die Oracle RAC-Software auf Ihrem System installieren, konsultieren Sie das Dokument Einrichten der von Dell geprüften und zugelassenen Konfigurationen für Oracle Database, das Sie mit Ihrem Kit erhalten haben, und führen Sie entsprechend den dort gegebenen Anweisungen folgende Schritte durch: • Laden Sie die Red Hat-CDs von der Red Hat-Website unter www.rhn.redhat.com herunter.
Tabelle 1-2.
Wichtige Dokumentation Weitere Informationen zu spezifischen Hardwarekomponenten finden Sie in der Dokumentation zum System. Informationen zu den Oracle-Produkten finden Sie in der Anleitung How to Get Started (Erste Schritte) im Oracle CD-Kit. Installation und Konfiguration von Red Hat Enterprise Linux HINWEIS: Um die korrekte Installation des Betriebssystems zu gewährleisten, trennen Sie vor der Installation alle externen Speichergeräte vom System.
Konfiguration des hugemem-Kernels Der hugemem-Kernel von Red Hat Enterprise Linux 3 wird benötigt, um die Größe des Puffers (Cachespeichers) von Oracle RDBMS über die Vorgabeeinstellung von 1,7 GB zu erhöhen. Das Dell Installationsprogramm installiert den hugemem-Kernel von Red Hat Enterprise Linux 3 automatisch. Um diese Option zu aktivieren, ändern Sie die vorgegebenen Systemstart-Parameter in der Konfigurationsdatei für den Urlader (/etc/grub.conf).
Aktualisieren von Betriebssystempaketen über das 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 www.dell.com/oracle über die derzeit unterstützten Konfigurationen, bevor Sie die Systemsoftware über den RHN-Dienst aktualisieren.
Abbildung 1-1.
Tabelle 1-4.
Konfigurationen der Fibre-Channel-Hardware und -Software • • Jeder Knoten muss mindestens mit den folgenden Hardwarekomponenten ausgestattet sein: – Eine oder zwei Festplatten (mindestens 36 GB) im internen Festplattenschacht – Drei Gigabit-NIC-Ports – Zwei Fibre-Channel-HBAs Auf jedem Knoten muss die folgende Software installiert sein: – Red Hat Enterprise Linux-Software (siehe Tabelle 1-1) – Fibre-Channel-HBA-Treiber – OCFS1-Modul für Kernel und Konfigurationstools für OCFS ANMERKUNG: OCFS u
Konfiguration des öffentlichen und privaten Netzwerks In diesem Abschnitt werden die erforderlichen Schritte zur Konfiguration der öffentlichen und privaten Clusternetzwerke beschrieben. ANMERKUNG: Jeder Knoten benötigt eine eindeutige öffentliche und private IP-Adresse und eine weitere öffentliche IP-Adresse als virtuelle IP-Adresse für die Client-Verbindungen und als Failover-Verbindung. Die virtuelle IP-Adresse muss dem gleichen Subnetz wie die öffentliche IP-Adresse angehören.
4 Geben Sie Folgendes ein: service network restart 5 Geben Sie ifconfig ein, um zu überprüfen, ob die IP-Adressen richtig eingerichtet wurden. 6 Senden Sie von einem LAN-Client außerhalb des Clusters einen Ping-Befehl an jede öffentliche IP-Adresse, um die Netzwerkkonfiguration zu überprüfen. 7 Stellen Sie eine Verbindung zu jedem Knoten her, um zu überprüfen, ob das öffentliche Netzwerk funktioniert, und geben Sie ssh <öffentliche IP> ein, um sicherzustellen, dass Secure-Shell (ssh) betriebsbereit ist.
Die Einträge für NETMASK, NETWORK und BROADCAST sind optional. DEVICE=bondn ist der für die Bündelung benötigte Name, wobei n für die Bündelungsnummer steht. IPADDR ist die private IP-Adresse. Um bond0 als virtuelles Gerät zu benutzen, müssen Sie festlegen, welches Gerät als Slave eingebunden werden soll.
10 Erstellen oder bearbeiten Sie auf jedem Knoten die Datei /etc/hosts.equiv, indem Sie alle öffentlichen IP-Adressen oder Hostnamen aufführen.
4 Geben Sie auf jedem Knoten folgenden Befehl ein: more /proc/partitions Der Knoten erkennt die LUNs oder logischen Laufwerke sowie die auf diesen externen Geräten vorhandenen Partitionen und zeigt sie an. ANMERKUNG: Die Anzeige der Geräte variiert je nachdem, wie der Speicher konfiguriert ist. Eine Liste der vom Knoten erkannten LUNs oder logischen Datenträger und Partitionen wird angezeigt. PowerPath-Pseudogeräte wie /dev/emcpowera, /dev/emcpowerb und /dev/emcpowerc werden in der Liste angezeigt.
Konfiguration des gemeinsamen Speichers für CRS Dieser Abschnitt enthält Anweisungen für die Konfiguration des gemeinsamen Speichers von Cluster Ready Services (CRS). Die votingdisk-Datei und die Oracle Cluster Registry (OCR)-Datei können auf einer gemeinsamen OCFS-Partition oder Ursprungsgeräten erstellt werden. Zum Erstellen einer OCFSPartition für die CRS-Dateien siehe "Konfiguration von gemeinsamem Speicher mit OCFS".
Konfiguration von gemeinsamem Speicher für die Datenbank Dieser Abschnitt enthält Anweisungen zur Konfiguration des gemeinsamen Speichers unter Verwendung des Oracle Cluster-Dateisystems (OCFS) oder der Automatischen Speicherverwaltung (ASM). Konfiguration des gemeinsamen Speichers mit OCFS 1 Melden Sie sich als root beim System an. 2 Führen Sie auf jedem Knoten die folgenden Schritte aus: a Geben Sie startx ein, um das X-Window-System zu starten.
Formatieren Sie bei einem Fibre-Channel-Cluster die PowerPath-Partitionen der Pseudogeräte, indem Sie Folgendes eingeben: mkfs.ocfs -F -b 128 -L u01 -m /u01 -u 500 -g 500 -p 0775 /dev/emcpowerb1 mkfs.ocfs -F -b 128 -L u02 -m /u02 -u 500 -g 500 -p 0775 /dev/emcpowerc1 5 Führen Sie auf jedem Knoten die folgenden Schritte aus: a Erstellen Sie für jede OCFS-Partition Bereitstellungspunkte.
4 Erstellen Sie bei einem Fibre-Channel-Cluster auf dem ersten Knoten mit fdisk eine Partition auf jedem der zwei anderen externen Speichergeräte: a Geben Sie fdisk /dev/emcpowerx ein und erstellen Sie eine Primärpartition für das gesamte Gerät. Hilfe für das Dienstprogramm fdisk erhalten Sie, indem Sie h drücken. b Geben Sie cat /proc/partitions ein, um zu überprüfen, ob die neue Partition erstellt wurde.
8 Stellen Sie sicher, dass im Fenster Specify File Locations (Datei-Speicherort festlegen) /opt/oracle/product/10.1.0/crs_1 der Oracle-Standardpfad ist, und klicken Sie auf Next (Weiter). 9 Wählen Sie im Fenster Language Selection (Sprachauswahl) eine Sprache aus, und klicken Sie auf Next (Weiter). 10 Geben Sie im Fenster Cluster Configuration (Clusterkonfiguration) einen globalen Clusternamen an, oder akzeptieren Sie den Standardnamen crs.
Installation der Oracle Database 10g-Software 1 Mounten Sie als Benutzer root die Oracle Database 10g CD1. 2 Geben Sie als Benutzer oracle folgenden Befehl ein: /mnt/cdrom/runInstaller Der Oracle Universal Installer wird gestartet. 3 Wählen Sie im Fenster Welcome (Willkommen) die Option Advanced Installation (Erweiterte Installation) aus, und klicken Sie auf Next (Weiter). 4 Stellen Sie sicher, dass im Fenster Specify File Locations (Datei-Speicherort festlegen) der Zielpfad /opt/oracle/product/10.1.
d Geben Sie im Fenster Virtual IPs for Cluster Nodes (Virtuelle IPs für Clusterknoten) für jeden der angezeigten Knoten eine noch nicht vergebene virtuelle IP-Adresse und Subnetzmaske ein, klicken Sie anschließend auf Next (Weiter). Die virtuelle IP-Adresse muss mit der in der Datei /etc/hosts.equiv angegebenen übereinstimmen, und die Subnetzmaske muss mit der öffentlichen Maske identisch sein. e Klicken Sie im Fenster mit der Zusammenfassung auf Finish (Fertigstellen). Ein Statusfenster wird angezeigt.
6 Vergewissern Sie sich, dass im Fenster Selected Nodes (Ausgewählte Knoten) alle Mitgliedsknoten der 10.1.0.3-Installation angezeigt werden und klicken Sie auf Next (Weiter). 7 Das Installationsprogramm fordert Sie auf, die CRS-Services anzuhalten und das Skript root10105.sh auszuführen. Melden Sie sich an jedem Knoten als root an und starten Sie das Skript root10105.sh vom CRS-Stammspeicherort aus. 8 Beenden Sie das Installationsprogramm, nachdem das Skript von allen Knoten aus gestartet wurde.
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. 3 Öffnen Sie ein Terminalfenster und geben Sie ein: xhost + 4 Führen Sie als Benutzer oracle den Befehl source /home/oracle/.
Erstellen der Startdatenbank In diesem Abschnitt wird die Vorgehensweise zum Erstellen einer Startdatenbank mit OCFS oder ASM sowie zum Überprüfen der Startdatenbank beschrieben. Startdatenbank mit OCFS erstellen 1 Geben Sie auf Knoten 1 als Benutzer oracle den Befehl dbca -datafileDestination /u01 ein, um den DBCA (Database Configuration Assistant) zu starten.
17 Klicken Sie im Fenster Confirmation (Bestätigung) auf OK, um die Datenbank zu erstellen. ANMERKUNG: Die Erstellung der Startdatenbank kann mehr als eine Stunde dauern. Nachdem die Datenbank erstellt wurde, wird das Fenster Password Management angezeigt. 18 Klicken Sie auf Exit (Beenden). Eine Meldung zeigt an, dass die Clusterdatenbank auf allen Knoten gestartet wird.
9 Wählen Sie im Fenster Storage Options (Speicheroptionen) die Option ASM aus, und klicken Sie auf Next (Weiter). 10 Geben Sie im Fenster Create ASM Instance (ASM-Instanz erstellen) das Kennwort für den Benutzer SYS ein, klicken Sie auf Create server parameter file (Server-Parameterdatei erstellen), wechseln Sie zu /dev/raw/spfile+ASM.ora, und klicken Sie dann auf Weiter. 11 Wenn in einer Meldung mitgeteilt wird, dass die ASM-Instanz vom DBCA erstellt und gestartet werden kann, klicken Sie auf OK.
22 Klicken Sie im Fenster Database Storage (Datenbankspeicher) auf Next (Weiter). 23 Klicken Sie im Fenster Creation Options (Erstellungsoptionen) auf Create Database (Datenbank erstellen) und anschließend auf Finish (Fertigstellen). 24 Klicken Sie im Fenster Confirmation (Bestätigung) auf OK, um die Datenbank zu erstellen. ANMERKUNG: Die Erstellung der Startdatenbank kann mehr als eine Stunde dauern. Nachdem die Datenbank erstellt wurde, wird das Fenster Password Management angezeigt.
Fixes und Patches zur RAC-Einrichtung Dieser Abschnitt enthält Informationen zu Fixes und Patches für die Einrichtung von Oracle RAC 10g. CSS-Neukonfiguration für korrektes EMC PowerPath-Failover Beim Ausfall eines HBAs, Switches oder EMC Speicherprozessors (SP) kann die Gesamtzeit für das PowerPath-Failover auf ein anderes Gerät 105 Sekunden übersteigen. Das CSS-Standardzeitlimit für 10g R1 in der Version 10.1.0.3 beträgt 45 Sekunden.
Konfiguration des öffentlichen Netzwerks Stellen Sie sicher, dass das öffentliche Netzwerk funktioniert und dem System eine IP-Adresse und ein Hostname zugewiesen sind. Konfiguration des Datenbankspeichers Konfiguration des Datenbankspeichers mit ex3-Dateisystem Wenn Sie über zusätzlichen Speicher verfügen, führen Sie folgende Schritte aus: 1 Melden Sie sich als root beim System an.
Konfiguration des Datenbankspeichers mit Oracle ASM Um das Speichersystem mit ASM zu konfigurieren, gehen Sie wie folgt vor: Im folgenden Beispiel wird davon ausgegangen, dass zwei Speichergeräte (sdb und sdc) zum Erstellen einer Datenträgergruppe für die Datenbankdateien und einer Datenträgergruppe für die Wiederherstellung und Archivprotokolldateien verfügbar sind. 1 Melden Sie sich als root beim System an.
9 Wählen Sie im Fenster Select a Product to Install (Zu installierendes Produkt wählen) die Option Oracle Database 10g 10.1.0.3.0, und klicken Sie auf Next (Weiter). 10 Klicken Sie im Fenster Select Installation Type (Installationstyp auswählen) auf Enterprise Edition und anschließend auf Next (Weiter). 11 Klicken Sie im Fenster Select Database Configuration (Datenbankkonfiguration auswählen) auf Do not create a starter database (Keine Startdatenbank erstellen) und anschließend auf Next (Weiter).
Konfiguration des Listeners 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 Melden Sie sich als oracle an. 5 Geben Sie netca ein, um den Oracle-Netzkonfigurationsassistenten zu starten. 6 Behalten Sie in allen Fenstern die Standardeinstellungen bei, und klicken Sie jeweils auf Next (Weiter), um die Konfiguration des Listeners abzuschließen.
13 Klicken Sie im Fenster Initialization Parameters (Initialisierungsparameter) auf Weiter. 14 Klicken Sie im Fenster Database Storage (Datenbankspeicher) auf Weiter. 15 Aktivieren Sie im Fenster Creation Options (Erstellungsoptionen) das Kontrollkästchen Create Database (Datenbank erstellen), und klicken Sie anschließend auf Finish (Fertig stellen). 16 Klicken Sie im Fenster Confirmation (Bestätigung) auf OK, um die Datenbank zu erstellen.
9 Geben Sie im Fenster Create ASM Instance (ASM-Instanz erstellen) das Kennwort für den Benutzer SYS ein, und klicken Sie auf Next (Weiter). 10 Wenn in einer Meldung mitgeteilt wird, dass die ASM-Instanz vom DBCA erstellt und gestartet werden kann, klicken Sie auf OK. 11 Klicken Sie im Fenster ASM Disk Groups (ASM-Datenträgergruppen) unter Available Disk Groups (Verfügbare Datenträgergruppen) auf Create New (Neu erstellen).
22 Klicken Sie im Fenster Confirmation (Bestätigung) auf OK, um die Datenbank zu erstellen. ANMERKUNG: Die Erstellung der Startdatenbank kann mehr als eine Stunde dauern. Nachdem die Datenbank erstellt wurde, wird das Fenster Password Management angezeigt. 23 Klicken Sie auf Exit (Beenden). 24 Geben Sie nach abgeschlossener Datenbankerstellung die folgenden Befehle ein, um dem oracleBenutzerprofil die Umgebungsvariable ORACLE_SID hinzuzufügen: echo "export ORACLE_SID=oradb" >> /home/oracle/.
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.
4 Um den Benutzer oracle als Besitzer des Datafile-Laufwerks und des Flashback-Wiederherstellungslaufwerks festzulegen, geben Sie folgende Befehle ein: chown oracle.dba /dev/raw/ASM1 chown oracle.dba /dev/raw/ASM2 5 Kopieren Sie /etc/sysconfig/rawdevices von einem der vorhandenen Knoten im Cluster an die gleiche Stelle auf dem neuen Knoten. 6 Geben Sie Folgendes ein: chown oracle.dba /dev/raw/ASM* 7 Geben Sie service rawdevices restart ein, um den Ursprungsgerätedienst (Raw Devices Service) neu zu starten.
4 Geben Sie die folgenden Befehle ein, um das OCFS-Modul zu laden und alle Datenträger, die in der Datei /etc/fstab aufgelistet sind, zu mounten: /sbin/load_ocfs mount -a -t ocfs Hinzufügen eines neuen Knotens zur Clusterwareschicht 1 Melden Sie sich als oracle an. 2 Geben Sie auf einem der bereits vorhandenen Knoten vom Verzeichnis /opt/oracle/product/10.1.0/crs_1/oui/bin aus den Befehl addNode.sh ein, um den Oracle Universal Installer zu starten.
Hinzufügen eines neuen Knotens zur Datenbankschicht 1 Melden Sie sich als oracle an. 2 Geben Sie auf einem der bereits vorhandenen Knoten vom Verzeichnis /opt/oracle/product/10.1.0/db_1/oui/bin aus den Befehl addNode.sh ein, um den Oracle Universal Installer zu starten. 3 Klicken Sie im Fenster Welcome (Willkommen) auf Next (Weiter). 4 Wählen Sie im Fenster Specify Cluster Nodes for Node Addition (Hinzuzufügende Clusterknoten auswählen) den neuen Knoten aus, und klicken Sie danach auf Next (Weiter).
Hinzufügen eines neuen Knotens zur Datenbankinstanzschicht 1 Geben Sie auf Knoten 1 als Benutzer oracle den Befehl dbca & ein, um den DBCA (Database Configuration Assistant) zu starten. 2 Klicken Sie im Fenster Welcome (Willkommen) auf Next (Weiter). 3 Klicken Sie im Fenster Oracle Real Application Cluster Database auf Next (Weiter). 4 Klicken Sie im Fenster Operations (Operationen) auf Instance Management (Datenbankinstanzen verwalten) und anschließend auf Next (Weiter).
Entfernen eines Knotens aus dem Cluster Entfernen eines Knotens aus der Datenbankinstanz-Schicht 1 Melden Sie sich als oracle an. 2 Geben Sie an Knoten 1 ein: dbca 3 Klicken Sie im Fenster Welcome (Willkommen) auf Next (Weiter). 4 Klicken Sie im Fenster Operations (Operationen) auf Instance Management (Datenbankinstanzen verwalten) und anschließend auf Next (Weiter).
Entfernen eines Knotens aus der Datenbankschicht 1 Melden Sie sich am zu löschenden Knoten als Benutzer oracle an. 2 Geben Sie den folgenden Befehl ein, und verwenden Sie dabei den öffentlichen Namen des zu löschenden Knotens: (zum Beispiel node3-pub): srvctl stop nodeapps -n node3-pub 3 Melden Sie sich am zu löschenden Knoten als Benutzer root an.
Neuinstallation der Software HINWEIS: Bei der Neuinstallation der Software werden sämtliche Daten von den Festplatten gelöscht. HINWEIS: Sie müssen sämtlichen externen Speicherlaufwerke 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. Nehmen Sie nur dann eine Neuinstallation der Knotensoftware vor, wenn Ihnen keine andere Möglichkeit bleibt.
Tabelle 1-6. 220 Unterstützte Softwareversionen Softwarekomponente Unterstützte Versionen Betriebssystem Red Hat Enterprise Linux AS (Version 3), vierteljährliches Update 6 für Intel x86-Betriebssystem 2.4.21-37.EL Oracle Patchset 10.1.0.5 OCFS ocfs1-2.4.21-EL-1.0.14-1; ocfs1-2.4.21-EL-smp-1.0.14-1; ocfs1-2.4.21-EL-hugemem-1.0.14-1 PowerPath für Linux 4.3.4 DKMS 2.0.5-1 Qlogic HBA 2340-Treiber 7.07.00 Qlogic HBA 2342-Treiber 7.07.00 Qlogic HBA 2360-Treiber 7.07.00 Qlogic HBA QLE2362 7.
Konfiguration des automatischen Neustarts bei Betriebssystemabsturz Installieren Sie Managed-System-Software für Red Hat Enterprise Linux, indem Sie folgende Schritte ausführen: 1 Melden Sie sich mit Administratorrechten an dem System an, auf dem Sie die Managed-SystemKomponenten installieren möchten. 2 Beenden Sie alle laufenden Anwendungsprogramme, und deaktivieren Sie alle VirenscannerAnwendungen. 3 Geben Sie startx ein, um das X-Window-System zu starten.
Führen Sie folgende Schritte aus, um den automatischen Neustart zu konfigurieren: 1 Geben Sie Folgendes ein: omconfig system recovery action=reboot Dieser Befehl stellt den Zeitgeber für automatischen Neustart auf den Standardwert von 480 Sekunden ein. Dabei handelt es sich um die Zeitspanne, nach deren Ablauf ein nicht mehr reagierendes System neu gestartet wird.
2 Überprüfen Sie, ob ein Broadcom NetXtreme Gigabit-NIC oder ein NIC der Intel PRO/1000-Serie über ein Cat 5e-Kabel an den Gigabit-Ethernet-Switch angeschlossen ist. Dies ist der private NIC. 3 Finden Sie heraus, welches Treibermodul der private NIC verwendet. Bei Broadcom NetXtreme Gigabit wird tg3 verwendet, bei Geräten der Intel PRO/1000-Serie e1000. 4 Zeigen Sie die Datei /etc/modules.conf an, indem Sie eingeben: more /etc/modules.
Fehlerbehebung In Tabelle 1-8 sind empfohlene Maßnahmen für Probleme aufgeführt, die beim Einrichten und beim Einsatz von Red Hat Enterprise Linux und Oracle-Software auftreten können. Tabelle 1-8. Fehlerbehebung Kategorie Problem/Anzeichen Ursache Empfohlene Korrekturmaßnahmen Leistung und Stabilität Unzureichende Das SGA (Oracle System Leistung und Global Area) übersteigt instabiler Betrieb die empfohlene Größe. von Red Hat Enterprise Linux. Übermäßige Beanspruchung des Swap-Speichers.
Tabelle 1-8. Fehlerbehebung (Fortsetzung) Kategorie Problem/Anzeichen Ursache OCFS Das System reagiert nicht mehr, oder es wird eine KernelPanic-Meldung angezeigt. In der Standardkonfiguration von Red Hat Linux ist in den Dateien /etc/cron.daily und /etc/updatedb.conf ein cron-Job festgelegt, der das Programm updatedb einmal täglich auf bestimmten Dateisystemen ausführt. updatedb wird auf OCFS-Dateisystemen nicht unterstützt. Empfohlene Korrekturmaßnahmen 1 Öffnen Sie die Datei /etc/cron.d/slocate.
Tabelle 1-8. Fehlerbehebung (Fortsetzung) Kategorie Problem/Anzeichen Ursache Empfohlene Korrekturmaßnahmen NETCA Fehler bei NETCA verursachen Probleme beim Erstellen von Datenbanken. Die öffentliche Netzwerkschnittstelle, Hostname oder virtuelle IP werden nicht in der Datei /etc/hosts.equiv aufgeführt. Stellen Sie vor dem Ausführen von netca sicher, dass dem öffentlichen Netzwerk ein Hostname zugewiesen ist und dass die öffentlichen und virtuellen IP-Adressen in der Datei /etc/hosts.
Tabelle 1-8. Fehlerbehebung (Fortsetzung) Kategorie Problem/Anzeichen Ursache Empfohlene Korrekturmaßnahmen CRS CRS startet beim Ausführen von root.sh nicht. Stellen Sie sicher, dass die öffentlichen und private Knotennamen zugewiesen sind, und die Knotennamen mit ping erreicht werden können. Versuchen Sie den Dienst neu zu starten, indem Sie den Knoten neu starten oder den Befehl root.sh im Verzeichnis /opt/oracle/product/ 10.1.0/crs_1/ ausführen, nachdem Sie die Netzwerkprobleme behoben haben.
Tabelle 1-8. Fehlerbehebung (Fortsetzung) Kategorie Problem/Anzeichen Ursache CRS CRS startet beim Ausführen von root.sh nicht. Andere Schritte zur Fehlerbehebung bei CRS wurden ohne Erfolg durchgeführt. Empfohlene Korrekturmaßnahmen 1 Aktivieren Sie den Debug-Modus, indem Sie in der Datei root.sh folgende Zeile hinzufügen: set -x 2 Versuchen Sie den Dienst neu zu starten, indem Sie den Befehl root.sh im Verzeichnis /opt/oracle/product/10.1.0/crs_1/ ausführen.
Tabelle 1-8. Fehlerbehebung (Fortsetzung) Kategorie Problem/Anzeichen Ursache Empfohlene Korrekturmaßnahmen DBCA Wenn Sie im Fenster DBCA Summary (DBCAÜbersicht) auf OK klicken, erfolgt keine Reaktion. Problem mit der Java Runtime-Umgebung. Klicken Sie erneut. Wenn noch immer keine Reaktion erfolgt, starten Sie den DBCA neu. DBCA Während der Erstellung der Startdatenbank mit dem DBCA auf OCFS-Dateisystemen wird die Fehlermeldung ORA-60, ORA06512 oder ORA34740 angezeigt.
Tabelle 1-8. Fehlerbehebung (Fortsetzung) Kategorie Problem/Anzeichen Ursache Empfohlene Korrekturmaßnahmen CFSInstallation mit acht Knoten über den DBCA Sie erhalten die Fehlermeldung ORA-04031 unable to allocate 4180 bytes of shared memory. Ändern Sie im Fenster Initialization Parameters (Initialisierungsparameter) den Wert für Shared Pool (Gemeinsam genutzter Speicher) auf 500 MB (Standard: 95 MB), und klicken Sie auf Next (Weiter).
Wie Sie Hilfe bekommen Dell Support Weitere Informationen zum Betrieb des Systems erhalten Sie in der zusammen mit den Systemkomponenten gelieferten Dokumentation. Whitepaper, Informationen zu den von Dell unterstützten Oracle-Konfigurationen und allgemeine Informationen erhalten Sie auf der Dell/Oracle-Website unter www.dell.com/oracle. Technischen Support von Dell für Ihre Hardware und die Betriebssystem-Software sowie die aktuellen Updates für Ihr System finden Sie auf der Dell Support-Website unter www.
Einrichtungsanleitung
Index A F I ASM Konfiguration des Datenbankspeichers, 206 Fehlerbehebung, 224 Installation CRS, 194 mit Dell DeploymentCD, 180 Oracle Datenbank 10g, 196 Oracle Datenbank 10g (einzelner Knoten), 206 Oracle RAC 10g, 194 Red Hat Enterprise Linux, 180 Fibre-Channel-Cluster einrichten, 182 Automatischen Neustart konfigurieren, 221 G B Gemeinsamen Speicher für CRS konfigurieren, 191 Beispiele Fibre-Channel-Cluster, Hardwareverbindungen, 183 Gemeinsamen Speicher konfigurieren, 192 ASM, 193 OCFS, 192 Bo
Index Gemeinsamer Speicher für CRS, 191 Gemeinsamer Speicher mit ASM, 193 gemeinsamer Speicher mit OCFS, 192 OCFS, 192 Oracle Datenbank 10g (einzelner Knoten), 204 Oracle RAC 10g, 185 Red Hat Enterprise Linux, 181 Konfiguration des öffentlichen und privaten Netzwerks, 186 Konfiguration von ASM, 193 Konfiguration von Oracle 10g, 182 Hardware- und Softwarekonfiguration überprüfen, 182 Konfiguration von Oracle RAC 10g, 185 Startdatenbank erstellen, 200 Konfigurieren des privaten Netzwerks, 187 L Listene
U Z Überprüfen Hardwarekonfiguration, 182 Softwarekonfiguration, 182 Speicherkonfiguration, 189 Startdatenbank, 203, 209 Zusätzliche Informationen, 219 Automatischen Neustart konfigurieren, 221 Private Netzwerkschnittstelle identifizieren, 222 Unterstützte Speichergeräte, 219 W Zusätzliche Konfigurationsoptionen Hinzufügen und Entfernen von Knoten, 211 Wie Sie Hilfe bekommen, 231 Index 235
Index 236 Index
Dell™ PowerEdge™ システム Oracle Database 10g – Linux for Intel® 32-Bit Technology(x86) 導入ガイド バージョン 1.2 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 ロゴ、Dell OpenManage、および PowerEdge は Dell Inc. の商標です。 EMC、PowerPath、および Navisphere は EMC Corporation の登録商標です。Intel は Intel Corporation の登録商標です。 Xeon は Intel Corporation の商標です。Red Hat は Red Hat, Inc.
目次 Oracle RAC 10g Deployment Service . . . . . . . . . . . . . . . . . . . . . ソフトウェアおよびハードウェアの要件 . ライセンス契約 . . 重要なマニュアル. 241 . . . . . . . . . . . . . . . . 242 . . . . . . . . . . . . . . . . . . . . . . . . . . . 243 244 . . . . . . . . . . . . . . . . . . . . . . . . . . . Red Hat Enterprise Linux のインストールおよび設定 . . . . . . . . . . . 244 『Deployment CD』を使用した Red Hat Enterprise Linux のインストール . . . . . . . . . . . . . . . . . . . . . . . . . . . . . hugemem カーネルの設定 . . . . . . . . . . . . . . .
Oracle Database 10g の設定および導入(シングルノード) . . . . . . パブリックネットワークの設定 . . . . . . . . . . . . . . データベース記憶域の設定 . . . . . . . . . . . . . . . . . Oracle Database 10g のインストール . . . . . . . . . . . . 10.1.0.5 パッチセットの適用 . . . . . . . . . . . . . . . . . データベースを 10.1.0.5 パッチセットにパッチする方法 リスナーの構成 . . . . . . . . . . . . . . . . . . . . . . . . シードデータベースの作成 . . . . . . . . . . . . . . . . . oracle ユーザーパスワードの設定 . . . . . . . . . . . . . ノードの追加と削除 . . . . . . 268 268 269 270 270 271 271 274 . . . . . . . . . . . . . .
本書では、Dell | Oracle がサポートされた構成で Oracle 10g Enterprise Edition with Real Application Clusters(RAC)ソフトウェアをインストール、設定、再インストール、および使用す るのに必要な情報について説明します。 メモ: 本書と『Dell Deployment CD』を併用して、使用するソフトウェアをインストールしてください。 オペレーティングシステムの CD のみを使用してオペレーティングシステムをインストールする場合、本 書の説明は該当しないことがあります。 内容は次のとおりです。 • ソフトウェアおよびハードウェアの要件 • Red Hat® Enterprise Linux のインストールと設定 • クラスタのハードウェアおよびソフトウェアの構成の確認 • Oracle RAC 10g 用のネットワークおよびストレージの構成 • Oracle RAC 10g のデータベースとパッチセットを複数のノードに導入し、初期データベース を作成する方法 • Oracle Database 10g の設定および導
ソフトウェアおよびハードウェアの要件 お使いのシステムに Oracle RAC ソフトウェアをインストールする前に、キットに同梱の 『Oracle Database 用のデルで検証済みの設定の導入』に書かれている説明に従って次の手順を実 行します。 • Red Hat のウェブサイト www.rhn.redhat.com から『Red Hat CD』をダウンロード します。 • Oracle CD キットを用意するか、Oracle のウェブサイト www.oracle.com から Oracle ソフ トウェアをダウンロードします。 • デルと Oracle のウェブサイト www.dell.
表 1-2. ハードウェアの最小要件 ― ファイバーチャネルクラスタ ハードウェアコンポーネント 構成 Dell™ PowerEdge™ 1750、1850、 2600、2650、2800、2850、4600、 6600、6650、6800、および 6850 の各システム(Oracle Cluster File System [OCFS] または Automatic Storage Management [ASM] を使用した 2 ~ 8 ノード) 3 GHz Intel Xeon™ プロセッサ 1 GB RAM 内蔵ハードドライブ用の PERC(PowerEdge Expandable RAID Controller)コントローラ PERC に接続された 36 GB のハードドライブ(RAID 1)× 2 Gigabit NIC ポート× 3 光学式ホストバスアダプタ(HBA)ポート× 2 Dell | EMC CX200、CX300、CX400、 CX500、または CX700 の各ファ イバーチャネルストレージシステム サポートされる構成については、www.dell.
重要なマニュアル 特定のハードウェアコンポーネントの詳細については、システムに付属のマニュアルを参照してくだ さい。 Oracle の製品情報については、Oracle CD キットの『How to Get Started』ガイドを参照してくだ さい。 Red Hat Enterprise Linux のインストールおよび設定 注意:オペレーティングシステムを正常にインストールするには、インストールを開始する前に外付 けストレージデバイスをすべてシステムから取り外してください。 本項では Red Hat Enterprise Linux AS オペレーティングシステムのインストールと、 Oracle の導入に必要なオペレーティングシステムの設定について説明します。 『Deployment CD』を使用した Red Hat Enterprise Linux のインストール 1 すべての外付けストレージデバイスをシステムから取り外します。 2 『Dell Deployment CD』と Update 6 を含む Red Hat Enterprise Linux AS の CD を用意 します。 3 『Dell
hugemem カーネルの設定 バッファキャッシュのサイズをデフォルト値の 1.7 GB よりも大きくするために Oracle RDBMS を 設定するには、Red Hat Enterprise Linux 3 の hugemem カーネルが必要です。Red Hat Enterprise Linux 3 の hugemem カーネルは Dell Installer によって自動的にインストールされます。このオプ ションを有効にするには、ブートローダ設定ファイル /etc/grub.
Red Hat Network を使用したシステムパッケージのアップデート Red Hat では、ソフトウェアのアップデート版を定期的にリリースして、バグの修正、セキュリ ティ問題への対応、新しい機能の追加などを行っています。ユーザーは Red Hat Network(RHN) サービスを利用してアップデート版をダウンロードできます。RHN を利用してシステムソフトウェ アを最新バージョンに更新する前に、デルと Oracle のウェブサイト www.dell.
図 1-1 ファイバーチャネルクラスタ用のハードウェアの接続 パブリックネットワーク Gb Ethernet スイッチ (プライベートネットワーク) LAN/WAN PowerEdge システム (Oracle データベース) HBA 0 HBA 1 スイッチ 1 Dell | EMC ファイバーチャネルスイッチ(SAN) スイッチ 0 0 1 SP-A 0 1 SP-B CAT 5e(内蔵 NIC) CAT 5e(銅線 Gigabit NIC) 光ファイバーケーブル 追加の光ファイバーケーブル Dell | EMC ファイバーチャネルストレージシステム メモ: 上記のストレージプロセッサ、HBA、ファイバーチャネルスイッチの配列は例 示に過ぎず、ネットワーク構成によって異なります。 表 1-4.
表 1-4.
ファイバーチャネルのハードウェアとソフトウェアの構成 • • 各ノードには、少なくとも以下のハードウェア周辺機器が含まれている必要があります。 – 内蔵ドライブベイ内にハードドライブ× 1 台または 2 台(最小 36 GB) – Gigabit NIC ポート× 3 – ファイバーチャネル HBA × 2 各ノードには、以下のソフトウェアをインストールする必要があります。 – Red Hat Enterprise Linux ソフトウェア(表 1-1 を参照) – ファイバーチャネル HBA ドライバ – カーネル用の OCFS1 モジュール、および OCFS 用の設定ツール メモ: OCFS は hugemem および対称型マルチプロセッサ(SMP)という 2 種類のカーネルをサ ポートしています。お使いのカーネルに従って OCFS の種類を選択してください。 • ファイバーチャネルストレージは、以下の構成が必須です。 – クラスタに対して少なくとも 3 つの LUN を作成して割り当てる – LUN のサイズは最小 5 GB Oracle RAC 10g 用のネッ
パブリックおよびプライベートネットワークの設定 本項ではパブリックおよびプライベートのクラスタネットワークの設定手順について説明します。 メモ: クライアント接続および接続のフェイルオーバーのために、固有のパブリックおよびプライ ベート IP アドレスを 1 つと、仮想 IP アドレスとしての機能を果たす追加のパブリック IP アドレスを 1 つ、各ノードに設定する必要があります。仮想 IP アドレスはパブリック IP と同じサブネットに属して いなければなりません。仮想 IP アドレスを含むすべてのパブリック IP アドレスは DNS に登録する必 要があります。 利用可能な NIC ポートの数に応じて、表 1-5 に示すとおりにインタフェースを設定します。 表 1-5.
4 次のように入力します。 service network restart 5 ifconfig と入力し、IP アドレスが正しく設定されていることを確認します。 6 ネットワークの設定をテストするには、クラスタ外部の LAN のクライアントから各パブリッ ク IP アドレスに対して ping を実行します。 7 各ノードに接続して、パブリックネットワークが機能していることを確認します。また、ssh < パブリック IP> と入力して、セキュアシェル(ssh)が機能していることを確認します。 ボンディングを使用したプライベートネットワークの設定 クラスタを配置する前に、プライベートクラスタネットワークを設定し、ノード間で通信できるよ うにします。このためには、ネットワークボンディングを設定して、プライベート IP アドレスとホ スト名をクラスタ内の各ノードに割り当てます。Broadcom または Intel のネットワークインタ フェースカード(NIC)でネットワークボンディングを行い、プライベートネットワークを設定す るには、各ノードで次の手順を実行します。 1 root としてログインします。 2 /e
NETMASK、NETWORK、および BROADCAST の入力はオプションです。 DEVICE=bondn のボンド名は必須です。n はボンドの番号を表します。 IPADDR はプライベート IP アドレスです。 bond0 を仮想デバイスとして使用するには、スレーブとしてボンディングされるデバイスを指 定する必要があります。 5 ボンドの各メンバーデバイスについて、以下の手順を実行します。 a /etc/sysconfig/network-scripts/ ディレクトリで、ifcfg-ethn ファイルを次のように編集 します。 DEVICE=ethn HWADDR= ONBOOT=yes TYPE=Ethernet USERCTL=no MASTER=bond0 SLAVE=yes BOOTPROTO=none b service network restart と入力し、表示される警告はすべて無視します。 6 各ノードで ifconfig と入力して、プライベートインタフェースが機能していることを確認し ます。 ノードのプライベート IP アドレスはプライベートイン
10 各ノードで、/etc/hosts.
4 各ノードで、次のように入力します。 more /proc/partitions ノードは、LUN または論理ディスク、およびこれらの外付けデバイス上で作成されたパーティ ションを検出し、表示します。 メモ: 一覧のデバイスはストレージの構成によって異なります。 ノードで検出された LUN または論理ディスクが、これらの外付けデバイスに作成されたパー ティションとともに一覧表示されます。この一覧には、PowerPath 仮想デバイスが /dev/emcpowera、/dev/emcpowerb、/dev/emcpowerc のように表示されます。 5 /proc/partitions ファイル内で、以下のことを確認します。 • すべての PowerPath 擬似デバイスが、類似するデバイスパスを持つファイル内に表示さ れていること。たとえば、/dev/emcpowera、dev/emcpowerb、および /dev/emcpowerc です。 • ファイバーチャネル LUN が SCSI デバイスとして表示され、各クラスタノードが同数の LUN で構成されていること。 たとえば、ノードが 3 つの論
CRS 用の共有ストレージの構成 本項では CRS(Cluster Ready Services)用に共有ストレージを構成する方法について説明します。 投票ディスクファイルと Oracle Cluster Registry(OCR)ファイルは、共有 OCFS パーティション または raw デバイス上に作成できます。CRS ファイル用の OCFS パーティションを作成するには、 「OCFS を使用した共有ストレージの構成」を参照してください。 ASM を使用して共有ストレージを構成するには、次の手順を実行します。 1 最初のノードで、fdisk コマンドを使って、外付けストレージデバイスに 3 つのパーティショ ンを作成します。 fdisk /dev/emcpowerx と入力して、Cluster Repository、Voting Disk、および Oracle システムのパラメータファイルのそれぞれに 150 MB のパーティションを 3 つ作成します。 2 次のように入力して、新しいパーティションを確認します。 more /proc/partitions /proc/partitions ファイル内に新
データベース用の共有ストレージの構成 本項では OCFS(Oracle Cluster File System)または ASM(Automatic Storage Management) のどちらかを使用して共有ストレージを構成する方法について説明します。 OCFS を使用した共有ストレージの構成 1 root としてログインします。 2 各ノードで、以下の手順を実行します。 a startx と入力して X Window System を起動します。 b ocfstool と入力して、OCFS を使用してストレージをフォーマットします。 c メニューから Tasks をクリックして、次に Generate Config をクリックします。 d ノードのプライベート NIC のデバイス名とプライベートホスト名を選択します。 OK をクリックします。 e File → Exit の順に選択します。 3 ファイバーチャネルクラスタについては、最初のノードで、次のように fdisk を使用して、 別の 2 つの外付けストレージデバイスにそれぞれ 1 つずつパーティションを作成します。 a f
ファイバーチャネルクラスタについては、次のように入力して、PowerPath 仮想デバイスパー ティションをフォーマットします。 mkfs.ocfs -F -b 128 -L u01 -m /u01 -u 500 -g 500 -p 0775 /dev/emcpowerb1 mkfs.ocfs -F -b 128 -L u02 -m /u02 -u 500 -g 500 -p 0775 /dev/emcpowerc1 5 各ノードで、以下の手順を実行します。 a 各 OCFS パーティション用にマウントポイントを作成します。この手順を実行するには、 次のように入力して、ターゲットパーティションのディレクトリを作成し、オーナーシッ プを設定します。 mkdir -p /u01 /u02 chown -R oracle.
4 ファイバーチャネルクラスタについては、最初のノードで、次のように fdisk を使用して、 別の 2 つの外付けストレージデバイスにそれぞれ 1 つずつパーティションを作成します。 a fdisk /dev/emcpowerx と入力して、デバイス全体に対するプライマリパーティショ ンを作成します。 fdisk ユーティリティのヘルプを表示するには、h と入力します。 b 新しいパーティションが存在することを確認するには、cat /proc/partitions と入力 します。 新しいパーティションが見つからない場合は、次のように入力します。 sfdisk -R /dev/ 5 /etc/sysconfig/rawdevices ファイルを編集して、ファイバーチャネルクラスタ用に以下の 行を追加します。 /dev/raw/ASM1 /dev/emcpowerb1 /dev/raw/ASM2 /dev/emcpowerc1 6 service rawdevices restart と入力して Raw Devices Service を再起動します。 Oracle RAC
9 言語の選択 ウィンドウで言語を選択し、次へ をクリックします。 10 クラスタ構成 ウィンドウでグローバルクラスタ名を入力するかデフォルト名 crs を受け入れて から、各ノードについてパブリックおよびプライベートのノード名を入力し、次へ をクリック します。 クラスタ名は、企業の全ネットワーク中に他に同一の名前があってはなりません。 11 Private Interconnect Enforcement(プライベートインターコネクトの指定)ウィンドウ で各インタフェースの種類をクリックし、public、private、または Do not use のいずれか を選択してから、次へ をクリックします。 メモ: この手順で選択するパブリックおよびプライベート NIC の割り当ては同じにし、 すべてのノードで利用可能なものにする必要があります。 12 Oracle Cluster Registry ウィンドウで OCR ディスクの場所のフルパス (/dev/raw/ocr.
Oracle Database 10g ソフトウェアのインストール 1 root ユーザーとして、『Oracle Database 10g CD1』にマウントします。 2 oracle ユーザーとして、次のように入力します。 /mnt/cdrom/runInstaller Oracle Universal Installer が起動します。 3 ようこそ ウィンドウで、拡張インストール オプションをクリックし、次へ をクリック します。 4 ファイルの場所の指定 ウィンドウで Oracle ホームのパスが /opt/oracle/product/10.1.
e サマリー ウィンドウで、終了 をクリックします。 進行状況を示すウィンドウが表示されます。 f 構成が完了したら、OK をクリックし、終了 をクリックして VIPCA を終了します。 g クラスタ内のその他の各ノードで root.sh スクリプトを実行します。 root.sh スクリプトは、各ノードで実行が完了するのを待ってから、次のノードに移って 実行します。 11 権限の設定 ウィンドウで、OK をクリックします。 12 インストールの終了 ウィンドウで、終了 をクリックしてから、確認のため はい をクリックし ます。 10.1.0.5 パッチセットの適用 1 Oracle Metalink から 10.1.0.5 パッチセット(p4505133_10105_LINUX.ZIP)をダウンロード します。 2 パッチセットをノードの 1 つにあるフォルダ /oracle_cds/10.1.0.5 にコピーします。 3 パッチセットを解凍します。 4 インストーラを 1 つのノードのみで実行してください。RAC クラスタの一部となっているすべ てのノードにパッチが適用されます。10.1.0.
9 すべてのノードで、以下の手順を実行します。 a /opt/oracle/product/10.1.0/crs_1/bin ディレクトリから次のコマンドを入力して、 CRS がインストールされたことを確認します。 olsnodes -n -v クラスタ内のすべてのノードのパブリックノード名が一覧表示されます。 b 次のように入力します。 crs_stat 実行中のすべてのサービスの一覧が表示されます。 データベースを 10.1.0.5 パッチセットにパッチする方法 1 oracle としてログインします。 2 パッチセットをアップグレードする前に、次のコマンドを実行して Oracle Notification Services(ONS)を停止します。 $onsctl stop 3 次のコマンドを入力して、Oracle Installer を起動します。 $/oracle_cds/10.1.0.5/Disk1/runInstaller 4 ようこそ ウィンドウで 次へ をクリックします。 5 ファイルの場所の指定 ウィンドウで、ソースパスが 10.1.0.5 のステージング領域の products.
リスナーの構成 本項では、データベースへのリモートクライアントの接続に必要なリスナーの構成手順について説 明します。 1 つのノードのみで、以下の手順を実行します。 1 root としてログインします。 2 startx と入力して X Window System を起動します。 3 ターミナルウィンドウを開き、次のように入力します。 xhost + 4 oracle ユーザーとして、source /home/oracle/.
5 データベーステンプレート ウィンドウで カスタムデータベース をクリックし、次へ をクリッ クします。 6 データベース識別情報 ウィンドウで、racdb のような グローバルデータベース名 を入力し、 次へ をクリックします。 7 管理オプション ウィンドウで 次へ をクリックします。 8 データベース資格証明 ウィンドウで、すべてのアカウントに対して同じパスワードを使用 を クリックし、パスワードの選択と入力を完了してから、次へ をクリックします。 9 記憶域オプション ウィンドウで Cluster File System を選択してから、次へ をクリック します。 10 データベースファイルの位置 ウィンドウで 次へ をクリックします。 11 リカバリ構成 ウィンドウで フラッシュリカバリ領域の指定 をクリックし、参照 をクリックし て /u02 を選択し、フラッシュリカバリのサイズを指定してから、次へ をクリックします。 12 データベースコンテンツ ウィンドウで 次へ をクリックします。 13 データベースサービス ウィンドウで 次へ をクリックします。 14 クラスタに含まれるノードが 4 つ
ASM を使用したシードデータベースの作成 Oracle ASM を使用してシードデータベースを作成するには、次の手順を実行します。 1 ノード 1 で、oracle ユーザーとして dbca & と入力し、DBCA を起動します。 2 ようこそ ウィンドウで Oracle Real Application Cluster データベース を選択し、 次へ をクリックします。 3 操作 ウィンドウで データベースの作成 をクリックし、次へ をクリックします。 4 ノードの選択 ウィンドウで すべて選択 をクリックし、次へ をクリックします。 5 データベーステンプレート ウィンドウで カスタムデータベース をクリックし、 次へ をクリックします。 6 データベース識別情報 ウィンドウで、racdb のようなグローバルデータベース名を入力して から、次へ をクリックします。 7 管理オプション ウィンドウで 次へ をクリックします。 8 データベース資格証明 ウィンドウで、すべてのアカウントに対して同じパスワードを使用 を クリックし、パスワードの選択と入力を完了してから、次へ をクリックします。 9 記憶域オ
17 データベースファイルの位置 ウィンドウで、すべてのデータベースファイルに対して共通の位 置を使用 をチェックし、次へ をクリックします。 18 リカバリ構成 ウィンドウで、参照 をクリックして、手順 15 で作成したフラッシュバックグ ループ(たとえば、flashbackDG)を選択し、次へ をクリックします。 19 データベースコンテンツ ウィンドウで 次へ をクリックします。 20 データベースサービス ウィンドウで 次へ をクリックします。 21 初期化パラメータ ウィンドウで、クラスタに含まれるノードが 8 つある場合は 共有プール の 値を 500 MB に変更して、次へ をクリックします。 22 データベース記憶域 ウィンドウで 次へ をクリックします。 23 作成オプション ウィンドウで データベースの作成 を選択してから、終了 をクリックします。 24 確認 ウィンドウで OK をクリックし、データベースを作成します。 メモ: シードデータベースの作成には 1 時間以上かかる場合があります。 データベースの作成が完了すると、パスワード管理 ウィンドウが表示されます。 25 終了 をクリッ
RAC Post 導入のパッチと修正 本項では、Oracle RAC 10g 導入のために必要なパッチと修正について説明します。 EMC PowerPath を正常にフェイルオーバーさせるための CSS Miscount の再設定 HBA、スイッチ、または EMC ストレージプロセッサ(SP)に障害が発生すると、PowerPath の代 替デバイスへのフェイルオーバー時間が合計で 105 秒を超える可能性があります。10g R1 バージョ ン 10.1.0.3 のデフォルト CSS ディスクタイムアウトは、45 秒です。PowerPath のフェイルオー バー手順が正常に機能するには、CSS タイムアウトを 120 秒に延長する必要があります。 CSS タイムアウトを延長するには、次の手順を実行します。 1 1 つのノードを除く全ノードのデータベースと CRS をシャットダウンします。 2 実行中のノードで root ユーザーとしてログインし、次のように入力します。 /opt/oracle/product/10.1.
パブリックネットワークの設定 パブリックネットワークが機能していること、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 sfdisk -R /dev/sdc
Oracle ASM を使用したデータベース記憶域の設定 ASM を使用してストレージシステムを設定するには、以下の手順を実行します。 以下の例では、データベースファイル用のディスクグループ 1 つ、およびフラッシュバックリカバ リとアーカイブログファイル用のディスクグループ 1 つをそれぞれ作成するために利用できる 2 つ のストレージデバイス(sdb および sdc)があることを前提とします。 1 root としてログインします。 2 以下の各コマンドを入力して、raw キャラクタによるデバイス名を変更し、識別可能に します。 mv /dev/raw/raw1 /dev/raw/ASM1 mv /dev/raw/raw2 /dev/raw/ASM2 chown oracle.dba /dev/raw/ASM1 chown oracle.
9 インストールする製品の選択 ウィンドウで Oracle Database 10g 10.1.0.3.0 をクリックし てから、次へ をクリックします。 10 インストールタイプの選択 ウィンドウで Enterprise Edition をクリックし、次へ をクリッ クします。 11 データベース構成の選択 ウィンドウで、初期データベースを作成しない をクリックし、 次へ をクリックします。 12 サマリー ウィンドウで インストール をクリックします。 13 確認のメッセージが表示されたら、CD2 を CD ドライブにセットします。 14 確認のメッセージが表示されたら、ターミナルウィンドウを開き、root.sh を実行します。 進行状況を示すウィンドウが少しの間表示され、続いて インストールの終了 ウィンドウが表 示されます。 15 終了 をクリックしてから、確認のため はい をクリックします。 10.1.0.5 パッチセットの適用 1 Oracle Metalink から 10.1.0.5 パッチセット(p4505133_10105_LINUX.
リスナーの構成 1 root としてログインします。 2 startx と入力して X Window System を起動します。 3 ターミナルウィンドウを開き、次のように入力します。 xhost + 4 oracle としてログインします。 5 netca と入力して、Oracle Net Configuration Assistant を起動します。 6 デフォルトの設定を受け入れて、すべての画面で 次へ をクリックし、リスナーの構成を完了 します。 シードデータベースの作成 ext3 ファイルシステムを使用したシードデータベースの作成 DBCA(Oracle Database Creation Assistant)で以下の手順を実行して、シードデータベースを作成 します。 1 oracle としてログインします。 2 dbca と入力して、Oracle DBCA を起動します。 3 ようこそ ウィンドウで 次へ をクリックします。 4 操作 ウィンドウで データベースの作成 をクリックし、次へ をクリックします。 5 データベーステンプレート ウィンドウで カスタムデータベース をクリックし、次へ
16 確認 ウィンドウで OK をクリックするとデータベースが作成されます。 メモ: シードデータベースの作成には 1 時間以上かかる場合があります。 データベースの作成が完了すると、パスワード管理 ウィンドウが表示されます。 17 終了 をクリックします。 18 export ORACLE_SID=dbname と入力します。dbname は DBCA でデータベースに定義した グローバル識別子の名前です。 19 データベースが動作していることを確認するには、次の手順を実行します。 a sqlplus "/ as sysdba" と入力して、SQL> プロンプトを表示します。 b SQL> プロンプトで次のクエリーを入力します。 SELECT * FROM v$instance; c データベースが実行されていない場合は、エラーメッセージが表示されるので、SQL> プ ロンプトで startup と入力し、そのノードのデータベースインスタンスを起動します。 Oracle ASM を使用したシードデータベースの作成 Oracle ASM を使用してストレージを構成した場合は、Oracle Dat
12 ディスクグループの作成 ウィンドウにデータベースファイルのストレージ情報を入力し、 OK をクリックします。 databaseDG など、作成するディスクグループの名前を入力し、外部冗長性 を選択してか ら、ディスクグループに含めるディスク(たとえば、/dev/raw/ASM1)を選択します。 ディスクグループの作成が進行中であることを示すウィンドウが表示されます。 13 使用可能なディスクグループ で 新規作成 をクリックします。 14 ディスクグループ ウィンドウにフラッシュバックリカバリファイルの情報を入力し、 OK をクリックします。 flashbackDG など、作成するディスクグループの名前を入力し、外部冗長性 を選択してか ら、ディスクグループに含めるディスク(たとえば、/dev/raw/ASM2)を選択します。 ディスクグループの作成が進行中であることを示すウィンドウが表示されます。 15 ASM ディスクグループ ウィンドウで、データベースストレージに使用するディスクグループ をチェックし(たとえば、databaseDG)、次へ をクリックします。 16 データベースファイルの位置 ウ
oracle ユーザーパスワードの設定 システム保護のために、oracle ユーザーにはパスワードを設定することを強くお勧めします。 以下の手順に従って、oracle のパスワードを設定します。 1 root としてログインします。 2 passwd oracle と入力し、画面の指示に従って oracle のパスワードを設定します。 ノードの追加と削除 本項では既存のクラスタにノードを追加する手順とクラスタからノードを削除する手順について説 明します。 既存のクラスタにノードを追加するには、以下の手順を実行します。 • ネットワーク層にノードを追加します。 • 共有ストレージを構成します。 • クラスタウェア、データベース、およびデータベースインスタンスの各層にノードを追加 します。 既存のクラスタからノードを削除するには、追加の手順を逆にして、データベースインスタンス、 データベース、そしてクラスタウェアの各層からノードを削除する必要があります。 既存のクラスタにノードを追加する方法の詳細については、Oracle のウェブサイト oracle.
ASM を使用した共有ストレージの構成 ASM を使用する場合は、新しいノードが既存のノードと同じ権限で ASM ディスクにアクセスでき るようにする必要があります。 ASM ディスクを設定するには、以下の手順を実行します。 1 root としてログインします。 2 既存のノードが raw デバイスを使用して設定されていない場合は、手順 3 に進みます。 既存のノードが CRS 用の raw デバイスを使用して設定されている場合は、次の手順を実行し ます。 a 以下の各コマンドを入力して、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 b 次の各コマンドを入力して、Cluster Repository と投票ディスクに oracle ユーザーの オーナーシップを設定します。 chown oracle.
OCFS を使用した共有ストレージの構成 CRS、クォーラム、またはデータベースの各ファイルに OCFS(Oracle Cluster File System)を使用 する場合は、新しいノードが既存のノードと同様にクラスタファイルシステムにアクセスできるよ うにします。 1 新しいノードで /etc/fstab ファイルを編集して、既存のノードに表示されるのとまったく同じ ように OCFS ボリューム情報を追加します。 たとえば、次のとおりです。 /dev/emcpowera1 /dev/emcpowerb1 /dev/emcpowerc1 /u01 /u02 /u03 ocfs ocfs ocfs _netdev 0 0 _netdev 0 0 _netdev 0 0 2 既存のノードと同様に、新しいノードに OCFS マウントポイントを作成します(たとえば、 /u01、/u02、および /u03)。 3 以下の手順で ocfstool を実行して、OCFS 設定ファイル /etc/ocfs.
5 次へ をクリックします。 Cluster Node Addition Progress(クラスタノード追加の進行状況)ウィンドウにクラスタ ノード追加処理のステータスが表示されます。 6 確認のメッセージが表示されたら、ローカルノードで rootaddnode.sh を実行します。 rootaddnode.sh の実行が完了したら、OK をクリックします。 7 確認のメッセージが表示されたら、新しいノードで root.sh を実行します。 root.sh の実行が完了したら、OK をクリックします。 8 End of Cluster Node Addition(クラスタノード追加の終了)ウィンドウで 終了 をクリッ クします。 9 既存のノードの 1 つで、/opt/oracle/product/10.1.
VIPCA(Virtual Internet Protocol Configuration Assistant)が起動します。 a 最初の VIPCA ウィンドウで、次へ をクリックします。 b ネットワークインタフェース ウィンドウでパブリック NIC を選択し、次へ をクリックし ます。 メモ: この手順で選択するパブリックおよびプライベート NIC の割り当ては同じにし、すべて のノードで利用可能なものにする必要があります。 c IP アドレス ウィンドウで、新しいノード用に未使用のパブリック仮想 IP アドレスとサブ ネットマスクを入力して、次へ をクリックします。 d サマリー ウィンドウで、終了 をクリックします。 進行状況を示すウィンドウが表示されます。 e 構成が完了したら、OK をクリックし、終了 をクリックして VIPCA を終了します。 データベースインスタンス層への新しいノードの追加 1 ノード 1 で、oracle ユーザーとして dbca & と入力し、DBCA を起動します。 2 ようこそ ウィンドウで 次へ をクリックします。 3 Oracle Real A
12 サマリー ウィンドウで OK をクリックして、データベースインスタンスを追加します。 プログレスバーに続いて、別の操作を実行するかどうかを尋ねるメッセージが表示されます。 13 いいえ をクリックして、DBCA を終了します。 14 いずれかのノードで、 srvctl status database -d < データベース名 > を入力すると、 インスタンスが正常に追加されたかどうかが確認できます。 クラスタからのノードの削除 データベースインスタンス層からのノードの削除 1 oracle としてログインします。 2 ノード 1 から、次のように入力します。 dbca 3 ようこそ ウィンドウで 次へ をクリックします。 4 操作 ウィンドウで Instance Management(インスタンス管理)をクリックしてから、 次へ をクリックします。 5 Instance Management(インスタンス管理)ウィンドウで Delete Instance (インスタンスの削除)をクリックしてから、次へ をクリックします。 6 List of Cluster Databases(クラスタデータベースの
10 いいえ をクリックして、終了します。 11 srvctl config database -d < データベース名 > を入力して、ノードが削除されたことを 確認します。 データベース層からのノードの削除 1 削除するノードで、oracle としてログインします。 2 削除するノードのパブリック名を使用して、次のコマンドを入力します。 (例:node3-pub): srvctl stop nodeapps -n node3-pub 3 削除するノードで、root としてログインします。 4 削除するノードのパブリック名を使用して、次のコマンドを入力します。 (例:node3-pub): /opt/oracle/product/10.1.0/db_1/install/rootdeletenode.sh node3pub これで CRS ノードアプリケーションが削除されます。表示される警告はすべて無視してかまい ません。 5 Oracle データベースソフトウェアを削除する場合は、次のコマンドを入力します。 rm -rf /opt/oracle/product/10.1.
ソフトウェアの再インストール 注意:ソフトウェアを再インストールすると、ハードドライブ上のすべてのデータは削除されます。 注意:ソフトウェアを再インストールする前に、すべての外付けストレージデバイスをシステムから 取り外してください。 注意:貴重なデータを失わないように、データベースと個々のノードを定期的にバックアップするこ とをお勧めします。ノードソフトウェアの再インストールは最後の手段としてください。 『Dell Deployment CD』を使用してソフトウェアをインストールすると、ハードウェア上に再導入 パーティションが作成され、そのパーティションにはシステムにインストールされたソフトウェアイ メージのすべてが含まれています。再導入パーティションを使用すると、簡単に Oracle ソフトウェ アの再導入が行えます。 再導入パーティションからソフトウェアを再インストールするには、システムをそのパーティショ ンから起動する必要があります。システムがこのパーティションから起動すると、Red Hat Linux オペレーティングシステムが自動的に再インストールされます。 再導入パーティションからソフトウェアを
リリース時点でサポートされているソフトウェアの一覧を 表 1-6 に示します。サポートされている ハードウェアとソフトウェアの最新バージョンについては、デルと Oracle のウェブサイト www.dell.com/oracle から Oracle Database 10g EM64T x86 バージョン 1.2 Solution Deliverable List をダウンロードして参照してください。 表 1-6. サポートされるソフトウェアのバージョン ソフトウェアコンポーネント 対応バージョン Red Hat Enterprise Linux AS オペレーティン グシステム(バージョン 3)Quarterly Update 6 for Intel x86 2.4.21-37.EL Oracle パッチセット 10.1.0.5 OCFS ocfs1-2.4.21-EL-1.0.14-1; ocfs1-2.4.21-EL-smp-1.0.14-1; ocfs1-2.4.21-EL-hugemem-1.0.14-1 PowerPath for Linux 4.3.4 DKMS 2.
ハングしたオペレーティングシステムの自動再起動のための設定 以下の手順を実行して、Red Hat Enterprise Linux のシステム管理ソフトウェアをインストールし ます。 1 システム管理コンポーネントをインストールするシステムに、システム管理者としてログイン します。 2 作業中のアプリケーションをすべて終了し、ウイルス検出ソフトをすべて無効にします。 3 startx と入力して X Window System を起動します。 4 ターミナルウィンドウを開き、次のように入力します。 xhost + 5 『Dell OpenManage Installation and Server Management CD』をシステムの CD ドライブに セットします。 6 mount /mnt/cdrom と入力して、CD をマウントします。 7 CD のルートディレクトリにある start.
自動再起動オプションを設定するには、次の手順を実行します。 1 次のように入力します。 omconfig system recovery action=reboot このコマンドによって、自動再起動タイマーがデフォルトの 480 秒に設定されます。 これは、応答しなくなったシステムをタイマーが自動的に再起動するまでの待ち時間です。 2 タイマーの設定を変更するには、次のように別の値を入力します。 omconfig system recovery timer= 3 システム再起動タイマーの設定を確認するには、次のように入力します。 omreport system recovery プライベートネットワークインタフェースの確認 各ネットワークインタフェースに割り当てられているインタフェースデバイス名を確認するには、 次の手順を実行します。 1 システムの NIC の種類を確認します。 表 1-7 を参照して、システムに内蔵されている NIC を特定します。アドイン NIC には、Intel PRO/100 ファミリー、PRO/1000 ファミリー、または Broadcom NetXtreme
2 Broadcom NetXtreme Gigabit または Intel PRO/1000 ファミリーの NIC が Cat 5e ケーブルで Gigabit Ethernet に接続されていることを確認します。これがお使いのプライベート NIC です。 3 プライベート NIC で使用しているドライバモジュールを確認します。 Broadcom NetXtreme Gigabit では tg3、Intel PRO/1000 ファミリーでは e1000 を使用して います。 4 次のように入力して、/etc/modules.conf ファイルを表示します。 more /etc/modules.
トラブルシューティング Red Hat Enterprise Linux および Oracle ソフトウェアの導入と使用にあたって発生する可能性のあ る問題と対処方法を 表 1-8 に示します。 表 1-8.
表 1-8. トラブルシューティング (続き) カテゴリ 問題 / 症状 原因 OCFS システムがハング する。カーネルパ ニックメッセージ が表示される。 Red Hat Linux システム は、/etc/cron.daily と /etc/updatedb.conf 内の いくつかのファイルシス テムで updatedb を実行 するために、デフォルト では毎日 cron ジョブルー チンを実行するように設 定されているが、OCFS の ファイルシステムでは updatedb に対応してい ない。 推奨する対応処置 1 /etc/cron.d/slocate.
表 1-8. 288 トラブルシューティング (続き) カテゴリ 問題 / 症状 原因 推奨する対応処置 NETCA NETCA がリモート ノードを設定でき ない。または、 DBCA 実行中に raw デバイス検証 エラーが発生す る。 /etc/hosts.equiv ファイ ルがない。または、割り 当てられたパブリックま たは仮想 IP アドレスが含 まれていない。 各ノードで、/etc/hosts.equiv ファイルに正し いパブリックまたは仮想 IP アドレスが含まれて いることを確認します。別のパブリック名と VIP アドレスに対して、oracle ユーザーとして rsh コマンドを実行してみます。 CRS ノードの再起動時 または /etc/ini.d/ini t.crs start の 入力時に CRS が起 動できない。 Cluster Ready Services • 該当ノードを再起動するか、 /opt/oracle/product/10.1.0/crs_1/ から CSS デーモンがクォーラム root.
表 1-8. トラブルシューティング (続き) カテゴリ 問題 / 症状 原因 CRS 再インストール後 OCR ファイルと投票ディ の root.sh 実行時 スクがクリアされず、古 に CRS が起動でき い情報が残っている。 ない。 推奨する対応処置 1 次の行を入力して、OCR と投票ディスクをク リアします。 dd if=/dev/zero of= /dev/raw/ocr.dbf bs=8192 count= 12800 dd if=/dev/zero of= /dev/raw/votingdisk bs=8192 count=2560 2 該当ノードを再起動するか、または /opt/oracle/product/10.1.0/crs_1/ から root.sh を実行して、もう一度このサービス が起動できるかどうか試してみます。 CRS CRS root.sh 実行時に CRS が起動でき ない。 oracle ユーザーが /var/tmp(特に /var/tmp/.oracle) に対する権限を持ってい ない。 1 chown oracle.
表 1-8. トラブルシューティング (続き) カテゴリ 問題 / 症状 原因 CRS ノードが再起動を 繰り返す。 ノードが共有ストレージ 上のクォーラムディスク にアクセスできない。 推奨する対応処置 1 シングルユーザーモードで Linux を起動 します。 2 次のように入力します。 /etc/inet.d/init.crs disable 3 クォーラムディスクが読み書き可能になって いることを確認します。利用可能になってい ない場合は、ハードウェアの接続を調べて、 OCFS ボリュームがマウントされていること を確認します。 4 再起動して、/etc/inet.d/init.crs enable と入力します。 Oracle のイ root.sh スクリプ ンストール トが失敗する。 環境変数 LD_ASSUME_KERNEL がない。 1 ターミナルウィンドウを開きます。 2 root として、次のように入力します。 LD_ASSUME_KERNEL-2.4.19 3 root と同じターミナルウィンドウで、 root.
表 1-8. トラブルシューティング (続き) カテゴリ 問題 / 症状 ソフトウェ oracle 以外の アのインス ユーザーとして、 トール データベースに接 続する際に、 ORA01034: ORACLE not available およ び Linux Error 13:Permission denied というエ ラーメッセージが 表示される。 原因 推奨する対応処置 該当するリモートノード に必要な権限が設定され ていない。 すべてのリモートノードで、root ユーザーと して、次のように入力します。chmod 6751 $ORACLE_HOME ファイバー ファイバーチャネ HBA ドライバ、BIOS、ま チャネルス ル HBA ドライバモ たはファームウェアの ジュールのロード アップデートが必要。 トレージ 時に I/O エラーと 警告が表示さ れる。 www.dell.
表 1-8. トラブルシューティング (続き) カテゴリ DBCA によ る 8 ノード OCFS の セットアッ プ 問題 / 症状 ORA-04031 unable to allocate 4180 bytes of shared memory というエラーメッ セージが表示され る。 原因 推奨する対応処置 8 ノードクラスタに対する 初期化パラメータウィンドウで、共有プール の メモリ割り当てのデフォ 値をデフォルトの 95 MB から 500 MB に変更し ルト設定が小さすぎる。 て、次へ をクリックします。 PowerPath RHEL 3.0 i386 ホス PowerPath デバイスのス トで PowerPath を キャンの問題。 停止し、再起動を 行わずに再開する と、IOCTL 登録の 重複に関する警報 メッセージが連続 的に表示される。 ログメッセージが 表示される以外に 問題はない。 無視してください。この問題は PowerPath バージョン 4.3.
Oracle のサポート Oracle ソフトウェアおよびアプリケーションクラスタウェアのトレーニングについては、Oracle の ウェブサイト oracle.com または Oracle のマニュアルを参照して Oracle までお問い合わせく ださい。 テクニカルサポート、ダウンロード、その他の技術情報については、Oracle MetaLink ウェブサイ ト metalink.oracle.
導入ガイド
索引 A ASM データベース記憶域 の設定, 269 ASM の構成, 257 C CRS インストール, 258 CRS の構成, 255 CRS 用の共有ストレージ の構成, 255 H hugemem, 245, 249 Oracle Database 10g インストール, 260 インストール (シングルノード) , 269 シングルノードの設定, 267 Oracle Database 10g の設定 (シングルノード) シードデータベースの作 成, 267, 271 Oracle RAC 10g ASM の構成, 257 CRS の構成, 255 OCFS の構成, 256 インストール, 258 共有ストレージの構成, 256 設定, 249 い インストール CRS, 258 Oracle Database 10g, 260 Oracle Database 10g (シングルノード), 269 Oracle RAC 10g, 258 Red Hat Enterprise Linux, 244 『Dell Deployment CD』 の使用, 244 か Oracle RAC
索引 く クラスタ ファイバーチャネルのハー ドウェア接続例, 247 クラスタのセットアップ ファイバーチャネル, 246 シードデータベースの作 成, 263, 271 ASM, 265 OCFS, 263 自動再起動の設定, 283 せ こ セキュリティ, 253 構成 共有ストレージ, 256 ASM, 257 ASM を使用した共有スト レージ, 257 CRS 用の共有ストレー ジ, 255 OCFS, 256 OCFS を使用した共有スト レージ, 256 設定 ASM を使用したデータベー ス記憶域 (シングルノード), 269 ex3 を使用したデータベース 記憶域(シングルノー ド) , 268 Oracle Database 10g (シングルノード), 267 Oracle RAC 10g, 249 Red Hat Enterprise Linux, 245 データベースストレージ (シングルノード), 268 困ったときは, 292 さ 再インストール ソフトウェア, 281 サポートされるストレージデ バイス, 281 ソフトウェア 再インストール, 2
は ほ ハードウェア シングルノードの最小要 件, 243 ファイバーチャネルクラス タの最小要件, 243 ファイバーチャネルの相互 接続, 247 ボンディング, 251 ハードウェアおよびソフト ウェアの構成 ファイバーチャネル, 249 パスワード 設定, 267, 274 パブリックおよびプライベー トネットワークの設 定, 250 パブリックネットワーク 設定, 250 パブリックネットワークの設 定, 250 ふ ファイバーチャネルクラスタ のセットアップ, 246 ま マニュアル, 244 ら ライセンス契約, 243 り リスナーの構成, 263, 271 リモートシェル(rsh) 無効化, 253 れ 例 ファイバーチャネルクラス タ用のハードウェア接 続, 247 プライベートネットワーク インタフェースの確認, 284 設定, 250-251 プライベートネットワークイ ンタフェースの確認, 284 プライベートネットワークの 設定, 251 索引 297
索引 298 索引
Sistemas Dell™ PowerEdge™ Guía de implantación de la base de datos Oracle 10g – Linux para la tecnología Intel® de 32 bits (x86) versión 1.2 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.
oralin10gbk0TOC.fm Page 301 Thursday, April 27, 2006 4:15 PM Contenido Servicio de implantación de Oracle RAC 10g . . . . . . . . . . . . . . . . . 303 . . . . . . . . . . . . . . . . . . . . . 304 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305 306 . . . . . . . . . . 306 Requisitos de software y hardware . Contratos de licencia . . . . Documentación importante .
oralin10gbk0TOC.fm Page 302 Thursday, April 27, 2006 4:15 PM Configuración e implantación de la base de datos Oracle 10g (un solo nodo) . . . . . . . . . . . . . . . . . . . . . . Configuración de la red pública . . . . . . . . . . . . . . . . . . Configuración del almacenamiento de base de datos . . . . . . . Instalación de la base de datos Oracle 10g . . . . . . . . . . . . Aplicación del patchset 10.1.0.5 . . . . . . . . . . . . . . . . . . Instalación de parches para la base de datos al patchset 10.
En este documento se proporciona información sobre cómo instalar, configurar, reinstalar y utilizar el software Oracle 10g Enterprise Edition con Real Application Clusters (RAC) en su configuración Dell | Oracle admitida. NOTA: utilice este documento junto con el CD de implantación de Dell para instalar el software. Si instala el sistema operativo utilizando únicamente los CD del sistema operativo, las instrucciones descritas en este documento pueden no ser aplicables.
Requisitos de software y hardware Antes de instalar el software Oracle RAC en el sistema, siga las instrucciones del documento Deploying Dell-Tested and Validated Configurations for Oracle Database (Implantación de configuraciones probadas y validadas por Dell para la base de datos Oracle) suministrado con el kit para: • Descargar los CD de Red Hat de la página web de Red Hat en www.rhn.redhat.com. • Localizar el kit de CD de Oracle o descargar el software Oracle de la página web de Oracle (www.oracle.
Tabla 1-2.
Documentación importante Para obtener más información sobre componentes de hardware específicos, consulte la documentación incluida con el sistema. Para obtener información sobre productos Oracle, consulte la guía How to Get Started (Cómo empezar) incluida en el kit de CD de Oracle.
Configuración del kernel hugemem El kernel hugemem de Red Hat Enterprise Linux 3 es necesario para configurar el Oracle RDBMS para aumentar el tamaño del caché del búfer por encima del valor predeterminado de 1,7 GB. El programa de instalación de Dell instala el kernel hugemem de Red Hat Enterprise Linux 3. Cambie los parámetros de inicio predeterminados en el archivo de configuración del cargador de inicio /etc/grub.conf para activar esta opción.
Actualización de los paquetes de sistema mediante Red Hat Network Red Hat publica periódicamente actualizaciones de software para corregir errores, solucionar problemas de seguridad y añadir nuevas funciones. Puede descargar estas actualizaciones a través del servicio Red Hat Network (RHN). Antes de utilizar RHN para actualizar el software del sistema con las últimas revisiones, vaya a la página web de Dell y Oracle (www.dell.com/oracle) para obtener las configuraciones admitidas más recientes.
Figura 1-1.
Tabla 1-4.
Configuraciones de hardware y software para Fibre Channel • • Cada nodo debe incluir al menos los componentes periféricos de hardware siguientes: – Una o dos unidades de disco duro (36 GB como mínimo) en el compartimiento para unidades de disco duro internas – Tres puertos NIC Gigabit – Dos HBA Fibre Channel Cada nodo debe tener instalado el software siguiente: – Software Red Hat Enterprise Linux (consulte la tabla 1-1) – Controlador HBA Fibre Channel – Módulo OCFS 1 para el kernel y las herra
Configuración de las redes pública y privada En esta sección se presentan los pasos necesarios para configurar las redes de clúster pública y privada. NOTA: cada nodo requiere una dirección IP pública y una dirección IP privada exclusivas y otra dirección IP pública que se utilizará como dirección IP virtual en las conexiones de cliente y en la sustitución tras error de las conexiones. La dirección IP virtual debe pertenecer a la misma subred que la IP pública.
4 Escriba lo siguiente: service network restart 5 Escriba ifconfig para comprobar que las direcciones IP están definidas correctamente. 6 Para comprobar la configuración de la red, ejecute el comando ping para cada dirección IP pública desde un cliente de la red de área local (LAN) que se encuentre fuera del clúster. 7 Conéctese a cada nodo para comprobar que la red pública está operativa y escriba ssh para comprobar que secure shell (ssh) funciona.
4 En el directorio /etc/sysconfig/network-scripts/, cree o edite el archivo de configuración ifcfg-bond0. Por ejemplo, si se utilizan parámetros de red de ejemplo, el archivo sería como se indica a continuación: DEVICE=bond0 IPADDR=192.168.0.1 NETMASK=255.255.255.0 NETWORK=192.168.0.0 BROADCAST=192.168.0.255 ONBOOT=yes BOOTPROTO=none USERCTL=no Las entradas para NETMASK, NETWORK y BROADCAST son opcionales. DEVICE=bondn es el nombre requerido para el bond, donde n es el número de bond.
9 Modifique el archivo /etc/hosts en cada nodo añadiendo las siguientes líneas: 127.0.0.1 localhost.localdomain localhost NOTA: los ejemplos de este paso y del siguiente corresponden a una configuración de dos nodos.
Protección del sistema A fin de evitar que usuarios no autorizados puedan acceder al sistema, Dell recomienda desactivar rsh después de instalar el software de Oracle. Escriba chkconfig rsh off para desactivar rsh. Verificación de la configuración de almacenamiento Al configurar los clústeres, cree particiones en el almacenamiento Fibre Channel. Para crear las particiones, todos los nodos del clúster deben ser capaces de detectar los dispositivos de almacenamiento externos.
Si los dispositivos de almacenamiento externo no aparecen en el archivo /proc/partitions: 1 Detenga el servicio PowerPath en todos los nodos escribiendo lo siguiente: service naviagent stop service PowerPath stop 2 Vuelva a cargar el controlador HBA en todos los nodos para sincronizar las tablas de particiones del kernel de todos los nodos; para ello, escriba lo siguiente: • Para los HBA Qlogic: rmmod qla2300 modprobe qla2300 • Para los HBA Emulex: rmmod lpfc modprobe lpfc 3 Reinicie el servicio PowerPa
3 Realice los pasos siguientes en cada nodo: a Escriba los siguientes comandos para cambiar los nombres de los dispositivos de caracteres sin formato de modo que puedan identificarse: mv /dev/raw/raw1 /dev/raw/votingdisk mv /dev/raw/raw2 /dev/raw/ocr.dbf mv /dev/raw/raw3 /dev/raw/spfile+ASM.ora b Escriba los siguientes comandos para establecer la propiedad de usuario oracle del repositorio de clúster y del disco de votación: chown oracle.dba /dev/raw/votingdisk chown oracle.dba /dev/raw/ocr.
3 Para un clúster Fibre Channel, cree en el primer nodo una partición en los otros dos dispositivos externos con 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.
c Introduzca los comandos siguientes en cada nodo para cargar el módulo OCFS y montar todos los volúmenes que aparecen en el archivo /etc/fstab: NOTA: ignore todas las advertencias relacionadas con la discrepancia entre el módulo OCFS y la versión de kernel. /sbin/load_ocfs mount -a -t ocfs Configuración del almacenamiento mediante ASM Para configurar el clúster mediante ASM, realice los pasos siguientes en todos los nodos: 1 Inicie la sesión como root.
Instalación de Oracle RAC 10g En esta sección se describen los pasos necesarios para instalar Oracle RAC 10g versión 10.1.0.3, proceso que implica la instalación del software 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. Instalación de CRS 1 Inicie la sesión como root. 2 Escriba startx para iniciar el sistema X Window.
13 En la ventana Voting Disk (Disco de votación), introduzca una ruta completa para la partición que debe utilizarse para almacenar el disco de votación (/dev/raw/votingdisk) y, a continuación, haga clic en Next (Siguiente). 14 En la ventana Summary (Resumen), haga clic en Install (Instalar). Cuando finaliza la instalación, aparece un mensaje donde se le indica que ejecute la secuencia de comandos root.sh en todos los nodos. La secuencia de comandos root.sh configurará el clúster automáticamente.
7 En la ventana Select Database Configuration (Seleccionar configuración de base de datos), haga clic en Do not create a starter database (No crear una base de datos de inicio) y, a continuación, haga clic en Next (Siguiente). 8 En la ventana Summary (Resumen), haga clic en Install (Instalar). 9 Abra una nueva ventana de terminal cuando se le solicite. 10 Ejecute root.sh en el nodo 1. a Pulse para aceptar el valor predeterminado para el directorio bin local.
Aplicación del patchset 10.1.0.5 1 Descargue el patchset 10.1.0.5 de Oracle Metalink (p4505133_10105_LINUX.ZIP). 2 Copie el patchset en la carpeta /oracle_cds/10.1.0.5 en uno de los nodos. 3 Descomprima el patchset. 4 Ejecute el programa de instalación desde un solo nodo. Instala los parches para todos los nodos que forman parte del clúster RAC. El patchset 10.1.0.5 instala los parches para CRS, así como para la base de datos principal. NOTA: el patchset 10.1.0.
Instalación de parches para la base de datos al patchset 10.1.0.5 1 Inicie la sesión como oracle. 2 Detenga el servicio de notificación de Oracle (ONS) antes de actualizar el patchset ejecutando el comando siguiente: $onsctl stop 3 Escriba el comando siguiente para iniciar el programa de instalación de Oracle: $/oracle_cds/10.1.0.5/Disk1/runInstaller 4 En la ventana de bienvenida, 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). 9 En la ventana Listener Configuration, Listener Name (Configuración del proceso de escucha, Nombre del proceso de escucha), escriba LISTENER en el campo Listener Name (Nombre del proceso de escucha) y haga clic en Next (Siguiente).
9 En la ventana Storage Options (Opciones de almacenamiento), seleccione Cluster File System (Sistema de archivos de clúster) 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 ASM Para crear la base de datos semilla mediante Oracle ASM, realice los pasos siguientes: 1 En el nodo 1, como usuario oracle, escriba dbca & para iniciar el asistente para la configuración de bases de datos (DBCA). 2 En la ventana de bienvenida, seleccione Oracle Real Application Cluster database (Base de datos de Oracle Real Application Cluster) y haga clic en Next (Siguiente).
15 Introduzca la información en la ventana Disk Group (Grupo de discos) para los archivos de recuperación flashback y haga clic en OK (Aceptar). Introduzca un nombre para el grupo de discos que debe crearse, como por ejemplo flashbackDG, seleccione External Redundancy (Redundancia externa) y los discos que desea incluir en el grupo de discos (por ejemplo, /dev/raw/ASM2). Aparece una ventana donde se indica que la creación del grupo de discos está en curso.
26 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.
Para aumentar la expiración de tiempo de CSS: 1 Cierre la base de datos y CRS en todos los nodos excepto uno. 2 En el nodo que está en funcionamiento, inicie la sesión como usuario root y escriba lo siguiente: /opt/oracle/product/10.1.0/crs_1/bin/crsctl set css misscount 120 3 Reinicie todos los nodos para que se aplique el valor de CSS. Para obtener más información, consulte la nota 294430.1 de Oracle Metalink.
Configuración del almacenamiento de base de datos Configuración del almacenamiento de base de datos mediante el sistema de archivos ex3 Si dispone de almacenamiento adicional, realice los pasos siguientes: 1 Inicie la sesión como root. 2 Escriba lo siguiente: cd /opt/oracle 3 Escriba lo siguiente: mkdir oradata recovery 4 Mediante fdisk, cree una partición en la que se almacenarán los archivos de la base de datos (por ejemplo, sdb1 si el dispositivo de almacenamiento es sdb).
Configuración del almacenamiento de base de datos mediante Oracle ASM Para configurar el sistema de almacenamiento mediante ASM, realice los siguientes pasos: En el ejemplo siguiente, se presupone que se dispone de dos dispositivos de almacenamiento (sdb y sdc) para crear un grupo de discos para los archivos de base de datos y otro para la recuperación flashback y los archivos de registro respectivamente. 1 Inicie la sesión como root.
10 En la ventana Select Installation Type (Seleccionar tipo de instalación), haga clic en Enterprise Edition y, a continuación, en Next (Siguiente). 11 En la ventana Select Database Configuration (Seleccionar configuración de base de datos), haga clic en Do not create a starter database (No crear una base de datos de inicio) y, a continuación, haga clic en Next (Siguiente). 12 Haga clic en Install (Instalar) en la ventana Summary (Resumen). 13 Cuando se le solicite, inserte el CD 2.
Configuración del proceso de escucha 1 Inicie la sesión como root. 2 Escriba startx para iniciar el sistema X Window. 3 Abra una ventana de terminal y escriba lo siguiente: xhost + 4 Inicie la sesión como oracle. 5 Escriba netca para iniciar el asistente de configuración de red Oracle. 6 Acepte la configuración predeterminada y haga clic en Next (Siguiente) en todas las pantallas para completar la configuración del proceso de escucha.
12 En la ventana Database Content (Contenido de la base de datos), haga clic en Next (Siguiente). 13 En la ventana Initialization Parameters (Parámetros de inicialización), haga clic en Next (Siguiente). 14 En la ventana Database Storage (Almacenamiento de base de datos), haga clic en Next (Siguiente). 15 En la ventana Creation Options (Opciones de creación), haga clic en Create Database (Crear base de datos) y luego en Finish (Finalizar).
8 En la ventana Storage Options (Opciones de almacenamiento), haga clic en ASM y, a continuación, en Next (Siguiente). 9 En la ventana Create ASM Instance (Crear instancia ASM), introduzca la contraseña de usuario SYS y haga clic en Next (Siguiente). 10 Cuando aparezca un mensaje que indique que el DBCA está listo para crear e iniciar la instancia de ASM, haga clic en OK (Aceptar).
22 En la ventana Confirmation (Confirmación), haga clic en OK (Aceptar) para crear la base de datos. NOTA: la creación de la base de datos semilla puede tardar más de una hora. Una vez creada la base de datos, aparece la ventana Password Management (Administración de contraseñas). 23 Haga clic en Exit (Salir).
Adición de un nodo nuevo al nivel de red Para añadir un nodo nuevo al nivel de red: 1 Instale el sistema operativo Red Hat Enterprise Linux en el nuevo nodo. Consulte “Instalación y configuración de Red Hat Enterprise Linux”. 2 Configure las redes pública y privada en el nuevo nodo. Consulte “Configuración de las redes pública y privada”. 3 Verifique que cada nodo puede detectar los LUN de almacenamiento o discos lógicos. Consulte “Verificación de la configuración de almacenamiento”.
4 Escriba los siguientes comandos para establecer la propiedad de usuario oracle del disco de archivos de datos y del disco de recuperación flashback: chown oracle.dba /dev/raw/ASM1 chown oracle.dba /dev/raw/ASM2 5 Copie el archivo /etc/sysconfig/rawdevices de uno de los nodos existentes en la misma ubicación que el nuevo nodo. 6 Escriba lo siguiente: chown oracle.dba /dev/raw/ASM* 7 Escriba service rawdevices restart para reiniciar el servicio de dispositivo sin formato.
Adición de un nodo nuevo al nivel de software de clúster 1 Inicie la sesión como oracle. 2 Desde el directorio /opt/oracle/product/10.1.0/crs_1/oui/bin de uno de los nodos existentes, 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), escriba los nombres de nodo público y privado del nuevo nodo y haga clic en Next (Siguiente).
6 Cuando se le solicite, ejecute root.sh en el nodo nuevo. Una vez que se haya ejecutado root.sh, haga clic en OK (Aceptar). 7 En la ventana End of Cluster Node Addition (Fin de la adición de nodos de clúster), haga clic en Exit (Salir). 8 Desde el directorio /opt/oracle/product/10.1.0/db_1/oui/bin en uno de los nodos existentes, escriba, por ejemplo, la siguiente línea: vipca -nodelist node1-pub,node2-pub,node3-pub En este ejemplo, se añade node3 a un clúster de dos nodos existente.
7 Introduzca el nombre de usuario sys y la contraseña y, a continuación, haga clic en Next (Siguiente). Aparece la ventana List of cluster database instances (Lista de instancias de base de datos del clúster), en la que se muestran las instancias asociadas a la base de datos RAC que ha seleccionado, así como el estado de cada instancia. 8 Haga clic en Next (Siguiente).
8 Seleccione la instancia que desee borrar y haga clic en Finish (Finalizar). 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).
Eliminación del nodo del nivel del software de clúster 1 En el nodo que está eliminando, como usuario root, desactive el CRS escribiendo el comando siguiente: /opt/oracle/product/10.1.0/crs_1/install/rootdelete.sh remote nosharedvar 2 En uno de los nodos restantes, como usuario root, escriba el comando siguiente: /opt/oracle/product/10.1.0/crs_1/install/rootdeletenode.
Información adicional Versiones de software admitidas NOTA: en esta versión de las configuraciones de Oracle admitidas por Dell, no se admiten HBA Emulex. En la tabla 1-6 se indica el software admitido en el momento de la publicación. Para determinar el hardware y el software admitidos más recientes, vaya a la página web de Dell y Oracle (www.dell.com/oracle) y descargue la lista de soluciones disponibles (Solution Deliverable List) de la base de datos Oracle 10g EM64T x86 versión 1.
Tabla 1-6. Versiones de software admitidas (continuación) Componentes de software Versiones admitidas Controladores NIC Intel PRO/100 S (e100) 6.0.54-k2-NAPI Controladores NIC Intel PRO/1000 MT (e100) 6.0.54-k2-NAPI Controladores NIC Broadcom NetXtreme BCM5704 (5703 y 5701) (tg3) v3.
10 Haga clic en Express Setup (Instalación rápida). 11 Lea la información de la pantalla Installation Summary (Resumen de la instalación) y haga clic en Next (Siguiente). El programa de configuración instala automáticamente el software del sistema administrado para la configuración de hardware. 12 Una vez finalizada la instalación, haga clic en Finish (Finalizar).
Determinación de la interfaz de red privada Para determinar el nombre de dispositivo de interfaz que se ha asignado a cada interfaz de red, realice los pasos siguientes: 1 Determine qué tipos de NIC están presentes en el sistema. Consulte la tabla 1-7 para identificar las NIC integradas que están presentes en el sistema. Para NIC adicionales, puede tener tarjetas de las series Intel PRO/100 o PRO/1000 o tarjetas Broadcom NetXtreme Gigabit.
5 Determine las interfaces Ethernet (ethX) que han sido asignadas al tipo de NIC Gigabit conectada al conmutador Gigabit. Si sólo hay una entrada en modules.conf para el tipo de módulo controlador, es que se ha identificado correctamente la interfaz de red privada. 6 Si dispone de más de una NIC del mismo tipo en su sistema, experimente para determinar la interfaz Ethernet asignada a cada NIC.
Tabla 1-8. Solución de problemas (continuación) Categoría Problema / síntoma Causa Rendimiento y estabilidad Se muestra una advertencia de tipo de interfaz desconocida en el archivo de alertas de Oracle. La interfaz pública Para forzar que las comunicaciones del clúster está configurada para tengan lugar en la interfaz privada, realice los pasos las comunicaciones siguientes en un nodo: de clúster 1 Inicie la sesión como oracle. (interfaz privada).
Tabla 1-8. Solución de problemas (continuación) Categoría Problema / síntoma Causa OCFS El sistema se bloquea o muestra un mensaje de error de kernel panic. De forma predeterminada, el sistema Red Hat Linux tiene una rutina de trabajos cron diaria configurada para ejecutar diariamente updatedb en determinados sistemas de archivos en /etc/cron.daily y /etc/updatedb.conf. OCFS no admite el comando updatedb en sus sistemas de archivos. Acción correctiva recomendada 1 Edite el archivo /etc/cron.
Tabla 1-8. Solución de problemas (continuación) Categoría Problema / síntoma Causa Acción correctiva recomendada NETCA NETCA falla, lo cual produce errores de creación de base de datos. La red pública, el nombre de host o la dirección IP virtual no aparecen en el archivo /etc/hosts.equiv. Antes de iniciar netca, asegúrese de que se ha asignado un nombre de host a la red pública y de que las direcciones IP pública y virtual aparecen en el archivo /etc/hosts.equiv.
Tabla 1-8. Solución de problemas (continuación) Categoría Problema / síntoma Causa Acción correctiva recomendada CRS Cuando se ejecuta root.sh, no se puede iniciar CRS. No se puede tener acceso al archivo OCR ni al disco de votación. Corrija el problema de E/S e intente volver a iniciar el servicio mediante el reinicio del nodo o la ejecución de root.sh en /opt/oracle/product/10.1.0/crs_1/. CRS Cuando se ejecuta root.
Tabla 1-8. Solución de problemas (continuación) Categoría Problema / síntoma Causa CRS El nodo se reinicia constantemente. El nodo no tiene acceso al disco de quórum en el almacenamiento compartido. 1 Inicie Linux en modo de un solo usuario. Falta la variable de entorno LD_ASSUME_KER NEL. 1 Abra una ventana de terminal. Instalación de Oracle La secuencia de comandos root.sh falla. Acción correctiva recomendada 2 Escriba lo siguiente: /etc/inet.d/init.
Tabla 1-8. Solución de problemas (continuación) Categoría Problema / síntoma Causa Acción correctiva recomendada AlmacenaAparecen errores de E/S miento y advertencias cuando Fibre Channel se carga el módulo controlador HBA Fibre Channel. Debe actualizar el controlador HBA, el BIOS o el firmware. Consulte la lista de opciones disponibles (Solution Deliverable List) en www.dell.com/oracle para ver las versiones admitidas.
Asistencia de Oracle Para obtener información de formación sobre el software Oracle y el software de clúster de aplicaciones, visite la página web de Oracle (oracle.com) o consulte la documentación de Oracle para determinar cómo ponerse en contacto con Oracle. En la página web de Oracle MetaLink (metalink.oracle.com) encontrará información sobre la asistencia técnica, descargas y otras cuestiones técnicas.
Guía de implantación
oralin10gbk0IX.
oralin10gbk0IX.
oralin10gbk0IX.
oralin10gbk0IX.