Dell™ PowerEdge™ Systems Oracle Database 10g Extended Memory 64 Technology (EM64T) Enterprise Edition Linux Deployment Guide Version 2.1.1 w w w. d e l l . c o m | s u p p o r t . d e l l .
Notes and Notices NOTE: A NOTE indicates important information that helps you make better use of your computer. NOTICE: A NOTICE indicates either potential damage to hardware or loss of data and tells you how to avoid the problem. ____________________ Information in this document is subject to change without notice. © 2006 Dell Inc. All rights reserved. Reproduction in any manner whatsoever without the written permission of Dell Inc. is strictly forbidden.
Contents . . . . . . . . . . . . . . . . . . . . . . . 5 . . . . . . . . . . . . . . . . . . . . . . 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 7 7 . . . . . . . . . . . . . . . 8 . . . . . . . 8 9 9 Oracle RAC 10g Deployment Service Software and Hardware Requirements License Agreements . . . Important Documentation. Before You Begin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Configuring and Deploying Oracle Database 10g (Single Node) . . . . . . . . Configuring the Public Network . . . . . . . . . . . . . . . . . . . . Configuring Database Storage . . . . . . . . . . . . . . . . . . . . . Configuring Database Storage Using the Oracle ASM Library Driver . Installing Oracle Database 10g . . . . . . . . . . . . . . . . . . . . . Installing the Oracle Database 10g 10.2.0.2 Patchset . . . . . . . . . Configuring the Listener . . . . . . . . . . . . . . . . . . . . . . . .
This document provides information about installing, configuring, reinstalling, and using Oracle Database 10g Enterprise Edition with the Oracle Real Application Clusters (RAC) software on your Dell|Oracle supported configuration. Use this document in conjunction with the Dell Deployment, Red Hat Enterprise Linux, and Oracle RAC 10g software CDs to install your software. NOTE: If you install your operating system using only the operating system CDs, the steps in this document may not be applicable.
Software and Hardware Requirements Before you install the Oracle RAC software on your system: • Download the Red Hat CD images from the Red Hat website at rhn.redhat.com. • Locate your Oracle CD kit. • Download the Dell Deployment CD images that are appropriate for the solution being installed from the Dell|Oracle Tested and Validated Configurations website at www.dell.com/10g. Burn all these downloaded CD images to CDs.
Table 1-2. Minimum Hardware Requirements—Fibre Channel Cluster (continued) Hardware Component Configuration Gigabit Ethernet switch (two) See the Dell|Oracle Tested and Validated Configurations website at www.dell.com/10g for information on supported configurations Dell|EMC Fibre Channel switch (two) Eight ports for two to six nodes 16 ports for seven or eight nodes Table 1-3.
4 In the Easy ISOs page left menu, click All. The ISO images for all Red Hat products appear. 5 In the Channel Name menu, click the appropriate ISO image for your Red Hat Enterprise Linux software. 6 Download the ISOs for your Red Hat Enterprise Linux software as listed in your Solution Deliverable List (SDL) from the Dell|Oracle Tested and Validated Configurations website at www.dell.com/10g. 7 Burn the ISO images to CDs.
When the Network Setup window appears, click Next. You will configure network settings later. 10 When the Security Level window appears, disable the firewall. You may enable the firewall after completing the Oracle deployment. 11 Log in as root. Configuring Red Hat Enterprise Linux 1 Log in as root. 2 Insert the Dell Deployment CD 2 into the CD drive and type the following commands: mount /dev/cdrom /media/cdrom/install.sh The contents of the CD are copied to the /usr/lib/dell/dell-deploy-cd directory.
Verifying Cluster Hardware and Software Configurations Before you begin cluster setup, verify the hardware installation, communication interconnections, and node software configuration for the entire cluster. The following sections provide setup information for hardware and software Fibre Channel cluster configurations. Fibre Channel Cluster Setup Your Dell Professional Services representative completed the setup of your Fibre Channel cluster.
Table 1-4.
Fibre Channel Hardware and Software Configurations • Each node must include the minimum hardware peripheral components as described in Table 1-2. • Each node must have the following software installed: • – Red Hat Enterprise Linux software (see Table 1-1) – Fibre Channel HBA driver The Fibre Channel storage system must be configured with the following: – A minimum of three LUNs created and assigned to the cluster storage group (see Table 1-5) – A minimum LUN size of 5 GB Table 1-5.
Figure 1-2. Cabling in a Direct-Attached Fibre Channel Cluster node 1 node 2 HBA ports (2) HBA ports (2) 0 1 0 1 SP ports SP-B 3 2 1 0 0 1 2 3 SP-A CX700 storage system Direct-Attached Configuration To configure your nodes in a direct-attached configuration (see Figure 1-2), perform the following steps: 1 Connect one optical cable from HBA0 on node 1 to port 0 of SP-A. 2 Connect one optical cable from HBA1 on node 1 to port 0 of SP-B.
Figure 1-3. Cabling in a SAN-Attached Fibre Channel Cluster node 2 node 1 HBA ports (2) 0 1 HBA ports (2) sw0 0 1 sw1 SP ports 3 2 SP-B 1 0 0 1 2 3 SP-A CX700 storage system SAN-Attached Configuration To configure your nodes in a four-port SAN-attached configuration (see Figure 1-3), perform the following steps: 1 Connect one optical cable from SP-A port 0 to Fibre Channel switch 0. 2 Connect one optical cable from SP-A port 1 to Fibre Channel switch 1.
7 Connect one optical cable from SP-B port 2 to Fibre Channel switch 1. 8 Connect one optical cable from SP-B port 3 to Fibre Channel switch 0. 9 Connect one optical cable from HBA0 on node 1 to Fibre Channel switch 0. 10 Connect one optical cable from HBA1 on node 1 to Fibre Channel switch 1. 11 Connect one optical cable from HBA0 on node 2 to Fibre Channel switch 0. 12 Connect one optical cable from HBA1 on node 2 to Fibre Channel switch 1.
Configuring the Public Network NOTE: Ensure that your public IP address is a valid, routable IP address. If you have not already configured the public network, do so by performing the following steps on each node: 1 Log in as root.
3 For high availability, edit the /etc/modprobe.conf file and set the option for link monitoring. The default value for miimon is 0, which disables link monitoring. Change the value to 100 milliseconds initially, and adjust it as needed to improve performance as shown in the following example. Type: options bonding miimon=100 mode=1 4 In the /etc/sysconfig/network-scripts/ directory, create or edit the ifcfg-bond0 configuration file.
8 Connect to each node and verify that the private network and ssh are functioning correctly by typing: ssh 9 On each node, modify the /etc/hosts file by adding the following lines: 127.0.0.1 localhost.
Verifying the Storage Configuration While configuring the clusters, create partitions on your Fibre Channel storage system. In order to create the partitions, all the nodes must be able to detect the external storage devices.
Disable SELinux To run the Oracle database, you must disable SELinux. To temporarily disable SELinux, perform the following steps: 1 Log in as root. 2 At the command prompt, type: setenforce 0 To permanently disable SELinux, perform the following steps on all the nodes: 1 Open your grub.conf file. 2 Locate the kernel command line and append the following option: selinux=0 For example: kernel /vmlinuz-2.6.9-34.ELlargesmp ro root=LABEL=/ apic rhgb quiet selinux=0 3 Reboot your system.
To configure storage using OCFS2: 1 On the first node, log in as root. 2 Perform the following steps: a Start the X Window System by typing: startx b Generate the OCFS2 configuration file (/etc/ocfs2/cluster.conf) with a default cluster name of ocfs2 by typing the following in a terminal: ocfs2console c From the menu, click Cluster→ Configure Nodes. If the cluster is offline, the console will start it. A message window appears displaying that information. Close the message window.
5 On the first node, for a Fibre Channel cluster, create one partition on each of the other two external storage devices with fdisk: a Create a primary partition for the entire device by typing: fdisk /dev/emcpowerx Type h for help within the fdisk utility.
Configuring Shared Storage for Oracle Clusterware and the Database Using ASM Configuring Shared Storage for Oracle Clusterware This section provides instructions for configuring shared storage for Oracle Clusterware.
NOTE: Shared storage configuration using ASM can be done either using the RAW device interface or the Oracle ASM library driver.
3 On the first node, in the terminal window, type the following and press : service oracleasm createdisk ASM1 /dev/emcpowerb1 service oracleasm createdisk ASM2 /dev/emcpowerc1 4 Repeat step 3 for any additional ASM disks that need to be created. 5 Verify that the ASM disks are created and marked for ASM usage. In the terminal window, type the following and press : service oracleasm listdisks The disks that you created in step 3 appear.
Installing Oracle Clusterware 1 Log in as root. 2 Start the X Window System by typing: startx 3 Open a terminal window and type: xhost + 4 Mount the Oracle Clusterware CD. 5 Type: /cluvfy/runcluvfy.sh stage -pre crsinst -n node1,node2 -r 10gR2 -verbose where node1 and node2 are the public host names. If your system is not configured correctly, troubleshoot the issues and then repeat the runcluvfy.sh command, above.
12 In the Specify Cluster Configuration window, add the nodes that will be managed by Oracle Clusterware. a Click Add. b Enter a name for the Public Node Name, Private Node Name, and Virtual Host Name, and then click OK. c Repeat step a and step b for the remaining nodes. d In the Cluster Name field, type a name for your cluster. The default cluster name is crs. e Click Next. 13 In the Specify Network Interface Usage window, ensure that the public and private interface names are correct.
16 In the Summary window, click Install. Oracle Clusterware is installed on your system. When completed, the Execute Configuration scripts window appears. 17 Follow the instructions in the window and then click OK. NOTE: If root.sh hangs while formatting the Voting disk, apply Oracle patch 4679769 and then repeat this step. 18 In the Configuration Assistants window, ensure that Succeeded appears in the Status column for each tool name. Next, the End of Installation window appears. 19 Click Exit.
6 In the Select Installation Type window, select Enterprise Edition and click Next. 7 In the Specify Home Details window in the Path field, verify that the complete Oracle home path is /opt/oracle/product/10.2.0/db_1 and click Next. NOTE: The Oracle home name in this step must be different from the Oracle home name that you identified during the CRS installation. You cannot install the Oracle 10g Enterprise Edition with RAC into the same home name that you used for CRS.
Installing the Oracle Database 10g 10.2.0.2 Patchset Downloading and Extracting the Installation Software 1 On the first node, log in as oracle. 2 Create a folder for the patches and utilities at /opt/oracle/patches. 3 Open a web browser and navigate to the Oracle Support website at metalink.oracle.com. 4 Log in to your Oracle Metalink account. 5 Search for the patch number 4547817 with Linux x86-64 (AMD64/EM64T) as the platform. 6 Download the patch to the /opt/oracle/patches directory.
11 Read all the instructions that are displayed in the message window, which appears. NOTE: Do not shut down the Oracle Clusterware daemons, as you already performed this procedure in step 1 and step 2. 12 Open a terminal window. 13 Log in as root. 14 Type the following and press : $ORA_CRS_HOME/install/root102.sh 15 Repeat step 12 through step 14 on the remaining nodes, one node at a time. 16 On the first node, return to the End of Installation screen. 17 Click Exit.
10 Click Next. 11 In the Specify Home Details screen, click Next. 12 In the Specify Hardware Cluster Installation Mode screen, click Next. 13 In the Summary screen, click Install. The Oracle Universal Installer scans your system, displays all the patches that are required to be installed, and installs them on your system. When the installation is completed, the End of Installation screen appears. Next, a message window appears, prompting you to run root.sh as user root. 14 Open a terminal window.
Configuring the Listener This section describes the steps to configure the listener, which is required for remote client connection to a database. On one node only, perform the following steps: 1 Log in as root. 2 Start the X Window System by typing: startx 3 Open a terminal window and type: xhost + 4 As the user oracle, type netca to start the Net Configuration Assistant. 5 Select Cluster Configuration and click Next. 6 In the TOPSNodes window, click Select All Nodes and click Next.
8 In the Database Credentials window: a Click Use the same password for all accounts. b Complete password selections and entries. c Click Next. 9 In the Storage Options window, select Cluster File System and click Next. 10 In the Database File Locations window, click Next. 11 In the Recovery Configuration window: a Click Specify Flash Recovery Area. b Click Browse and select /u03. c Specify the flash recovery size. d Click Next. 12 In the Database Content window, click Next.
Creating the Seed Database Using ASM This section contains procedures for creating the seed database using Oracle ASM and for verifying the seed database. Perform the following steps: 1 Log in as root, and type: cluvfy stage -pre dbcfg -n node1,node2 -d $ORACLE_HOME -verbose where node1 and node2 are the public host names. If your system is not configured correctly, see "Troubleshooting" for more information.
14 In the Create Disk Group window, perform the following steps: a Enter a name for the disk group to be created, such as databaseDG, select External Redundancy, and then select the disks to include in the disk group. If you are using the RAW device interface, select /dev/raw/ASM1. A window appears indicating that disk group creation is in progress.
25 Perform the following steps on each node: a Determine the database instance that exists on that node by typing: srvctl status database -d b Type the following commands to add the ORACLE_SID environment variable entry in the oracle user profile: echo "export ORACLE_SID=racdbx" >> /home/oracle/.bash_profile source /home/oracle/.bash_profile where racdbx is the database instance identifier assigned to the node.
Configuring and Deploying Oracle Database 10g (Single Node) This section provides information about completing the initial setup or completing the reinstallation procedures as described in "Installing and Configuring Red Hat Enterprise Linux.
8 Edit the /etc/fstab file for the newly created file system by adding entries such as: /dev/sdb1 /opt/oracle/oradata ext3 defaults 1 2 /dev/sdc1 /opt/oracle/recovery ext3 defaults 1 2 9 Type: mount /dev/sdb1 /opt/oracle/oradata mount /dev/sdc1 /opt/oracle/recovery 10 Type: chown -R oracle.
To permanently disable SELinux, perform the following steps: 1 Open your grub.conf file. 2 Locate the kernel command line and append the following option: selinux=0 For example: kernel /vmlinuz-2.6.9-34.ELlargesmp ro root=LABEL=/ apic rhgb quiet selinux=0 3 Reboot your system. 4 Open a terminal window and log in as root.
Installing Oracle Database 10g Perform the following steps to install Oracle 10g: 1 Log in as root. 2 As the user root, mount the Oracle Database 10g CD. 3 Start the X Window System by typing: startx 4 Open a terminal window and type: xhost + 5 Log in as oracle. 6 Start the Oracle Universal Installer. In the terminal window, type the following and press : /runInstaller 7 In the Select Installation Method window, click Advanced Installation and then click Next.
Installing the Oracle Database 10g 10.2.0.2 Patchset Downloading and Extracting the Installation Software 1 Log in as oracle. 2 Create a folder for the patches and utilities at /opt/oracle/patches. 3 Open a web browser and navigate to the Oracle Metalink website at metalink.oracle.com. 4 Log in to your Oracle Metalink account. 5 Search for the patch number 4547817 with Linux x86-64 (AMD64/EM64T) as the platform. 6 Download the patch to the /opt/oracle/patches directory.
11 Press to accept the default answers to the questions generated by root.sh. NOTE: This procedure may take several minutes to complete. 12 When you complete executing root.sh, go back to Execute Configuration Scripts window and click OK. 13 In the End of Installation screen, click Exit. 14 Click Yes to exit the Oracle Universal Installer. 15 Restart the cssd process. To do so, type the following and press : /etc/init.d/init.cssd start Configuring the Listener 1 Log in as root.
11 In the Recovery Configuration window, click Browse, select the flashback recovery area that you created in "Configuring Database Storage Using ex3 File System" (for example, /opt/oracle/recovery), change the Flash Recovery Area size as needed, and click Next. 12 In the Database Content window, click Next. 13 In the Initialization Parameters window, click Next. 14 In the Database Storage window, click Next. 15 In the Creation Options window, click Create Database and click Finish.
9 In the Create ASM Instance window, enter the password for user SYS and click Next. 10 When a message appears indicating that DBCA is ready to create and start the ASM instance, click OK. 11 In the ASM Disk Groups window, under Available Disk Groups, click Create New. 12 In the Create Disk Group window, enter the storage information for the database files and click OK.
22 In the Confirmation window click OK to create the database. NOTE: Creating the seed database may take more than an hour. When the database creation is completed, the Password Management window appears. 23 Click Exit. 24 When database creation is completed, type the following commands to add the ORACLE_SID environment variable entry in the oracle user profile: echo "export ORACLE_SID=oradb" >> /home/oracle/.bash_profile source /home/oracle/.
Configuring Shared Storage on the New Node To extend an existing RAC database to your new nodes, configure storage for the new nodes so that the storage is the same as on the existing nodes. This section provides the appropriate procedures for ASM. Configuring Shared Storage Using ASM If you are using ASM, ensure that the new nodes can access the ASM disks with the same permissions as the existing nodes. To configure the ASM disks: 1 Log in as root.
8 Ensure that the new node can access the ASM disks. In the terminal, type the following and press : service oracleasm scandisks 9 Ensure that the ASM disks are available on the new node. In the terminal window, type the following and press : service oracleasm listdisks All available disks on the remaining nodes are listed. For example: ASM1 ASM2 Adding a New Node to the Oracle Clusterware Layer 1 Log in as oracle into one of the existing nodes. 2 From the /crs/oracle/product/10.2.
4 In the Specify Cluster Nodes for Node Addition window, verify that the new node is selected and click Next. If all the verification checks pass, the Cluster Node Addition Summary window appears. 5 Click Install. The Cluster Node Addition Progress window displays the status of the node addition process. 6 When prompted, as user root run /opt/oracle/product/10.2.0/db_1/root.sh on the new node and press when asked to enter the full path name of the local bin directory. 7 When root.
12 In the Listener Configuration→ TCP/IP Protocol window, select Use the standard port number of 1521 and click Next. 13 In the Listener Configuration→ More Listeners? window, select No and click Next. 14 In the Listener Configuration Done window, click Next. 15 Click Finish. Adding a New Node to the Database Instance Layer 1 On one of the existing nodes, as user oracle, start DBCA by typing: dbca & 2 In the Welcome window, click Next. 3 In the Operations window, click Instance Management and click Next.
Removing a Node From the Cluster When you perform the procedures in this section, ensure that you select and remove the correct node from the cluster. Deleting the Node From the Database Instance Layer 1 Log in as oracle. 2 From one of the remaining nodes, type: dbca & 3 In the Welcome window, click Next. 4 In the Operations window, click Instance Management and click Next. 5 In the Instance Management window, click Delete an instance and click Next.
Reconfiguring the Listener 1 Type netca. 2 In the Real Application Clusters→ Configuration window, select Cluster Configuration and click Next. 3 In the Real Application Clusters→ Active Nodes window, select the node that you want to delete and click Next. 4 In the Welcome window, select Listener Configuration and click Next. 5 In the Listener Configuration→ Listener window, select Delete and click Next. 6 In the Listener Configuration→ Select Listener window, select LISTENER and click Next.
Removing a Node From the Oracle Clusterware Layer 1 On the node that you are deleting, as user root, disable CRS by typing the following command: /crs/oracle/product/10.2.0/crs/install/rootdelete.sh remote nosharedvar 2 On one of the remaining nodes, as user root, type the following command: /crs/oracle/product/10.2.0/crs/install/rootdeletenode.sh , Where is public name and is the node number of the node being deleted.
For information about configuring the system for use, see "Configuring Red Hat Enterprise Linux" and continue through the remaining sections to reconfigure your system. Additional Information Supported Software Versions Table 1-7 lists the supported software at the time of release. For the latest supported hardware and software, see the Dell|Oracle Tested and Validated Configurations website at www.dell.com/10g and download the Oracle Database 10g EM64T Version 2.
Determining the Private Network Interface To determine which interface device name is assigned to each network interface, perform the following steps: 1 Determine the types of NICs in your system. See Table 1-8 to identify which integrated NICs are present in your system. For add-in NICs, you may have Intel PRO/100 family or PRO/1000 family cards or Broadcom NetXtreme Gigabit cards. You may have to open your system and view the add-in cards to identify your card. Table 1-8.
Troubleshooting Table 1-9 provides recommended actions for problems that you may encounter while deploying and using your Red Hat Enterprise Linux and Oracle software. Table 1-9. Troubleshooting Category Problem / Symptom Database Nodes that start up RAC instances with correctly with greater than 4 Gb Patchset 10.2.0.1 db_cache_sizes. may fail to start up with ORA-4031 errors in Patchset 10.2.0.2.
Table 1-9. Troubleshooting (continued) Category Problem / Symptom Cause Recommended Corrective Action Enterprise Manager The Enterprise The Enterprise Type the following to recreate the configuration file and Manager agent goes Manager repository is repository for the DB Console: down or fails. not populated. emca -config dbcontrol db repos recreate For detailed instructions, see Oracle Metalink Note 330976.1. Performance Unknown interface and stability type warning appears in Oracle alert file.
Table 1-9. 58 Troubleshooting (continued) Category Problem / Symptom Cause CRS CRS gives up prematurely when trying to start. Due to Oracle bug Apply patch 4698419 available on the Oracle Metalink 4698419. See the website at metalink.oracle.com. Oracle Metalink website at metalink.oracle.com. CRS The Oracle Clusterware installation procedure fails.
Table 1-9. Troubleshooting (continued) Category Problem / Symptom Cause CRS When you run root.sh following reinstallation, CRS fails to start. The OCR file and Voting disk have not been cleared and contain old information. 1 Clear the OCR and Voting disks by typing the When you run root.sh, CRS fails to start. The user oracle does not have permissions on /var/tmp (specifically /var/tmp/.oracle). 1 Make user oracle the owner of /var/tmp/.oracle by When you run root.sh, CRS fails to start.
Table 1-9. Troubleshooting (continued) Category Problem / Symptom Cause CRS Node continually reboots. The private interconnect is down. Recommended Corrective Action 1 Start Linux in single user mode. 2 Type: /etc/inet.d/init.crs disable 3 Verify that the node can ping over the private interconnect to the remaining nodes in the cluster. 4 Type: /etc/inet.d/init.crs enable 5 Reboot your system.
Table 1-9. Troubleshooting (continued) Category Problem / Symptom Cause Recommended Corrective Action Software installation Oracle software fails The nodes system to install on the clocks are not nodes. identical. Software installation When you run root.sh, the utility fails to format the OCR disk. The utility fails to Download and apply Oracle patch 4679769, found on format the OCR disk. the Oracle Metalink website at metalink.oracle.com.
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 configurations, and general information, visit the Dell|Oracle Tested and Validated Configurations website at www.dell.com/10g. 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 support.dell.com.
Index A adding and removing nodes, 46 additional configuration options adding and removing nodes, 46 configuring (continued) Oracle Database 10g (single node), 38 Oracle RAC 10g, 15 Red Hat Enterprise Linux, 9 shared storage, 20 shared storage for CRS, 23 additional information, 54 determining the private network interface, 55 configuring Oracle 10g, 10 verifying hardware and software configurations, 10 ASM configuring database storage, 39 configuring Oracle Database 10g (single node), 38, 43 creating
Index hardware and software configurations Fibre Channel, 12 I installing CRS, 26 Oracle Database 10g, 28 Oracle Database 10g (single node), 41 Oracle RAC 10g, 25 Red Hat Enterprise Linux, 8 using Dell Deployment CD, 8 Oracle RAC 10g configuration, 15 CRS configuration, 23 installing, 25 shared storage configuration, 20 security, 37 seed database creating, 35, 43 verifying, 37, 44 P software reinstalling, 53 requirements, 6, 54 passwords setting, 37 software and hardware requirements, 6 private
Dell™ PowerEdge™ 系统 Oracle Database 10g 64 位扩展 内存技术 (EM64T) 企业版 Linux 部署指南 2.1.1 版 w w w. d e l l . c o m | s u p p o r t . d e l l .
注和注意 注:注表示可以帮助您更好地使用计算机的重要信息。 注意:注意表示可能会损坏硬件或导致数据丢失,并告诉您如何避免此类问题。 ____________________ 本说明文件中的信息如有更改,恕不另行通知。 © 2006 Dell Inc. 版权所有,翻印必究。 未经 Dell Inc. 书面许可,严禁以任何形式进行复制。 本文中使用的商标:Dell、DELL 徽标和 PowerEdge 是 Dell Inc. 的商标; EMC、PowerPath 和 Navisphere 是 EMC Corporation 的注 册商标; Intel 和 Xeon 是 Intel Corporation 的注册商标; Red Hat 是 Red Hat, Inc. 的注册商标。 本文件中述及的其它商标和产品名称是指拥有相应商标和名称的公司或其制造的产品。Dell Inc.
目录 Oracle RAC 10g 部署服务 . 软件和硬件要求 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70 71 71 71 许可协议 . . . 重要说明文件 开始之前 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 安装和配置 Red Hat Enterprise Linux . . . . . . . . . . . . . . . . . . . . .
配置和部署 Oracle Database 10g(单个节点) . . . . . . . . . . . . . . 配置公共网络 . . . . . . . . . . . . . . . . . . 配置数据库存储 . . . . . . . . . . . . . . . . . 使用 Oracle ASM 库驱动程序配置数据库存储 安装 Oracle Database 10g . . . . . . . . . . . . 安装 Oracle Database 10g 10.2.0.2 增补软件集 . 配置监听程序 . . . . . . . . . . . . . . . . . . 创建基础数据库 . . . . . . . . . . . . . . . . . 添加和删除节点 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
本说明文件介绍有关在 Dell|Oracle 支持的配置上安装、配置、重新安装和使用 Oracle Database 10g 企业版及 Oracle Real Application Clusters (RAC) 软件的信息。请将本说明文件与 Dell Deployment CD、 Red Hat Enterprise Linux CD 和 Oracle RAC 10g 软件 CD 配合使用来安装软件。 注:如果您仅使用操作系统 CD 来安装操作系统,则本说明文件中的步骤可能不适用。 本说明文件包括以下主题: • 软件和硬件要求 • 安装和配置 Red Hat® Enterprise Linux • 验证群集硬件与软件配置 • 为 Oracle RAC 配置存储和网络 • 安装 Oracle RAC • 配置和安装 Oracle Database 10g(单个节点) • 添加和删除节点 • 重新安装软件 • 附加信息 • 故障排除 • 获得帮助 • 获取和使用开放源代码文件 有关 Dell 支持的 Oracle 配置的详情,请参阅“经 Dell|Oracle 测
软件和硬件要求 在系统上安装 Oracle RAC 软件之前: • 从 Red Hat 网站 rhn.redhat.com 下载 Red Hat CD 映像。 • 找到 Oracle CD 套件。 • 从“经 Dell|Oracle 测试和验证的配置”网站 www.dell.com/10g 下载适用于要安装的解决方案的 Dell Deployment CD 映像。将所有这些下载的 CD 映像刻录成 CD。 表 1-1 列出了 Dell 支持的 Oracle 配置的基本软件要求。表 1-2 至表 1-3 列出了硬件要求。有关驱动程 序和应用程序最低软件版本的详情,请参阅“支持的软件版本”。 表 1-1. 软件要求 软件组件 配置 Red Hat Enterprise Linux AS EM64T (第 4 版) 更新 3 Oracle Database 10g 10.2 版 • 企业版,包括用于群集的 RAC 选件 • 用于单个节点配置的企业版 EMC® PowerPath® 4.5.
表 1-3. 最低硬件要求 — 单个节点 硬件组件 配置 PowerEdge 系统 Intel Xeon 处理器系列 1 GB 的 RAM 连接至 PERC 的两个 73 GB 硬盘驱动器 (RAID 1) 两个 NIC 端口 Dell|EMC 光纤信道存储系统 (可选) 有关支持的配置信息,请访问 “经 Dell|Oracle 测试和验证的配置” 网站 www.dell.com/10g Dell|EMC 光纤信道交换机 (可选) 八个端口 许可协议 注:您的 Dell 配置包含 30 天的 Oracle 软件试用许可。如果您没有此产品的许可证,请与 Dell 销售代表联系。 重要说明文件 有关特定硬件组件的详情,请参阅随系统附带的说明文件。 有关 Oracle 产品信息,请参阅 Oracle CD 套件中的《如何开始》指南。 开始之前 在安装 Red Hat Enterprise Linux 操作系统之前,请从 Red Hat Network 网站 rhn.redhat.
安装和配置 Red Hat Enterprise Linux 注意:为确保正确地安装操作系统,在安装操作系统之前,应断开系统与所有外部存储设备的连接。 本节将向您介绍 Red Hat Enterprise Linux AS 操作系统的安装以及操作系统的配置以实现 Oracle 数据 库部署。 使用 Deployment CD 安装 Red Hat Enterprise Linux 1 从系统中断开所有外部存储设备的连接。 2 找到您的 Dell Deployment CD 以及 Red Hat Enterprise Linux AS EM64T CD。 3 将 Dell Deployment CD 1 插入 CD 驱动器,然后重新引导系统。 计算机会引导至 Dell Deployment CD。 4 当屏幕显示部署菜单时,键入 1 以选择 Oracle 10g R2 EE on Red Hat Enterprise Linux 4 U3 (x86_64)。 5 当显示另一个菜单要求选择部署映像源时,键入 1 以选择 Copy solution by Deployment CD (通过 De
配置 Red Hat Enterprise Linux 1 作为 root 用户登录。 2 将 Dell Deployment CD 2 插入 CD 驱动器,然后键入以下命令: mount /dev/cdrom /media/cdrom/install.sh CD 中的内容将被复制到 /usr/lib/dell/dell-deploy-cd 目录中。复制过程完成后, 键入 umount /dev/cdrom,然后从 CD 驱动器中取出 CD。 3 键入 cd /dell-oracle-deployment/scripts/standard,浏览至含有从 Dell Deployment CD 安装的脚本的目录。 注:脚本将查找并验证安装的组件版本,并根据需要将组件更新为支持的级别。 4 键入 ./005-oraclesetup.py,配置 Red Hat Enterprise Linux 以便安装 Oracle。 5 键入 source /root/.bash_profile 以启动环境变量。 6 键入 ./010-hwCheck.
验证群集硬件与软件配置 在开始群集设置之前,请验证整个群集的硬件安装、通信互连和节点软件配置。以下各节提供了有关 硬件和软件光纤信道群集配置的设置信息。 光纤信道群集设置 Dell 专业服务代表已为您完成了光纤信道群集的设置。请根据本节所述的内容,验证硬件连接以及硬 件和软件配置。图 1-1 和图 1-3 所示为群集要求的连接概览,表 1-4 概述了群集连接。 图 1-1.
表 1-4.
表 1-5. 用于群集存储分组的 LUN LUN 最小容量 分区数 用途 第一个 LUN 512 MB 三个分区,每个 128 MB 投票磁盘、 Oracle 群集注册 表 (OCR) 和存储处理器 (SP) 文件 第二个 LUN 大于数据库的大小 1个 数据库 第三个 LUN 至少为第二个 LUN 的两倍 1个 快闪恢复区域 存储系统布线 您可以在直接连接配置或具有四个端口的 SAN 连接配置中配置 Oracle 群集存储系统,具体取决于您 的需要。有关这两种配置,请参阅下列步骤。 图 1-2.
直接连接配置 要在直接连接配置中配置节点(请参阅图 1-2),请执行以下步骤: 1 从节点 1 上的 HBA0 至 SP-A 的端口 0 连接一条光缆。 2 从节点 1 上的 HBA1 至 SP-B 的端口 0 连接一条光缆。 3 从节点 2 上的 HBA0 至 SP-A 的端口 1 连接一条光缆。 4 从节点 2 上的 HBA1 至 SP-B 的端口 1 连接一条光缆。 图 1-3.
SAN 连接配置 要在具有四个端口的 SAN 连接配置中配置节点(请参阅图 1-3),请执行以下步骤: 1 从 SP-A 端口 0 至光纤信道交换机 0 连接一条光缆。 2 从 SP-A 端口 1 至光纤信道交换机 1 连接一条光缆。 3 从 SP-A 端口 2 至光纤信道交换机 0 连接一条光缆。 4 从 SP-A 端口 3 至光纤信道交换机 1 连接一条光缆。 5 从 SP-B 端口 0 至光纤信道交换机 1 连接一条光缆。 6 从 SP-B 端口 1 至光纤信道交换机 0 连接一条光缆。 7 从 SP-B 端口 2 至光纤信道交换机 1 连接一条光缆。 8 从 SP-B 端口 3 至光纤信道交换机 0 连接一条光缆。 9 从节点 1 上的 HBA0 至光纤信道交换机 0 连接一条光缆。 10 从节点 1 上的 HBA1 至光纤信道交换机 1 连接一条光缆。 11 从节点 2 上的 HBA0 至光纤信道交换机 0 连接一条光缆。 12 从节点 2 上的 HBA1 至光纤信道交换机 1 连接一条光缆。 为 Oracle RAC 10g 配置存储和网络 本节介
配置公共和专用网络 本节将向您介绍配置公共和专用群集网络的步骤。 注:每个节点都需要一个唯一的公共和专用网际协议 (Internet Protocol, IP) 地址,以及一个附加公共 IP 地 址,该附加公共 IP 地址作为客户端连接和连接故障转移的虚拟 IP 地址。虚拟 IP 地址必须与公共 IP 属于 同一个子网。所有公共 IP 地址,包括虚拟 IP 地址,都应该向域名服务注册并且可路由。 根据可用的 NIC 端口的数目,按照表 1-6 中所示配置接口。 表 1-6.
5 键入 ifconfig,验证 IP 地址设置是否正确。 6 要检查网络配置是否正确,请从群集外的某台 LAN 客户机对每个公共 IP 地址执行 ping 命令。 7 连接至每个节点以验证公共网络是否正常工作,然后键入 ssh < 公共 IP> 以验证安全命令解释 程序 (ssh) 命令是否发挥作用。 利用绑定功能配置专用网络 在部署群集之前,应将专用群集网络设置为允许节点之间相互通信。此过程包括配置网络绑定以及为 群集中的每个节点分配专用 IP 地址和主机名。 要为 Broadcom 或 Intel NIC 设置网络绑定并配置专用网络,请在每个节点上执行以下步骤: 1 作为 root 用户登录。 2 在 /etc/modprobe.conf 文件中添加以下行: alias bond0 bonding 3 为了获得高可用性,请编辑 /etc/modprobe.
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 正常工作: ssh < 专用 IP> 9 在每个节点上,添加以下行来修改 /etc/hosts 文件: 127.0.0.1 localhost.
10 在每个节点上,通过列出所有公共 IP 地址或主机名来创建或修改 /etc/hosts.
禁用 SELinux 要运行 Oracle 数据库,必须禁用 SELinux。 要临时禁用 SELinux,请执行以下步骤: 1 作为 root 用户登录。 2 在命令提示符下键入: setenforce 0 要永久禁用 SELinux,请在所有节点上执行以下步骤: 1 打开 grub.conf 文件。 2 找到内核命令行,并添加以下选项: selinux=0 例如: kernel /vmlinuz-2.6.9-34.ELlargesmp ro root=LABEL=/ apic rhgb quiet selinux=0 3 重新引导系统。 使用 OCFS2 为 Oracle 群集件和数据库配置共享存储 在开始使用 OCFS2 之前: • 从 http://oss.oracle.com/projects/ocfs2/files/RedHat/RHEL4/x86_64/1.2.3-1 下载 RPM。 • 键入以下命令找到内核版本: uname –r 然后,下载适用于该内核版本的 OCFS2 软件包。 • 从 http://oss.oracle.
要使用 OCFS2 配置存储设备: 1 在第一个节点上,作为 root 用户登录。 2 请执行以下步骤: a 键入以下命令启动 X Window 系统: startx b 在终端中键入以下命令,生成具有 ocfs2 的默认群集名的 OCFS2 配置文件 (/etc/ocfs2/cluster.
5 对于光纤信道群集,在第一个节点上,使用 fdisk 在另外两个外部存储设备上各创建一个分区: a 键入以下命令,为整个设备创建主分区: fdisk /dev/emcpowerx 键入 h,获取 fdisk 公用程序内的帮助。 b 键入以下命令,验证新分区是否存在: cat /proc/partitions c 如果没有看到新分区,则键入: sfdisk -R /dev/< 设备名称 > 注:以下步骤使用样本值 /u01、/u02 和 /u03 作为安装点,并使用 u01、u02 和 u03 作为标签。 6 在任意一个节点上,使用命令行公用程序 mkfs.ocfs2,将外部存储设备格式化为 4 K 区块大小、 128 K 群集大小以及 4 个节点插槽(节点插槽指群集节点的数量),如下所示: mkfs.ocfs2 -b 4K -C 128K -N 4 -L u01 /dev/emcpowera1 mkfs.ocfs2 -b 4K -C 128K -N 4 -L u02 /dev/emcpowerb1 mkfs.
使用 ASM 为 Oracle 群集件和数据库配置共享存储 为 Oracle 群集件配置共享存储 本节介绍为 Oracle 群集件配置共享存储的说明。 使用原始设备接口配置共享存储 1 在第一个节点上,使用 fdisk 公用程序在外部存储设备上创建三个分区: 键入 fdisk /dev/emcpowerx 并创建三个 150 MB 分区,其中一个分区用于群集库, 一个用于投票磁盘,另外一个用于 Oracle 系统参数文件。 2 键入以下命令,验证这些新分区: more /proc/partitions 在所有节点上,如果 /proc/partitions 文件中未显示新分区,请键入: sfdisk -R /dev/< 设备名称 > 3 在所有节点上,执行以下步骤: a 编辑 /etc/sysconfig/rawdevices 文件,添加以下用于光纤信道群集的行: /dev/raw/votingdisk /dev/emcpowera1 /dev/raw/ocr.dbf /dev/emcpowera2 /dev/raw/spfile+ASM.
使用原始设备接口配置共享存储 1 编辑 /etc/sysconfig/rawdevices 文件,添加以下用于光纤信道群集的行: /dev/raw/ASM1 /dev/emcpowerb1 /dev/raw/ASM2 /dev/emcpowerc1 2 键入以下命令以创建原始设备: udevstart 3 键入以下命令,重新启动原始设备: service rawdevices restart 4 要添加附加的 ASM 磁盘(例如,ASM3),请编辑所有节点上的 /etc/udev/scripts/raw-dev.sh 文件, 并按如下所示添加相应的粗体条目。 MAKEDEV raw mv /dev/raw/raw1 /dev/raw/votingdisk mv /dev/raw/raw2 /dev/raw/ocr.dbf mv /dev/raw/raw3 /dev/raw/spfile+ASM.
使用 ASM 库驱动程序配置共享存储 1 作为 root 用户登录。 2 打开终端窗口,并在所有节点上执行以下步骤: a 键入 service oracleasm configure b 为所有节点键入以下输入: Default user to own the driver interface(拥有驱动程序接口的默认用户)[ ]:oracle Default group to own the driver interface(拥有驱动程序接口的默认组)[ ]:dba Start Oracle ASM library driver on boot(引导时启动 Oracle ASM 库驱动程序)(y/n) [n]:y Fix permissions of Oracle ASM disks on boot(引导时修复 Oracle ASM 磁盘的权限) (y/n) [y]:y 3 在第一个节点上的终端窗口中,键入以下命令并按 键: service oracleasm createdisk ASM1 /dev/emcpowerb1 service oracleasm createdis
安装 Oracle RAC 10g 本节将说明安装 Oracle RAC 10g 所需的步骤,其中包括安装 CRS 和安装 Oracle Database 10g 软件。 Dell 建议您创建基础 (seed) 数据库,以便在生产环境下部署群集之前先检查群集是否工作正常。 开始之前 要避免在安装过程中出现故障,请为所有节点配置完全相同的系统时钟设置。 使节点系统时钟与网络时间协议 (NTP) 服务器同步。如果您无法访问 NTP 服务器, 请执行以下过程之一: • 确保 Oracle 数据库软件安装节点上的系统时钟设置为比其它节点的时钟稍晚一些。 • 将其中一个节点配置为 NTP 服务器,以同步群集中的其它节点。 安装 Oracle 群集件 1 作为 root 用户登录。 2 键入以下命令启动 X Window 系统: startx 3 打开终端窗口,然后键入: xhost + 4 装入 Oracle Clusterware CD。 5 键入: /cluvfy/runcluvfy.
7 键入以下命令以启动 Oracle Universal Installer(Oracle 通用安装程序): unset ORACLE_HOME /runInstaller 屏幕将显示以下信息: Was ’rootpre.sh’ been run by root?(root 用户是否运行了 ’rootpre.sh’?) [y/n] (n) 8 键入 y 以继续。 9 在 Welcome(欢迎)窗口中单击 Next(下一步)。 10 在 Specify Home Details(指定主目录详细信息)窗口中,将 Oracle 主目录路径更改为 /crs/oracle/product/10.2.
14 在 Specify Oracle Cluster Registry (OCR) Location(指定 Oracle 群集注册表 (OCR) 位置)窗口 中,执行以下步骤: a 在 OCR Configuration(OCR 配置)框中,选择 External Redundancy(外部冗余)。 b 在 Specify OCR Location(指定 OCR 位置)字段中,键入: /dev/raw/ocr.dbf 或者 /u01/ocr.
安装 Oracle Database 10g 软件 1 作为 root 用户登录,并键入: cluvfy stage -pre dbinst -n node1,node2 -r 10gR2 -verbose 其中,node1 和 node2 是公共主机名。 如果系统配置不正确,请参阅“故障排除”了解详情。 如果系统配置正确,屏幕将显示以下信息: Pre-check for database installation was successful.
RAC 部署后修复程序和增补软件 本节介绍部署 Oracle RAC 10g 所需的修复程序和增补软件信息。 重新配置 CSS 计数误差以进行正确的 EMC PowerPath 故障转移 当 HBA、交换机或 EMC 存储处理器 (SP) 发生故障时,切换到备用设备所需的总 PowerPath 故障转移 时间可能会超过 105 秒。Oracle 10g R2 10.2.0.1 版的默认 CSS 磁盘超时时间为 60 秒。为确保 PowerPath 故障转移过程正常工作,请将 CSS 超时时间增加到 120 秒。 有关详情,请参阅 Oracle Metalink 网站 metalink.oracle.com 上的 Oracle Metalink Note 294430.1。 要增加 CSS 超时时间,请执行以下步骤: 1 在除一个节点之外的所有节点上关闭数据库和 CRS。 2 在当前运行的节点上,作为 root 用户登录并键入: crsctl set css misscount 120 3 重新引导所有节点以使 CSS 设置生效。 安装 Oracle Database 10g 10.2.0.
6 启动 Oracle Universal Installer。为此,请在终端窗口中键入以下命令,并按 键: cd /opt/oracle/patches/Disk1/ .
4 在其它节点上重复执行步骤 3 (c),并更改给定节点的节点名称。 5 在第一个节点上,打开终端窗口。 6 作为 oracle 用户登录。 7 打开终端窗口。 8 键入下列命令并按 键: export ORACLE_HOME=/opt/oracle/product/10.2.0/db_1 9 启动 Oracle Universal Installer。为此,请在终端窗口中键入以下命令,并按 键: cd /opt/oracle/patches/Disk1/ .
22 在所有其它节点上,通过发出以下命令关闭 CRS: crsctl stop crs 23 作为 oracle 用户,从应用增补软件集的节点, 将 /opt/oracle/product/10.2.0/db_1/rdbms/lib/libknlopt.a 复制到群集中的所有其它节点。 例如,要将其从节点 1 复制到节点 2,则键入以下命令: scp /opt/oracle/product/10.2.0/db_1/rdbms/lib/libknlopt.a node2:/opt/oracle/product/10.2.0/db_1/rdbms/lib/libknlopt.a 注:请勿作为 root 用户执行此步骤。 24 通过在每个节点上键入以下命令,重新修改所有节点上的 Oracle 二进制文件: cd /opt/oracle/product/10.2.0/db_1/rdbms/lib make -f ins_rdbms.
使用 OCFS2 创建基础数据库 1 在第一个节点上,作为 oracle 用户键入以下命令启动数据库配置助手 (DBCA): dbca -datafileDestination /u02 2 在 Welcome(欢迎)窗口中,选择 Oracle Real Application Cluster Database (Oracle Real Application Cluster 数据库),然后单击 Next(下一步)。 3 在 Operations(操作)窗口中,单击 Create a Database(创建数据库),然后单击 Next (下一步)。 4 在 Node Selection(节点选择)窗口中,单击 Select All(全选),然后单击 Next(下一步)。 5 在 Database Templates(数据库模板)窗口中,单击 Custom Database(自定义数据库), 然后单击 Next(下一步)。 6 在 Database Identification(数据库标识)窗口中,输入 Global Database Name (全局数据库名称)(如 racdb),然后单
17 在 Summary(摘要)窗口中,单击 OK(确定)创建数据库。 注:创建基础 (seed) 数据库可能需要一个多小时。 注:如果在创建基础数据库的过程中收到信息 Enterprise Manager Configuration Error (企业管理器配置错误),则单击 OK(确定)以忽略此错误。 数据库创建完成后,屏幕上将显示 Password Management(密码管理)窗口。 18 单击 Exit(退出)。 屏幕上会显示一则消息,提示正在所有节点上启动群集数据库。 19 在每个节点上,执行以下步骤: a 键入以下命令,确定该节点上存在的数据库实例: srvctl status database -d < 数据库名称 > b 键入以下命令,在 oracle 用户配置文件中,添加 ORACLE_SID 环境变量条目: echo "export ORACLE_SID=racdbx" >> /home/oracle/.bash_profile source /home/oracle/.
7 在 Database Identification(数据库标识)窗口中,输入 Global Database Name (全局数据库名称),如 racdb,然后单击 Next(下一步)。 8 在 Management Options(管理选项)窗口中,单击 Next(下一步)。 9 在 Database Credentials(数据库证书)窗口中,选择密码选项,输入相应的密码信息 (如果需要),然后单击 Next(下一步)。 10 在 Storage Options(存储选项)窗口中,单击 Automatic Storage Management (ASM) (自动存储管理 [ASM]),然后单击 Next(下一步)。 11 在 Create ASM Instance(创建 ASM 实例)窗口中,执行以下步骤: a 在 SYS password(SYS 密码)字段中,键入密码。 b 选择 Create server parameter file (SPFILE)(创建服务器参数文件 [SPFILE])。 c 在 Server Parameter Filename(服务器参数文件
19 在 Database Services(数据库服务)窗口中,配置服务(如果需要),然后单击 Next (下一步)。 20 在 Initialization Parameters(初始化参数)窗口中,执行以下步骤: a 选择 Custom(自定义)。 b 在 Shared Memory Management(共享内存管理)中,选择 Automatic(自动)。 c 在 SGA Size(SGA 大小)和 PGA Size(PGA 大小)窗口中,输入相应的信息。 d 单击 Next(下一步)。 21 在 Database Storage(数据库存储)窗口中,单击 Next(下一步)。 22 在 Creation Options(创建选项)窗口中,选择 Create database(创建数据库), 然后单击 Finish(完成)。 23 在 Summary(摘要)窗口中,单击 OK(确定)创建数据库。 注:完成此过程可能需要一个小时或更多时间。 完成数据库创建后,屏幕上将显示 Database Configuration Assistant(数据库配置助手)窗口。 24
保护系统 为防止未经授权的用户访问系统,Dell 建议您在安装 Oracle 软件之后禁用 rsh。 要禁用 rsh,键入: chkconfig rsh off 为 oracle 用户设置密码 Dell 郑重建议您为 oracle 用户设置密码,以便保护您的系统。完成以下步骤,创建 oracle 密码: 1 作为 root 用户登录。 2 键入 passwd oracle,然后按照屏幕上的说明创建 oracle 密码。 注:根据公司政策,可能会实行其它安全保护措施,但不能中断数据库的正常操作。 配置和部署 Oracle Database 10g(单个节点) 本节介绍有关完成在“安装和配置 Red Hat Enterprise Linux”所述的初始设置或完成重新安装过程的 信息。本节包括以下主题: • 配置公共网络 • 配置数据库存储 • 安装 Oracle 数据库 • 配置监听程序 • 创建基础数据库 配置公共网络 请确保您的公共网络正常运行,并且已为您的系统分配了 IP 地址和主机名。 部署指南 101
配置数据库存储 使用 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 7 键入: mke2fs -j /dev/sdb1 mke2fs -j /dev/sdc1 8 通过添加条目,为新创建的文件系统编辑 /etc/fstab 文件,例如: /dev/sdb1 /opt/oracle/oradata ext3 defaults 1 2 /dev/sdc1 /opt/oracle/recovery
使用 Oracle ASM 配置数据库存储 以下示例假定您有两台存储设备(sdb 和 sdc),可以分别使用它们创建一个用于存储数据库文件的磁 盘组和一个用于存储回闪恢复文件和存档日志文件的磁盘组。 1 作为 root 用户登录。 2 键入以下命令,为整个设备创建主分区: fdisk /dev/sdb 3 键入以下命令,为整个设备创建主分区: fdisk /dev/sdc 使用原始设备接口配置 ASM 存储 1 编辑 /etc/sysconfig/rawdevices 文件并添加以下行: /dev/raw/ASM1 /dev/sdb1 /dev/raw/ASM2 /dev/sdc1 2 键入以下命令,重新启动原始设备: service rawdevices restart 使用 Oracle ASM 库驱动程序配置数据库存储 本节介绍使用 ASM 配置存储设备的过程。 注:在配置 ASM 库驱动程序之前,先禁用 SELinux。 要临时禁用 SELinux,请执行以下步骤: 1 作为 root 用户登录。 2 在命令提示符下键入: setenforce 0 要永久禁用 SELin
5 请执行以下步骤: a 键入: service oracleasm configure b 为所有节点键入以下输入: Default user to own the driver interface(拥有驱动程序接口的默认用户)[ ]:oracle Default group to own the driver interface(拥有驱动程序接口的默认组)[ ]:dba Start Oracle ASM library driver on boot(引导时启动 Oracle ASM 库驱动程序)(y/n) [n]:y Fix permissions of Oracle ASM disks on boot(引导时修复 Oracle ASM 磁盘的权限) (y/n) [y]:y 6 在终端窗口中,键入以下命令: service oracleasm createdisk ASM1 /dev/sdb1 service oracleasm createdisk ASM2 /dev/sdc1 7 对所有需要创建的其它 ASM 磁盘,重复执行步骤 4 至步骤 6。 8 验证是否已为使用 ASM 创建
安装 Oracle Database 10g 要安装 Oracle 10g,请执行以下步骤: 1 作为 root 用户登录。 2 作为 root 用户,装入 Oracle Database 10g CD。 3 键入以下命令启动 X Window 系统: startx 4 打开终端窗口,然后键入: xhost + 5 作为 oracle 用户登录。 6 启动 Oracle Universal Installer。 在终端窗口中,键入下列命令并按 键: /runInstaller 7 在 Select Installation Method(选择安装方法)窗口中,单击 Advanced Installation (高级安装),然后单击 Next(下一步)。 8 在 Select Installation Types(选择安装类型)窗口中,单击 Enterprise Edition(企业版), 然后单击 Next(下一步)。 9 在 Specify Home Details(指定主目录详细信息)窗口的 Path(路径)字段中,确保路径为
安装 Oracle Database 10g 10.2.0.2 增补软件集 下载并自解压安装软件 1 作为 oracle 用户登录。 2 为增补软件和公用程序创建一个文件夹 /opt/oracle/patches。 3 打开 Web 浏览器并浏览至 Oracle Metalink 网站 metalink.oracle.com。 4 登录到您的 Oracle Metalink 帐户。 5 查找以 Linux x86-64 (AMD64/EM64T) 作为平台的增补软件号 4547817。 6 将该增补软件下载到 /opt/oracle/patches 目录。 7 要解压下载的压缩文件,在终端窗口中键入以下命令,然后按 键: unzip p4547817_10202_LINUX-x86-64.zip 升级数据库软件 1 打开终端窗口。 2 作为 oracle 用户登录。 3 确保将 ORACLE_HOME 设置为 /opt/oracle/product/10.2.
11 按 键以接受由 root.sh 生成的问题的默认解答。 注:完成此过程可能需要几分钟。 12 完成执行 root.sh 后,返回 Execute Configuration Scripts(执行配置脚本)窗口,然后单击 OK (确定)。 13 在 End of Installation(安装结束)屏幕中,单击 Exit(退出)。 14 单击 Yes(是)以退出 Oracle Universal Installer(Oracle 通用安装程序)。 15 重新启动 cssd 进程。为此,请键入以下命令并按 键: /etc/init.d/init.
8 在 Database Credentials(数据库证书)窗口中,完成密码选择和输入,然后单击 Next (下一步)。 9 在 Storage Options(存储选项)窗口中选择 File System(文件系统),然后单击 Next (下一步)。 10 在 Database File Locations(数据库文件位置)窗口中单击 Next(下一步)。 11 在 Recovery Configuration(恢复配置)窗口中,单击 Browse(浏览),选择您在“使用 ex3 文件 系统配置数据库存储”中创建的回闪恢复区域(例如,/opt/oracle/recovery),根据需要 更改回闪恢复区域大小,然后单击 Next(下一步)。 12 在 Database Content(数据库内容)窗口中,单击 Next(下一步)。 13 在 Initialization Parameters(初始化参数)窗口中,单击 Next(下一步)。 14 在 Database Storage(数据库存储)窗口中,单击 Next(下一步)。 15 在 Creation Options(创建
4 在 Database Templates(数据库模板)窗口中,单击 Custom Database(自定义数据库), 然后单击 Next(下一步)。 5 在 Database Identification(数据库标识)窗口中,输入 Global Database Name (全局数据库名称)(如 oradb),然后单击 Next(下一步)。 6 在 Management Options(管理选项)窗口中,单击 Next(下一步)。 7 在 Database Credentials(数据库证书)窗口中,单击 Use the Same Password for All Accounts (对所有帐户使用相同密码),完成密码输入,然后单击 Next(下一步)。 8 在 Storage Options(存储选项)窗口中,单击 ASM,然后单击 Next(下一步)。 9 在 Create ASM Instance(创建 ASM 实例)窗口中,输入 SYS 用户的密码,然后单击 Next (下一步)。 10 当显示的消息表明 DBCA 已就绪,可以创建和启动 ASM 实例时,单击 OK(确定
16 在 Database File Locations(数据库文件位置)窗口中, 选中 Use Common Location for All Database Files(对所有数据库文件使用公用位置), 然后单击 Next(下一步)。 17 在 Recovery Configuration(恢复配置)窗口中,单击 Browse(浏览),选择您在步骤 14 中 创建的回闪组(例如,flashbackDG),然后根据需要更改快闪恢复区域的大小并单击 Next (下一步)。 18 在 Database Content(数据库内容)窗口中,单击 Next(下一步)。 19 在 Initialization Parameters(初始化参数)窗口中,选择 Typical(典型),然后单击 Next (下一步)。 20 在 Database Storage(数据库存储)窗口中,单击 Next(下一步)。 21 在 Creation Options(创建选项)窗口中,选择 Create database(创建数据库), 然后单击 Finish(完成)。 22 在 Confirmation(确
将新节点添加到网络层 要将新节点添加到网络层,请执行以下操作: 1 在新节点上安装 Red Hat Enterprise Linux 操作系统。 请参阅“安装和配置 Red Hat Enterprise Linux”。 2 在新节点上配置公共网络和专用网络。请参阅“配置公共和专用网络”。 3 验证每个节点都能够检测到存储 LUN 或逻辑磁盘。请参阅“验证存储配置”。 在新节点上配置共享存储 要将现有 RAC 数据库扩展到新节点,请为新节点配置存储,使新节点的存储与现有节点上的相同。 本节介绍用于 ASM 的相应过程。 使用 ASM 配置共享存储 如果您使用的是 ASM,应确保新节点可以使用与现有节点相同的权限访问 ASM 磁盘。 要配置 ASM 磁盘,请执行以下操作: 1 作为 root 用户登录。 2 在命令提示符下键入: setenforce 0 要永久禁用 SELinux: 1 打开 grub.conf 文件。 2 找到内核命令行,并添加以下选项: selinux=0 例如: kernel /vmlinuz-2.6.9-34.
7 打开终端窗口,并在新节点上执行以下步骤: a 键入 service oracleasm configure b 为所有节点键入以下输入: Default user to own the driver interface(拥有驱动程序接口的默认用户)[ ]:oracle Default group to own the driver interface(拥有驱动程序接口的默认组)[ ]:dba Start Oracle ASM library driver on boot(引导时启动 Oracle ASM 库驱动程序)(y/n) [n]:y Fix permissions of Oracle ASM disks on boot(引导时修复 Oracle ASM 磁盘的权限) (y/n) [y]:y 8 确保新节点可以访问 ASM 磁盘。 在终端窗口中,键入下列命令并按 键: service oracleasm scandisks 9 确保新节点可以使用 ASM 磁盘。 在终端窗口中,键入下列命令并按 键: service oracleasm listdisks
6 当系统提示作为 root 用户在本地节点上运行 rootaddnode.sh 和在新节点上运行 root.sh 时, 请运行 /crs/oracle/product/10.2.0/crs/install/rootaddnode.sh。 7 在 Execute Configuration Scripts(执行配置脚本)窗口中完成 root.sh 运行后,单击 OK (确定)。 8 在 End of Cluster Node Addition(群集节点添加结束)窗口中,单击 Exit(退出),并在 Exit (退出) 窗口中单击 Yes(是)。 将新节点添加到数据库层 1 作为 oracle 用户登录到现有节点之一。 2 从现有节点的 /opt/oracle/product/10.2.0/db_1/oui/bin 目录中,键入 ./addNode.
4 作为 oracle 用户,键入以下命令停止监听程序: lsnrctl stop 5 成功完成后,键入 netca 以启动 Net Configuration Assistant(网络配置助手)。 6 选择 Cluster Configuration(群集配置),然后单击 Next(下一步)。 7 在 Real Application Clusters 的 Active Nodes(活动节点)窗口中,单击 Select All Nodes (选择所有节点),然后单击 Next(下一步)。 8 在 Welcome(欢迎)窗口中,选择 Listener Configuration(监听程序配置),然后单击 Next (下一步)。 9 在 Listener Configuration(监听程序配置)→ Listener(监听程序)窗口中,选择 Reconfigure (重新配置),然后单击 Next(下一步)。 10 在 Listener Configuration(监听程序配置)→ Select Listener(选择监听程序)窗口中, 从下拉式菜单中选择 LISTENER,然后单击
7 在 List of Cluster Database Instances(群集数据库实例列表)窗口中,单击 Next(下一步)。 8 在 Instance Naming and Node Selection(实例命名和节点选择)窗口中,在窗口的顶部输入实例 名称,选择新节点名称,然后单击 Next(下一步)。 9 在 Instance Storage(实例存储)窗口中,单击 Finish(完成)。 10 在 Summary(摘要)窗口中单击 OK(确定),添加数据库实例。 屏幕上将显示进度条,随后显示一则消息,询问是否要将 ASM 扩展到新节点。 11 单击 Yes(是)。 屏幕将显示以下信息: Do you want to perform another operation?(是否要执行另一个操作?) 12 单击 No(否)。 13 在任何节点上,键入以下命令以确定是否成功地添加了实例: srvctl status database -d < 数据库名称 > 注:请参阅“保护系统”一节,并按照相关步骤设置其它安全保护措施。 从群集中删除节点 在执行本节中的过程时,确保从群集中
8 选择要删除的实例,然后单击 Next(下一步)。 此实例不能是运行 DBCA 所在的本地实例。如果您选择本地实例,DBCA 将显示 Error(错误) 对话框。如果出现此对话框,请单击 OK(确定)并选择另一个实例,然后单击 Finish(完成)。 如果服务已分配给该实例,则会显示 DBCA Services Management(DBCA 服务管理)窗口。 使用该窗口将服务重新分配给群集数据库中的其它实例。 9 10 在 Summary(摘要)窗口中,单击 OK(确定)。 验证有关实例删除操作的信息,然后单击 OK(确定)。 DBCA 删除实例及其 Oracle 网络配置时,屏幕将显示进度条。操作完成后,屏幕将显示一个对话 框,提示您是否要执行另一项操作。 11 单击 No(否)退出。 12 键入以下命令,验证已删除该节点: srvctl config database -d < 数据库名称 > 重新配置监听程序 1 键入 netca。 2 在 Real Application Clusters→ Configuration(配置)窗口中,选择 Cluster Configurat
从删除的节点中停止并删除 ASM 在其它某个节点上,执行以下步骤: 1 打开终端窗口。 2 键入: srvctl stop asm -n 其中, 是要从群集中删除的节点。 3 键入: srvctl remove asm -n 其中, 是要从群集中删除的节点。 从数据库层删除节点 1 在要删除的节点上作为 oracle 用户登录。 2 使用要删除的节点的公用名称(例如,如果要删除 node3-pub)键入以下命令: srvctl stop nodeapps -n node3-pub 忽略警告有关该监听程序的错误 CRS-0210。 3 在将要删除的节点上,请作为 root 登录。 4 如果要删除 Oracle 数据库软件,请键入下列命令: rm -rf /opt/oracle/product/10.2.0/db_1/* 从 Oracle 群集件层删除节点 1 在要删除的节点上,作为 root 用户键入以下命令来禁用 CRS: /crs/oracle/product/10.2.
重新安装软件 注意:重新安装软件将会清除硬盘驱动器上的所有信息。 注意:在重新安装软件之前,必须从系统中断开所有外部存储设备的连接。 注意:Dell 建议您定期对数据库和个别节点进行备份,以免丢失重要数据。仅在您没有其它选择时, 才重新安装节点软件。 使用 Dell Deployment CD 安装软件时,已在硬盘驱动器上创建了重新部署分区,其中包含了系统上安 装的所有软件映像。该重新部署分区使您可以快速重新部署 Oracle 软件。 如果要使用这种方法重新安装软件,需要将系统引导至重新部署分区。系统引导至此分区时,会自动 重新安装 Red Hat Linux 操作系统。 要使用此方法重新安装软件,请执行以下步骤: 1 断开外部存储设备的连接。 2 作为 root 用户登录至要重新安装软件的系统。 3 键入以下命令,删除 grub 配置文件: vi /etc/grub.
附加信息 支持的软件版本 表 1-7 列出了发行时支持的软件。要了解支持的最新硬件和软件,请访问“经 Dell|Oracle 测试和验证 的配置”网站 www.dell.com/10g,并下载 Oracle Database 10g EM64T 2.0 版 Solution Deliverable List (可提供的解决方案列表),以获得支持的最新版本。 表 1-7. 支持的软件版本 软件组件 支持的版本 Red Hat Enterprise Linux AS EM64T (第 4 版)更新 3 内核 2.6.9-34.ELsmp、 2.6.9-34.ELlargsmp Oracle 数据库版本 10.2.0.2 PowerPath for Linux 4.5.1 DKMS 2.0.11-1 QLogic HBA QLE2362 (QLA2322) 8.01.02-d4 QLogic HBA QLE2460 (QLA2400) 8.01.02-d4 QLogic HBA QLE2462 (QLA2400) 8.01.
确定专用网络接口 要确定为每个网络接口分配的接口设备名称,请执行以下步骤: 1 确定系统中 NIC 的类型。 查看表 1-8,以确定系统中有哪些集成 NIC。 您的添加式 NIC 可能是 Intel PRO/100 系列或 PRO/1000 系列插卡,也可能是 Broadcom NetXtreme Gigabit 插卡。您可能需要打开系统外壳,并查看插卡,以确定您安装的插卡。 表 1-8.
故障排除 表 1-9 提供了在部署或使用 Red Hat Enterprise Linux 和 Oracle 软件时可能遇到的问题的建议操作。 表 1-9. 故障排除 类别 问题 / 症状 原因 建议的纠正措施 数据库 使用增补软件集 10.2.0.1 正确启动的 节点可能会在增补软 件集 10.2.0.2 中启动 失败并出现 ORA-4031 错误。 RAC 实例使用的数 据库高速缓存大小 (db_cache_size) 大于 4 Gb。 在 init.ora 文件中,设置变量 set _ksmg_granule_size=16777216。 数据库 Lock Manager Service (LMS) 崩溃并出现 ORA-00600 错误: internal error code, arguments: [kclastf_1], [2], []. (内部错误代 码,参数:[kclastf_1], [2], []。) 起因是 Oracle 错误 应用 Oracle Metalink 网站 metalink.oracle.
表 1-9. 故障排除 (续) 类别 问题 / 症状 Enterprise Enterprise Manager Manager (企业管理器)代理 程序中断或失败。 原因 建议的纠正措施 未安装 Enterprise Manager 库。 键入以下命令,为数据库控制台重新创建配置文件 和库: emca -config dbcontrol db repos recreate 有关详细说明,请参阅 Oracle Metalink Note 330976.
表 1-9. 故障排除 (续) 类别 问题 / 症状 原因 建议的纠正措施 CRS 当您重新引导节点, 群集就绪服务 CSS 或键入 守护程序无法向仲 /etc/ini.d/init. 裁磁盘写入数据。 crs start 时, CRS 无法启动。 CRS 在运行 root.sh 时, CRS 无法启动。 检查并确保已定义 了公共和专用节点 名称并且可以对节 点名称执行 ping 命令。 CRS 在运行 root.sh 时, CRS 无法启动。 OCR 文件和投票磁 解决 I/O 问题,并尝试重新引导节点或从 盘无法访问。 /crs/oracle/product/10.2.0/crs/ 中运行 root.sh, 再次启动服务。 CRS 在重新安装之后运行 OCR 文件和投票磁 root.sh 时, CRS 无法 盘尚未清除,仍包 启动。 含旧信息。 • 尝试重新引导节点或从 /crs/oracle/product/10.2.0/crs/ 中键入 root.
表 1-9. 故障排除 (续) 类别 问题 / 症状 原因 CRS 在运行 root.sh 时, CRS 无法启动。 已尝试其它的 CRS 故障排除步骤, 但没有成功。 建议的纠正措施 1 将以下文本行添加到 root.sh,启用调试功能: set -x 2 尝试从 /crs/oracle/product/10.2.0/crs/ 中运行 root.
表 1-9. 故障排除 (续) 类别 问题 / 症状 原因 建议的纠正措施 软件安装 使用 Dell Deployment 使用的是副本, CD 1 安装软件时出现 而不是原始 dd 失败错误信息。 Red Hat CD。 刻录 CD 映像 (ISO) 时,如果使用 cdrecord 命令, 请使用正确的选项,如 -dao。 软件安装 当作为非 oracle 用户 在远程节点上没有 连接到数据库时, 设置所需的权限。 出现错误信息 ORA01034: ORACLE not available and Linux Error 13: Permission denied.
获得帮助 Dell 支持 有关系统使用方面的详情,请参阅随系统组件附带的说明文件。 有关白皮书、Dell 支持的配置和一般信息,请访问“经 Dell|Oracle 测试和验证的配置”网站 www.dell.com/10g。 要获得硬件和操作系统软件的 Dell 技术支持并下载最新的系统更新,请访问 Dell 支持 Web 站点 support.dell.com。Dell 联系信息包含在系统的《安装与故障排除指南》中。 我们现在还提供 Dell 企业培训与认证服务,请访问 www.dell.com/training 了解有关详情。此培训服务 可能不在所有地区提供。 Oracle 支持 有关 Oracle 软件和应用程序群集件的培训信息,请访问 Oracle 网站 www.oracle.com 或参阅 Oracle 说明文件,了解 Oracle 联系信息。 技术支持、下载和其它技术信息可以在 Oracle MetaLink 网站 metalink.oracle.
索引 A G ASM 配置数据库存储 , 103 公共网络 配置 , 79 安全措施 , 101 故障排除 , 121 安装 CRS, 89 Oracle Database 10g, 92 Oracle Database 10g (单个节点) , 105 Oracle RAC 10g, 89 Red Hat Enterprise Linux, 72 使用 Dell Deployment CD, 72 光纤信道群集设置 , 74 B 绑定 , 80 部署 Oracle RAC 10g , 78 C CRS 安装 , 89 CRS 配置 , 86 创建基础数据库 , 98, 107 F 附加配置选项 添加和删除节点 , 110 附加信息 , 119 确定专用网络接口 , 120 H 获得帮助 , 126 J 基础数据库 创建 , 98, 107 验证 , 100, 108 监听程序配置 , 96, 107, 113 节点 删除 , 115 添加和删除 , 110 M 密码 设置 , 101 O Oracle RAC 10g 安装 , 89 CRS 配置 , 86 共享存储配置 , 8
索引 配置公共网络 , 79 T 配置共享存储 , 83 添加和删除节点 , 110 配置专用和公共网络 , 79 配置专用网络 , 80 X 许可协议 , 71 Q 确定专用网络接口 , 120 群集 光纤信道硬件连接, 示例 , 74 群集设置 光纤信道 , 74 R Red Hat 更新系统软件包 , 73 Red Hat Enterprise Linux 安装 , 72 软件 要求 , 70, 119 重新安装 , 118 软件和硬件要求 , 70 Y 验证 存储配置 , 82 基础数据库 , 100, 108 软件配置 , 74 硬件配置 , 74 硬件 单个节点最低要求 , 71 光纤信道互连 , 75 光纤信道群集最低要求 , 70 硬件和软件配置 光纤信道 , 75 远程命令解释程序 (rsh) 禁用 , 101 Z 支持的存储设备 , 119 S 删除节点 , 115 示例 光纤信道群集硬件连接 , 74 说明文件 , 71 128 索引 重新安装 软件 , 118 专用网络 配置 , 79-80 确定接口 , 120
Systèmes Dell™ PowerEdge™ Oracle Database 10g Enterprise Edition pour EM64T (Extended Memory 64 Technology) Guide de déploiement pour Linux Version 2.1.1 w w w. d e l l . c o m | s u p p o r t . d e l l .
Remarques et avis REMARQUE : une REMARQUE indique des informations importantes qui peuvent vous aider à mieux utiliser votre ordinateur. AVIS : un AVIS vous avertit d'un risque de dommage matériel ou de perte de données et vous indique comment éviter le problème. ____________________ Les informations contenues dans ce document peuvent être modifiées sans préavis. © 2006 Dell Inc. Tous droits réservés. La reproduction de ce document de quelque manière que ce soit sans l'autorisation écrite de Dell Inc.
Sommaire . . . . . . . . . . . . . . . . . . 133 . . . . . . . . . . . . . . . . 134 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135 135 136 . . . . . . . . . . 136 Service de déploiement d'Oracle RAC 10g Configuration matérielle et logicielle requise Contrats de licence . . . . . Documentation importante . Avant de commencer . . . . . . . . . . . . . . . . . . . . . . . . . . .
. . . . 169 . . . . . . . 170 170 Configuration et déploiement d'Oracle Database 10g (nœud unique) Configuration du réseau public . . . . . . . . . . . . . . . Configuration du stockage de la base de données . . . . . Configuration du stockage de la base de données à l'aide du pilote de bibliothèque ASM . . . . . . . . . . . Installation d'Oracle Database 10g . . . . . . . . . . . . . Installation du correctif 10.2.0.2 pour Oracle Database 10g Configuration de l'écouteur . . . . . . . . . . . . . . . .
Ce document contient des informations concernant l'installation, la configuration, la réinstallation et l'utilisation d'Oracle Database 10g Enterprise Edition avec Real Application Clusters (Oracle RAC). Il fait partie du support fourni par Dell pour les configurations Oracle. Utilisez ce document avec les CD Dell Deployment, Red Hat Enterprise Linux et Oracle RAC 10g pour installer les logiciels.
Configuration matérielle et logicielle requise Avant d'installer le logiciel Oracle RAC sur le système : • Rendez-vous sur le site rhn.redhat.com et téléchargez les images des CD Red Hat. • Munissez-vous du kit CD d'Oracle. • Rendez-vous sur le site www.dell.com/10g et téléchargez les images de CD Dell Deployment correspondant à la solution installée. Gravez toutes les images téléchargées sur CD.
Tableau 1-2. Configuration matérielle requise - Cluster Fibre Channel (suite) Composant matériel Configuration Système de stockage Fibre Channel Dell|EMC Pour plus d'informations sur les configurations Oracle prises en charge par Dell, rendez-vous sur le site www.dell.com/10g. Commutateurs Ethernet Gigabit (deux) Pour plus d'informations sur les configurations Oracle prises en charge par Dell, rendez-vous sur le site www.dell.com/10g.
Avant de commencer Avant d'installer Red Hat Enterprise Linux, rendez-vous sur le site rhn.redhat.com et téléchargez les images ISO correspondant à la mise à jour trimestrielle de Red Hat Enterprise Linux. Gravez ensuite ces images sur CD. Pour télécharger ces fichiers, procédez comme suit : 1 Accédez au site de Red Hat Network (rhn.redhat.com). 2 Cliquez sur Channels (Canaux). 3 Dans le menu de gauche, cliquez sur Easy ISOs (Accès rapide aux images ISO).
6 Lorsque vous y êtes invité, insérez le disque Dell Deployment CD 2 dans le lecteur, puis chaque CD d'installation Red Hat. Le contenu des CD est copié dans la partition de déploiement qui est créée. Une fois la copie terminée, le système éjecte automatiquement le dernier CD et redémarre sur la partition de déploiement. Lorsque l'installation est terminée, le système redémarre automatiquement et l'Agent Red Hat Setup s'affiche.
7 Connectez le périphérique de stockage externe. 8 Rechargez les pilotes des cartes adaptateurs de bus hôte (HBA) à l'aide des commandes rmmod et modprobe. Par exemple, si vous utilisez des cartes HBA Emulex, recherchez le pilote lpfc à l'aide des commandes suivantes : rmmod lpfc modprobe lpfc Si vous utilisez des cartes HBA de type QLA, identifiez les pilotes utilisés à l'aide de la commande lsmod | grep qla et rechargez-les.
Figure 1-1. Connexions matérielles pour un cluster Fibre Channel Systèmes clients Commutateurs Ethernet Gigabit (réseau privé) LAN/WAN Systèmes PowerEdge (Oracle Database) Commutateurs Fibre Channel Dell | EMC (SAN) Systèmes de stockage Fibre Channel Dell | EMC CAT 5e/6 (NIC public) CAT 5e/6 (NIC Gigabit cuivre) Câbles à fibres optiques Câbles à fibres optiques supplémentaires Tableau 1-4.
Tableau 1-4. Interconnexions matérielles pour Fibre Channel (suite) Composant du cluster Connexions Chaque système de stockage Fibre Channel Dell | EMC Deux câbles CAT 5e ou CAT 6 connectés au réseau local Chaque commutateur Fibre Channel Dell | EMC Une à quatre connexions par câble à fibres optiques vers le système de stockage Fibre Channel Dell | EMC De une à quatre connexions à fibres optiques vers chaque commutateur Fibre Channel.
Configurations matérielle et logicielle pour Fibre Channel • Chaque nœud doit inclure au minium les composants matériels répertoriés dans le tableau 1-2.
Figure 1-2. Câblage dans un cluster Fibre Channel connecté à un SAN Nœud 1 Nœud 2 Ports HBA (2) Ports HBA (2) 0 1 0 1 Ports SP SP-B 3 2 1 0 0 1 2 3 SP-A Système de stockage CX700 Configuration à connexion directe Pour créer une configuration à connexion directe pour les nœuds du cluster (voir la figure 1-2), procédez comme suit : 1 Installez un câble optique entre la carte HBA0 du nœud 1 et le port 0 du processeur SP-A.
Figure 1-3. Câblage dans un cluster Fibre Channel connecté à un SAN Nœud 2 Nœud 1 Ports HBA (2) 0 1 Ports HBA (2) sw0 0 1 sw1 Ports SP 3 2 SP-B 1 0 0 1 Système de stockage CX700 2 3 SP-A Configuration avec connexion à un SAN Pour créer une configuration à 4 ports avec connexion à un SAN (voir la figure 1-3), procédez comme suit : 1 Installez un câble optique entre le port 0 du SP-A et le commutateur Fibre Channel 0.
8 Installez un câble optique entre le port 3 du SP-B et le commutateur Fibre Channel 0. 9 Installez un câble optique entre la carte HBA0 du nœud 1 et le commutateur Fibre Channel 0. 10 Installez un câble optique entre la carte HBA1 du nœud 1 et le commutateur Fibre Channel 1. 11 Installez un câble optique entre la carte HBA0 du nœud 2 et le commutateur Fibre Channel 0. 12 Installez un câble optique entre la carte HBA1 du nœud 2 et le commutateur Fibre Channel 1.
Configuration du réseau public REMARQUE : vérifiez que l'adresse IP publique est valide et routable. Si ce n'est déjà fait, effectuez les opérations ci-après sur chaque nœud pour configurer le réseau public : 1 Connectez-vous en tant que root.
3 Pour garantir une disponibilité optimale, modifiez le fichier /etc/modprobe.conf de manière à activer l'option de contrôle des liens. La valeur par défaut de miimon est 0, ce qui signifie que le contrôle des liens est désactivé. Réglez d'abord cette valeur sur 100 millièmes de seconde. Vous pourrez ensuite la modifier pour atteindre le niveau de performances requis.
7 Une fois les adresses IP privées définies sur chaque nœud, vérifiez le bon fonctionnement du réseau privé en lançant un test ping sur chaque adresse IP à partir d'un nœud. 8 Connectez-vous à chaque nœud et vérifiez que le réseau privé et ssh fonctionnent correctement en tapant : ssh 9 Sur chaque nœud, modifiez le fichier /etc/hosts en ajoutant les lignes suivantes : 127.0.0.1 localhost.
Vérification de la configuration des systèmes de stockage Lors de la configuration des clusters, créez des partitions sur votre système de stockage Fibre Channel. Pour que vous puissiez créer les partitions, tous les nœuds doivent pouvoir détecter les périphériques de stockage externes.
Désactivation de SELinux Pour exécuter Oracle Database, vous devez désactiver SELinux. Pour le désactiver temporairement, procédez comme suit : 1 Connectez-vous en tant que root. 2 À l'invite de commande, tapez : setenforce 0 Pour désactiver SELinux de façon permanente, effectuez les opérations suivantes sur tous les nœuds : 1 Ouvrez le fichier grub.conf. 2 Recherchez la ligne de commande du noyau et ajoutez l'option suivante : selinux=0 Exemple : kernel /vmlinuz-2.6.9-34.
Pour configurer le stockage à l'aide d'OCFS2, procédez comme suit : 1 Sur le premier nœud, connectez-vous en tant que root. 2 Procédez comme suit : a Démarrez le système X Window en tapant : startx b Générez le fichier de configuration OCFS2 (/etc/ocfs2/cluster.conf) avec le nom de cluster par défaut “ocfs2”. Pour ce faire, tapez la commande suivante dans un terminal : ocfs2console c Dans le menu, cliquez sur Cluster→ Configure Nodes (Configurer les nœuds).
5 Si vous utilisez un cluster Fibre Channel, à partir du premier nœud, créez une partition sur chacun des deux autres périphériques de stockage partagés externes. Pour ce faire, utilisez fdisk comme suit : a Créez une partition principale pour l'ensemble du périphérique en tapant : fdisk /dev/emcpowerx Pour consulter l'aide de fdisk, tapez h.
Configuration du stockage partagé pour Oracle Clusterware et Oracle Database à l'aide ASM Configuration du stockage partagé pour Oracle Clusterware Cette section indique comment configurer le stockage partagé pour Oracle Clusterware. Configuration du stockage partagé à l'aide de RAW Device Interface 1 Sur le premier nœud, créez trois partitions sur l'un des périphériques de stockage externes, à l'aide de fdisk.
Configuration du stockage partagé de la base de données à l'aide d'ASM Pour configurer le cluster avec ASM, effectuez la procédure suivante sur tous les nœuds : 1 Connectez-vous en tant que root. 2 Sur tous les nœuds, créez une partition sur chacun des deux autres périphériques de stockage externes, à l'aide de fdisk : a Créez une partition principale pour l'ensemble du périphérique en tapant : fdisk /dev/emcpowerx Pour consulter l'aide de fdisk, tapez h.
4 Pour ajouter un disque ASM supplémentaire (par exemple, ASM3), éditez le fichier /etc/udev/scripts/raw-dev.sh sur tous les nœuds et ajoutez les entrées appropriées, indiquées en gras ci-dessous : MAKEDEV raw mv /dev/raw/raw1 /dev/raw/votingdisk mv /dev/raw/raw2 /dev/raw/ocr.dbf mv /dev/raw/raw3 /dev/raw/spfile+ASM.ora mv /dev/raw/raw4 /dev/raw/ASM1 mv /dev/raw/raw5 /dev/raw/ASM2 mv /dev/raw/raw6 /dev/raw/ASM3 chmod 660 /dev/raw/{votingdisk,ocr.dbf,spfile+ASM.ora,ASM1,ASM2,ASM3} chown oracle.
5 Vérifiez que les disques ASM sont créés et marqués pour l'utilisation d'ASM. Dans la fenêtre de terminal, tapez la commande suivante et appuyez sur : service oracleasm listdisks Les disques créés à l'étape 3 s'affichent. Exemple : ASM1 ASM2 6 Assurez-vous que les autres nœuds peuvent accéder aux disques ASM créés à l'étape 3.
Installation d'Oracle Clusterware 1 Connectez-vous en tant que root. 2 Démarrez le système X Window en tapant : startx 3 Ouvrez une fenêtre de terminal et tapez : xhost + 4 Montez le CD Oracle Clusterware. 5 Tapez : /cluvfy/runcluvfy.sh stage -pre crsinst -n nœud1,nœud2 -r 10gR2 -verbose où nœud1 et nœud2 sont les noms d'hôte public. Si le système n'est pas configuré correctement, corrigez les incidents puis relancez la commande runcluvfy.sh (voir ci-dessus).
12 Dans la fenêtre Specify Cluster Configuration (Définir la configuration du cluster), ajoutez les nœuds qui seront gérés par Oracle Clusterware. a Cliquez sur Add (Ajouter). b Indiquez un nom dans les champs Public Node Name (Nom du nœud public), Private Node Name (Nom du nœud privé) et Virtual Host Name (Nom d'hôte virtuel), puis cliquez sur OK. c Recommencez l'étape a et l'étape b pour les autres noeuds. d Entrez un nom dans le champ Cluster Name (Nom du cluster). Par défaut, ce nom est crs.
15 Dans la fenêtre Specify Voting Disk Location (Indiquer l'emplacement du disque de vote), procédez comme suit : a Dans la zone OCR Configuration (Configuration du registre du cluster Oracle), sélectionnez External Redundancy (Redondance externe). b Dans le champ Specify OCR Location (Indiquer l'emplacement du registre du cluster Oracle), tapez : /dev/raw/votingdisk Ou /u01/votingdisk si vous utilisez OCFS2. c Cliquez sur Next. 16 Dans la fenêtre Summary (Résumé), cliquez sur Install.
Installation d'Oracle Database 10g 1 Connectez-vous en tant que root et tapez : cluvfy stage -pre dbinst -n nœud1,nœud2 -r 10gR2 -verbose où nœud1 et nœud2 sont les noms d'hôte public. Si le système n'est pas configuré correctement, voir “Dépannage” pour plus d'informations. Si le système est configuré correctement, le message suivant s'affiche : Pre-check for database installation was successful. (La vérification préalable pour l'installation de la base de données a abouti.
11 Dans la fenêtre Summary (Résumé), cliquez sur Install. Oracle Database est installé sur le cluster. La fenêtre Execute Configuration scripts (Exécuter les scripts de configuration) s'affiche. 12 Suivez les instructions affichées dans la fenêtre puis cliquez sur OK. 13 Dans la fenêtre End of Installation (Fin de l'installation), cliquez sur Exit. Correctifs RAC après déploiement Cette section fournit des informations sur les correctifs nécessaires au déploiement d'Oracle RAC 10g.
Mise à niveau de l'installation d'Oracle Clusterware 1 Sur le premier nœud, connectez-vous en tant qu'utilisateur root. 2 Arrêtez Oracle Clusterware. Pour ce faire, tapez la commande suivante dans la fenêtre de terminal et appuyez sur : crsctl stop crs 3 Sur les autres nœuds, ouvrez une fenêtre de terminal et recommencez l'étape 1 et l'étape 2. 4 Sur le premier nœud, connectez-vous en tant qu'utilisateur root.
Mise à niveau de l'installation de RAC 1 Sur le premier nœud, ouvrez une fenêtre de terminal. 2 Connectez-vous en tant qu'utilisateur oracle. 3 Exécutez Oracle Universal Installer à partir du nœud sur lequel vous avez installé Oracle Database. a Sur le premier nœud, ouvrez une fenêtre de terminal. b Connectez-vous en tant qu'utilisateur oracle. c Arrêtez les applications Oracle Clusterware sur tous les nœuds.
16 Recommencez l'étape 14 et l'étape 15 sur chacun des autres nœuds (un à la fois). Lorsque l'installation est terminée, la fenêtre de fin s'affiche. REMARQUE : cette opération peut prendre plusieurs minutes. 17 Dans la fenêtre End of Installation (Fin de l'installation), cliquez sur Exit. 18 Cliquez sur Yes pour quitter Oracle Universal Installer. 19 Sur le premier nœud, ouvrez une fenêtre de terminal. 20 Connectez-vous en tant qu'utilisateur oracle.
6 Dans la fenêtre TOPSNodes, cliquez sur Select All Nodes (Sélectionner tous les nœuds), puis cliquez sur Next. 7 Dans la fenêtre Welcome (Bienvenue), sélectionnez Listener Configuration (Configuration de l'écouteur), puis cliquez sur Next. 8 Dans la fenêtre Listener Configuration→ Listener (Configuration de l'écouteur - Écouteur), sélectionnez Add (Ajouter) et cliquez sur Next.
8 Dans la fenêtre Database Credentials (Autorisations de la base de données) : a Cliquez sur Use the same password for all accounts (Utiliser le même mot de passe pour tous les comptes). b Complétez les champs relatifs au mot de passe. c 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.
19 Sur chaque nœud, effectuez les opérations suivantes : a Pour savoir quelle instance de base de données se trouve sur ce nœud, tapez : srvctl status database -d b Ajoutez la variable d'environnement ORACLE_SID au profil utilisateur oracle, en tapant : echo "export ORACLE_SID=bddracx" >> /home/oracle/.bash_profile source /home/oracle/.bash_profile où bddracx est l'identificateur de l'instance de base de données attribué au nœud.
10 Dans la fenêtre Storage Options (Options de stockage), cliquez sur Automatic Storage Management (ASM), puis cliquez sur Next. 11 Dans la fenêtre Create ASM Instance (Création d'une instance ASM), procédez comme suit : a Dans le champ SYS password (Mot de passe SYS), entrez un mot de passe. b Sélectionnez Create server parameter file (SPFILE) (Créer le fichier de paramètres du serveur [SPFILE]).
19 Dans la fenêtre Database Services (Services de base de données), configurez les services, le cas échéant, puis cliquez sur Next. 20 Dans la fenêtre Initialization Parameters (Paramètres d'initialisation), procédez comme suit : a Sélectionnez Custom (Personnaliser). b Dans Shared Memory Management (Gestion de la mémoire partagée), sélectionnez Automatic (Automatique). c Dans les fenêtres SGA Size (Taille SGA) et PGA Size (Taille PGA), entrez les informations appropriées. d Cliquez sur Next.
26 Sur un nœud, tapez : srvctl status database -d nom de la base de données où nom de la base de données est l'identificateur global que vous avez attribué à la base de données dans l'assistant DBCA. Si les instances de la base de données sont en cours d'exécution, un message de confirmation s'affiche. Dans le cas contraire, tapez : srvctl start database -d nom de la base de données où nom de la base de données est l'identificateur global que vous avez attribué à la base de données dans l'assistant DBCA.
Configuration du réseau public Assurez-vous que le réseau public fonctionne et qu'une adresse IP et un nom d'hôte sont attribués au système. Configuration du stockage de la base de données Configuration du stockage de la base de données à l'aide du système de fichiers ex3 Si vous disposez de périphériques de stockage supplémentaires, procédez comme suit : 1 Connectez-vous en tant que root.
Configuration du stockage de la base de données à l'aide d'Oracle ASM L'exemple suivant suppose que vous disposez de deux périphériques de stockage (sdb et sdc) pour créer un groupe de disques pour les fichiers de la base de données, et un autre pour les fichiers de récupération flashback et les fichiers journaux d'archive. 1 Connectez-vous en tant que root.
3 Redémarrez le système. 4 Ouvrez une fenêtre de terminal et connectez-vous en tant que root.
5 Connectez-vous en tant qu'utilisateur oracle. 6 Démarrez Oracle Universal Installer. Dans la fenêtre de terminal, tapez la commande suivante et appuyez sur : /runInstaller 7 Dans la fenêtre Select Installation Method (Sélection de la méthode d'installation), cliquez sur Advanced Installation (Installation avancée) puis sur Next. 8 Dans la fenêtre Select Installation Type (Sélectionner le type d'installation), cliquez sur Enterprise Edition, puis cliquez sur Next.
Installation du correctif 10.2.0.2 pour Oracle Database 10g Téléchargement et extraction du programme d'installation 1 Connectez-vous en tant qu'utilisateur oracle. 2 Créez un dossier pour les correctifs et les utilitaires dans /opt/oracle/patches. 3 Ouvrez un navigateur Web et accédez au site Web d'Oracle Metalink (metalink.oracle.com). 4 Connectez-vous à votre compte Oracle Metalink. 5 Recherchez le correctif 4547817 pour la plate-forme Linux x86-64 (AMD64/EM64T).
10 Dans une fenêtre de terminal, tapez la commande suivante et appuyez sur : /opt/oracle/product/10.2.0/db_1/root.sh 11 Appuyez sur pour accepter les réponses par défaut générées par root.sh. REMARQUE : cette opération peut prendre plusieurs minutes. 12 Une fois l'exécution de root.sh terminée, revenez à la fenêtre Execute Configuration Scripts (Exécution des scripts de configuration) et cliquez sur OK. 13 Dans la fenêtre End of Installation (Fin de l'installation), cliquez sur Exit.
6 Dans la fenêtre Database Identification (Identification de la base de données), entrez le nom global de la base de données que vous créez dans les champs Global Database Name (Nom global de la base de données) et SID Prefix (Préfixe SID), puis cliquez sur Next. 7 Dans la fenêtre Management Options (Options de gestion), cliquez sur Next. 8 Dans la fenêtre Database Credentials (Autorisations de la base de données), entrez et validez les mots de passe, puis cliquez sur Next.
Création de la base de données initiale à l'aide d'Oracle ASM Si vous avez configuré le stockage à l'aide d'Oracle ASM, procédez comme suit pour créer une base de données initiale avec l'assistant DBCA : 1 En tant qu'utilisateur oracle, démarrez l'assistant DBCA en tapant : dbca & 2 Dans la fenêtre de bienvenue, cliquez sur Next. 3 Dans la fenêtre Operations (Opérations), cliquez sur Create a Database (Créer une base de données), puis cliquez sur Next.
14 Dans la fenêtre Disk Group (Groupe de disques), entrez les informations relatives aux fichiers de récupération flashback, puis cliquez sur OK. a b Entrez un nom pour le groupe de disques à créer (GDflashback, par exemple), sélectionnez External Redundancy (Redondance externe), puis sélectionnez les disques à inclure dans le groupe. Si vous utilisez RAW Device Interface, sélectionnez /dev/raw/ASM2. Une fenêtre indique que la création du groupe de disques est en cours.
Ajout et suppression de nœuds Cette section indique comment ajouter ou supprimer un nœud dans un cluster. REMARQUE : le nouveau nœud doit posséder la même configuration que les nœuds existants (matériel et système d'exploitation). Pour ajouter un nœud à un cluster existant : • Ajoutez le nœud à la couche réseau. • Configurez le stockage partagé. • Ajoutez le nœud aux couches d'Oracle Clusterware, de la base de données et de l'instance de base de données.
Pour désactiver SELinux de façon permanente, procédez comme suit : 1 Ouvrez le fichier grub.conf. 2 Recherchez la ligne de commande du noyau et ajoutez l'option suivante : selinux=0 Exemple : kernel /vmlinuz-2.6.9-34.ELlargesmp ro root=LABEL=/ apic rhgb quiet selinux=0 3 Redémarrez le système. 4 Ouvrez une fenêtre de terminal et connectez-vous en tant que root. 5 Copiez le fichier /etc/sysconfig/rawdevices depuis l'un des nœuds existants du cluster vers le même emplacement sur le nouveau nœud.
Ajout d'un nouveau noeud à la couche Oracle Clusterware 1 Connectez-vous en tant qu'utilisateur oracle sur l'un des nœuds existants. 2 Accédez au répertoire /crs/oracle/product/10.2.0/crs/oui/bin et tapez ./addNode.sh pour lancer Oracle Universal Installer. 3 Dans la fenêtre de bienvenue, cliquez sur Next. 4 Dans la fenêtre Specify Cluster Nodes to Add to Installation (Définition des nœuds à ajouter à l'installation), entrez les noms public et privé du nouveau nœud, puis cliquez sur Next.
Reconfiguration de l'écouteur Cette section indique comment reconfigurer l'écouteur, qui est requis pour la connexion des clients distants à la base de données. REMARQUE : les étapes ci-dessous supposent que vous souhaitiez arrêter l'écouter et le reconfigurer. Si tel n'est pas le cas, la procédure à suivre peut être légèrement différente. Sur un seul nœud, effectuez les opérations suivantes : 1 Connectez-vous en tant que root.
Ajout d'un nouveau nœud à la couche de l'instance de base de données 1 Sur l'un des nœuds existants, connectez-vous en tant qu'utilisateur oracle et démarrez l'assistant DBCA en tapant : dbca & 2 Dans la fenêtre de bienvenue, cliquez sur Next. 3 Dans la fenêtre Operations, cliquez sur Instance Management (Gestion des instances), puis cliquez sur Next. 4 Dans la fenêtre Instance Management (Gestion des instances), cliquez sur Add Instance (Ajouter une instance), puis cliquez sur Next.
Suppression d'un nœud du cluster Lorsque vous effectuez les procédures décrites dans cette section, vérifiez que le nœud sélectionné est bien celui qui doit être supprimé. Suppression du nœud de la couche de l'instance de base de données 1 Connectez-vous en tant qu'utilisateur oracle. 2 Sur l'un des nœuds restants, tapez : dbca & 3 Dans la fenêtre de bienvenue, cliquez sur Next. 4 Dans la fenêtre Operations, cliquez sur Instance Management (Gestion des instances), puis cliquez sur Next.
Reconfiguration de l'écouteur 1 Tapez netca. 2 Dans la fenêtre Real Application Clusters→ Configuration, sélectionnez Cluster Configuration (Configuration du cluster) et cliquez sur Next. 3 Dans la fenêtre Real Application Clusters→ Active Nodes (Nœuds actifs), sélectionnez le noeud à supprimer et cliquez sur Next. 4 Dans la fenêtre Welcome (Bienvenue), sélectionnez Listener Configuration (Configuration de l'écouteur), puis cliquez sur Next.
Suppression d'un nœud de la couche de la base de données 1 Sur le nœud à supprimer, connectez-vous en tant qu'utilisateur oracle. 2 Tapez la commande suivante en utilisant le nom public du nœud supprimé (node3-pub dans cet exemple) : srvctl stop nodeapps -n node3-pub Ne tenez pas compte de l'erreur CRS-0210 concernant l'écouteur. 3 Sur le nœud à supprimer, connectez-vous en tant qu'utilisateur root. 4 Si vous souhaitez supprimer Oracle Database, tapez la commande suivante : rm -rf /opt/oracle/product/10.2.
Pour réinstaller les logiciels avec cette méthode, vous devez démarrer le système depuis la partition de redéploiement. Lorsque le système démarre depuis cette partition, il réinstalle automatiquement le système d'exploitation Red Hat Linux. La procédure est la suivante : 1 Déconnectez le périphérique de stockage externe. 2 Connectez-vous en tant qu'utilisateur root sur le système sur lequel vous souhaitez réinstaller les logiciels. 3 Éditez le fichier de configuration grub en tapant : vi /etc/grub.
Tableau 1-7. Versions de logiciels prises en charge (suite) Composant logiciel Versions prises en charge PERC 5/e, PERC 5/I (megaraid_sas) 00.00.02.00 Pilote de NIC Intel PRO/100 S (e100) 6.1.16-k3-NAPI Pilote de NIC Intel PRO/1000 XT/MT/MT DP (e1000) 6.1.16-k3-NAPI Broadcom NetXtreme BCM5704 (tg3) 3.43-rh Broadcom NetXtreme BCM5708 (bnx2) 1.4.
5 Déterminez quelles interfaces Ethernet (ethX) ont été affectées au type de NIC Gigabit connecté au commutateur Gigabit. Si une seule entrée de /etc/modprobe.conf correspond à votre type de module de pilote, vous avez correctement identifié l'interface du réseau privé. 6 Si le système est équipé de plusieurs NIC d'un même type, déterminez l'interface Ethernet qui est attribuée à chacun d'entre eux.
Tableau 1-9. Dépannage (suite) Catégorie Incident/ Symptôme Cause Mesure recommandée Base de données Fin anormale de l'instance RAC avec l'erreur ORA-600 [kclcls_5]. Cet incident est dû au bogue Oracle 4639236. Reportez-vous au site d'Oracle Metalink (metalink.oracle.com). Appliquez le correctif 4639236 disponible sur le site metalink.oracle.com. Base de données ERROR IN KQLMBIVG SEE LCK TRACE FILE" [LT] [LB] KJUSERCLIENTLOCK Cet incident est dû au bogue Oracle 4690794.
Tableau 1-9. Dépannage (suite) Catégorie Incident/ Symptôme Cause Mesure recommandée Performances et stabilité Un avertissement signalant un type d'interface inconnu est consigné dans le journal d'alertes Oracle. L'interface publique est configurée pour gérer les communications du cluster (interface privée). Forcez les communications du cluster à utiliser l'interface privée en exécutant la procédure suivante sur un seul nœud : 1 Connectez-vous en tant qu'utilisateur oracle.
Tableau 1-9. 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-9. Dépannage (suite) Catégorie Incident/ Symptôme Cause Mesure recommandée CRS Les services CRS échouent au redémarrage des nœuds ou lorsque vous tapez /etc/ini.d/init.crs start. Le démon CSS des services CRS ne parvient pas à écrire sur le disque quorum. • Essayez de relancer le service en redémarrant le nœud ou en tapant root.sh à partir du répertoire /crs/oracle/product/10.2.0/crs/.
Tableau 1-9. Dépannage (suite) Catégorie Incident/ Symptôme Cause Mesure recommandée CRS Les services CRS ne démarrent pas lors de l'exécution du script root.sh. Le fichier OCR et le disque de vote sont inaccessibles. Corrigez tout problème éventuel d'E-S, puis essayez de lancer à nouveau le service en redémarrant le nœud ou en exécutant le script root.sh à partir du répertoire /crs/oracle/product/10.2.0/crs/. CRS Les services CRS ne démarrent pas lorsque vous exécutez le script root.
Tableau 1-9. Dépannage (suite) Catégorie Incident/ Symptôme Cause CRS Les services CRS ne démarrent pas lors de l'exécution du script root.sh. D'autres tentatives de dépannage des services CRS échouent. Mesure recommandée 1 Ajoutez la ligne suivante au script root.sh pour activer le débogage : set -x 2 Essayez de redémarrer le service en exécutant le script root.sh à partir du répertoire suivant : /crs/oracle/product/10.2.
Tableau 1-9. Dépannage (suite) Catégorie Incident/ Symptôme Cause CRS Le nœud redémarre en boucle. L'interconnexion privée est désactivée. Assistant DBCA Le système ne répond pas lorsque vous cliquez sur OK dans la fenêtre DBCA Summary (Résumé de l'assistant DBCA). Incident de synchronisation de l'environnement JRE (Java Runtime Environment). Cliquez à nouveau. Si vous n'obtenez toujours pas de réponse, relancez l'assistant DBCA.
Tableau 1-9. Dépannage (suite) Catégorie Incident/ Symptôme Cause Mesure recommandée Installation des logiciels L'installation du logiciel Oracle sur les nœuds échoue. Les horloges système des nœuds ne sont pas synchronisées. Procédez de l'une des façons suivantes : • Vérifiez que l'horloge système du nœud sur lequel le logiciel Oracle est installé est en avance par rapport à celle des autres nœuds. • Configurez l'un des nœuds comme serveur NTP pour synchroniser les autres nœuds du cluster.
Obtention d'aide Dell Support (Support Dell) Pour plus de précisions sur l'utilisation du système, reportez-vous à la documentation fournie avec ses composants. Vous trouverez des livres blancs, des détails sur les configurations Dell prises en charge et des informations générales sur le site www.dell.com/10g. Pour obtenir une assistance technique sur votre matériel ou le système d'exploitation et télécharger les dernières mises à jour appropriées pour le système, rendez-vous sur le site support.dell.com.
Index A Configuration (suite) Stockage de la base de données (nœud unique) à l'aide d'ASM, 171 Stockage de la base de données (nœud unique) via ex3, 170 Stockage partagé, 149 Configuration du réseau public, 145 Configuration d'Oracle 10g, 138 Vérification des configurations matérielle et logicielle, 138 Contrats de licence, 135 D Base de données initiale Création, 166, 175 Vérification, 169, 176 Configuration d’Oracle Database 10g (nœud unique) Création de la base de données initiale, 175 C Configu
Index I N Informations supplémentaires, 187 Définition de l'interface du réseau privé, 188 Nœud Ajout et suppression, 179 Retrait, 184 Installation CRS, 156 Oracle Database 10g, 159 Oracle Database 10g (nœud unique), 172 Oracle RAC 10g, 155 Red Hat Enterprise Linux, 136 Utilisation du CD Dell Deployment, 136 L Logiciels Configuration requise, 134, 187 Réinstallation, 186 M Mots de passe Définition, 169 Index Réseau privé Configuration, 144-145 Définition de l'interface, 188 Réseau public Conf
Dell™ PowerEdge™-Systeme Oracle Database 10g Extended Memory 64 Technology (EM64T) Enterprise Edition Linux Einrichtungsanleitung Version 2.1.1 w w w. d e l l . c o m | s u p p o r t . d e l l .
Anmerkungen und Hinweise ANMERKUNG: Eine ANMERKUNG macht auf wichtige Informationen aufmerksam, die die Arbeit mit dem Computer erleichtern. HINWEIS: Ein HINWEIS warnt vor möglichen Beschädigungen der Hardware oder vor Datenverlust und zeigt auf, wie derartige Probleme vermieden werden können. ____________________ Irrtümer und technische Änderungen vorbehalten. © 2006 Dell Inc. Alle Rechte vorbehalten. Die Reproduktion dieses Dokuments in jeglicher Form ist ohne schriftliche Genehmigung von Dell Inc.
Inhalt . . . . . . . . . . . . . . . . . . . . . 205 . . . . . . . . . . . . . . . . . . . 206 . . . . . . . . . . . . . . . . . . . . . . . . . 207 207 208 Oracle RAC 10g Einrichtungsservice Software- und Hardwareanforderungen Lizenzverträge . . . . . Wichtige Dokumentation Bevor Sie beginnen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Installation und Konfiguration von Red Hat Enterprise Linux . . . . . . . . .
. . . 242 . . . . . . 242 243 Konfigurieren und Einrichten von Oracle Database 10g (Einzelknoten) Konfiguration des öffentlichen Netzwerks . . . . . . . . . . Konfigurieren des Datenbankspeichers . . . . . . . . . . . Konfiguration des Datenbankspeichers mit dem Oracle ASM-Bibliothekstreiber . . . . . . . . . . . Installation von Oracle-Datenbank 10g . . . . . . . . . . . . Installation des Patchsets 10.2.0.2 für Oracle Database 10g . Konfiguration des Listeners. . . . . . . . . . . . . . . . . .
Dieses Dokument enthält Informationen über die Installation, Konfiguration, Neuinstallation und das Verwenden der Software Oracle Database 10g Enterprise Edition mit Oracle Real Application Clusters (RAC) auf Ihrer unterstützten Dell|Oracle-Konfiguration. Verwenden Sie dieses Dokument zusammen mit den CDs für Dell Deployment, Red Hat Enterprise Linux und Oracle RAC 10g, um die Software zu installieren.
Software- und Hardwareanforderungen Bevor Sie die Oracle-RAC-Software auf dem System installieren: • Laden Sie die Red Hat CD-Images von der Red-Hat-Website rhn.redhat.com herunter. • Halten Sie das Oracle-CD-Kit bereit. • Laden Sie die entsprechenden Dell Deployment CD-Images für die zu installierende Lösung im Bereich für von Dell für Oracle unterstützten Konfigurationen (Dell|Oracle Tested and Validated Configurations) unter www.dell.com/10g herunter.
Tabelle 1-2. Hardware-Mindestanforderungen – Fibre-Channel-Cluster (Fortsetzung) Hardwarekomponente Konfiguration Gigabit-Ethernet-Switch (zwei) Informationen über unterstützte Konfigurationen erhalten Sie im Bereich für von Dell|Oracle geprüfte und zugelassene Konfigurationen unter www.dell.com/10g. Dell|EMC Fibre-Channel-Switch (zwei) Acht Ports für zwei bis sechs Knoten Tabelle 1-3.
Bevor Sie beginnen Bevor Sie das Betriebssystem Red Hat Enterprise Linux installieren, laden Sie die ISO-Images für das vierteljährliche Update von Red Hat Enterprise Linux von rhn.redhat.com herunter, und brennen Sie diese Images auf CDs. Gehen Sie zum Herunterladen der ISO-Images wie folgt vor: 1 Rufen Sie die Website vom Red Hat Network unter rhn.redhat.com auf. 2 Klicken Sie auf Channels. 3 Klicken Sie im linken Menü auf Easy ISOs. 4 Klicken Sie im linken Menü auf der Seite Easy ISOs auf All.
6 Legen Sie nach entsprechender Aufforderung die Dell Deployment CD 2 und die einzelnen Red-HatInstallations-CDs ein. Eine Deployment-Partition wird erstellt und der Inhalt der CDs dorthin kopiert. Nach dem Kopiervorgang wird die letzte CD automatisch ausgeworfen, und das System startet von der Einrichtungspartition. Nach abgeschlossener Installation startet das System automatisch neu, und der Red Hat Setup-Agent wird angezeigt.
7 Schließen Sie das externe Speichergerät an. 8 Laden Sie den bzw. die HBA-Treiber mit den Befehlen rmmod und modprobe neu. Geben Sie beispielsweise bei Emulex-HBAs zum Neuladen des lpfc-Treibers folgende Befehle ein: rmmod lpfc modprobe lpfc Identifizieren Sie bei QLA-HBAs die geladenen Treiber (lsmod | grep qla), und laden Sie dieses Treiber neu.
Abbildung 1-1.
Tabelle 1-4.
Konfigurationen der Fibre-Channel-Hardware und -Software • Jeder Knoten muss mindestens über die Hardware-Peripheriekomponenten aus Tabelle 1-2 verfügen.
Abbildung 1-2. Verkabelung bei einem direkt verbundenen Fibre-Channel-Cluster Knoten 1 Knoten 2 HBA-Ports (2) HBA-Ports (2) 0 1 0 1 SP-Ports SP-B 3 2 1 0 0 1 2 3 SP-A CX700-Speichersystem Direkt verbundene Konfiguration (Direct-Attach) So richten Sie eine direkt verbundene Konfiguration (siehe Abbildung 1-2) für die Knoten ein: 1 Installieren Sie ein Glasfaserkabel zwischen HBA0 von Knoten 1 und Port 0 von SP-A.
Abbildung 1-3. Verkabelung bei einem SAN-verbundenen Fibre-Channel-Cluster Knoten 2 Knoten 1 HBA-Ports (2) HBA-Ports (2) 0 1 sw0 0 1 sw1 SP-Ports 3 2 SP-B 1 0 0 1 2 3 SP-A CX700-Speichersystem SAN-verbundene Konfiguration So richten Sie eine SAN-verbundene Konfiguration mit vier Anschlüssen (siehe Abbildung 1-3) für die Knoten ein: 1 Installieren Sie ein Glasfaserkabel zwischen SP-A-Port 0 und Fibre-Channel-Switch 0.
7 Installieren Sie ein Glaserfaserkabel zwischen SP-B-Port 2 und Fibre-Channel-Switch 1. 8 Installieren Sie ein Glaserfaserkabel zwischen SP-B-Port 3 und Fibre-Channel-Switch 0. 9 Installieren Sie ein Glaserfaserkabel zwischen HBA0 von Knoten 1 mit Fibre-Channel-Switch 0. 10 Installieren Sie ein Glasfaserkabel zwischen HBA1 von Knoten 1 und Fibre-Channel-Switch 1. 11 Installieren Sie ein Glasfaserkabel zwischen HBA0 von Knoten 2 mit Fibre-Channel-Switch 0.
Konfiguration des öffentlichen Netzwerks ANMERKUNG: Stellen Sie sicher, dass die öffentliche IP-Adresse gültig und routingfähig ist. Falls noch nicht erfolgt, konfigurieren Sie das öffentliche Netzwerk, indem Sie für jeden Knoten die folgenden Schritte durchführen: 1 Melden Sie sich als root beim System an.
3 Um die Verfügbarkeit zu erhöhen, öffnen Sie die Datei /etc/modprobe.conf und aktivieren Sie die Option für Verbindungsüberwachung (Link Monitoring). Der Standardwert für miimon ist 0, wodurch die Verbindungsüberwachung deaktiviert wird. Ändern Sie den Wert zunächst auf 100 Millisekunden, und passen Sie ihn danach entsprechend der benötigten Leistung an, wie im folgenden Beispiel gezeigt.
6 Führen Sie auf jedem Knoten den Befehl ifconfig aus, um sicherzustellen, dass das private Netzwerk funktioniert. Die private IP-Adresse für den Knoten sollte der privaten Schnittstelle bond0 zugewiesen werden. 7 Senden Sie nach dem Einrichten der privaten IP-Adressen Ping-Befehle von einem der Knoten an alle eingerichteten Adressen, um das private Netzwerk zu testen.
Überprüfen der Speicherkonfiguration Erstellen Sie bei der Konfiguration der Cluster Partitionen auf dem Fibre-Channel-Speichersystem. Um diese Partitionen erstellen zu können, müssen alle Clusterknoten die externen Speichergeräte erkennen können.
SELinux deaktivieren Damit die Oracle-Datenbank ausgeführt werden kann, müssen Sie SELinux deaktivieren. Um SELinux vorübergehend zu deaktivieren, gehen Sie wie folgt vor: 1 Melden Sie sich als root beim System an. 2 Geben Sie in der Befehlszeile ein: setenforce 0 Um SELinux dauerhaft zu deaktivieren, führen Sie auf allen Knoten folgende Schritte durch: 1 Öffnen Sie die Datei grub.conf. 2 Ergänzen Sie auf der Kernel-Befehlszeile die folgende Option: selinux=0 Zum Beispiel: kernel /vmlinuz-2.6.9-34.
So konfigurieren Sie Speicher mit OCFS2: 1 Melden Sie sich am ersten Knoten als Benutzer root an. 2 Gehen Sie wie folgt vor: a Starten Sie das X-Window-System, indem Sie eingeben: startx b Erzeugen Sie die OCFS2-Konfigurationsdatei (/etc/ocfs2/cluster.conf) mit dem StandardClusternamen ocfs2, indem Sie in einem Terminal Folgendes eingeben: ocfs2console c Klicken Sie im Menü auf Cluster→ Configure Nodes (Knoten konfigurieren). Wenn der Cluster offline ist, wird er durch die Konsole gestartet.
5 Erstellen Sie bei einem Fibre-Channel-Cluster auf dem ersten Knoten mit fdisk eine Partition auf jedem der zwei anderen externen Speichergeräte: a Erstellen Sie eine Primärpartition für das gesamte Gerät, indem Sie eingeben: fdisk /dev/emcpowerx Hilfe für das Dienstprogramm fdisk erhalten Sie, indem Sie h drücken.
Gemeinsamen Speicher für Oracle Clusterware und die Oracle-Datenbank mit ASM konfigurieren Konfiguration des gemeinsamen Speichers für Oracle Clusterware Dieser Abschnitt enthält Anweisungen für die Konfiguration von gemeinsamem Speicher für Oracle Clusterware.
Konfiguration des gemeinsamem Speichers für die Datenbank mit ASM Um den Cluster mit ASM zu konfigurieren, führen Sie auf allen Knoten folgende Schritte durch: 1 Melden Sie sich als root beim System an. 2 Erstellen Sie auf allen Knoten mit dem Dienstprogramm fdisk eine Partition auf jedem der zwei anderen externen Speichergeräte: a Erstellen Sie eine Primärpartition für das gesamte Gerät, indem Sie eingeben: fdisk /dev/emcpowerx Hilfe für das Dienstprogramm fdisk erhalten Sie, indem Sie h drücken.
4 Um einen weiteren ASM-Datenträger hinzuzufügen (zum Beispiel ASM3), öffnen Sie auf allen Clusterknoten die Datei /etc/udev/scripts/raw-dev.sh und ergänzen Sie die entsprechenden fettgedruckten Einträge, wie unten dargestellt: MAKEDEV raw mv /dev/raw/raw1 /dev/raw/votingdisk mv /dev/raw/raw2 /dev/raw/ocr.dbf mv /dev/raw/raw3 /dev/raw/spfile+ASM.ora mv /dev/raw/raw4 /dev/raw/ASM1 mv /dev/raw/raw5 /dev/raw/ASM2 mv /dev/raw/raw6 /dev/raw/ASM3 chmod 660 /dev/raw/{votingdisk,ocr.dbf,spfile+ASM.
5 Überprüfen Sie, ob die ASM-Datenträger erstellt wurden und für ASM-Verwendung gekennzeichnet sind. Geben Sie im Terminalfenster den folgenden Befehl ein, und drücken Sie die : service oracleasm listdisks Die in Schritt 3 erstellten Datenträger werden angezeigt. Zum Beispiel: ASM1 ASM2 6 Stellen Sie sicher, dass die übrigen Knoten auf die in Schritt 3 erstellten ASM-Datenträger zugreifen können.
Installation von Oracle Clusterware 1 Melden Sie sich als root beim System an. 2 Starten Sie das X-Window-System, indem Sie eingeben: startx 3 Öffnen Sie ein Terminalfenster und geben Sie ein: xhost + 4 Mounten Sie die Oracle Clusterware-CD. 5 Geben Sie Folgendes ein: /cluvfy/runcluvfy.sh stage -pre crsinst -n Knoten1,Knoten2 -r 10gR2 -verbose wobei node1 und node2 die öffentlichen Hostnamen sind.
12 Fügen Sie im Fenster Specify Cluster Configuration (Clusterkonfiguration festlegen) die Knoten hinzu, die von Oracle Clusterware verwaltet werden sollen. a Klicken Sie auf Hinzufügen. b Machen Sie eine Eingabe für Public Node Name (Öffentlicher Knotenname), Private Node Name (Privater Knotenname) und Virtual Host Name (Virtueller Hostname), und klicken Sie auf OK. c Wiederholen Sie Schritt a und Schritt b für die verbleibenden Knoten.
15 Führen Sie im Fenster Specify Voting Disk Location (Speicherort für Voting-Datenträger festlegen) die folgenden Schritte durch: a Wählen Sie im Feld OCR Configuration (OCR-Konfiguration) den Eintrag External Redundancy (Externe Redundanz) aus. b Geben Sie im Feld Specify OCR Location (OCR-Speicherort festlegen) Folgendes ein: /dev/raw/votingdisk oder /u01/votingdisk, wenn Sie OCFS2 verwenden. c Klicken Sie auf Next (Weiter). 16 Klicken Sie im Fenster Summary (Übersicht) auf Install (Installieren).
Installation von Oracle Database 10g 1 Melden Sie sich als root an und geben Sie ein: cluvfy stage -pre dbinst -n node1,node2 -r 10gR2 -verbose wobei node1 und node2 die öffentlichen Hostnamen sind. Wenn das System nicht korrekt konfiguriert ist, lesen Sie „Fehlerbehebung“, um weitere Informationen zu erhalten. Wenn das System korrekt konfiguriert ist, wird die folgende Meldung angezeigt: Pre-check for database installation was successful.
9 Überprüfen Sie, ob im Fenster Product-Specific Prerequisite Checks (Produktspezifische Vorüberprüfungen) in der Spalte Status für jede Systemüberprüfung der Eintrag Succeeded (Erfolgreich) angezeigt wird, und klicken Sie dann auf Next (Weiter). ANMERKUNG: Ein bestimmten Fällen wird eventuell eine Warnmeldung zur swap size angezeigt. Übergehen Sie die Warnmeldung und klicken Sie auf Yes, um fortzufahren.
Installation des Patchsets 10.2.0.2 für Oracle Database 10g Herunterladen und Extrahieren der Installationssoftware 1 Melden Sie sich am ersten Knoten als Benutzer oracle an. 2 Erstellen Sie für die Patches und Dienstprogramme den Ordner /opt/oracle/patches. 3 Öffnen Sie einen Web-Browser und rufen Sie die Oracle Support-Website metalink.oracle.com auf. 4 Melden Sie sich beim Oracle Metalink-Account an. 5 Suchen Sie nach der Patch-Nummer 4547817 mit Linux x86-64 (AMD64/EM64T) als Plattform.
11 Lesen Sie alle Anweisungen im angezeigten Meldungsfenster. ANMERKUNG: Beenden Sie nicht die Oracle Clusterware-Daemons, da dies bereits in Schritt 1 und Schritt 2 geschehen ist. 12 Öffnen Sie ein Terminalfenster. 13 Melden Sie sich als root beim System an. 14 Geben Sie die folgende Zeile ein und drücken Sie die : $ORA_CRS_HOME/install/root102.sh 15 Wiederholen Sie Schritt 12 bis Schritt 14 auf den verbleibenden Knoten, und zwar jeweils nur für einen Knoten zugleich.
9 Starten Sie den Oracle Universal Installer. Geben Sie dazu im Terminalfenster den folgenden Befehl ein, und drücken Sie die : cd /opt/oracle/patches/Disk1/ ./runInstaller Der Begrüßungsbildschirm wird angezeigt. 10 Klicken Sie auf Next (Weiter). 11 Klicken Sie im Bildschirm Specify Home Details (Stammdetails festlegen) auf Next (Weiter). 12 Klicken Sie im Fenster Specify Hardware Cluster Installation Mode (Hardware-Cluster-Installationsmodus festlegen) auf Next (Weiter).
23 Kopieren Sie als Benutzer oracle von dem Knoten, von dem aus die Installation des Patchsets erfolgte, /opt/oracle/product/10.2.0/db_1/rdbms/lib/libknlopt.a auf alle anderen Knoten im Cluster. Kopieren Sie beispielsweise von Knoten 1 auf Knoten 2 mit folgendem Befehl: scp /opt/oracle/product/10.2.0/db_1/rdbms/lib/libknlopt.a node2:/opt/oracle/product/10.2.0/db_1/rdbms/lib/libknlopt.a ANMERKUNG: Führen Sie diesen Schritt nicht als root durch.
11 Wählen Sie im Fenster Listener Configuration→ TCP/IP Protocol (Listener-Konfiguration, TCP/IPProtokoll) die Option Use the standard port number of 1521 (Standardportnummer 1521 verwenden) aus, und klicken Sie auf Next (Weiter). 12 Wählen Sie im Fenster Listener Configuration→ More Listeners? (Listener-Konfiguration, Weitere Listener?) die Option No (Nein), und klicken Sie auf Next (Weiter). 13 Klicken Sie im Fenster Listener Configuration Done (Listener-Konfiguration abgeschlossen) auf Next (Weiter).
11 Führen Sie im Fenster Recovery Configuration (Wiederherstellungsoptionen) folgende Schritte durch: a Klicken Sie auf Specify Flash Recovery Area (Flash-Wiederherstellungsbereich festlegen). b Klicken Sie auf Browse (Durchsuchen), und wählen Sie /u03. c Geben Sie die Größe des Flash-Wiederherstellungsbereichs an. d Klicken Sie auf Next (Weiter). 12 Klicken Sie im Fenster Database Content (Datenbankinhalt) auf Next (Weiter).
Erstellen der Startdatenbank mit ASM In diesem Abschnitt sind die Vorgehensweisen zum Erstellen einer Startdatenbank mit Oracle ASM sowie zum Überprüfen der Startdatenbank beschrieben. Gehen Sie wie folgt vor: 1 Melden Sie sich als root an und geben Sie ein: cluvfy stage -pre dbcfg -n node1,node2 -d $ORACLE_HOME -verbose wobei node1 und node2 die öffentlichen Hostnamen sind. Wenn das System nicht korrekt konfiguriert ist, lesen Sie „Fehlerbehebung“, um weitere Informationen zu erhalten.
12 Wenn in einer Meldung mitgeteilt wird, dass die ASM-Instanz vom DBCA erstellt und gestartet werden kann, klicken Sie auf OK. 13 Klicken Sie bei ASM Disk Groups (ASM-Datenträgergruppen) auf Create New (Neu erstellen).
21 Klicken Sie im Fenster Database Storage (Datenbankspeicher) auf Next (Weiter). 22 Klicken Sie im Fenster Creation Options (Erstellungsoptionen) auf Create Database (Datenbank erstellen) und anschließend auf Finish (Fertigstellen). 23 Klicken Sie im Fenster Summary (Übersicht) auf OK, um die Datenbank zu erstellen. ANMERKUNG: Dieser Vorgang kann eine Stunde oder länger dauern.
Systemsicherheit Um unerlaubten Zugriff auf das System zu verhindern, wird empfohlen, rsh nach der Installation der Oracle-Software zu deaktivieren. Um rsh zu deaktivieren, geben Sie Folgendes ein: chkconfig rsh off Einrichten des Kennworts für den Benutzer oracle Dell empfiehlt nachdrücklich, ein Kennwort für den Benutzer oracle einzurichten, um das System zu schützen. Gehen Sie wie folgt vor, um das oracle-Kennwort festzulegen: 1 Melden Sie sich als root beim System an.
Konfigurieren des Datenbankspeichers Konfiguration des Datenbankspeichers mit ex3-Dateisystem Wenn Sie über ein zusätzliches Speichergerät verfügen, führen Sie folgende Schritte aus: 1 Melden Sie sich als root beim System an. 2 Geben Sie Folgendes ein: cd /opt/oracle 3 Geben Sie Folgendes ein: mkdir oradata recovery 4 Erstellen Sie mit dem Dienstprogramm fdisk eine Partition, auf der Sie die Datenbankdateien speichern möchten (etwa sdb1, wenn das Speichergerät sdb ist).
Konfiguration des Datenbankspeichers mit Oracle ASM 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.
Um SELinux dauerhaft zu deaktivieren, gehen Sie wie folgt vor: 1 Öffnen Sie die Datei grub.conf. 2 Ergänzen Sie auf der Kernel-Befehlszeile die folgende Option: selinux=0 Zum Beispiel: kernel /vmlinuz-2.6.9-34.ELlargesmp ro root=LABEL=/ apic rhgb quiet selinux=0 3 Starten Sie das System neu. 4 Öffnen Sie ein Terminalfenster und melden Sie sich als root an.
Installation von Oracle-Datenbank 10g So installieren Sie Oracle 10g: 1 Melden Sie sich als root beim System an. 2 Mounten Sie als Benutzer root die Oracle Database 10g-CD. 3 Starten Sie das X-Window-System, indem Sie eingeben: startx 4 Öffnen Sie ein Terminalfenster und geben Sie ein: xhost + 5 Melden Sie sich als oracle an. 6 Starten Sie den Oracle Universal Installer.
Installation des Patchsets 10.2.0.2 für Oracle Database 10g Herunterladen und Extrahieren der Installationssoftware 1 Melden Sie sich als oracle an. 2 Erstellen Sie für die Patches und Dienstprogramme den Ordner /opt/oracle/patches. 3 Öffnen Sie einen Web-Browser und rufen Sie die Oracle Metalink-Website metalink.oracle.com auf. 4 Melden Sie sich beim Oracle Metalink-Account an. 5 Suchen Sie nach der Patch-Nummer 4547817 mit Linux x86-64 (AMD64/EM64T) als Plattform.
10 Geben Sie in einem Terminalfenster den folgenden Befehl ein, und drücken Sie die : /opt/oracle/product/10.2.0/db_1/root.sh 11 Drücken Sie die , um die Standardantworten auf die von root.sh erzeugten Fragen zu akzeptieren. ANMERKUNG: Dieser Vorgang kann mehrere Minuten dauern. 12 Wenn die Ausführung von root.sh beendet ist, kehren Sie zum Fenster Execute Configuration Scripts (Konfigurationsskripte ausführen) zurück und klicken Sie auf OK.
5 Klicken Sie im Fenster Database Templates (Datenbankvorlagen) auf Custom Database (Benutzerdefinierte Datenbank) und anschließend auf Next (Weiter). 6 Geben Sie im Fenster Database Identification (Datenbankidentifikation) in den Feldern Global Database Name (Globaler Datenbankname) und SID Prefix (SID-Präfix) einen Namen für die zu erstellende Datenbank ein. Klicken Sie anschließend auf Next (Weiter). 7 Klicken Sie im Fenster Management Options (Verwaltungsoptionen) auf Next (Weiter).
Erstellen der Startdatenbank mit Oracle ASM Wenn Sie den Speicher mit Oracle ASM konfiguriert haben, gehen Sie zum Erstellen einer Startdatenbank mit dem Datenbankerstellungsassistenten (DBCA) wie folgt vor: 1 Starten Sie DBCA, indem Sie als Benutzer oracle folgenden Befehl eingeben: dbca & 2 Klicken Sie im Begrüßungsfenster auf Next (Weiter). 3 Klicken Sie im Fenster Operations (Vorgänge) auf Create a Database (Datenbank erstellen) und anschließend auf Next (Weiter).
13 Klicken Sie unter Available Disk Groups (Verfügbare Datenträgergruppen) auf Create New (Neu erstellen). 14 Geben Sie im Fenster Disk Group (Datenträgergruppe) die Informationen für die Wiederherstellungsdateien ein, und klicken Sie auf OK. a Geben Sie einen Namen für die zu erstellende Datenträgergruppe ein, etwa flashbackDG, wählen Sie External Redundancy (Externe Redundanz), und wählen Sie dann die Datenträger für die Datenträgergruppe aus.
23 Klicken Sie auf Exit (Beenden). 24 Geben Sie nach abgeschlossener Datenbankerstellung die folgenden Befehle ein, um dem Benutzerprofil oracle die Umgebungsvariable ORACLE_SID hinzuzufügen: echo "export ORACLE_SID=oradb" >> /home/oracle/.bash_profile source /home/oracle/.bash_profile In diesem Beispiel wird davon ausgegangen, dass Sie im DBCA oradb als globalen Datenbanknamen definiert haben. ANMERKUNG: Wie Sie weitere Sicherheitsmerkmale einrichten, erfahren Sie im Abschnitt „Systemsicherheit“.
Konfiguration von gemeinsamem Speicher auf dem neuen Knoten Legen Sie für die Knoten, die Sie zur bereits vorhandenen RAC-Datenbank hinzufügen wollen, den gleichen Speicherort fest wie für die bereits vorhandenen Knoten. Dieser Abschnitt enthält die Vorgehensweisen für ASM. Konfiguration des gemeinsamen Speichers mit ASM Wenn Sie ASM verwenden, sollten die neuen Knoten die gleichen Zugriffsrechte für den ASM-Datenträger erhalten wie die bereits vorhandenen Knoten.
8 Überprüfen Sie, ob der neue Knoten auf die ASM-Datenträger zugreifen kann. Geben Sie im Terminalfenster den folgenden Befehl ein, und drücken Sie die : service oracleasm scandisks 9 Vergewissern Sie sich, dass die ASM-Datenträger auf dem neuen Knoten verfügbar sind. Geben Sie im Terminalfenster den folgenden Befehl ein, und drücken Sie die : service oracleasm listdisks Alle verfügbaren Datenträger auf den verbleibenden Knoten werden aufgelistet.
Hinzufügen eines neuen Knotens zur Datenbankschicht 1 Melden Sie sich auf einem der bestehenden Knoten als oracle an. 2 Geben Sie auf dem vorhandenen Knoten im Verzeichnis /opt/oracle/product/10.2.0/db_1/oui/bin den Befehl ./addNode.sh ein, um den Oracle Universal Installer zu starten. 3 Klicken Sie im Begrüßungsfenster auf Next (Weiter).
5 Wenn dies funktioniert hat, geben Sie netca ein, um den Netzwerkkonfigurationsassistenten zu starten. 6 Wählen Sie Cluster Configuration (Clusterkonfiguration) aus, und klicken Sie anschließend auf Next (Weiter). 7 Wählen Sie im Fenster Real Application Clusters, Active Nodes (Real Application Clusters, Aktive Knoten) die Option Select All Nodes (Alle Knoten auswählen), und klicken Sie auf Next (Weiter).
5 Wählen Sie im Fenster List of Cluster Databases (Liste der Clusterdatenbanken) die bereits vorhandene Datenbank aus. Wenn der Benutzername nicht über das Betriebssystem authentifiziert ist, fordert der Datenbankkonfigurationsassistent dazu auf, einen Benutzernamen und ein Kennwort für einen Datenbankbenutzer mit SYSDBA-Rechten einzugeben. 6 Geben Sie den Benutzernamen sys und das Kennwort ein, und klicken Sie auf Next (Weiter).
Entfernen eines Knotens aus dem Cluster Achten Sie beim Durchführen der Maßnahmen in diesem Abschnitt darauf, dass Sie den richtigen Knoten zum Entfernen aus dem Cluster auswählen. Entfernen eines Knotens aus der Datenbankinstanz-Schicht 1 Melden Sie sich als oracle an. 2 Geben Sie auf einem der anderen Knoten Folgendes ein: dbca & 3 Klicken Sie im Begrüßungsfenster auf Next (Weiter).
Neukonfiguration des Listeners 1 Geben Sie netca ein. 2 Wählen Sie im Fenster Real Application Clusters→ Configuration (Real Application Clusters, Konfiguration) die Option Cluster Configuration (Clusterkonfiguration), und klicken Sie auf Next (Weiter). 3 Wählen Sie im Fenster Real Application Clusters→ Active Nodes (Aktive Knoten) den zu entfernenden Knoten aus, und klicken Sie auf Next (Weiter).
Entfernen eines Knotens aus der Datenbankschicht 1 Melden Sie sich bei dem zu löschenden Knoten als Benutzer oracle an. 2 Geben Sie den folgenden Befehl ein, und verwenden Sie dabei den öffentlichen Namen des zu entfernenden Knotens (wenn Sie beispielsweise node3-pub löschen): srvctl stop nodeapps -n node3-pub Übergehen Sie den Fehler CRS-0210 hinsichtlich des Listeners. 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.
Weitere Informationen Unterstützte Softwareversionen In Tabelle 1-7 ist die bei Erscheinen des Releases unterstützte Software aufgeführt. Welche Hardware und Software derzeit unterstützt wird, erfahren Sie auf der Dell|Oracle-Website für geprüfte und zugelassene Konfigurationen unter www.dell.com/10g. Dort können Sie eine entsprechende Liste herunterladen (Oracle Database 10g EM64T Version 2.0 Solution Deliverable List). Tabelle 1-7.
Bestimmen der privaten Netzwerkschnittstelle Um festzustellen, welcher Schnittstellengerätename den einzelnen Netzwerkschnittstellen zugeordnet ist, gehen Sie wie folgt vor: 1 Finden Sie heraus, welche NIC-Typen im System vorhanden sind. Anhand von Tabelle 1-8 können Sie ermitteln, welche integrierten NICs im System vorhanden sind. Bei Add-In-NICs handelt es sich möglicherweise um Karten der Intel PRO/100-Serie oder der Intel PRO/1000-Serie oder um Broadcom NetXtreme Gigabit-Karten.
Fehlerbehebung In Tabelle 1-9 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-9. Fehlerbehebung Kategorie Problem/Anzeichen Ursache Empfohlene Maßnahmen Datenbank Bei Knoten, die mit Patchset 10.2.0.1 korrekt starten, bricht beim Patchset 10.2.0.2 der Startvorgang mit ORA-4031-Fehlern eventuell ab. RAC-Instanzen mit mehr als 4 Gb db_cache_sizes.
Tabelle 1-9. Fehlerbehebung (Fortsetzung) Kategorie Problem/Anzeichen Ursache Empfohlene Maßnahmen Datenbank ERROR IN KQLMBIVG SEE LCK TRACE FILE" [LT] [LB] KJUSERCLIENTLOCK Ursache ist der Oracle-Programmfehler 4690794. Informationen erhalten Sie auf der Oracle MetalinkWebsite unter metalink.oracle.com. Wenden Sie den Patch 4690794 an, der auf der Oracle Metalink-Website metalink.oracle.com bereitsteht. Datenbank LMD0 PROCESS RECEIVED Ursache ist der OS SIGNAL #11 Oracle-Programmfehler 5036588.
Tabelle 1-9. Fehlerbehebung (Fortsetzung) Kategorie Problem/Anzeichen Ursache Empfohlene Maßnahmen Leistung und Stabilität Die Warnung „Unknown interface type“ (Unbekannter Schnittstellentyp) wird im Oracle-Alarmprotokoll angezeigt. Die öffentliche Schnittstelle ist für interne Clusterkommunikation konfiguriert (private Schnittstelle).
Tabelle 1-9. Fehlerbehebung (Fortsetzung) Kategorie Problem/Anzeichen Ursache Empfohlene Maß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.equiv aufgeführt sind.
Tabelle 1-9. Fehlerbehebung (Fortsetzung) Kategorie Problem/Anzeichen Ursache Empfohlene Maßnahmen CRS Fehler beim Start von CRS, wenn Sie die Knoten neu starten oder den Befehl /etc/ini.d/init.crs start ausführen. Der CSS-Daemon (Cluster Ready Services) kann nicht auf den Quorum-Datenträger schreiben. • Versuchen Sie den Dienst neu zu starten, indem Sie den Knoten neu starten oder den Befehl root.sh im Verzeichnis /crs/oracle/product/10.2.0/crs/ ausführen.
Tabelle 1-9. Fehlerbehebung (Fortsetzung) Kategorie Problem/Anzeichen Ursache Empfohlene Maßnahmen CRS CRS startet beim Ausführen von root.sh nicht. Kein Zugriff auf die OCR-Datei und den Speicher für Statusinformationen. Beheben Sie das E/A-Problem und versuchen Sie den Dienst neu zu starten, indem Sie den Knoten neu starten oder den Befehl root.sh im Verzeichnis /crs/oracle/product/10.2.0/crs/ ausführen. CRS CRS startet nicht, wenn Sie root.sh nach einer Neuinstallation ausführen.
Tabelle 1-9. 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 Maß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 root.sh von folgendem Pfad ausführen: /crs/oracle/product/10.2.
Tabelle 1-9. Fehlerbehebung (Fortsetzung) Kategorie Problem/Anzeichen Ursache CRS Knoten startet ununterbrochen neu. Die private Verbindung ist ausgefallen. Empfohlene Maßnahmen 1 Starten Sie Linux im Einzelbenutzer-Modus. 2 Geben Sie Folgendes ein: /etc/inet.d/init.crs disable 3 Überprüfen Sie, ob der Knoten die anderen Clusterknoten mit Ping-Befehlen über die private Verbindung erreicht. 4 Geben Sie Folgendes ein: /etc/inet.d/init.crs enable 5 Starten Sie das System neu.
Tabelle 1-9. Fehlerbehebung (Fortsetzung) Kategorie Problem/Anzeichen Ursache Empfohlene Maßnahmen Software installieren Oracle-Software lässt sich auf den Knoten nicht installieren. Die Systemzeiten der Knoten sind nicht identisch. Führen Sie eines der folgenden Verfahren durch: • Stellen Sie sicher, dass die Systemzeit auf dem Knoten für die Oracle-Installation auf eine spätere Zeit als die übrigen Knoten eingestellt ist.
Wie Sie Hilfe bekommen Dell Support Weitere Informationen zum Betrieb des Systems erhalten Sie in der zusammen mit den Systemkomponenten gelieferten Dokumentation. Whitepapers, Informationen zu den von Dell unterstützten Konfigurationen und allgemeine Informationen erhalten Sie auf der entsprechenden Dell|Oracle-Website www.dell.com/10g. Technischen Support von Dell für die Hardware und die Betriebssystemsoftware sowie aktuelle Updates für das System finden Sie auf der Dell Support-Webseite unter support.
Einrichtungsanleitung
Index A F I ASM Konfiguration des Datenbankspeichers, 244 Fehlerbehebung, 264 B G Beispiele Fibre-Channel-Cluster, Hardwareverbindungen, 211 Gemeinsamen Speicher für CRS konfigurieren, 224-225 Installation CRS, 228 mit Dell DeploymentCD, 208 Oracle Datenbank 10g, 231 Oracle Datenbank 10g (einzelner Knoten), 246 Oracle RAC 10g, 227 Red Hat Enterprise Linux, 208 Bonding (Bündelung), 217 Fibre-Channel-Cluster einrichten, 210 Gemeinsamen Speicher konfigurieren, 221 C H Cluster Fibre-Channel-Hardw
Index Konfiguration (Fortsetzung) Oracle Datenbank 10g (einzelner Knoten), 242 Oracle RAC 10g, 216 Red Hat Enterprise Linux, 209 Konfiguration der öffentlichen und privaten Netzwerke, 216 Konfiguration von Oracle 10g, 210 Hardware- und Softwarekonfigurationen überprüfen, 210 Konfiguration von Oracle RAC 10g, 216 Startdatenbank erstellen, 239 Konfigurieren des privaten Netzwerks, 217 Installation (Einzelknoten), 246 Oracle Datenbank 10g (einzelner Knoten) konfigurieren, 242, 248 Startdatenbank erstell
Dell™ PowerEdge™ システム Oracle Database 10g Extended Memory 64 Technology(EM64T) Enterprise Edition Linux 導入ガイド バージョン 2.1.1 w w w. d e l l . c o m | s u p p o r t . d e l l .
メモおよび注意 メモ:コンピュータを使いやすくするための重要な情報を説明しています。 注意:ハードウェアの損傷やデータの損失の可能性があることを示し、その危険を回避するための方法を 説明しています。 ____________________ 本書の内容は予告なく変更されることがあります。 © 2006 すべての著作権は Dell Inc. にあります。 Dell Inc. の書面による許可のない複製は、いかなる形態においても厳重に禁じられています。 本書に使用されている商標:Dell、DELL ロゴ、および PowerEdge は Dell Inc. の商標です。EMC、PowerPath、 および Navisphere は EMC Corporation の登録商標です。Intel および Xeon は Intel Corporation の登録商標です。 Red Hat は Red Hat, Inc. の登録商標です。 本書では、必要に応じて上記以外の商標や会社名が使用されている場合がありますが、それらの商標や会社名は、一切 Dell Inc.
目次 Oracle RAC 10g Deployment Service . . . . . . . . . . . . . . . . . . . ソフトウェアおよびハードウェアの要件 ライセンス契約 . . . 重要なマニュアル . . 作業を開始する前に 281 . . . . . . . . . . . . . . . 282 . . . . . . . . . . . . . . . . . . . . . . . 284 284 284 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Red Hat Enterprise Linux のインストールと設定 . . . . . . . . . . . . Deployment CD を使用した Red Hat Enterprise Linux のインストール . . . . . . . . . . . . . . . . . . Red Hat Enterprise Linux の設定 . .
システムの保護 . . . . . . . . . . . . . . . . . . . . . . . . . . . . ユーザー oracle のパスワードの設定 . . . . . . . . . . . . . . . Oracle Database 10g の設定および導入(シングルノード) . . . . . . パブリックネットワークの設定 . . . . . . . . . . . . . データベースストレージの設定 . . . . . . . . . . . . . Oracle ASM Library Driver を使用したデータベ ース記憶域の設定 . . . . . . . . . . . . . . . . . . . . . Oracle Database 10g のインストール. . . . . . . . . . . . Oracle Database 10g 10.2.0.2 パッチセットのインストール リスナーの設定 . . . . . . . . . . . . . . . . . . . . . . シードデータベースの作成 . . . . . .
本書では、Dell|Oracle がサポートされた構成で Oracle Database 10g Enterprise Edition with the Oracle Real Application Clusters(RAC)ソフトウェアをインストール、設定、再インストール、 および使用するのに必要な情報について説明します。本書と『Dell Deployment CD』、『Red Hat Enterprise Linux CD』、および『Oracle RAC 10g ソフトウェア CD』を併用して、使用するソフト ウェアをインストールしてください。 メモ:OS の CD のみを使用して OS をインストールする場合、本書の手順は該当しないことがあります。 本書では、以下の情報について説明します。 • ソフトウェアおよびハードウェアの要件 • Red Hat® Enterprise Linux のインストールと設定 • クラスタハードウェアおよびソフトウェアの設定の確認 • Oracle RAC 用のストレージ(記憶域)およびネットワークの構成 • Oracle RAC のインストール •
ソフトウェアおよびハードウェアの要件 Oracle RAC ソフトウェアをシステムにインストールする前に、以下の手順を実行してください。 • Red Hat のウェブサイト rhn.redhat.com から『Red Hat CD』のイメージをダウンロー ドします。 • Oracle CD キットを用意します。 • Dell|Oracle Tested and Validated Configurations(Dell | Oracle で検証済みの構成) ウェブサイト www.dell.
表 1-2 ハードウェアの最小要件 ― ファイバーチャネルクラスタ ハードウェアコンポーネント Dell™ PowerEdge™ システム (Automatic Storage Management [ASM] を使用した 2~8 ノード) 仕様 Intel® Xeon® プロセッサファミリー Oracle Cluster File System バージョン 2 (OCFS2)に 1 GB の RAM 内蔵ハードドライブ用の PERC(PowerEdge Expandable RAID Controller) PERC に接続された 73 GB のハードドライブ(RAID 1)2 台 3 GB のネットワークインタフェースコントローラ(NIC) ポート 光学式ホストバスアダプタ(HBA)ポート×2 Dell|EMC ファイバーチャネル ストレージシステム サポートされる構成については、Dell|Oracle Tested and Validated Configurations(Dell|Oracle で検証済みの構成) ウェブサイト www.dell.
ライセンス契約 メモ:お使いの Dell システムには、Oracle ソフトウェアの 30 日間の試用ライセンスが含まれ ています。この製品のライセンスをお持ちでない場合は、デル販売代理店にお問い合わせください。 重要なマニュアル 特定のハードウェアコンポーネントの詳細については、システムに付属のマニュアルを参照し てください。 Oracle の製品情報については、Oracle CD キットの『How to Get Started』ガイドを参照し てください。 作業を開始する前に Red Hat Enterprise Linux OS をインストールする前に、Red Hat Network ウェブサイト rhn.redhat.com から Red Hat Enterprise Linux Quarterly Update ISO イメージをダウン ロードし、それらのイメージを CD に書き込みます。 ISO イメージをダウンロードするには、以下の手順を実行します。 1 Red Hat Network ウェブサイト rhn.redhat.
Red Hat Enterprise Linux のインストールと設定 注意:OS を正常にインストールするには、インストールを開始する前に外付けストレージデバイス をすべてシステムから取り外してください。 本項では Red Hat Enterprise Linux AS のインストールと、Oracle データベースの導入に必要な OS の設定について説明します。 Deployment CD を使用した Red Hat Enterprise Linux のインストール 1 すべての外付けストレージデバイスをシステムから取り外します。 2 『Dell Deployment CD』と『Red Hat Enterprise Linux AS EM64T CD』を用意します。 3 『Dell Deployment CD 1』を CD ドライブにセットし、システムを再起動します。 システムが『Dell Deployment CD』から起動します。 4 導入のメニューが表示されたら、1 と入力して Oracle 10g R2 EE on Red Hat Enterprise Linux 4 U3 (x86_64
Red Hat Enterprise Linux の設定 1 root としてログインします。 2 『Dell Deployment CD 2』を CD ドライブにセットし、以下のコマンドを入力します。 mount /dev/cdrom /media/cdrom/install.sh CD の内容が /usr/lib/dell/dell-deploy-cd ディレクトリにコピーされます。コピー操作が完 了したら、 umount /dev/cdrom と入力して、CD ドライブから CD を取り出します。 3 cd /dell-oracle-deployment/scripts/standard と入力して、『Dell Deployment CD』のスクリプトを含むディレクトリへ移動します。 メモ:スクリプトによって、インストールされたコンポーネントのバージョン確認のため検索が 行われて、必要に応じてサポートされているバージョンレベルへのアップデートが行われます。 4 5 6 ./005-oraclesetup.
クラスタのハードウェアおよびソフトウェアの構成の確認 クラスタのセットアップを始める前に、ハードウェアの取り付け、通信の相互接続、およびクラス タ全体に対するノードソフトウェア構成を確認します。以下の項では、ハードウェアとソフトウェ アのファイバーチャネルクラスタ構成の設定について説明します。 ファイバーチャネルクラスタのセットアップ お使いのファイバーチャネルクラスタはデルの公認技術者によってセットアップが完了しています。 本項の説明に従って、ハードウェアの接続、およびハードウェアとソフトウェアの構成を確認し てください。図 1-1 と 図 1-3 にはクラスタに必要とされる接続の概要図を示します。また、 表 1-4 にはクラスタ接続についてまとめます。 図 1-1 ファイバーチャネルクラスタ用のハードウェアの接続 クライアントシステム Gb イーサネット(プライベートネットワーク) LAN/WAN PowerEdge システム (Oracle データベース) Dell | EMC ファイバーチャネルス イッチ(SAN) Dell | EMC ファイバ ーチャネルストレ ージシステム CAT 5
表 1-4 ファイバーチャネルハードウェアの相互接続 クラスタのコンポーネント 接続 各 PowerEdge システムノード CAT 5e (カテゴリ 5 エンハンスト)または CAT 6 ケーブル 1 本をパブリック NIC から LAN に接続 CAT 5e または CAT 6 ケーブル 1 本をプライベートギガビット NIC からギガ ビットイーサネットスイッチに接続 CAT 5e または CAT 6 ケーブル 1 本を冗長プライベートギガビット NIC から冗長ギガビットイーサネットスイッチに接続 光ファイバーケーブル 1 本をオプティカル HBA 0 からファイバーチャネ ルスイッチ 0 に接続 光ファイバーケーブル 1 本を HBA 1 からファイバーチャネルスイッチ 1 に接続 各 Dell | EMC ファイバ ーチャネルストレージ システム CAT 5e または CAT 6 ケーブル 2 本を LAN に接続 各 Dell | EMC ファイバ ーチャネルスイッチ 1 ~ 4 本の光ファイバーケーブルを Dell|EMC ファイバーチャネルストレー ジシステムに接続 1
クラスタについて、以下の各タスクが完了していることを確認します。 • すべてのハードウェアがラックに取り付けてある。 • すべてのハードウェアの相互接続が 図 1-1、図 1-3、表 1-4 に示すとおりにセットアップさ れている。 • Dell | EMC ファイバーチャネルストレージシステム上で、すべての LUN(論理ユニット番号)、 RAID グループ、ストレージグループが作成されている。 • クラスタ内の各ノードにストレージグループが割り当ててある。 以下の各項へ進む前に、すべてのハードウェアと相互接続を目視点検して、正しく取り付けられて いることを確認してください。 ファイバーチャネルのハードウェアとソフトウェアの構成 • 各ノードには、少なくとも 表 1-2 に説明するハードウェア周辺機器が含まれている必要が あります。 • 各ノードには、次のソフトウェアをインストールする必要があります。 • – Red Hat Enterprise Linux ソフトウェア(表 1-1 を参照) – ファイバーチャネル HBA ドライバ ファイバーチャネルストレージシステムは
ストレージシステムのケーブル接続 Oracle クラスタのストレージシステムは、必要に応じて直接接続または 4 ポートの SAN 接続構成 が可能です。各構成について、以下の手順を参照してください。 図 1-2 直接接続のファイバーチャネルクラスタのケーブル接続 ノード 1 ノード 2 HBA ポート(2) HBA ポート(2) 0 1 0 1 SP ポート SP-B 3 2 1 0 0 1 2 3 SP-A CX700 ストレージシステム 直接接続構成 ノードを直接接続(図 1-2 を参照)で構成するには、以下の手順を実行します。 290 1 1 本の光ケーブルをノード 1 の HBA0 から SP-A のポート 0 に接続します。 2 1 本の光ケーブルをノード 1 の HBA1 から SP-B のポート 0 に接続します。 3 1 本の光ケーブルをノード 2 の HBA0 から SP-A のポート 1 に接続します。 4 1 本の光ケーブルをノード 2 の HBA1 から SP-B のポート 1 に接続します。 導入ガイド
図 1-3 SAN 接続のファイバーチャネルクラスタのケーブル接続 ノード 2 ノード 1 0 1 HBA ポート(2) HBA ポート(2) sw0 0 1 sw1 SP ポート 3 2 SP-B 1 0 0 1 CX700 ストレージ システム 2 3 SP-A SAN 接続構成 ノードを 4 ポートの SAN 接続(図 1-3 を参照)で構成するには、以下の手順を実行します。 1 1 本の光ケーブルを SP-A ポート 0 からファイバーチャネルスイッチ 0 に接続します。 2 1 本の光ケーブルを SP-A ポート 1 からファイバーチャネルスイッチ 1 に接続します。 3 1 本の光ケーブルを SP-A ポート 2 からファイバーチャネルスイッチ 0 に接続します。 4 1 本の光ケーブルを SP-A ポート 3 からファイバーチャネルスイッチ 1 に接続します。 5 1 本の光ケーブルを SP-B ポート 0 からファイバーチャネルスイッチ 1 に接続します。 6 1 本の光ケーブルを SP-B ポート 1 からファイバーチャネルスイッチ 0
8 1 本の光ケーブルを SP-B ポート 3 からファイバーチャネルスイッチ 0 に接続します。 9 1 本の光ケーブルをノード 1 の HBA0 からファイバーチャネルスイッチ 0 に接続します。 10 1 本の光ケーブルをノード 1 の HBA1 からファイバーチャネルスイッチ 1 に接続します。 11 1 本の光ケーブルをノード 2 の HBA0 からファイバーチャネルスイッチ 0 に接続します。 12 1 本の光ケーブルをノード 2 の HBA1 からファイバーチャネルスイッチ 1 に接続します。 Oracle RAC 10g 用のストレージ(記憶域) およびネットワークの設定 本項では、シードデータベースを実行するファイバーチャネルクラスタのセットアップに関する情 報と手順を説明します。 • パブリックおよびプライベートネットワークの設定 • システムの保護 • ストレージ構成の確認 • Cluster Ready Services(CRS)および Oracle Database 向けの共有ストレージの構成 Oracle RAC 10g は、順序化された一連の手
パブリックネットワークの設定 メモ:パブリック IP アドレスが有効でルータブルな IP アドレスであることを確認してください。 パブリックネットワークの設定をまだ行っていない場合は、次の手順を各ノードで実行して設定を 行います。 1 root としてログインします。 2 ネットワークデバイスファイル /etc/sysconfig/network-scripts/ifcfg-eth# を編集します (# はネットワークデバイスの番号を表します)。ファイルの設定は次のとおりです。 DEVICE=eth0 ONBOOT=yes IPADDR=< パブリック IP アドレス > NETMASK=< サブネットマスク > BOOTPROTO=static HWADDR= SLAVE=no 3 /etc/sysconfig/network ファイルを編集し、必要に応じて、localhost.localdomain を完全修飾パブリックノード名に変えます。 たとえば、ノード 1 の行は次のようになります。 HOSTNAME=node1.domain.
3 可用性を高めるためには、/etc/modprobe.conf ファイルを編集して、リンク監視オプショ ンを設定します。 デフォルトでは miimon の値は 0 で、この場合、リンクの監視は行われません。まず、値を 100 ミリ秒に変更しておき、必要に応じて、次の例に示すように値を調整してパフォーマンス を改善します。次のように入力します。 options bonding miimon=100 mode=1 4 /etc/sysconfig/network-scripts/ ディレクトリで、ifcfg-bond0 設定ファイルを作成または 編集します。 たとえは、サンプルネットワークのパラメータを使った場合、ファイルは次のようにな ります。 DEVICE=bond0 IPADDR=192.168.0.1 NETMASK=255.255.255.0 NETWORK=192.168.0.0 BROADCAST=192.168.0.
6 各ノードで ifconfig と入力して、プライベートインタフェースが機能していることを確 認します。 ノードのプライベート IP アドレスはプライベートインタフェース bond0 に割り当てる必要が あります。 7 各ノードにプライベート IP アドレスを設定したら、1 つのノードから各 IP アドレスを ping して、プライベートネットワークが機能していることを確認します。 8 各ノードに接続して、次のように入力し、プライベートネットワークと ssh が正しく機能して いることを確認します。 ssh < プライベート IP> 9 各ノードで、/etc/hosts ファイルに以下の各行を追加して修正します。 127.0.0.1 localhost.
ストレージ構成の確認 クラスタの構成中に、ファイバーチャネルストレージシステムにパーティションを作成します。 パーティションを作成するには、すべてのノードが外付けストレージデバイスを検出できるように する必要があります。各ノードが各ストレージ LUN または論理ディスクを検出できることを確認す るには、次の手順を実行します。 1 Dell|EMC ファイバーチャネルストレージシステムでは、EMC Navisphere® エージェントと正 しいバージョンの PowerPath(表 1-7 を参照)が各ノードにインストールされていること、お よび EMC Navisphere ソフトウェアで各ノードが正しいストレージグループに割り当てられて いることを確認します。手順については、Dell|EMC ファイバーチャネルストレージシステム に付属のマニュアルを参照してください。 メモ:この作業はクラスタをインストールしたデルの公認技術者によって実行されています。 ソフトウェアをノードにインストールする場合は、この手順を実行する必要があります。 2 ストレージデバイスとノードが正しくファイバーチャネルスイッチ(図
SELinux の無効化 Oracle データベースを実行するには、SELinux を無効にする必要があります。 SELinux を一時的に無効にするには、以下の手順を実行します。 1 root としてログインします。 2 コマンドプロンプトで、次のコマンドを入力します。 setenforce 0 SELinux を無効のままにしておくには、すべてのノードで以下の手順を実行します。 1 grub.conf ファイルを開きます。 2 カーネルコマンドラインを確認し、次のオプションを追加します。 selinux=0 たとえば、以下のように入力します。 kernel /vmlinuz-2.6.9-34.ELlargesmp ro root=LABEL=/ apic rhgb quiet selinux=0 3 システムを再起動します。 OCFS2 を使用して Oracle Clusterware およびデータベース用の共有ストレ ージを設定する方法 OCFS2 を使用する前に、次の作業を行ってください。 • http://oss.oracle.
OCFS2 を使用してストレージを設定するには、以下の手順を実行します。 1 最初のノードで、root としてログインします。 2 以下の手順を実行します。 a 次のように入力して、X Window System を起動します。 startx b ターミナルで次のように入力して、ocfs2 のデフォルトクラスタ名を使用する OCFS2 設定ファイル(/etc/ocfs2/cluster.
5 最初のファイバーチャネルクラスタノードで、次のように fdisk を使用して、別の 2 つの外付 けストレージデバイスにそれぞれ 1 つずつパーティションを作成します。 a 次のように入力して、デバイス全体に対するプライマリパーティションを作成します。 fdisk /dev/emcpowerx fdisk ユーティリティのヘルプを表示するには、h と入力します。 b 次のように入力して、新しいパーティションが作成されていることを確認します。 cat /proc/partitions c 新しいパーティションが見つからない場合は、次のように入力します。 sfdisk -R /dev/< デバイス名 > メモ:以下の手順では、サンプルの値として、マウントポイントには /u01、/u02、および /u03 を、 ラベルには u01、u02、 および u03 を使用します。 6 いずれか 1 つのノード上で、mkfs.
ASM を使用して Oracle Clusterware およびデータベース用の共有ストレージを設 定する方法 Oracle Clusterware 用の共有ストレージの設定 本項では、Oracle Clusterware 用の共有ストレージを設定する手順について説明します。 RAW デバイスインタフェースを使用した共有ストレージの設定 1 最初のノードで、fdisk ユーティリティを使って、外付けストレージデバイスに 3 つのパー ティションを作成します。 fdisk /dev/emcpowerx と入力して、Cluster Repository、投票ディスク、および Oracle システムのパラメータファイルのそれぞれに 150 MB のパーティションを 3 つ作成します。 2 次のように入力して、新しいパーティションを確認します。 more /proc/partitions すべてのノードで、/proc/partitions ファイル内に新しいパーティションが表示されない 場合は、次のように入力します。 sfdisk -R /dev/< デバイス名 > 3 すべてのノードで、次の手順を実行し
ASM を使用してデータベース用の共有ストレージを設定する方法 ASM を使用してクラスタの設定を行うには、すべてのノードで、以下の手順を実行します。 1 root としてログインします。 2 すべてのノードで、次のように fdisk ユーティリティを使用して、別の 2 つの外付けストレージ デバイスに 1 つずつパーティションを作成します。 a 次のように入力して、デバイス全体に対するプライマリパーティションを作成します。 fdisk /dev/emcpowerx fdisk ユーティリティのヘルプを表示するには、h と入力します。 b 次のように入力して、新しいパーティションが作成されていることを確認します。 cat /proc/partitions 新しいパーティションが見つからない場合は、次のように入力します。 sfdisk -R /dev/< デバイス名 > メモ:ASM を使用した共有ストレージの設定には、RAW デバイスのインタフェースまたは Oracle ASM ライブラリドライバのいずれかを使用できます。 RAW デバイスインタフェースを使用した共有ストレージの構成 1 /
ASM Library Driver を使用した共有ストレージの設定 1 root としてログインします。 2 すべてのノードでターミナルウィンドウを開き、次の手順を実行します。 a service oracleasm configure と入力します。 b すべてのノードについて、以下の入力を行います。 Default user to own the driver interface(ドライバインタフェースを所有するデ フォルトユーザー)[ ]: oracle Default group to own the driver interface(ドライバインタフェースを所有するデ フォルトグループ)[ ]: dba Start Oracle ASM library driver on boot(起動時に Oracle ASM ライブラリドライ バを開始する)(y/n) [n]: y Fix permissions of Oracle ASM disks on boot(起動時に Oracle ASM ディスクの パーミッションを修正する)(y/n) [y]: y 3 最初のノードのターミナルウ
Oracle RAC 10g のインストール 本項では Oracle RAC 10g のインストール手順について説明します。これには CRS のインストール および Oracle Database 10g ソフトウェアのインストールが含まれます。クラスタを本番環境に配 置する前に、シードデータベースを作成してそのクラスタが正しく動作するかどうか確認すること をお勧めします。 作業を開始する前に インストール中のエラーを避けるために、すべてのノードでシステムクロックの設定を同一にして ください。 お使いのノードのシステムクロックを Network Time Protocol(NTP)サーバーと同期化します。 NTP サーバーにアクセスできない場合は、次の手順のいずれかを実行してください。 • Oracle Database ソフトウェアのインストールを実行するノードのシステムクロックが残りの ノードよりも遅い時刻に設定されていることを確認します。 • ノードの 1 つを NTP サーバーとして構成し、クラスタ内の残りのノードを同期化します。 Oracle Clusterware のインストール 1
7 次のコマンドを入力して、Oracle Universal Installer を起動します。 unset ORACLE_HOME /runInstaller 次のメッセージが表示されます。 Was ’rootpre.sh’ been run by root?(rootpre.sh はルートで実行されましたか ?) [y/n] (n) 8 y と入力して続行します。 9 Welcome(ようこそ)ウィンドウで Next(次へ)をクリックします。 10 ホームの詳細の指定 ウィンドウで、Oracle ホームのパスを /crs/oracle/product/10.2.
14 Specify Oracle Cluster Registry (OCR) Location(Oracle Cluster Registry(OCR)の場所 の指定)ウィンドウで、次の手順を実行します。 a OCR Configuration(OCR の設定)ボックスで、External Redundancy(外部冗長性) を選択します。 b Specify OCR Location(OCR の場所の指定)フィールドに次のテキストを入力します。 /dev/raw/ocr.dbf または /u01/ocr.dbf if using OCFS2.
20 すべてのノードで、次の手順を実行します。 a 次のコマンドを入力して Oracle Clusterware のインストールを確認します。 olsnodes -n -v クラスタ内のすべてのノードのパブリックノード名が一覧表示されます。 b 次のように入力します。 crs_stat -t 実行中のすべての Oracle Clusterware サービスが表示されます。 Oracle Database 10g ソフトウェアのインストール 1 root としてログインし、次のように入力します。 cluvfy stage -pre dbinst -n node1,node2 -r 10gR2 -verbose node1 および node2 はパブリックホスト名です。 お使いのシステムが正しく構成されない場合は、「トラブルシューティング」で詳細を参照し てください。 お使いのシステムが正しく構成されると、次のメッセージが表示されます。 Pre-check for database installation was successful.
8 Specify Hardware Cluster Installation Mode(ハードウェアのクラスタインストール モードの指定)ウィンドウで Select All(すべて選択)をクリックしてから、Next(次へ) をクリックします。 9 Product-Specific Prerequisite Checks(製品固有の前提条件のチェック)ウィンドウで、 各システムチェックの Status(ステータス)行に Succeeded(成功しました)が表示されて いることを確認し、Next(次へ)をクリックします。 メモ:スワップサイズ に関する警告が表示される場合があります。警告を無視し、Yes(はい) をクリックして続行します。 10 Select Configuration Option(構成オプションの選択)ウィンドウで Install database Software only(データベースソフトウェアのみインストール)を選択し、Next(次へ) をクリックします。 11 Summary(サマリー)ウィンドウで Install(インストール)をクリックします。 Oracle Da
Oracle Database 10g 10.2.0.2 パッチセットのインストール インストールソフトウェアのダウンロードと解凍 1 最初のノードで、oracle としてログインします。 2 /opt/oracle/patches にパッチとユーティリティのためのフォルダを作成します。 3 ウェブブラウザを起動し、Oracle のサポートサイト metalink.oracle.com に移動します。 4 Oracle Metalink アカウントにログインします。 5 Linux x86-64(AMD64/EM64T)をプラットフォームとして、パッチ番号 4547817 を検索 します。 6 パッチを /opt/oracle/patches ディレクトリにダウンロードします。 7 ダウンロードした ZIP ファイルを解凍するには、ターミナルウィンドウに次のテキストを 入力し、 を押します。 unzip p4547817_10202_LINUX-x86-64.
10 Summary(サマリー)画面で Install(インストール)をクリックします。 Oracle Universal Installer がお使いのシステムをスキャンし、インストールの必要なすべての パッチを表示して、お使いのシステムにインストールします。インストールが完了すると、 End of Installation(インストールの終了)画面が表示されます。 メモ:この処理には数分かかることがあります。 11 表示されるメッセージウィンドウ内の説明をすべて読みます。 メモ:Oracle Clusterware デーモンをシャットダウンしないでください。シャットダウンは 手順 1 と 手順 2 で実行済みです。 12 ターミナルウィンドウを開きます。 13 root としてログインします。 14 以下のテキストを入力し、 を押します。 $ORA_CRS_HOME/install/root102.
8 次のテキストを入力し、 を押します。 export ORACLE_HOME=/opt/oracle/product/10.2.0/db_1 9 Oracle Universal Installer を起動します。シャットダウンするには、ターミナルウィンドウで 次のテキストを入力し、 を押します。 cd /opt/oracle/patches/Disk1/ .
23 ユーザー oracle として、パッチセットを適用したノードからクラスタ内の他のすべての ノードに /opt/oracle/product/10.2.0/db_1/rdbms/lib/libknlopt.a をコピーします。 たとえば、ノード 1 からノード 2 にコピーするには、次のテキストを入力します。 scp /opt/oracle/product/10.2.0/db_1/rdbms/lib/libknlopt.a node2:/opt/oracle/product/10.2.0/db_1/rdbms/lib/libknlopt.a メモ:この手順を root として実行しないでください。 24 各ノードで次のコマンドを発行することで、すべてのノードで Oracle バイナリを作成しな おします。 cd /opt/oracle/product/10.2.0/db_1/rdbms/lib make -f ins_rdbms.
12 13 14 Listener Configuration(リスナーの設定) → More Listeners?(リスナーの追加) ウィンドウで No(いいえ)を選択し、Next(次へ)をクリックします。 Listener Configuration Done(リスナーの設定が終了しました)ウィンドウで Next (次へ)をクリックします。 Finish(完了)をクリックします。 OCFS2 を使用したシードデータベースの作成 1 2 Welcome(ようこそ)ウィンドウで Oracle Real Application Cluster Database (Oracle Real Application Cluster データベース)を選択してから、Next(次へ)をクリ ックします。 3 Operations(操作)ウィンドウで Create a Database(データベースの作成)をクリック してから、Next(次へ)をクリックします。 4 Node Selection(ノードの選択)ウィンドウで Select All(すべて選択)をクリック してから、Next(次へ)をクリックしま
11 Recovery Configuration(リカバリ設定)ウィンドウで、次の手順を実行します。 a Specify Flash Recovery Area(フラッシュリカバリ領域の指定)をクリックします。 b Browse(参照)をクリックして、/u03 を選択します。 c フラッシュリカバリのサイズを指定します。 d Next(次へ)をクリックします。 12 Database Content(データベースコンテンツ)ウィンドウで Next(次へ)をクリック します。 13 Database Services(データベースサービス)ウィンドウで Next(次へ)をクリック します。 14 クラスタに含まれるノードが 4 つを超える場合は、Initialization Parameters(初期化パ ラメータ)ウィンドウで、Shared Pool(共有プール)の値を 500 MB に変更して、Next (次へ)をクリックします。 15 Database Storage(データベースストレージ)ウィンドウで Next(次へ)をクリック します。 16 Creation
ASM を使用したシードデータベースの作成 本項では、Oracle ASM を使用してシードデータベースを作成する手順とシードデータベースを確 認する手順について説明します。 以下の手順を実行します。 1 root としてログインし、次のように入力します。 cluvfy stage -pre dbcfg -n node1,node2 -d $ORACLE_HOME -verbose node1 および node2 はパブリックホスト名です。 お使いのシステムが正しく構成されない場合は、「トラブルシューティング」で詳細を参照し てください。 お使いのシステムが正しく構成されると、次のメッセージが表示されます。 Pre-check for database configuration was successful.
11 Create ASM Instance(ASM インスタンスの作成)ウィンドウで、以下の手順を実行 します。 a SYS password(SYS パスワード)フィールドにパスワードを入力します。 b Create server parameter file (SPFILE)(サーバーパラメータファイル(SPFILE) を作成)を選択します。 c Server Parameter Filename(サーバーパラメータファイル名)フィールドに次のテ キストを入力します。 /dev/raw/spfile+ASM.
19 Database Services(データベースサービス)ウィンドウで、必要に応じてサービスの設定 を行い、Next(次へ)をクリックします。 20 Initialization Parameters(初期化パラメータ)ウィンドウで、次の手順を実行します。 a Custom(カスタム)を選択します。 b Shared Memory Management(共有メモリ管理)で Automatic(自動)を選択 します。 c SGA Size(SGA サイズ)ウィンドウと PGA Size(PGA サイズ)ウィンドウに適切な情 報を入力します。 d Next(次へ)をクリックします。 21 Database Storage(データベースストレージ)ウィンドウで Next(次へ)をクリック します。 22 Creation Options(作成オプション)ウィンドウで Create Database(データベース の作成)を選択してから、Finish(完了)をクリックします。 23 Summary(サマリー)ウィンドウで OK をクリックして、データベースを作成します。 メモ:こ
26 1 つのノードで、次のように入力します。 srvctl status database -d dbname dbname は、DBCA でデータベースに定義したグローバル識別子名です。 データベースインスタンスがすでに起動している場合は、確認メッセージが画面に表示 されます。 データベースインストールが起動していない場合は、次のように入力します。 srvctl start database -d dbname dbname は、DBCA でデータベースに定義したグローバル識別子名です。 システムの保護 システムへの不正なアクセスを防ぐために、Oracle ソフトウェアのインストール後は rsh を無効に することをお勧めします。 rsh を無効にするには、次のテキストを入力します。 chkconfig rsh off ユーザー oracle のパスワードの設定 システム保護のために、oracle ユーザーにはパスワードを設定することを強くお勧めします。 以下の手順に従って、oracle のパスワードを設定します。 1 root としてログインします。 2 passwd oracle と入
パブリックネットワークの設定 パブリックネットワークが機能していること、IP アドレスとホスト名がシステムに割り当てられて いることを確認します。 データベースストレージの設定 ex3 ファイルシステムを使用したデータベースストレージの設定 ストレージデバイスを追加した場合は、以下の手順を実行します。 1 root としてログインします。 2 次のように入力します。 cd /opt/oracle 3 次のように入力します。 mkdir oradata recovery 4 fdisk ユーティリティを使用して、データベースファイルを保管するパーティションを作成 します(たとえば、ストレージデバイスが sdb なら sdb1)。 5 fdisk ユーティリティを使用して、リカバリファイルを保管するパーティションを作成します (たとえば、ストレージデバイスが sdc なら sdc1)。 6 次のように入力して、新しいパーティションを確認します。 cat /proc/partitions 新しいパーティションが見つからない場合は、次のように入力します。 sfdisk -R /dev/sdb
Oracle ASM を使用したデータベース記憶域の設定 以下の例では、データベースファイル用のディスクグループ 1 つ、およびフラッシュバックリカ バリとアーカイブログファイル用のディスクグループ 1 つをそれぞれ作成するために利用できる 2 台のストレージデバイス(sdb および sdc)があることを前提とします。 1 root としてログインします。 2 次のように入力して、デバイス全体に対するプライマリパーティションを作成します。 fdisk /dev/sdb 3 次のように入力して、デバイス全体に対するプライマリパーティションを作成します。 fdisk /dev/sdc raw デバイスインタフェースを使用した ASM 記憶域の設定 1 /etc/sysconfig/rawdevices ファイルを編集して、以下の各行を追加します。 /dev/raw/ASM1 /dev/sdb1 /dev/raw/ASM2 /dev/sdc1 2 次のように入力して、RAW Devices Service を再起動します。 service rawdevices restart Oracle A
3 システムを再起動します。 4 ターミナルウィンドウを開き、root としてログインします。 5 以下の手順を実行します。 a 次のように入力します。 service oracleasm configure b すべてのノードについて、以下の入力を行います。 Default user to own the driver interface(ドライバインタフェースを所有するデ フォルトユーザー)[ ]: oracle Default group to own the driver interface(ドライバインタフェースを所有するデ フォルトグループ)[ ]: dba Start Oracle ASM library driver on boot(起動時に Oracle ASM ライブラリドライ バを開始する)(y/n) [n]: y Fix permissions of Oracle ASM disks on boot(起動時に Oracle ASM ディスクの パーミッションを修正する)(y/n) [y]: y 6 ターミナルウィンドウで、次のように入力します。 service or
Oracle Database 10g のインストール Oracle 10g をインストールするには、以下の手順を実行します。 1 root としてログインします。 2 ユーザー root として、『Oracle Database 10g CD』をマウントします。 3 次のように入力して、X Window System を起動します。 startx 4 ターミナルウィンドウを開き、次のように入力します。 xhost + 5 oracle としてログインします。 6 Oracle Universal Installer を起動します。 ターミナルウィンドウで次のテキストを入力し、 を押します。 /runInstaller 7 Select Installation Method(インストール方法の選択)ウィンドウで Advanced Installation(拡張インストール)をクリックし、Next(次へ)をクリックします。 8 Select Installation Type(インストールタイプの選択)ウィンドウで Enterprise
Oracle Database 10g 10.2.0.2 パッチセットのインストール インストールソフトウェアのダウンロードと解凍 1 oracle としてログインします。 2 /opt/oracle/patches にパッチとユーティリティのためのフォルダを作成します。 3 ウェブブラウザを起動し、Oracle Metalink のウェブサイト metalink.oracle.com に移動 します。 4 Oracle Metalink アカウントにログインします。 5 Linux x86-64(AMD64/EM64T)をプラットフォームとして、パッチ番号 4547817 を検索 します。 6 パッチを /opt/oracle/patches ディレクトリにダウンロードします。 7 ダウンロードした ZIP ファイルを解凍するには、ターミナルウィンドウに次のテキストを 入力し、 を押します。 unzip p4547817_10202_LINUX-x86-64.
9 Summary(サマリー)画面で Install(インストール)をクリックします。 Oracle Universal Installer がお使いのシステムをスキャンし、インストールの必要なすべての パッチを表示して、お使いのシステムにインストールします。インストールが完了すると、 End of Installation(インストールの終了)画面が表示されます。 次に、ユーザー root として root.sh を実行するように指示するメッセージウィンドウが表 示されます。 10 ターミナルウィンドウで次のテキストを入力し、 を押します。 /opt/oracle/product/10.2.0/db_1/root.sh 11 を押すことで、root.sh によって生成された質問に対するデフォルトの回答に同 意します。 メモ:この処理には数分かかることがあります。 12 root.
シードデータベースの作成 ext3 ファイルシステムを使用したシードデータベースの作成 DBCA を使用してシードデータベースを作成するには、次の手順を実行します。 1 oracle としてログインします。 2 次のように入力して、Oracle DBCA を起動します。 dbca 3 Welcome(ようこそ)ウィンドウで Next(次へ)をクリックします。 4 Operations(操作)ウィンドウで Create a Database(データベースの作成)をクリック してから、Next(次へ)をクリックします。 5 324 Database Templates(データベーステンプレート)ウィンドウで Custom Database (カスタムデータベース)をクリックしてから、Next(次へ)をクリックします。 6 Database Identification(データベース識別情報)ウィンドウで、Global Database Name(グローバルデータベース名)と SID Prefix フィールドに、作成するデータベース名 を入力してから、Next(次へ)をクリックします。
16 Confirmation(確認)ウィンドウで OK をクリックし、データベースを作成します。 メモ:シードデータベースの作成には 1 時間以上かかる場合があります。 データベースの作成手順が完了すると、Password Management(パスワード管理) ウィンドウが表示されます。 17 Exit(終了)をクリックします。 18 次のように入力します。 export ORACLE_SID=dbname dbname は、DBCA でデータベースに定義したグローバル識別子名です。 19 データベースが動作していることを確認するには、次の手順を実行します。 a sqlplus "/ as sysdba" と入力して、SQL> プロンプトを表示します。 b SQL> プロンプトで次のクエリを入力します。 SELECT * FROM v$instance; c データベースが実行されていない場合は、エラーメッセージが表示されるので、SQL> プロンプトで startup と入力し、そのノードのデータベースインスタンスを起動します。 Oracle ASM を使用したシードデータベース
9 10 11 12 Create ASM Instance(ASM インスタンスの作成)ウィンドウで、SYS ユーザーのパスワー ドを入力し、Next(次へ)をクリックします。 DBCA が ASM インスタンスの作成と起動の準備ができたことを示すメッセージが表示さ れたら、OK をクリックします。 ASM Disk Groups(ASM ディスクグループ)ウィンドウで、Available Disk Groups (使用可能なディスクグループ)の下にある Create New(新規作成)をクリックします。 Create Disk Group(ディスクグループの作成)ウィンドウでデータベースファイルのスト レージ情報を入力し、OK をクリックします。 a databaseDG など、作成するディスクグループの名前を入力し、External Redundancy (外部冗長性)を選択してから、ディスクグループに含めるディスクを選択します。 b RAW デバイスインタフェースを使用する場合は、/dev/raw/ASM1 を選択します。 c ASM ライブラリドライバを使用する場合で、候補ディスクにアク
15 ASM Disk Groups(ASM ディスクグループ)ウィンドウで、データベースストレージに使 用するディスクグループをチェックし(たとえば、databaseDG)、Next(次へ)をクリッ クします。 16 Database File Locations(データベースファイルの位置)ウィンドウで、Use Common Location for All Database Files(すべてのデータベースファイルに対して共通の位置 を使用)をチェックし、Next(次へ)をクリックします。 17 Recovery Configuration(リカバリ構成)ウィンドウで、Browse(参照)をクリッ クして、手順 14 で作成したフラッシュバックグループ(たとえば、flashbackDG) を選択し、必要に応じてフラッシュリカバリ領域のサイズを変更し、Next(次へ)をク リックします。 18 Database Content(データベースコンテンツ)ウィンドウで Next(次へ)をクリック します。 19 Initialization Parameters(初期化パラメータ)ウィンドウ
ノードの追加と削除 本項では既存のクラスタにノードを追加する手順とクラスタからノードを削除する手順について説 明します。 メモ:新しいノードは、ハードウェアと OS の構成を既存のノードと同一にする必要があります。 既存のクラスタにノードを追加するには、以下の手順を実行します。 • ネットワーク層にノードを追加します。 • 共有ストレージを設定します。 • Oracle Clusterware、データベース、およびデータベースインスタンスの各層にノードを追 加します。 既存のクラスタからノードを削除するには、追加の手順を逆にして、データベースインスタンス、 データベース、そして Oracle クラスタウェアの各層からノードを削除する必要があります。 既存のクラスタにノードを追加する方法の詳細については、Oracle の ウェブサイト www.oracle.
SELinux を無効のままにしておくには、以下の手順を実行します。 1 grub.conf ファイルを開きます。 2 カーネルコマンドラインを確認し、次のオプションを追加します。 selinux=0 たとえば、以下のように入力します。 kernel /vmlinuz-2.6.9-34.
Oracle クラスタウェア層への新しいノードの追加 1 既存のノードの 1 つに oracle としてログインします。 2 この既存のノードの /crs/oracle/product/10.2.0/crs/oui/bin ディレクトリから ./addNode.
6 ローカル bin ディレクトリのフルパス名を入力するように求められたら、新しいノードで ユーザー root として /opt/oracle/product/10.2.0/db_1/root.sh を実行し、 を押します。 7 Execute Configuration Scripts(構成スクリプトの実行)ウィンドウで root.
12 13 14 15 Listener Configuration(リスナーの設定) → TCP/IP Protocol(TCP/IP プロトコル)ウィン ドウで、Use the standard port number of1521(標準ポート番号 1521 を使用)を選択し、 Next(次へ)をクリックします。 Listener Configuration(リスナーの設定) → More Listeners?(リスナーの追加) ウィンドウで No(いいえ)を選択し、Next(次へ)をクリックします。 Listener Configuration Done(リスナーの設定が終了しました)ウィンドウで Next (次へ)をクリックします。 Finish(完了)をクリックします。 データベースインスタンス層への新しいノードの追加 1 既存ノードの 1 つで、ユーザー oracle として次のように入力し、DBCA を起動します。 dbca & 2 Welcome(ようこそ)ウィンドウで Next(次へ)をクリックします。 3 Operations(操作)ウィンドウで、Instance Mana
11 Yes(はい)をクリックします。 次のメッセージが表示されます。 Do you want to perform another operation?(別の操作を実行しますか ?) 12 No(いいえ)をクリックします。 13 いずれかのノードで次のように入力して、インスタンスが正常に追加されたことを確認 します。 srvctl status database -d < データベース名 > メモ:「システムの保護」を参照して、追加のセキュリティセットアップを実行する手順に従っ てください。 クラスタからのノードの削除 本項の手順を実行する際には、クラスタから必ず正しいノードを選択し、削除してください。 データベースインスタンス層からのノードの削除 1 oracle としてログインします。 2 残りのノードの 1 つから、次のように入力します。 dbca & 3 Welcome(ようこそ)ウィンドウで Next(次へ)をクリックします。 4 Operations(操作)ウィンドウで、Instance Management(インスタンス管理)をクリッ クしてから、Next(次へ)をク
8 削除するインスタンスを選択して、Next(次へ)をクリックします。 DBCA を実行しているローカルインスタンスは削除できません。ローカルインスタンスを選 択した場合、DBCA によって Error(エラー)ダイアログが表示されます。このような状況が 発生した場合は、OK をクリックして、別のインスタンスを選択してから、Finish(完了) をクリックします。 このインスタンスにサービスが割り当てられている場合は、DBCA Services Management (DBCA サービス管理)ウィンドウが表示されます。このウィンドウを使って、クラスタデー タベース内の別のインスタンスにサービスを割り当てなおします。 9 10 Summary(サマリー)ウィンドウで OK をクリックします。 インスタンス削除の処理に関する情報を確認して、OK をクリックします。 DBCA がインスタンスとその Oracle Net 設定を削除している間、進行状況を示すバーが表 示されます。処理が完了すると、別の操作を実行するかどうかを尋ねるダイアログが表示 されます。 11 No(いいえ)をクリックして、終了します。
削除されたノードでの ASM の停止と削除 残りのノードの 1 つで、次の手順を実行します。 1 ターミナルウィンドウを開きます。 2 次のように入力します。 srvctl stop asm -n はクラスタから削除するノードです。 3 次のように入力します。 srvctl remove asm -n はクラスタから削除するノードです。 データベース層からのノードの削除 1 2 削除するノードで、oracle としてログインします。 削除するノードのパブリック名を使用して、次のコマンドを入力します (たとえば、node3-pub を削除する場合)。 srvctl stop nodeapps -n node3-pub リスナーに関するエラーを表示するエラー CRS-0210 は無視します。 3 削除するノードで、root としてログインします。 4 Oracle データベースソフトウェアを削除する場合は、次のコマンドを入力します。 rm -rf /opt/oracle/product/10.
ソフトウェアの再インストール 注意:ソフトウェアを再インストールすると、ハードドライブ上のすべての情報が削除されます。 注意:ソフトウェアを再インストールする前に、すべての外付けストレージデバイスをシステムから 取り外してください。 注意:貴重なデータを失わないように、データベースと個々のノードを定期的にバックアップするこ とをお勧めします。ノードソフトウェアの再インストールは最後の手段としてください。 『Dell Deployment CD』を使用してソフトウェアをインストールすると、ハードウェア上に再導入 パーティションが作成され、そのパーティションにはシステムにインストールされたソフトウェアイ メージのすべてが含まれています。再導入パーティションを使用すると、簡単に Oracle ソフトウェ アの再導入が行えます。 この方法でソフトウェアを再インストールするには、システムを再導入パーティションから起動す る必要があります。システムがこのパーティションから起動すると、Red Hat Linux が自動的に再 インストールされます。 この方法でソフトウェアを再インストールするには、次の手順を実行します。
追加情報 サポートされるソフトウェアのバージョン リリース時点でサポートされているソフトウェアの一覧を表 1-7 に示します。サポートされている ハードウェアとソフトウェアの最新バージョンについては、Dell|Oracle Tested and Validated Configurations(Dell|Oracle で検証済みの構成)ウェブサイト www.dell.com/10g から Oracle Database 10g EM64T バージョン 2.0 Solution Deliverable List をダウンロードして参照してく ださい。 表 1-7 サポートされるソフトウェアのバージョン ソフトウェアコンポーネント サポートされるバージョン Red Hat Enterprise Linux AS EM64T (バージョン 4) Update 3 kernel 2.6.9-34.ELsmp、 2.6.9-34.ELlargsmp Oracle Database バージョン 10.2.0.2 PowerPath for Linux 4.5.1 DKMS 2.0.
プライベートネットワークインタフェースの確認 各ネットワークインタフェースに割り当てられているインタフェースデバイス名を確認するには、 次の手順を実行します。 1 システムの NIC の種類を確認します。 表 1-8 を参照して、システムに内蔵されている NIC を特定します。 アドイン NIC には、Intel PRO/100 ファミリー、PRO/1000 ファミリー、または Broadcom NetXtreme Gigabit のカードが使用されています。取り付けられているカードを識別す るには、システムを開けてアドインカードを見て確認する必要があります。 表 1-8 内蔵 NIC システム 内蔵 NIC ドライバ名 PowerEdge 1950 Broadcom NetXtreme II BCM5708 bnx2 PowerEdge 2950 Broadcom NetXtreme II BCM5708 bnx2 PowerEdge 2900 Broadcom NetXtreme II BCM5708 bnx2 PowerEdge 1850 Intel PRO/1000
トラブルシューティング Red Hat Enterprise Linux および Oracle ソフトウェアの導入と使用にあたって発生する可能性のあ る問題と対処方法を表 1-9 に示します。 表 1-9 トラブルシューティング カテゴリ 問題 / 症状 原因 推奨される対応措置 データ ベース パッチセット 10.2.0.1 RAC インスタンス で正常に起動するノ の db_cache_sizes が ードでも、パッチ 4 Gb を超えている。 セット 10.2.0.2では ORA-4031 エラーが 発生して起動しない 場合がある。 データ ベース Lock Manager Service (LMS) がクラッシュして ORA-00600 エラー が発生する: 内部エラ ーコード、 引数: [kclastf_1], [2], [] Oracle バグ 5071492 Oracle Metalink のウェブサイト が原因。Oracle metalink.oracle.com でパッチ 5071492 Metalink を入手して適用します。 のウェブサイト metalink.
表 1-9 トラブルシューティング (続き) カテゴリ 問題 / 症状 原因 推奨される対応措置 パフォー マンスと 安定性 Red Hat Enterprise Linux のパフォー マンスと安定性が 良くない。スワップ スペースの使用が多 すぎる。 SGA (Oracle System Global Area)が推奨サ イズを超えている。 • SGA サイズがシステム RAM 合計容量の 65% を超えないようにします。 • コマンドプロンプトから free と入力して、RAM の合計容量を確認し、 Oracle パラメータファイル内の db_cache_size と shared_pool_size の両パラメータの値を上記のように変更 します。 Enterprise Manager Enterprise Manager エージェントにエラ ーが発生するか、 ダウンする。 Enterprise Manager リポジトリが空です。 次のテキストを入力して、DB Console の設定ファイルとリポジトリを作成しな おします。 emca -config dbcontrol db r
表 1-9 トラブルシューティング (続き) カテゴリ 問題 / 症状 原因 推奨される対応措置 NETCA NETCA が誤動作して、 パブリックネットワー データベース作成が ク、ホスト名、仮想 IP が /etc/hosts.equiv 失敗する。. ファイル内のリス トにない。 netca を起動する前に、ホスト名がパブリック ネットワークに割り当ててあること、 /etc/hosts.equiv ファイル内のリストにパブ リック IP アドレスと仮想 IP アドレスが入ってい ることを確認します。 NETCA /etc/hosts.equiv NETCA がリモート ノードを設定で ファイルがない。 きない。または、 または、割り当て DBCA 実行中に られたパブリック RAW デバイス検 または仮想 IP 証エラーが発生する。 アドレスが含まれ ていない。 各ノードで、 /etc/hosts.
表 1-9 トラブルシューティング (続き) カテゴリ 問題 / 症状 原因 推奨される対応措置 CRS パブリックおよびプラ root.sh 実行時に CRS が起動できない。 イベートのノード名が 定義されていることと、 これらのノード名に 対して ping が実行で きることを確認します。 CRS root.sh 実行時に OCR ファイルと Voting I/O の問題を解決して、該当ノードを再起 CRS が起動できない。 ディスクにアクセスで 動するか、/crs/oracle/product/10.2.0/crs/ きない。 から root.sh を実行して、もう一度このサー ビスが起動できるかどうか試してみます。 CRS 再インストール後の OCR ファイルと Voting root.sh 実行時に ディスクがクリア CRS が起動できない。 されず、古い情報が 残っている。 ネットワークの問題を修正した後、該当ノードを 再起動するか、/crs/oracle/product/10.2.0/crs/ から root.
表 1-9 トラブルシューティング (続き) カテゴリ 問題 / 症状 原因 CRS その他の CRS トラブル root.sh 実行時に CRS が起動できない。 シューティングの手順 を試したが、失敗した。 推奨される対応措置 1 次の行を root.sh に追加して、デバッグを可能 にします。 set -x 2 /crs/oracle/product/10.2.0/crs/ から root.
表 1-9 トラブルシューティング (続き) カテゴリ 問題 / 症状 原因 CRS ノードが再起動 を繰り返す。 プライベート相互接続 がダウンしている。 推奨される対応措置 1 シングルユーザーモードで Linux を起動 します。 2 次のように入力します。 /etc/inet.d/init.crs disable 3 ノードがプライベート相互接続を介してクラス タ内の残りのノードに ping を実行できること を確認します。 4 次のように入力します。 /etc/inet.d/init.crs enable 5 システムを再起動します。 6 再起動後にネットワークがクラスタ内の残りの ノードに ping を実行できるまで、最大 30 秒の 待ち時間を要する場合があります。 この状況が発生したら、/etc/inet.d/init.
表 1-9 トラブルシューティング (続き) カテゴリ 問題 / 症状 原因 推奨される対応措置 ソフトウ ェアのイ ンストール Oracle ソフトウェ アがノードにインス トールできない。 ノードのシステムク ロックが同一でない。 次の方法のいずれかを行います。 • Oracle ソフトウェアのインストールを実行 するノードのシステムクロックが残りのノ ードよりも遅い時刻に設定されていることを 確認します。 • ノードの 1 つを NTP サーバーとして構成し、 クラスタ内の残りのノードを同期化します。 ソフトウ ェアのイ ンストール root.sh を実行 すると、ユーティリ ティが OCR ディス クのフォーマットに 失敗する。 ユーティリティが OCR ディスクのフォーマッ トに失敗する。 この問題は Oracle Metalink のバグ 4679769 で説明さ れています。 Oracle Metalink のウェブサイト metalink.oracle.
困ったときは デルサポート システムの詳しい使い方については、システムコンポーネントに付属のマニュアルを参照して ください。 各種の白書、デルがサポートする設定、一般情報については、Dell|Oracle Tested and Validated Configurations(Dell|Oracle で検証済みの構成)ウェブサイト www.dell.com/10g を参照して ください。 ハードウェアおよび OS ソフトウェアのデルテクニカルサポート、および、お使いのシステムで利 用できる最新のアップデートのダウンロードについては、デルサポートサイト support.dell.com を参照してください。デルへの問い合わせ先については、システムに付属の『インストール&トラ ブルシューティング』に記載されています。 デルでは、企業向けのトレーニングと資格認証を実施しております。詳細については、 http://www.dell.
索引 A ASM データベースストレージの 設定 , 319 Oracle RAC 10g CRS の設定 , 300-301 インストール , 303 共有ストレージの設定 , 297 設定 , 292 C Oracle RAC 10g の設定 シードデータベースの 作成 , 314 CRS インストール , 303 CRS 用の共有ストレージの 設定 , 301 CRS の設定 , 300-301 CRS 用の共有ストレージの 設定 , 300 O Oracle 10g の設定 ハードウェアおよびソフト ウェアの設定の確 認 , 287 Oracle Database 10g の設定 (シングルノード) シードデータベースの 作成 , 324 Oracle Database 10g インストール , 306 インストール (シングルノード), 321 シングルノードの設定 , 317 Oracle RAC 10g の導入 , 292 R Red Hat システムパッケージのアッ プデート , 286 Red Hat Enterprise Linux インストール , 285 Z インストー
索引 し つ ふ シードデータベース 確認 , 317, 325 作成 , 314, 324 追加情報 , 337 ファイバーチャネルクラスタ のセットアップ , 287 シードデータベースの作 成 , 314, 324 と トラブルシューティング , 339 せ セキュリティ , 317 設定 ASM を使用したデータベー スストレージ (シングルノード), 319 CRS 用の共有ストレー ジ , 300-301 ex3 を使用したデータベース ストレージ (シングルノード), 318 Oracle Database 10g (シングルノード), 317 Oracle RAC 10g, 292 Red Hat Enterprise Linux, 286 共有ストレージ , 297 データベースストレージ (シングルノード), 318 そ ソフトウェア 再インストール , 336 要件 , 282, 337 ソフトウェアおよびハード ウェアの要件 , 282 プライベートネットワーク インタフェースの 確認 , 338 348 追加設定オプション ノードの追加と削除 , 3
Sistemas Dell™ PowerEdge™ Base de datos Oracle 10g Extended Memory 64 Technology (EM64T) Enterprise Edition Guía de implantación para Linux versión 2.1.1 w w w. d e l l . c o m | s u p p o r t . d e l l .
Notas y avisos NOTA: una NOTA proporciona información importante que le ayudará a utilizar mejor el ordenador. AVISO: un AVISO indica la posibilidad de daños en el hardware o la pérdida de datos, e informa de cómo evitar el problema. ____________________ La información contenida en este documento puede modificarse sin previo aviso. © 2006 Dell Inc. Reservados todos los derechos. Queda estrictamente prohibida la reproducción de este documento en cualquier forma sin la autorización por escrito de Dell Inc.
Contenido Servicio de implantación de Oracle RAC 10g . . . . . . . . . . . . . . . . . 353 . . . . . . . . . . . . . . . . . . . . . 354 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 355 355 356 . . . . . . . . . . 356 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 356 357 . . . . . . . . . . . . . . . 358 Requisitos de software y hardware . Contratos de licencia . . . . Documentación importante . Antes de comenzar . . . . . . . . . .
. . . . . . . . . . . . . . . . . . . . . . . . . . . . 389 Definición de la contraseña del usuario oracle . . . . . . . . . . . . . 389 Configuración e implantación de la base de datos Oracle 10g (un solo nodo) . . . . . . . . . . . . . . . . . . . . . . . . . . . 389 Protección del sistema Configuración de la red pública . . . . . . . . . . . . . . . . . Configuración del almacenamiento de base de datos . . . . . .
En este documento se proporciona información sobre cómo instalar, configurar, reinstalar y utilizar el software de la base de datos Oracle 10g Enterprise Edition con Oracle Real Application Clusters (RAC) en su configuración Dell|Oracle admitida. Para instalar el software, utilice este documento y los CD de software de implantación de Dell, Red Hat Enterprise Linux y Oracle RAC 10g.
Requisitos de software y hardware Antes de instalar el software Oracle RAC en el sistema: • Descargue las imágenes del CD de Red Hat de la página web de Red Hat en rhn.redhat.com. • Localice el kit de CD de Oracle. • Descargue las imágenes del CD de implantación de Dell adecuadas para la solución que va a instalar desde la página web de configuraciones probadas y validadas por Dell|Oracle en www.dell.com/10g. Grabe en CD todas las imágenes del CD que haya descargado.
Tabla 1-2. Requisitos mínimos de hardware: Clúster Fibre Channel (continuación) Componente de hardware Configuración Sistema de almacenamiento Dell|EMC Fibre Channel Visite la página web de configuraciones probadas y validadas por Dell|Oracle en www.dell.com/10g para obtener información sobre las configuraciones admitidas. Conmutador Ethernet Gigabit (dos) Visite la página web de configuraciones probadas y validadas por Dell|Oracle en www.dell.
Antes de comenzar Antes de instalar el sistema operativo Red Hat Enterprise Linux, descargue las imágenes ISO de la actualización trimestral de Red Hat Enterprise Linux de la página web de Red Hat Network en rhn.redhat.com y grabe dichas imágenes en CD. Para descargar las imágenes ISO, realice los pasos siguientes: 1 Vaya a la página web de Red Hat Network en rhn.redhat.com. 2 Haga clic en Channels (Canales). 3 En el menú de la izquierda, haga clic en Easy ISOs (ISO fáciles).
6 Cuando se le indique, inserte el CD 2 de implantación de Dell y los distintos CD de instalación de Red Hat en la unidad de CD. Se crea una partición de implantación donde se copia el contenido de los CD. Una vez finalizada la operación de copia, el sistema expulsa automáticamente el último CD y se inicia desde la partición de implantación. Tras finalizar la instalación, el sistema se reinicia automáticamente y se abre Red Hat Setup Agent.
7 Conecte el dispositivo de almacenamiento externo. 8 Vuelva a cargar los controladores HBA mediante los comandos rmmod y modprobe. Por ejemplo, para los HBA Emulex, vuelva a cargar el controlador lpfc mediante los comandos rmmod lpfc modprobe lpfc Para los controladores HBA QLA, identifique los controladores que están cargados (lsmod | grep qla) y vuelva a cargarlos.
Figura 1-1. Conexiones de hardware para un clúster Fibre Channel Sistemas cliente Conmutadores Ethernet Gb (red privada) LAN/WAN Sistemas PowerEdge (base de datos Oracle) Conmutadores Dell|EMC Fibre Channel (SAN) Sistemas de almacenamiento Dell|EMC Fibre Channel CAT 5e/6 (NIC pública) CAT 5e/6 (NIC Gigabit de cobre) Cables de fibra óptica Cables de fibra óptica adicionales Tabla 1-4.
Tabla 1-4. Interconexiones de hardware Fibre Channel (continuación) Componente del clúster Conexiones Cada sistema de almacenamiento Dell|EMC Fibre Channel Dos cables CAT 5e o CAT 6 conectados a la LAN Cada conmutador Dell|EMC Fibre Channel De una a cuatro conexiones de cable de fibra óptica con el sistema de almacenamiento Dell|EMC Fibre Channel Cada conmutador Fibre Channel admite de una a cuatro conexiones de cable de fibra óptica.
Configuraciones de hardware y software para Fibre Channel • Cada nodo debe incluir, como mínimo, los componentes periféricos de hardware que se describen en la tabla 1-2.
Figura 1-2. Cableado de un clúster Fibre Channel de conexión directa Nodo 1 Nodo 2 Puertos HBA (2) Puertos HBA (2) 0 1 0 1 Puertos SP SP-B 3 2 1 0 0 1 2 3 SP-A Sistema de almacenamiento CX700 Configuración de conexión directa Para configurar los nodos con una conexión directa (vea la figura 1-2), realice los pasos siguientes: 1 Conecte un cable óptico del HBA0 del nodo 1 al puerto 0 de SP-A. 2 Conecte un cable óptico del HBA1 del nodo 1 al puerto 0 de SP-B.
Figura 1-3. Cableado de un clúster Fibre Channel con conexión mediante SAN Nodo 2 Nodo 1 Puertos HBA (2) 0 1 Puertos HBA (2) sw0 0 1 sw1 Puertos 3 2 SP-B 1 0 0 1 2 3 SP-A Sistema de almacenamiento CX700 Configuración de conexión mediante SAN Para configurar los nodos del clúster con una configuración de conexión mediante SAN de cuatro puertos (vea la figura 1-3), realice los pasos siguientes: 1 Conecte un cable óptico del puerto 0 SP-A al conmutador 0 Fibre Channel.
7 Conecte un cable óptico del puerto 2 SP-B al conmutador 1 Fibre Channel. 8 Conecte un cable óptico del puerto 3 SP-B al conmutador 0 Fibre Channel. 9 Conecte un cable óptico del HBA0 del nodo 1 al conmutador 0 Fibre Channel. 10 Conecte un cable óptico del HBA1 del nodo 1 al conmutador 1 Fibre Channel. 11 Conecte un cable óptico del HBA0 del nodo 2 al conmutador 0 Fibre Channel. 12 Conecte un cable óptico del HBA1 del nodo 2 al conmutador 1 Fibre Channel.
Configuración de la red pública NOTA: asegúrese de que su dirección IP pública es una dirección IP válida y enrutable. Si todavía no ha configurado la red pública, lleve a cabo los siguientes pasos en cada nodo para configurarla: 1 Inicie la sesión como root.
3 Para obtener una alta disponibilidad, edite el archivo /etc/modprobe.conf y establezca la opción de supervisión de enlaces. El valor predeterminado para miimon es 0, que desactiva la opción de supervisión de enlaces. Inicialmente, cambie el valor a 100 milisegundos, y ajústelo según sea necesario para mejorar el rendimiento, como se muestra en el ejemplo siguiente.
7 Cuando las direcciones IP privadas están configuradas en cada nodo, ejecute el comando ping para cada dirección IP desde un nodo para asegurarse de que la red privada está operativa. 8 Conéctese a cada nodo y compruebe que la red privada y SSH funcionen correctamente; para ello, escriba: ssh 9 En cada nodo, modifique el archivo /etc/hosts; para ello, añada las líneas siguientes: 127.0.0.1 localhost.
Verificación de la configuración de almacenamiento Al configurar los clústeres, cree particiones en el sistema de almacenamiento Fibre Channel. Para crear las particiones, todos los nodos deben poder detectar los dispositivos de almacenamiento externos.
Desactivación de SELinux Para ejecutar la base de datos Oracle, debe desactivar SELinux. Para desactivar SELinux temporalmente, realice los pasos siguientes: 1 Inicie la sesión como root. 2 En el indicador de comandos, escriba: setenforce 0 Para desactivar SELinux de forma permanente, realice los pasos siguientes en todos los nodos: 1 Abra el archivo grub.conf. 2 Localice la línea de comandos del kernel y añada la opción siguiente: selinux=0 Por ejemplo: kernel /vmlinuz-2.6.9-34.
Para configurar el almacenamiento mediante OCFS2: 1 Inicie la sesión como root en el primer nodo. 2 Realice los pasos siguientes: a Inicie el sistema X Window; para ello, escriba: startx b Genere el archivo de configuración de OCFS2 (/etc/ocfs2/cluster.conf) con un nombre de clúster predeterminado de ocfs2; para ello, escriba lo siguiente en un terminal: ocfs2console c En el menú, haga clic en Cluster (Clúster)→ Configure Nodes (Configurar nodos).
5 En el primer nodo de un clúster Fibre Channel, cree una partición en cada uno de los dos dispositivos de almacenamiento externo con fdisk: a Cree una partición primaria para todo el dispositivo; para ello, escriba: fdisk /dev/emcpowerx Escriba h para obtener ayuda en la utilidad fdisk.
Configuración del almacenamiento compartido para el software de clúster Oracle y la base de datos Oracle mediante ASM Configuración del almacenamiento compartido para el µsoftware de clúster Oracle En esta sección se proporcionan instrucciones para configurar el almacenamiento compartido para el software de clúster Oracle.
Configuración del almacenamiento compartido para la base de datos mediante ASM Para configurar el clúster mediante ASM, realice los pasos siguientes en todos los nodos: 1 Inicie la sesión como root. 2 En todos los nodos, cree una partición en cada uno de los dos dispositivos de almacenamiento externo con la utilidad fdisk : a Cree una partición primaria para todo el dispositivo; para ello, escriba: fdisk /dev/emcpowerx Escriba h para obtener ayuda en la utilidad fdisk.
Configuración del almacenamiento compartido mediante el controlador de biblioteca ASM 1 Inicie la sesión como root. 2 Abra una ventana de terminal y realice los pasos siguientes en todos los nodos: a Escriba service oracleasm configure.
Instalación de Oracle RAC 10g En esta sección se describen los pasos necesarios para instalar Oracle RAC 10g, proceso que implica la instalación de CRS y del software de base de datos Oracle 10g. Dell recomienda crear una base de datos semilla para verificar que el clúster funciona correctamente antes de implantarlo en un entorno de producción.
7 Escriba los comandos siguientes para iniciar Oracle Universal Installer: unset ORACLE_HOME /runInstaller Aparece el mensaje siguiente: Was ’rootpre.sh’ been run by root? [y/n] (n) (¿El usuario root ha ejecutado “rootpre.sh”?) 8 Escriba y para continuar. 9 En la ventana de bienvenida, haga clic en Next (Siguiente). 10 En la ventana Specify Home Details (Especificar detalles de la ubicación principal), cambie la ruta principal de Oracle a /crs/oracle/product/10.2.
14 En la ventana Specify Oracle Cluster Registry (OCR) Location (Especificar ubicación del registro de clúster Oracle [OCR]), realice los pasos siguientes: a En la casilla OCR Configuration (Configuración de OCR), seleccione External Redundancy (Redundancia externa). b En el campo Specify OCR Location (Especificar ubicación de OCR), escriba: /dev/raw/ocr.dbf O bien: /u01/ocr.dbf si se utiliza OCFS2. c Haga clic en Next (Siguiente).
20 Realice los pasos siguientes en todos los nodos: a Compruebe la instalación del software de clúster Oracle escribiendo el comando siguiente: olsnodes -n -v Aparece una lista de los nombres de los nodos públicos de todos los nodos del clúster. b Escriba lo siguiente: crs_stat -t Aparecen todos los servicios del software de clúster Oracle que están en ejecución.
9 En la ventana Product-Specific Prerequisite Checks (Comprobaciones de requisitos previos específicos del producto), asegúrese de que aparece Succeeded (Correcto) en la columna Status (Estado) para cada comprobación del sistema y, a continuación, haga clic en Next (Siguiente). NOTA: en algunos casos, puede que aparezca una advertencia relativa al tamaño de la partición swap. Ignore la advertencia y haga clic en Yes (Sí) para continuar.
Instalación del patchset 10.2.0.2 de la base de datos Oracle 10g Descarga y extracción del software de instalación 1 Inicie la sesión como oracle en el primer nodo. 2 Cree una carpeta para los parches y las utilidades en /opt/oracle/patches. 3 Abra un explorador web y vaya a la página web de asistencia de Oracle en metalink.oracle.com. 4 Inicie una sesión en su cuenta de Oracle Metalink. 5 Busque el parche 4547817 con Linux x86-64 (AMD64/EM64T) como plataforma.
10 En la pantalla Summary (Resumen), haga clic en Install (Instalar). Oracle Universal Installer explora el sistema, muestra todos los parches que deben instalarse y los instala en el sistema. Una vez finalizada la instalación, aparece la pantalla End of Installation (Fin de la instalación). NOTA: este procedimiento puede tardar varios minutos en completarse. 11 Lea las instrucciones que se muestran en la ventana de mensaje que aparece.
9 Inicie Oracle Universal Installer. Para ello, escriba lo siguiente en la ventana de terminal y pulse : cd /opt/oracle/patches/Disk1/ ./runInstaller Aparece la pantalla de bienvenida. 10 Haga clic en Next (Siguiente). 11 En la pantalla Specify Home Details (Especificar detalles de la ubicación principal), haga clic en Next (Siguiente). 12 En la pantalla Specify Hardware Cluster Installation Mode (Especificar el modo de instalación del clúster de hardware), haga clic en Next (Siguiente).
23 Utilice el usuario oracle, desde el nodo donde aplicó el patchset, para copiar /opt/oracle/product/10.2.0/db_1/rdbms/lib/libknlopt.a en todos los demás nodos del clúster. Por ejemplo, para copiarlo del nodo1 al nodo2, escriba lo siguiente: scp /opt/oracle/product/10.2.0/db_1/rdbms/lib/libknlopt.a node2:/opt/oracle/product/10.2.0/db_1/rdbms/lib/libknlopt.a NOTA: no realice este paso como usuario root.
12 En la ventana Listener Configuration (Configuración del proceso de escucha)→ More Listeners? (¿Más procesos de escucha?), seleccione No y haga clic en Next (Siguiente). 13 En la ventana Listener Configuration Done (Configuración del proceso de escucha finalizada), haga clic en Next (Siguiente). 14 Haga clic en Finish (Finalizar).
12 En la ventana Database Content (Contenido de la base de datos), haga clic en Next (Siguiente). 13 En la ventana Database Services (Servicios de la base de datos), haga clic en Next (Siguiente). 14 En la ventana Initialization Parameters (Parámetros de inicialización), si el clúster tiene más de cuatro nodos, cambie el valor de Shared Pool (Grupo compartido) a 500 MB y haga clic en Next (Siguiente). 15 En la ventana Database Storage (Almacenamiento de base de datos), haga clic en Next (Siguiente).
Creación de la base de datos semilla mediante ASM En esta sección se describen los procedimientos necesarios para crear la base de datos semilla mediante Oracle ASM y para verificarla. Realice los pasos siguientes: 1 Inicie la sesión como root y escriba: cluvfy stage -pre dbcfg -n nodo1,nodo2 -d $ORACLE_HOME -verbose donde nodo1 y nodo2 son los nombres de host públicos. Si el sistema no está configurado correctamente, consulte “Solución de problemas” para obtener más información.
11 En la ventana Create ASM Instance (Crear instancia ASM), realice los pasos siguientes: a En el campo SYS password (Contraseña SYS), escriba una contraseña. b Seleccione Create server parameter file (SPFILE) (Crear archivo de parámetros de servidor [SPFILE]). c En el campo Server Parameter Filename (Nombre de archivo de parámetros de servidor), escriba: /dev/raw/spfile+ASM.ora d Haga clic en Next (Siguiente).
20 En la ventana Initialization Parameters (Parámetros de inicialización), realice los pasos siguientes: a Seleccione Custom (Personalizada). b En Shared Memory Management (Administración de memoria compartida) seleccione Automatic (Automática). c En las ventanas SGA Size (Tamaño de SGA) y PGA Size (Tamaño de PGA), especifique la información apropiada. d Haga clic en Next (Siguiente). 21 En la ventana Database Storage (Almacenamiento de base de datos), haga clic en Next (Siguiente).
26 Escriba lo siguiente en un nodo: srvctl status database -d nombrebdd donde nombrebdd es el nombre de identificación global que se ha definido para la base de datos en el DBCA. Si se están ejecutando las instancias de base de datos, aparece la confirmación en la pantalla. Si no se están ejecutando las instancias de base de datos, escriba lo siguiente: srvctl start database -d nombrebdd donde nombrebdd es el nombre de identificación global que se ha definido para la base de datos en el DBCA.
Configuración de la red pública Asegúrese de que la red pública funciona correctamente y de que se ha asignado una dirección IP y un nombre de host al sistema. 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 un dispositivo de almacenamiento adicional, realice los pasos siguientes: 1 Inicie la sesión como root.
Configuración del almacenamiento de base de datos mediante Oracle ASM 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 de otro para la recuperación flashback y los archivos de registro respectivamente. 1 Inicie la sesión como root.
Para desactivar SELinux de forma permanente, realice los pasos siguientes: 1 Abra el archivo grub.conf. 2 Localice la línea de comandos del kernel y añada la opción siguiente: selinux=0 Por ejemplo: kernel /vmlinuz-2.6.9-34.ELlargesmp ro root=LABEL=/ apic rhgb quiet selinux=0 3 Reinicie el sistema. 4 Abra una ventana de terminal e inicie la sesión como usuario root.
Instalación de la base de datos Oracle 10g Siga estos pasos para instalar Oracle 10g: 1 Inicie la sesión como root. 2 Como usuario root, monte el CD Oracle Database 10g. 3 Inicie el sistema X Window; para ello, escriba: startx 4 Abra una ventana de terminal y escriba lo siguiente: xhost + 5 Inicie la sesión como oracle. 6 Inicie Oracle Universal Installer.
Instalación del patchset 10.2.0.2 de la base de datos Oracle 10g Descarga y extracción del software de instalación 1 Inicie la sesión como oracle. 2 Cree una carpeta para los parches y las utilidades en /opt/oracle/patches. 3 Abra un explorador web y vaya a la página web de Oracle Metalink en metalink.oracle.com. 4 Inicie una sesión en su cuenta de Oracle Metalink. 5 Busque el parche 4547817 con Linux x86-64 (AMD64/EM64T) como plataforma. 6 Descargue el parche en el directorio /opt/oracle/patches.
10 En una ventana de terminal, escriba lo siguiente y pulse : /opt/oracle/product/10.2.0/db_1/root.sh 11 Pulse para aceptar las respuestas predeterminadas a las preguntas que formuló root.sh. NOTA: este procedimiento puede tardar varios minutos en completarse. 12 Cuando haya finalizado la ejecución de root.sh, vuelva a Execute Configuration Scripts (Ejecutar secuencias de comandos de configuración) y haga clic en OK (Aceptar).
6 En la ventana Database Identification (Identificación de la base de datos), escriba el nombre de la base de datos que está creando en los campos Global Database Name (Nombre base de datos global) y SID Prefix (Prefijo SID), y haga clic en Next (Siguiente). 7 En la ventana Management Options (Opciones de administración), haga clic en Next (Siguiente). 8 En la ventana Database Credentials (Credenciales de base de datos), complete las entradas y selecciones de contraseña y haga clic en Next (Siguiente).
Creación de la base de datos semilla mediante Oracle ASM Si ha configurado el almacenamiento mediante Oracle ASM, realice los pasos siguientes para crear una base de datos semilla con el DBCA: 1 Como usuario oracle, inicie el DBCA; para ello, escriba: dbca & 2 En la ventana de bienvenida, haga clic en Next (Siguiente). 3 En la ventana Operations (Operaciones), haga clic en Create a Database (Crear base de datos) y, a continuación, en Next (Siguiente).
13 En Available Disk Groups (Grupos de discos disponibles), haga clic en Create New (Crear nuevo). 14 En la ventana Disk Group (Grupo de discos), introduzca la información para los archivos de recuperación flashback y haga clic en OK (Aceptar). a Introduzca un nombre para el grupo de discos que va a crear, como por ejemplo flashbackDG, seleccione External Redundancy (Redundancia externa) y luego seleccione los discos que va a incluir en el grupo de discos.
23 Haga clic en Exit (Salir). 24 Una vez finalizada la creación de la base de datos, escriba los siguientes comandos para añadir la entrada de la variable de entorno ORACLE_SID al perfil de usuario oracle: echo "export ORACLE_SID=oradb" >> /home/oracle/.bash_profile source /home/oracle/.bash_profile En este ejemplo se presupone que oradb es el nombre global de la base de datos que se ha definido en el DBCA.
Configuración del almacenamiento compartido en el nodo nuevo Para ampliar una base de datos RAC existente para los nodos nuevos, configure el almacenamiento de los nodos nuevos de forma que el almacenamiento sea el mismo que en los nodos existentes. En esta sección se proporcionan los procedimientos correctos para ASM. Configuración del almacenamiento compartido mediante ASM Si utiliza ASM, asegúrese de que los nodos nuevos puedan acceder a los discos ASM con los mismos permisos que los nodos existentes.
8 Asegúrese de que el nuevo nodo puede acceder a los discos ASM. En el terminal, escriba lo siguiente y pulse : service oracleasm scandisks 9 Asegúrese de que los discos ASM están disponibles en el nuevo nodo. En la ventana de terminal, escriba lo siguiente y pulse : service oracleasm listdisks Se muestra una lista de todos los discos disponibles en los nodos restantes.
Adición de un nuevo nodo al nivel de base de datos 1 Inicie una sesión como oracle en uno de los nodos existentes. 2 Desde el directorio /opt/oracle/product/10.2.0/db_1/oui/bin del nodo existente, escriba ./addNode.sh para iniciar Oracle Universal Installer. 3 En la ventana de bienvenida, haga clic en Next (Siguiente). 4 En la ventana Specify Cluster Nodes for Node Addition (Especificar nodos de clúster para adición de nodos), compruebe que el nuevo nodo esté seleccionado y haga clic en Next (Siguiente).
5 Si el comando funciona correctamente, escriba netca para iniciar el asistente para la configuración de red. 6 Seleccione Cluster Configuration (Configuración del clúster) y, a continuación, haga clic en Next (Siguiente). 7 En la ventana Real Application Clusters, Active Nodes (Real Application Clusters, Nodos activos), elija Select all nodes (Seleccionar todos los nodos) y haga clic en Next (Siguiente).
5 En la ventana List of Cluster Databases (Lista de bases de datos de clúster), seleccione la base de datos existente. Si su nombre de usuario no está autenticado por el sistema operativo, el DBCA le solicitará un nombre de usuario y una contraseña de un usuario de la base de datos que tenga privilegios SYSDBA. 6 Introduzca el nombre de usuario sys y la contraseña y, a continuación, haga clic en Next (Siguiente).
Eliminación de un nodo del clúster Cuando realice los procedimientos de esta sección, asegúrese de seleccionar y eliminar el nodo correcto del clúster. Eliminación del nodo del nivel de instancia de base de datos 1 Inicie la sesión como oracle. 2 Desde uno de los nodos restantes, escriba: dbca & 3 En la ventana de bienvenida, haga clic en Next (Siguiente). 4 En la ventana Operations (Operaciones), haga clic en Instance Management (Administración de instancias) y, a continuación, en Next (Siguiente).
Reconfiguración del proceso de escucha 1 Escriba netca. 2 En la ventana Real Application Clusters→ Configuration (Configuración), seleccione Cluster Configuration (Configuración de clúster) y haga clic en Next (Siguiente). 3 En la ventana Real Application Clusters→ Active Nodes (Nodos activos), seleccione el nodo que desea eliminar y haga clic en Next (Siguiente). 4 En la ventana de bienvenida, seleccione Listener configuration (Configuración del proceso de escucha) y haga clic en Next (Siguiente).
Eliminación de un nodo del nivel de base de datos 1 Inicie la sesión como oracle en el nodo que va a eliminar. 2 Escriba el comando siguiente, utilizando el nombre público del nodo que desee eliminar (por ejemplo node3-pub): srvctl stop nodeapps -n node3-pub Omita el error CRS-0210 sobre el proceso de escucha. 3 Inicie la sesión como root en el nodo que va a eliminar. 4 Si desea eliminar el software de base de datos Oracle, escriba el comando siguiente: rm -rf /opt/oracle/product/10.2.
Reinstalación del software AVISO: la reinstalación del software borra toda la información de las unidades de disco duro. AVISO: debe desconectar todos los dispositivos de almacenamiento externos del sistema antes de reinstalar el software. AVISO: Dell recomienda realizar copias de seguridad periódicamente de la base de datos y de cada uno de los nodos para no perder datos importantes. Reinstale el software de nodos sólo si no tiene ninguna otra opción.
Información adicional Versiones de software admitidas En la tabla 1-7 se indica el software admitido en el momento de la publicación. Para ver el hardware y el software admitidos más recientes, consulte la página web de configuraciones probadas y validadas por Dell|Oracle en www.dell.com/10g y descargue la lista de soluciones disponibles de la base de datos Oracle 10g EM64T versión 2.0 para obtener las últimas versiones admitidas. Tabla 1-7.
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. Vea la tabla 1-8 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.
Solución de problemas En la tabla 1-9 se indican las acciones recomendadas para los problemas que pueden surgir al implantar y utilizar el software Red Hat Enterprise Linux y Oracle. Tabla 1-9. Solución de problemas Categoría Problema/síntoma Causa Acción correctiva recomendada Base de datos Los nodos que se inician correctamente con el patchset 10.2.0.1 pueden generar errores ORA-4031 al iniciarse en el patchset 10.2.0.2.
Tabla 1-9. Solución de problemas (continuación) Categoría Problema/síntoma Causa Acción correctiva recomendada Rendimiento y estabilidad Red Hat Enterprise Linux presenta un bajo rendimiento e inestabilidad. Uso excesivo de espacio de intercambio. El área global del sistema (SGA) de Oracle sobrepasa el tamaño recomendado. • Asegúrese de que el tamaño de SGA no sobrepase el 65% de la RAM total del sistema.
Tabla 1-9. 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-9. 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. Asegúrese de que ha definido nombres de nodo públicos y privados y de que puede ejecutar el comando ping en los nombres de nodo. Intente volver a iniciar el servicio reiniciando el nodo o ejecutando root.sh desde /crs/oracle/product/10.2.0/crs/ tras haber corregido los problemas de red. CRS Cuando se ejecuta root.
Tabla 1-9. Solución de problemas (continuación) Categoría Problema/síntoma Causa CRS Cuando se ejecuta root.sh, no se puede iniciar CRS. Se han realizado otros pasos para solucionar los problemas relacionados con CRS, pero el problema persiste. Acción correctiva recomendada 1 Active la depuración de errores añadiendo la línea siguiente a root.sh: set -x 2 Intente volver a iniciar el servicio ejecutando root.sh desde: /crs/oracle/product/10.2.
Tabla 1-9. Solución de problemas (continuación) Categoría Problema/síntoma Causa CRS El nodo se reinicia constantemente. La interconexión privada está fuera de servicio. Acción correctiva recomendada 1 Inicie Linux en modo de un solo usuario. 2 Escriba lo siguiente: /etc/inet.d/init.crs disable 3 Compruebe que el nodo puede ejecutar el comando ping para la interconexión privada a los nodos restantes del clúster. 4 Escriba lo siguiente: /etc/inet.d/init.crs enable 5 Reinicie el sistema.
Tabla 1-9. Solución de problemas (continuación) Categoría Problema/síntoma Causa Acción correctiva recomendada Instalación de software El software Oracle no se instala correctamente en los nodos. Los relojes del sistema de los nodos no son idénticos. Realice uno de los procedimientos siguientes: • Asegúrese de que el reloj del sistema en el nodo de instalación del software Oracle tiene una hora posterior a la de los demás nodos.
Obtención de ayuda Asistencia de Dell Para obtener información detallada sobre el uso del sistema, consulte la documentación incluida con los componentes del sistema. Para obtener documentos técnicos, las configuraciones admitidas por Dell e información general, visite la página web de configuraciones probadas y validadas por Dell|Oracle en www.dell.com/10g.
Índice A añadir y eliminar nodos, 399 ASM configurar almacenamiento de base de datos, 391 B base de datos Oracle 10g configuración de un solo nodo, 389 instalar, 378 instalar (un solo nodo), 393 base de datos semilla crear, 386, 395 verificar, 389, 396 bonding, 365 C clúster ejemplo de conexiones de hardware Fibre Channel, 359 configuración de CRS, 372-373 configuración del clúster Fibre Channel, 358 configuración del proceso de escucha, 383, 395, 402 configuraciones de hardware y software Fibre Channel,
Índice E ejemplos conexiones de hardware para un clúster Fibre Channel, 359 instalar (continuación) mediante el CD de implantación de Dell, 356 Oracle RAC 10g, 375 Red Hat Enterprise Linux, 356 eliminar un nodo, 405 N F Fibre Channel, configuración del clúster, 358 O H hardware interconexiones Fibre Channel, 359 requisitos mínimos para clústeres Fibre Channel, 354 requisitos mínimos para un solo nodo, 355 I implantar Oracle RAC 10g, 364 información adicional, 409 determinar la interfaz de red pr