Dell™ PowerEdge™ Systems Oracle Database 11g R1 on Red Hat® Enterprise Linux® 5 Advanced Server x86-64 or Oracle Enterprise Linux® 5 Advanced Server x86-64 Oracle Database Setup and Installation Guide Version 1.0 Overview of Oracle Database 11G Documentation The documentation set for the Oracle Database 11g R1 on Red Hat® Enterprise Linux® 5 Advanced Server x86-64 or Oracle Enterprise Linux® 5 Advanced Server x86-64 has been reorganized into a series of modules.
Notes, Cautions, and Warnings NOTE: A NOTE indicates important information that helps you make better use of your computer. ____________________ Information in this document is subject to change without notice. © 2009 Dell Inc. All rights reserved. Reproduction in any manner whatsoever without the written permission of Dell Inc. is strictly forbidden. Trademarks used in this text: Dell, the DELL logo, PowerEdge, and PowerVault are trademarks of Dell Inc.
Terminology Used in this Document This document uses the terms logical unit number (LUN) and virtual disk. These terms are synonymous and can be used interchangeably. The term LUN is commonly used in a Dell|EMC Fibre-Channel storage system environment and virtual disk is commonly used in a Dell PowerVault SAS (Dell MD3000i and Dell MD3000i with MD1000 expansion) storage environment.
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: su - oracle 6 Type: /cluvfy/runcluvfy.sh stage -pre crsinst -n node1,node2 -r 11gR1 -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 Type 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.
15 In the Specify Voting Disk Location window, perform the following steps: a In the Votingdisk Configuration box, select External Redundancy. b In the Specify Votingdisk Location field, type: /dev/emcpowerb1 or /u01/votingdisk1 if using OCFS2. c In the Additional Voting Disk 1 Location field, type: /dev/emcpowerb2 or /u01/votingdisk2 d In the Additional Voting Disk 2 Location field, type: /dev/emcpowerb3 or /u01/votingdisk3 e Click Next. 16 In the Summary window, click Install.
20 On all nodes, perform the following steps: a Verify the Oracle Clusterware installation by typing the following command: olsnodes -n -v A list of the public node names of all nodes in the cluster appears. b Type: crs_stat -t All running Oracle Clusterware services appear. Ensure that they are all online. Installing the Oracle Database 11g Software 1 As user root, type: xhost + 2 As user root, mount the Oracle Database 11g CD.
7 In the Specify Home Details window in the Path field, verify that the complete Oracle home path is /opt/oracle/product/11.1.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 11g Enterprise Edition with RAC into the same home name that you used for CRS. 8 In the Specify Hardware Cluster Installation Mode window, click Select All, and click Next.
6 In the TOPSNodes window, click Select All Nodes and click Next. 7 In the Welcome window, select Listener Configuration and click Next. 8 In the Listener Configuration→ Listener window, select Add and click Next. 9 In the Listener Configuration→ Listener Name window, type LISTENER in the Listener Name field and click Next. 10 In the Listener Configuration→ Select Protocols window, select TCP and click Next.
7 In the Database Identification window, type a Global Database Name such as racdb and click Next. 8 In the Management Options window, click Next. 9 In the Database Credentials window: a Click Use the same password for all accounts. b Complete password selections and entries. c Click Next. 10 In the Storage Options window, select Cluster File System and click Next. 11 In the Database File Locations window, click Next. 12 In the Recovery Configuration window: a Click Specify Flash Recovery Area.
20 On each node, perform the following steps: a Determine the database instance that exists on that node by typing: srvctl status database -d b Add the ORACLE_SID environment variable entry in the user profile oracle by typing: 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. NOTE: This example assumes that racdb is the global database name that you defined in DBCA.
Upgrading Oracle Clusterware Installation Before you begin the upgrade process, complete the following steps: 1 On the first node, log in as root. 2 Shut down Oracle Clusterware by entering the following in the terminal window and pressing : crsctl stop crs 3 On the remaining nodes, open a terminal window and repeat step 1 and step 2. 4 On the first node, log in as oracle. 5 In the terminal window, type the following and press : export ORACLE_HOME=/crs/oracle/product/11.1.0/crs Installing 11.
8 Log in as root. 9 Type the following and press : $ORA_CRS_HOME/install/root111.sh 10 Repeat step 7 through step 9 on the remaining nodes, one node at a time. 11 On the first node, return to the End of Installation screen. 12 Click Exit. 13 Click Yes to exit the Oracle Universal Installer. Installing 11.1.0.7 Patch Set for Oracle Database NOTE: Before you install the patch set, ensure that all the Oracle services are stopped.
10 In the Specify Home Details screen, click Next. 11 In the Specify Hardware Cluster Installation Mode screen, click Next. 12 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 completes, the End of Installation screen appears. A message window appears, prompting you to run root.sh as user root. 13 Open a terminal window.
2 On the first node, as the user oracle, type dbca & to start the Oracle Database Creation Assistant (DBCA). 3 In the Welcome window, select Oracle Real Application Cluster Database and click Next. 4 In the Operations window, click Create a Database and click Next. 5 In the Node Selection window, click Select All and click Next. 6 In the Database Templates window, click Custom Database and click Next. 7 In the Database Identification window, type a Global Database Name, such as racdb, and click Next.
15 Repeat step 14 for the remaining ASM disk group, using flashbackDG as the disk group name. 16 In the ASM Disk Groups window, select the disk group that you would like to use for Database Storage (for example, databaseDG) and click Next. 17 In the Database File Locations window, select Use Oracle-Managed Files and click Next.
27 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.
Securing Your System Disabling rsh To prevent unauthorized users from accessing your system, Dell recommends that you disable rsh after you install the Oracle software. To disable rsh, type: chkconfig rsh off For the purpose of Oracle installation, ssh is enabled without a password requirement for the root user. Please ensure that ssh is disabled for all the nodes of the RAC. You can disable ssh by removing all files in the following directory: /root/.
Configuring and Deploying Oracle Database 11g (Single Node) This section provides information about completing the initial setup or completing the reinstallation procedures as described in the Operating System and Hardware Installation, Linux Guide.
Use the fdisk utility to create a partition where you want to store your recovery files.
Configuring ASM Storage Using Block Devices 1 Add the disk group names for asm1 and asm2 to the permissions.ini file. This file is located in the following directory: /dell-oracle-deployment/scripts/: [asm] asm1= asm2= For example, if your ASM1 and ASM2 disk groups are /dev/emcpowerc1 and /dev/emcpowerd1, then the permissions.
3 In the terminal window, type the following: service oracleasm createdisk ASM1 /dev/sdb1 service oracleasm createdisk ASM2 /dev/sdc1 4 Repeat step 1 through step 3 for any additional ASM disks that you need to create. 5 Verify that the ASM disks are created and marked for ASM usage. In the terminal window, enter the following and press : service oracleasm listdisks The disks you created in step 3 are listed in the terminal window.
9 In the Specify Home Details window in the Path field, ensure that the path is: /opt/oracle/product/11.1.0/db_1 10 Click Next. 11 In the Product-Specific Prerequisite Checks window, click Next. 12 When the Warning message appears, ignore the message and click Yes. 13 In the Select Configuration Option window, click Install Database Software Only. 14 In the Summary window, click Install. 15 When prompted, open a terminal window and run root.sh.
Installing the Oracle Database 11g R1 11.1.0.7 Patch Set Download and extracting the installation software using the following steps: 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 www.metalink.oracle.com. 4 Log in to your Oracle Metalink account. Search for the patch number 6890831 with Linux x86-64 as the platform. 5 Download the patch to the /opt/oracle/patches directory.
Installing 11.1.0.7 Patch Set for Oracle Clusterware NOTE: You must install the patch set software from the node where the RAC 11g R1 software was installed. 1 Start the Oracle Universal Installer by entering the following in the terminal window and press : cd /opt/oracle/patches/Disk1/ ./runInstaller 2 The Welcome screen appears. Click Next. 3 In the Specify Home Details screen, click Next. 4 In the Specify Hardware Cluster Installation Mode screen, click Next.
Installing 11.1.0.7 Patch Set for Oracle Database NOTE: Before you install the patch set, ensure that all the Oracle services are stopped. Complete the following procedures before creating a listener and a seed database. Installing the Patch Set 1 On the first node, open a terminal window. 2 Log in as oracle. 3 Shut down the Oracle Clusterware node applications on all nodes.
14 Type the following and press : /opt/oracle/product/11.1.0/db_1/root.sh 15 Repeat step 13 and step 14 on the remaining nodes, one node at a time. When the installation completes, the End of Installation screen appears. NOTE: This procedure may take several minutes to complete. 16 In the End of Installation screen, click Exit. 17 Click Yes to exit the Oracle Universal Installer. 18 On the first node, open a terminal window. Log in as oracle.
11 In the Recovery Configuration window, click Browse and select the flashback recovery area that you created in "Configuring Database Storage Using ext3 File System" on page 19 (for example, /opt/oracle/recovery). Change the Flash Recovery Area size as needed. Select Enable Archiving 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.
3 In the Operations window, click Create a Database and click Next. 4 In the Database Templates window, click Custom Database and click Next. 5 In the Database Identification window, type a Global Database Name such as oradb and click Next. 6 In the Management Options window, click Next. 7 In the Database Credentials window, click Use the Same Password for All Accounts, complete password entries, and click Next. 8 In the Storage Options window, click ASM and click Next.
14 In the Disk Group window, type the information for the flashback recovery files and click OK. a Type a name for the disk group to be created, such as flashbackDG, select External Redundancy, and select the disks to include in the disk group. b If you are using the ASM library driver and you cannot access the candidate disks, click Change Disk Discovery String, type ORCL:* as the string, and then select ASM2.
Adding and Removing Nodes This section describes the steps to add a node to an existing cluster and the steps to remove a node from a cluster. NOTE: The new node must have the same hardware and operating system configuration as the existing node(s). To add a node to an existing cluster: • Add the node to the network layer. • Configure shared storage. • Add the node to Oracle Clusterware, database, and the database instance layers.
To configure the ASM disks: 1 Log in as root. 2 Open a terminal window and log in as root. 3 Copy the /dell-oracle-deployment/scripts/permissions.ini file from one of the existing nodes to the same location on the new node. 4 Enter the following command to set the proper permissions for block devices: /etc/rc.local 5 Open a terminal window and perform the following steps on the new node: a Type service oracleasm configure.
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/11.1.0/crs/oui/bin directory of this existing node, type ./addNode.sh to start the Oracle Universal Installer. 3 In the Welcome window, click Next. 4 In the Specify Cluster Nodes to Add to Installation window, type the public and private node names for the new node and click Next.
6 When prompted, as user root run /opt/oracle/product/11.1.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.sh finishes running in the Execute Configuration Scripts window, click OK. 8 In the End of Installation window, click Exit and click Yes when asked to confirm. Reconfiguring the Listener This section describes the steps to reconfigure the listener, which is required for remote client connection to a database.
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. 16 Start the listener on all the nodes by typing: lsnrctl start 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.
11 Click Yes. The following message appears: Do you want to perform another operation? 12 Click No. 13 On any node, determine that the instance is successfully added by typing: srvctl status database -d NOTE: See "Securing Your System" on page 18 and follow the steps for additional security setup. 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.
8 Select the instance to delete and click Next. This instance cannot be the local instance from where you are running DBCA. If you select the local instance, the DBCA displays an Error dialog. If this occurs, click OK, select another instance, and click Finish. If services are assigned to this instance, the DBCA Services Management window appears. Use this window to reassign services to other instances in the cluster database. 9 In the Summary window, click OK.
To Stop and Remove ASM From the Node That is Deleted On one of the remaining nodes, perform the following steps: 1 Open a terminal window. 2 Type: srvctl stop asm -n where is the node you want to remove from the cluster. 3 Type: srvctl remove asm -n where is the node you want to remove from the cluster. Deleting a Node From the Database Layer 1 On the node being deleted, log in as oracle.
To determine the node number of any node, type the following command: /crs/oracle/product/11.1.0/crs/bin/olsnodes -n 3 On the node that you are deleting, if you wish to remove the Oracle CRS software, type the following command: rm -rf /crs/oracle/product/11.1.0/crs/* Additional Information Supported Software Versions For the latest supported hardware and software, see the Dell|Oracle Tested and Validated Configuration website at dell.com/oracle.
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 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.
4 View the /etc/modprobe.conf file by typing: more /etc/modprobe.conf Several lines appear with the format alias ethx driver-module, where x is the Ethernet interface number and driver-module is the module you determined in step 3. For example, the line alias eth1 tg3 appears if your operating system assigned eth1 to a Broadcom NetXtreme Gigabit NIC. 5 Determine which Ethernet interfaces (ethx) are assigned to the type of Gigabit NIC that is connected to the Gigabit switch.
Oracle Support For training information on your Oracle software and application Clusterware, see the Oracle website at www.oracle.com or see your Oracle documentation for information about contacting Oracle. Technical support, downloads, and other technical information are available at the Oracle MetaLink website at www.metalink.oracle.com. For information on troubleshooting Oracle 11G systems, continue to the Troubleshooting Guide.
Dell™ PowerEdge™ 系统 Red Hat® Enterprise Linux® 5 Advanced Server x86-64 或 Oracle Enterprise Linux® 5 Advanced Server x86-64 上的 Oracle Database 11g R1 Oracle 数据库设置和安装 指南 1.
注、小心和警告 注:“注”表示可以帮助您更好地使用计算机的重要信息。 ____________________ 本说明文件中的信息如有更改,恕不另行通知。 © 2009 Dell Inc. 版权所有,翻印必究。 未经 Dell Inc. 书面许可,严禁以任何形式进行复制。 本文中使用的商标:Dell、 DELL 徽标、 PowerEdge 和 PowerVault 是 Dell Inc. 的商标; EMC、 PowerPath 和 Navisphere 是 EMC Corporation 的注册商标; Intel 和 Xeon 是 Intel Corporation 的注 册商标; Red Hat 和 Red Hat Enterprise Linux 是 Red Hat, Inc 的注册商标; AMD 和 Opteron 是 AMD Corporation 的商标。 本说明文件中述及的其它商标和产品名称是指拥有相应商标和产品名称的公司或其制造的产品。 Dell Inc.
本说明文件中使用的术语 本说明文件中使用了术语逻辑单元号码 (LUN) 和虚拟磁盘。这两个术语是同义 词并可互换使用。术语 LUN 通常在 Dell|EMC 光纤信道存储系统环境中使用, 而虚拟磁盘通常在 Dell PowerVault SAS (带有 MD1000 扩充的 Dell MD3000i 和 Dell MD3000i)存储环境中使用。 安装 Oracle 11g RAC 本节说明安装 Oracle 11g RAC 所需的步骤,其中包括安装 CRS 和安装 Oracle Database 11g 软件。 Dell 建议您创建基础数据库,以便在生产环境下部署群集 之前验证群集是否正常工作。 开始之前 以下各节说明在安装 Oracle 11g RAC 之前应完成的操作。 下载 Enterprise Linux 和 Dell 自动脚本 在系统上安装 Oracle RAC 软件之前: • 从 www.rhn.redhat.com 下载 Red Hat CD 映像。可从 www.oracle.
安装 Oracle 群集件 1 作为 root 登录。 2 通过键入以下命令启动 X Window 系统: startx 3 打开终端窗口,然后键入: xhost + 4 装入 Oracle Clusterware CD。 5 键入: su - oracle 6 键入: /cluvfy/runcluvfy.sh stage -pre crsinst -n node1,node2 -r 11gR1 -verbose 其中, node1 和 node2 是公用主机名。 如果系统配置不正确,请对相关问题进行故障排除,然后重复执行上述 runcluvfy.sh 命令。 如果系统配置正确,屏幕将显示以下信息: Pre-check for cluster services setup was successful on all the nodes.
11 在 Product-Specific Prerequisite Checks (产品特定先决条件检查)窗 口中,确保各项系统检查的 Status (状态)列中显示 Succeeded (成功),然后单击 Next (下一步)。 12 在 Specify Cluster Configuration (指定群集配置)窗口中,添加将由 Oracle 群集件管理的节点。 a 单击 Add (添加)。 b 键入 Public Node Name (公用节点名称)、 Private Node Name (专用节点名称)和 Virtual Host Name (虚拟主机名),然后单击 OK (确定)。 c 对其余节点重复步骤 a 和步骤 b。 d 在 Cluster Name (群集名称)字段中,键入群集名称。 默认群集名称为 crs。 e 单击 Next (下一步)。 13 在 Specify Network Interface Usage (指定网络接口用途)窗口中,确保公 用接口名称和专用接口名称正确。 要修改接口,请执行以下步骤: a 选择 Interface Name (接口名称),然
在 Specify OCR Mirror Location (指定 OCR 镜像位置)字段中, 键入: /dev/emcpowera2 c 或 /u01/ocr2.dbf.
16 在 Summary (摘要)窗口中,单击 Install (安装)。 在系统上安装 Oracle 群集件。 完成后,屏幕将显示 Execute Configuration scripts (执行配置脚本) 窗口。 17 按照窗口中的说明操作,然后单击 OK (确定)。 注:在格式化投票磁盘时,如果 root.sh 挂起,请应用 Oracle 增补软件 4679769,然后重复此步骤。 注:从主节点开始,在所有节点上按顺序运行 root.sh。例如,在节 点 1 运行 root.sh。当在节点 1 上完成 root.sh 后,继续在节点 2 上运行, 以此类推。请勿同时在多个节点上运行 root.
3 作为用户 oracle 登录并键入: /bin/ cluvfy stage -pre dbinst -n node1,node2 -r 11gR1 -verbose 其中, node1 和 node2 是公用主机名。 如果系统配置不正确,请参阅 《故障排除指南》了解详情。 如果系统配置正确,屏幕将显示以下信息: Pre-check for database installation was successful.
11 在 Summary (摘要)窗口中,单击 Install (安装)。 此时会在群集上安装 Oracle 数据库软件。 接下来,屏幕将显示 Execute Configuration Scripts (执行配置脚本) 窗口。 12 按照窗口中的说明操作,然后单击 OK (确定)。 13 在 End of Installation (安装结束)窗口中,单击 Exit (退出)。 配置侦听程序 本节说明配置侦听程序的步骤,与数据库建立远程客户机连接时需要使用此 程序。 仅在一个节点上,执行以下步骤: 1 作为 root 登录。 2 通过键入以下命令启动 X Window 系统: startx 3 打开终端窗口,然后键入: xhost + 4 作为用户 oracle,键入 netca 以启动 Net Configuration Assistant (网络配置助手)。 5 选择 Cluster Configuration (群集配置),然后单击 Next (下一步)。 6 在 TOPSNodes 窗口中,单击 Select All Nodes (选择全部节点),然后单 击 Next (下一步)。 7 在 Wel
11 在 Listener Configuration (侦听程序配置) → TCP/IP Protocol (TCP/IP 协议)窗口中,选择 Use the standard port number of 1521 (使用标准端口号 1521),然后单击 Next (下一步)。 12 在 Listener Configuration (侦听程序配置) → More Listeners? (更多侦 听程序?)窗口中,选择 No (否),然后单击 Next (下一步)。 13 在 Listener Configuration Done (侦听程序配置完成)窗口中,单击 Next (下一步)。 14 单击 Finish (完成)。 使用 OCFS2 创建基础数据库 1 作为用户 oracle 在第一个节点上登录并键入: $CRS_HOME/bin/cluvfy stage -pre dbcfg -n node1,node2 d $ORACLE_HOME -verbose 其中, node1 和 node2 是公用主机名。 如果系统配置不正确,请参阅 《故障排除指南》了解详情。 如果系统配置正确,屏幕将显示以下
8 在 Management Options (管理选项)窗口中,单击 Next (下一步)。 9 在 Database Credentials (数据库证书)窗口中: a 单击 Use the same password for all accounts (对所有帐户使用相同 密码)。 b 完成密码选择和输入。 c 单击 Next (下一步)。 10 在 Storage Options (存储选项)窗口中选择 Cluster File System (群集文 件系统),然后单击 Next (下一步)。 11 在 Database File Locations (数据库文件位置)窗口中,单击 Next (下一步)。 12 在 Recovery Configuration (恢复配置)窗口中: a 单击 Specify Flash Recovery Area (指定快擦写恢复区域)。 b 单击 Browse (浏览)并选择 /u03。 c 指定快擦写恢复大小。 d 选择 Enable Archiving (启用存档)。 e 单击 Next (下一步)。 13 在 Database
19 单击 Exit (退出)。 屏幕上会显示一则信息,表示正在所有节点上启动群集数据库。 20 在每个节点上,执行以下步骤: a 通过键入以下命令,确定该节点上存在的数据库实例: srvctl status database -d < 数据库名称 > b 通过键入以下命令,在 oracle 的用户配置文件中添加 ORACLE_SID 环境变量条目: echo "export ORACLE_SID=racdbx" >> /home/oracle/.bash_profile source /home/oracle/.bash_profile 其中 racdbx 是分配给节点的数据库实例标识符。 注:本例假定 racdb 是您在 DBCA 中定义的全局数据库名称。 安装 Oracle Database 11g R1 11.1.0.7 增补软件集 按以下步骤下载并解压安装软件: 1 在第一个节点上,作为用户 oracle 登录。 2 为增补软件和公用程序创建一个文件夹 /opt/oracle/patches。 3 打开 Web 浏览器,并浏览至 Oracle 支持网站 www.metalink.
升级 Oracle 群集件安装 在开始升级过程之前,请完成以下步骤: 1 在第一个节点上,作为 root 登录。 2 在终端窗口中键入以下命令并按 键,以关闭 Oracle 群集件: crsctl stop crs 3 在其余节点上,打开终端窗口,然后重复步骤 1 和步骤 2。 4 在第一个节点上,作为用户 oracle 登录。 5 在终端窗口中,键入以下命令并按 键: export ORACLE_HOME=/crs/oracle/product/11.1.0/crs 对 Oracle 群集件安装 11.1.0.7 增补软件集 注:必须从安装 RAC 11g R1 软件的节点安装增补软件集软件。 1 通过在终端窗口中键入以下命令并按 键来启动 Oracle Universal Installer (Oracle 通用安装程序): cd /opt/oracle/patches/Disk1/ .
9 键入以下命令并按 键: $ORA_CRS_HOME/install/root111.sh 10 按照每次一个节点的方式,在其余节点上重复执行步骤 7 至步骤 9。 11 在第一个节点上,返回到 End of Installation (安装结束)屏幕。 12 单击 Exit (退出)。 13 单击 Yes (是)以退出 Oracle Universal Installer (Oracle 通用安装 程序)。 对 Oracle 数据库安装 11.1.0.
11 在 Specify Hardware Cluster Installation Mode (指定硬件群集安装模式) 屏幕中,单击 Next (下一步)。 12 在 Summary (摘要)屏幕中,单击 Install (安装)。 Oracle Universal Installer (Oracle 通用安装程序)会扫描您的系统,显示 所有需要安装的增补软件,然后在您的系统中安装这些增补软件。安装完 成后,将会出现 End of Installation (安装结束)屏幕。此时会显示一个 信息窗口,提示您作为用户 root 运行 root.sh。 13 打开终端窗口。 14 键入以下命令并按 键: /opt/oracle/product/11.1.0/db_1/root.
如果系统配置正确,屏幕将显示以下信息: Pre-check for database configuration was successful.
14 在 Create Disk Group (创建磁盘组)窗口中,执行以下步骤: a 为要创建的磁盘组键入名称 (如 databaseDG),选择 External Redundancy (外部冗余),然后选择要包括在磁盘组中的磁盘。 b 如果您使用的是 ASM 库驱动程序,且无法访问候选磁盘,请单击 Change Disk Discovery String (更改磁盘搜索字符串),键入 ORCL: * 作为字符串,然后选择 ORCL:ASM1。 c 单击 OK (确定)。 在群集上创建第一个 ASM 磁盘组。 接下来,屏幕将显示 ASM Disks Groups (ASM 磁盘组)窗口。 15 对另一个 ASM 磁盘组重复执行步骤 14,使用 flashbackDG 作为磁盘组 名称。 16 在 ASM Disk Groups (ASM 磁盘组)窗口中,选择要用于数据库存储的 磁盘组 (例如, databaseDG),然后单击 Next (下一步)。 17 在 Database File Locations (数据库文件位置)窗口中,选择 Use OracleManaged Files (使用
25 在 Summary (摘要)窗口中单击 OK (确定)创建数据库。 注:完成此过程可能需要一个小时或更多时间。 完成数据库创建后,屏幕上将显示 Database Configuration Assistant (数据库配置助手)窗口。 26 单击 Password Management (密码管理),向授权用户分配特定的密码 (如果需要)。否则,单击 Exit (退出)。 屏幕上会显示一则消息,提示正在所有节点上启动群集数据库。 27 在每个节点上执行以下步骤: a 通过键入以下命令,确定该节点上存在的数据库实例: srvctl status database -d < 数据库名称 > b 键入以下命令,在 oracle 用户配置文件中添加 ORACLE_SID 环境变 量条目: echo "export ORACLE_SID=racdbx" >> /home/oracle/.bash_profile source /home/oracle/.
保护系统 禁用 rsh 为防止未经授权的用户访问系统,Dell 建议您在安装 Oracle 软件之后禁用 rsh。 要禁用 rsh,键入: chkconfig rsh off 出于安装 Oracle 的目的,可启用 ssh 而无需 root 用户输入密码。请确保对 RAC 的所有节点禁用 ssh。可通过删除以下目录中的所有文件禁用 ssh: /root/.
配置公用网络 请确保您的公用网络正常运行,并且已为您的系统分配了 IP 地址和主机名。 配置数据库存储 使用 ext3 文件系统配置数据库存储 如果您具有附加存储设备,请执行以下步骤: 1 作为 root 登录。 2 输入以下命令: cd /opt/oracle 3 输入以下命令: mkdir oradata recovery 使用 fdisk 公用程序创建您要在其中存储数据库文件的分区。 例如: sdb1 (如果存储设备为 sdb) 使用 fdisk 公用程序创建您要在其中存储恢复文件的分区。 例如: sdc1 (如果存储设备为 sdc) 4 输入以下命令验证新的分区: cat /proc/partitions 如果没有检测到新分区,请键入: sfdisk -R /dev/sdb sfdisk -R /dev/sdc 5 输入以下命令: mke2fs -j /dev/sdb1 mke2fs -j /dev/sdc1 6 通过添加如下条目编辑新建文件系统的 /etc/fstab 文件: /dev/sdb1 /opt/oracle/oradata ext3 defaults 1 2 62
7 输入以下命令: chown -R oracle.dba oradata recovery /dev/sdc1 /opt/oracle/recovery ext3 defaults 1 2 8 输入以下命令: mount /dev/sdb1 /opt/oracle/oradata mount /dev/sdc1 /opt/oracle/recovery 使用 Oracle ASM 配置数据库存储 以下示例假定您有两台存储设备 (sdb 和 sdc),可以分别使用它们创建一个用 于存储数据库文件的磁盘组和一个用于存储回闪恢复文件和存档日志文件的磁 盘组。 1 作为 root 登录。 2 通过键入以下命令,创建整个设备的主分区: fdisk /dev/sdb 3 通过键入以下命令,创建整个设备的主分区: fdisk /dev/sdc 使用块设备配置 ASM 存储 1 将 asm1 和 asm2 的磁盘组名称添加到 permissions.
2 运行以下命令以运行 permissions.py 脚本: /dell-oracle-deployment/scripts/permissions.py 3 运行以下命令以设置正确的块设备权限: /etc/rc.
安装 Oracle Database 11g 要安装 Oracle 11g,请执行以下步骤: 1 作为 root 登录。 2 以 root 用户身份装入 Oracle Database 11g CD。 3 通过键入以下命令启动 X Window 系统: startx 4 打开终端窗口,然后键入: xhost + 5 作为用户 oracle 登录。 6 启动 Oracle Universal Installer (Oracle 通用安装程序)。 在终端窗口中,键入以下命令并按 键: /runInstaller 7 在 Select Installation Method (选择安装方法)窗口中,单击 Advanced Installation (高级安装),然后单击 Next (下一步)。 8 在 Select Installation Types (选择安装类型)窗口中,单击 Enterprise Edition (企业版),然后单击 Next (下一步)。 9 在 Specify Home Details (指定主目录详细信息)窗口的 Path (路径) 字段中,确保路径为
15 屏幕出现提示时,打开终端窗口并运行 root.sh。 此时将会出现一个简短的进度窗口,随后出现 End of Installation (安装 结束)窗口。 16 单击 Exit (退出),然后单击 Yes (是)进行确认。 17 作为 root 登录。 18 键入: /opt/oracle/product/11.1.0/db_1/bin/localconfig add 安装过程即告完成。 此时会出现 Welcome (欢迎)屏幕。 配置侦听程序 1 作为 root 登录。 2 通过键入以下命令启动 X Window 系统: startx 3 打开终端窗口,然后键入: xhost + 4 作为用户 oracle 登录。 5 键入 netca 以启动 Oracle Net Configuration Assistant (Oracle 网络配 置助手)。 6 在所有屏幕上接受默认设置,然后单击 Next (下一步)以完成侦听程序 配置。 安装 Oracle Database 11g R1 11.1.0.
5 将该增补软件下载到 /opt/oracle/patches 目录。 6 要解压缩下载的 zip 文件,请在终端窗口中键入以下命令并按 键: unzip p6890831_111070_Linux-x86-64 升级 Oracle 群集件安装 在开始升级过程之前,请完成以下步骤: 1 在第一个节点上,作为 root 登录。 2 在终端窗口中键入以下命令并按 键,以关闭 Oracle 群集件: crsctl stop crs 3 在其余节点上,打开终端窗口,然后重复步骤 1 和步骤 2。 4 在第一个节点上,作为用户 oracle 登录。 5 在终端窗口中,键入以下命令并按 键: export ORACLE_HOME=/crs/oracle/product/11.1.0/crs 对 Oracle 群集件安装 11.1.0.
6 阅读所显示的信息窗口中的所有说明。 注:请勿关闭 Oracle 群集件守护程序,因为您已在步骤 1 和步骤 2 中执行 此过程。 7 打开终端窗口。 8 作为 root 登录。 9 键入以下命令并按 键: $ORA_CRS_HOME/install/root111.sh 10 按照每次一个节点的方式,在其余节点上重复执行步骤 7 至步骤 9。 11 在第一个节点上,返回到 End of Installation (安装结束)屏幕。 12 单击 Exit (退出)。 13 单击 Yes (是)以退出 Oracle Universal Installer (Oracle 通用安装 程序)。 对 Oracle 数据库安装 11.1.0.
8 通过在终端窗口中键入以下命令并按 键来启动 Oracle Universal Installer (Oracle 通用安装程序): cd /opt/oracle/patches/Disk1/ ./runInstaller 9 此时会出现 Welcome (欢迎)屏幕。单击 Next (下一步)。 10 在 Specify Home Details (指定主目录详细信息)屏幕中,单击 Next (下一步)。 11 在 Specify Hardware Cluster Installation Mode (指定硬件群集安装模式) 屏幕中,单击 Next (下一步)。 12 在 Summary (摘要)屏幕中,单击 Install (安装)。 Oracle Universal Installer (Oracle 通用安装程序)会扫描您的系统,显示 所有需要安装的增补软件,然后在您的系统中安装这些增补软件。安装完 成后,将会出现 End of Installation (安装结束)屏幕。此时会显示一个 信息窗口,提示您作为用户 root 运行 root.
创建基础数据库 使用 ext3 文件系统创建基础数据库 执行以下步骤,使用 DBCA 创建基础数据库: 1 作为用户 oracle 登录。 2 通过键入以下命令启动 Oracle DBCA: dbca 3 在 Welcome (欢迎)窗口中,单击 Next (下一步)。 4 在 Operations (操作)窗口中,单击 Create a Database (创建数据库), 然后单击 Next (下一步)。 5 在 Database Templates (数据库模板)窗口中,单击 Custom Database (自定义数据库),然后单击 Next (下一步)。 6 在 Database Identification (数据库识别)窗口的 Global Database Name (全局数据库名称)和 SID Prefix (SID 前缀)字段中,键入您要创建的 数据库的名称,然后单击 Next (下一步)。 7 在 Management Options (管理选项)窗口中,单击 Next (下一步)。 8 在 Database Credentials (数据库证书)窗口中,完成密码选择和输入, 然后单击
16 在 Confirmation (确认)窗口中,单击 OK (确定)创建数据库。 注:创建基础数据库可能需要一个多小时才能完成。 数据库创建过程完成后,屏幕上将显示 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 创建基础数据库 如果您使用 Oracle ASM 配置了存储设备,请执行以下步骤,使用 DBCA 创建 基础数据库: 1 作为用户 oracle,通过键入以下命令启动 DBCA: dbca & 2 在 Welcome (欢迎)窗口中,单
8 在 Storage Options (存储选项)窗口中,单击 ASM,然后单击 Next (下一步)。 9 在 Create ASM Instance (创建 ASM 实例)窗口中,输入用户 sys 的密码,然后单击 Next (下一步)。 10 当显示的信息表明 DBCA 已就绪,可以创建和启动 ASM 实例时,单击 OK (确定)。 11 在 ASM Disk Groups (ASM 磁盘组)窗口中的 Available Disk Groups (可用磁盘组)下,单击 Create New (新建)。 12 在 Create Disk Group (创建磁盘组)窗口中,键入数据库文件的存储 信息,然后单击 OK (确定)。 a 为要创建的磁盘组键入名称 (如 databaseDG),选择 External Redundancy (外部冗余),然后选择要包括在磁盘组中的磁盘。 b 如果使用的是原始设备接口,请选择 /dev/raw/ASM1。 c 如果您使用的是 ASM 库驱动程序,且无法访问候选磁盘,请单击 Change Disk Discovery String (更改磁盘搜索字符串),键
17 在 Recovery Configuration (恢复配置)窗口中,单击 Browse (浏览)。 选择您在步骤 14 中创建的回闪组 (例如, flashbackDG),然后根据需要 更改快擦写恢复区域的大小。 18 选择 Enable Archiving (启用存档)并单击 Next (下一步)。 19 在 Database Content (数据库内容)窗口中,单击 Next (下一步)。 20 在 Initialization Parameters (初始化参数)窗口中,选择 Typical (典型),然后单击 Next (下一步)。 21 在 Database Storage (数据库存储)窗口中,单击 Next (下一步)。 22 在 Creation Options (创建选项)窗口中,选择 Create Database (创建数据库),然后单击 Finish (完成)。 23 在 Confirmation (确认)窗口中,单击 OK (确定)创建数据库。 注:创建基础数据库可能需要一个多小时。 数据库创建完成后,屏幕上将显示 Password Management (密码管理) 窗口
要从现有群集中删除节点,则按相反顺序执行该过程,即依次从数据库实 例层、数据库层和 Oracle 群集件层删除该节点。 有关向现有群集添加其它节点的详情,请参阅 Oracle 网站 www.oracle.
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 c 确保新节点可以访问 ASM 磁盘。 d 在终端窗口中,键入以下命令并按 键: service oracleasm scandisks 6 确保 ASM 磁盘在新节点上可用。 在终端窗口中,键入以下命令并按 键: service oracleasm listdisks 列出其余节点上所有可用的磁盘。 例如: ASM1 ASM2 将新节点添加到 Or
4 在 Specify Cluster Nodes to Add to Installation (指定添加到安装的群集 节点)窗口中,键入新节点的公用和专用节点名称,然后单击 Next (下一步)。 如果所有网络和存储验证检查均已通过,则会显示 Cluster Node Addition Summary (群集节点添加摘要)窗口。 5 单击 Install (安装)。 Cluster Node Addition Progress (群集节点添加进度)窗口会显示节点添 加进度的状态。 6 当提示在本地节点上运行 rootaddnode.sh 和在新节点上运行 root.sh 时 (作为用户 root),请运行 /crs/oracle/product/11.1.0/crs/install/rootaddnode.sh。 7 当在 Execute Configuration Scripts (执行配置脚本)窗口中运行完 root.
7 当在 Execute Configuration Scripts (执行配置脚本)窗口中运行完 root.
12 在 Listener Configuration (侦听程序配置) → TCP/IP Protocol (TCP/IP 协议)窗口中,选择 Use the standard port number of 1521 (使用标准端口号 1521),然后单击 Next (下一步)。 13 在 Listener Configuration (侦听程序配置) → More Listeners? (更多侦 听程序?)窗口中,选择 No (否),然后单击 Next (下一步)。 14 在 Listener Configuration Done (侦听程序配置完成)窗口中,单击 Next (下一步)。 15 单击 Finish (完成)。 16 通过键入以下命令,在所有节点上启动侦听程序: lsnrctl start 将新节点添加到数据库实例层 1 在其中一个现有节点上,作为用户 oracle,通过键入以下命令启动 DBCA: dbca 2 在 Welcome (欢迎)窗口中,单击 Next (下一步)。 3 在 Operations (操作)窗口中,单击 Instance Management (实例管理),然后单
10 在 Summary (摘要)窗口中单击 OK (确定)添加数据库实例。 屏幕上将显示进度条,随后显示一则信息,询问是否要将 ASM 扩展到新 节点。 11 单击 Yes (是)。 系统将显示以下信息: Do you want to perform another operation? (是否要执行另 一个操作?) 12 单击 No (否)。 13 在任意节点上,通过键入以下命令确定是否已成功添加实例: srvctl status database -d < 数据库名称 > 注:请参阅第 61 页上的“保护系统”并遵循这些步骤进行附加安全保护设置。 从群集中删除节点 在执行本节中的过程时,确保从群集中选择和删除正确的节点。 从数据库实例层中删除节点 1 作为用户 oracle 登录。 2 从其余的某个节点上,键入: dbca 3 在 Welcome (欢迎)窗口中,单击 Next (下一步)。 4 在 Operations (操作)窗口中,单击 Instance Management (实例管理),然后单击 Next (下一步)。 5 在 Instance Management (实例管理)窗口中,单
8 选择要删除的实例,然后单击 Next (下一步)。 此实例不能是从其中运行 DBCA 的本地实例。如果您选择本地实例, DBCA 会显示 Error (错误)对话框。如果出现此对话框,请单击 OK (确定)并选择另一个实例,然后单击 Finish (完成)。 如果服务已分配给此实例,则会显示 DBCA Services Management (DBCA 服务管理)窗口。使用此窗口将服务重新分配给群集数据库中的 其它实例。 9 在 Summary (摘要)窗口中,单击 OK (确定)。 10 验证有关实例删除操作的信息,然后单击 OK (确定)。 DBCA 删除实例及其 Oracle 网络配置时,屏幕将显示进度条。操作完 成后,屏幕将显示一个对话框,提示您是否要执行另一项操作。 11 单击 No (否)以退出。 12 通过键入以下命令验证节点是否已删除: srvctl config database -d < 数据库名称 > 重新配置侦听程序 1 键入 netca。 2 在 Real Application Clusters → Configuration (配置)窗口中,选择 Cluster Confi
8 在 Listener Configuration Done (侦听程序配置完成)窗口中,单击 Next (下一步)。 9 单击 Finish (完成)。 从删除的节点停止和删除 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/11.1.
从 Oracle 群集件层中删除节点 1 在要删除的节点上,作为用户 root 键入以下命令来禁用 CRS: /crs/oracle/product/11.1.0/crs/install/rootdelete.sh remote nosharedvar 2 在其余的某个节点上,作为用户 root 键入以下命令: /crs/oracle/product/11.1.0/crs/install/rootdeletenod e.sh < 公用节点名称 >, < 节点编号 > 其中 < 公用节点名称 > 是要删除的节点的公用名称,而 < 节点编号 > 是要删除的节点的节点编号。 要确定任何节点的节点编号,请键入以下命令: /crs/oracle/product/11.1.0/crs/bin/olsnodes -n 3 在要删除的节点上,如果要删除 Oracle CRS 软件,请键入以下命令: rm -rf /crs/oracle/product/11.1.
3 按
键向 Grub 发出密码命令。 此时会提示您输入密码。 4 键入 dell 的默认密码或您选择的密码 (如果您更改了默认密码)。 现在, Grub 可以显示当前引导选项并允许您根据需要编辑这些选项。 确定专用网络接口 要确定为每个网络接口分配的接口设备名称,请执行以下步骤: 1 确定系统中 NIC 的类型 请参阅表 1 以识别您的系统中存在哪些集成的 NIC。 您的添加式 NIC 可能是 Intel PRO/100 系列或 PRO/1000 系列插卡,也可 能是 Broadcom NetXtreme Gigabit 插卡。您可能需要打开系统查看以识别 您的添加式插卡。 表 1.
2 验证是否已使用 Cat 5e 电缆将 Broadcom NetXtreme Gigabit 或 Intel PRO/1000 系列 NIC (即您的专用 NIC)连接至千兆位以太网交换机。 3 确定您的专用 NIC 使用的驱动程序模块 (请参阅表 1)。 4 通过键入以下命令查看 /etc/modprobe.conf 文件: more /etc/modprobe.conf 屏幕将以 alias ethx driver-module 格式显示几行文本,其中的 x 是以太 网接口编号, driver-module 是在步骤 3 中确定的模块。 例如,如果您的操作系统将 eth1 分配给 Broadcom NetXtreme Gigabit NIC,则屏幕将显示 alias eth1 tg3 文本行。 5 确定将哪些以太网接口 (ethx) 分配给连接至千兆位交换机的千兆位 NIC 类型。 如果 /etc/modprobe.
Oracle 支持 有关 Oracle 软件和应用程序群集件的培训信息,请访问 Oracle 网站 www.oracle.com 或参阅 Oracle 说明文件,了解关于联系 Oracle 的信息。 Oracle MetaLink 网站 www.metalink.oracle.
Systèmes Dell™ PowerEdge™ Oracle Database 11g R1 sur Red Hat® Enterprise Linux® 5 Advanced Server x86-64 ou Oracle Enterprise Linux® 5 Advanced Server x86-64 Guide d'installation et de configuration d'Oracle Database Version 1.0 Présentation de la documentation d'Oracle Database 11G La documentation d'Oracle Database 11g R1 sur Red Hat® Enterprise Linux® 5 Advanced Server x86-64 ou Oracle Enterprise Linux® 5 Advanced Server x86-64 a été réorganisée et répartie en plusieurs modules.
Remarques, précautions et avertissements REMARQUE : Une REMARQUE indique des informations importantes qui peuvent vous aider à mieux utiliser votre ordinateur. ____________________ Les informations contenues dans ce document sont sujettes à modification sans préavis. © 2009 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. est strictement interdite.
Terminologie utilisée dans le présent document. Les termes LUN (numéro d'unité logique) et disque virtuel sont synonymes et interchangeables. Le terme LUN est généralement utilisé pour les environnements de systèmes de stockage Fibre-Channel Dell|EMC, tandis que le terme disque virtuel est plutôt réservé aux environnements de stockage Dell PowerVault SAS (Dell MD3000i et Dell MD3000i avec châssis d'extension MD1000). Installation d'Oracle 11g RAC Cette section indique comment installer Oracle10g RAC.
Configuration de l'horloge système sur tous les nœuds Pour éviter que des erreurs ne se produisent pendant l'installation, attribuez à tous les nœuds des paramètres d'horloge système identiques. Synchronisez l'horloge système du nœud avec un serveur NTP (Network Time Protocol [Protocole de synchronisation réseau]).
7 Tapez les commandes suivantes pour démarrer Oracle Universal Installer : unset ORACLE_HOME /runInstaller Le message suivant apparaît : Has 'rootpre.sh' been run by root? (Le script 'rootpre.sh' a-t-il été lancé par l'utilisateur root ?) [y/n] (n) 8 Tapez y pour continuer. 9 Dans la fenêtre de bienvenue, cliquez sur Next (Suivant). 10 Dans la fenêtre Specify Home Details (Indiquer l'emplacement racine), définissez le répertoire racine d'Oracle sur /crs/oracle/product/11.1.
Pour modifier une interface, procédez comme suit : a Sélectionnez le nom de l'interface, puis cliquez sur Edit (Modifier). b Dans la zone Interface Type (Type d'interface) de la fenêtre Edit private interconnect type (Modifier le type d'interconnexion privée), sélectionnez le type d'interface approprié, puis cliquez sur OK.
c Dans le champ Additional Voting Disk 1 Location (Emplacement du disque de vote supplémentaire 1), tapez /dev/emcpowerb2 ou /u01/votingdisk2 d Dans le champ Additional Voting Disk 2 Location (Emplacement du disque de vote supplémentaire 2), tapez : /dev/emcpowerb3 ou /u01/votingdisk3 e Cliquez sur Next (Suivant). 16 Dans la fenêtre Summary (Résumé), cliquez sur Install (Installer). Oracle Clusterware est installé sur le système.
20 Sur tous les nœuds, effectuez les opérations suivantes :: a Vérifiez l'installation d'Oracle Clusterware en tapant la commande suivante : olsnodes -n -v La liste de tous les noms de nœuds publics du cluster s'affiche. b Tapez : crs_stat -t Tous les services Oracle Clusterware actifs s'affichent. Vérifiez qu'ils sont tous en ligne. Installation d'Oracle Database 11g 1 Connectez-vous en tant que root, puis tapez : xhost + 2 En tant qu'utilisateur root, montez le CD Oracle Database 11g.
7 Dans le champ Path (Chemin d'accès) de la fenêtre Specify Home Details (Indiquer l'emplacement racine), vérifiez que le répertoire racine d'Oracle est /opt/oracle/product/10.2.0/db_1, puis cliquez sur Next (Suivant). REMARQUE : Le nom du répertoire racine d'Oracle indiqué à ce stade doit être différent de celui utilisé lors de l'installation des services CRS. Vous ne pouvez pas installer Oracle 11g Enterprise Edition avec RAC dans le même répertoire racine que celui utilisé pour les services CRS.
Configuration de l'écouteur Cette section indique comment configurer l'écouteur, qui est requis pour la connexion des clients distants à la base de données. Effectuez les opérations suivantes sur un seul nœud : 1 Ouvrez une session 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 Pour démarrer l'assistant de configuration réseau, connectez-vous en tant qu'utilisateur oracle, puis tapez netca.
13 Dans la fenêtre Listener Configuration Done (Configuration de l'écouteur effectuée), cliquez sur Next (Suivant). 14 Cliquez sur Finish (Terminer). Création de la base de données initiale à l'aide d'OCFS2 1 Sur le premier nœud, connectez-vous en tant qu'utilisateur oracle et tapez : $CRS_HOME/bin/cluvfy stage -pre dbcfg -n nœud1,nœud2 d $ORACLE_HOME -verbose où nœud1 et nœud2 sont les noms d'hôte public. Si le système n'est pas configuré correctement, voir le Guide de dépannage pour plus d'informations.
8 Dans la fenêtre Management Options (Options de gestion), cliquez sur Next (Suivant). 9 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 (Suivant).
18 Dans la fenêtre Summary (Résumé), cliquez sur OK pour créer la base de données. REMARQUE : La création de la base de données initiale peut durer plus d'une heure. REMARQUE : Si un message Enterprise Manager Configuration Error (Erreur de configuration d'Enterprise Manager) s'affiche pendant la création de la base de données initiale, cliquez sur OK pour ne pas en tenir compte. Une fois la création de la base de données terminée, la fenêtre Password Management (Gestion des mots de passe) s'affiche.
Installation du patchset 11.1.0.7 d'Oracle Database 11g R1 Téléchargez et extrayez les logiciels d'installation en procédant comme suit : 1 Sur le premier nœud, 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 de support Oracle www.metalink.oracle.com. 4 Connectez-vous à votre compte Oracle Metalink. Recherchez le correctif 6890831 pour la plate-forme Linux x86-64.
Installation du patchset 11.1.0.7 d'Oracle Clusterware REMARQUE : Vous devez installer le groupe de correctifs à partir du nœud sur lequel Oracle RAC 10g R1 est installé. 1 Lancez Oracle Universal Installer. Pour ce faire, tapez les commandes suivantes dans la fenêtre de terminal, puis appuyez sur : cd /opt/oracle/patches/Disk1/ ./runInstaller 2 L'écran Welcome (Bienvenue) s'affiche. Cliquez sur Next (Suivant).
Installation du patchset 11.1.0.7 d'Oracle Database REMARQUE : Avant d'installer le groupe de correctifs, vérifiez que tous les services Oracle sont arrêtés. Effectuez les opérations suivantes avant de créer un écouteur et une base de données initiale. Installation du patchset 1 Sur le premier nœud, ouvrez une fenêtre de terminal. 2 Connectez-vous en tant qu'utilisateur oracle. 3 Arrêtez les applications Oracle Clusterware sur tous les nœuds.
12 Dans la fenêtre Summary (Résumé), cliquez sur Install (Installer). Oracle Universal Installer analyse le système, puis affiche et installe tous les correctifs requis. Une fois l'opération terminée, l'écran End of Installation (Fin de l'installation) s'affiche. Un message vous invite à vous connecter en tant que root et à exécuter root.sh. 13 Ouvrez une fenêtre de terminal. 14 Tapez la commande suivante, puis appuyez sur : /opt/oracle/product/11.1.0/db_1/root.
Si le système est configuré correctement, le message suivant s'affiche : Pre-check for database configuration was successful (La vérification préalable pour la configuration de la base de données a abouti). 2 Sur le premier nœud, connectez-vous en tant qu'utilisateur oracle, puis démarrez l'assistant de configuration de base de données (DBCA) en tapant dbca &.
c Dans le champ Server Parameter Filename (Nom du fichier de paramètres du serveur), tapez : /opt/oracle/product/11.1.0/db_1/initl+ASM.ora d Cliquez sur Next (Suivant). 12 Lorsqu'un message indique que l'assistant DBCA est prêt à créer et à démarrer ASM, cliquez sur OK. 13 Sous ASM Disk Groups (Groupes de disques ASM), cliquez sur Create New (Créer).
19 Sélectionnez Enable Archiving (Activer l'archivage), puis cliquez sur Next (Suivant). 20 Dans la fenêtre Database Content (Contenu de la base de données), cliquez sur Next (Suivant). 21 Dans la fenêtre Database Services (Services de base de données), configurez les services, le cas échéant, puis cliquez sur Next (Suivant). 22 Dans la fenêtre Initialization Parameters (Paramètres d'initialisation), procédez comme suit : a Sélectionnez Custom (Personnaliser).
27 Procédez comme suit pour chaque nœud. a Pour savoir quelle instance de base de données se trouve sur ce nœud, tapez : srvctl status database -d b Pour ajouter la variable d'environnement ORACLE_SID du profil utilisateur oracle, entrez les commandes suivantes : echo "export ORACLE_SID=racdbx" >> /home/oracle/.bash_profile source /home/oracle/.bash_profile où racdbx représente l'identificateur de l'instance de base de données attribué au nœud.
Protection du système Désactivation de rsh Pour protéger le système contre toute tentative d'accès non autorisé, Dell vous conseille de désactiver rsh une fois l'installation du logiciel Oracle terminée. Pour désactiver rsh tapez : chkconfig rsh off Pour faciliter l'installation d'Oracle, l'utilisateur root est autorisé à utiliser ssh sans indiquer de mot de passe. Vérifiez que ssh est désactivé sur tous les nœuds de la configuration RAC.
Configuration et déploiement d'Oracle Database 11g (nœud unique) Cette section contient des informations sur la configuration initiale et les procédures de réinstallation décrites dans le document Operating System and Hardware Installation, Linux Guide (Guide Linux d'installation du système d'exploitation et du matériel).
À l'aide de fdisk, créez une partition pour le stockage des fichiers de récupération. Par exemple : sdc1, si le périphérique de stockage est sdc.
Configuration du stockage ASM à l'aide de périphériques de bloc 1 Ajoutez les noms de groupes de disques correspondants à asm1 et à asm2 dans le fichier permissions.ini. Ce fichier se trouve dans le répertoire suivant : /dell-oracle-deployment/scripts/: [asm] asm1= asm2= Par exemple, si les noms de vos groupes de disques ASM1 et ASM2 sont /dev/emcpowerc1 et /dev/emcpowerd1, alors le fichier permissions.
b Tapez les entrées suivantes pour tous les nœuds : Default user to own the driver interface [ ]: oracle Default group to own the driver interface [ ]: dba Start Oracle ASM library driver on boot (y/n) [n]: y Fix permissions of Oracle ASM disks on boot (y/n) [y]: y 3 Dans la fenêtre de terminal, tapez : service oracleasm createdisk ASM1 /dev/sdb1 service oracleasm createdisk ASM2 /dev/sdc1 4 Répétez la procédure de l'étape 1 à l'étape 3 pour tout disque ASM supplémentaire à créer.
6 Démarrez Oracle Universal Installer. Dans la fenêtre de terminal, tapez la commande suivante, puis 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 (Suivant). 8 Dans la fenêtre Select Installation Type (Sélection du type d'installation), cliquez sur Enterprise Edition, puis cliquez sur Next (Suivant).
Configuration de l'écouteur 1 Ouvrez une session 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 Connectez-vous en tant qu'utilisateur oracle. 5 Tapez netca pour lancer l'assistant de configuration du réseau d'Oracle. 6 Acceptez les paramètres par défaut, puis cliquez sur Next (Suivant) dans chaque écran pour terminer la configuration de l'écouteur. Installation du patchset 11.1.0.
Mise à niveau de l'installation d'Oracle Clusterware Avant de commencer la mise à niveau, effectuez la procédure suivante : 1 Sur le premier nœud, connectez-vous en tant qu'utilisateur root. 2 Fermez Oracle Clusterware. Pour ce faire, tapez la commande suivante dans la fenêtre de terminal, puis appuyez sur : crsctl stop crs 3 Sur les autres nœuds, ouvrez une fenêtre de terminal, puis répétez les étapes 1 et 2. 4 Sur le premier nœud, connectez-vous en tant qu'utilisateur oracle.
6 Lisez toutes les instructions figurant dans la fenêtre de message qui s'affiche. REMARQUE : N'arrêtez pas les démons Oracle Clusterware. Cette procédure a déjà été effectuée aux étapes 1 et 2. 7 Ouvrez une fenêtre de terminal. 8 Ouvrez une session en tant que root. 9 Tapez la commande suivante, puis appuyez sur : $ORA_CRS_HOME/install/root111.sh 10 Répétez les étapes 7 à 9 sur les autres nœuds (un nœud à la fois).
7 Tapez la commande suivante, puis appuyez sur : export ORACLE_HOME=/opt/oracle/product/11.1.0/db_1 8 Lancez Oracle Universal Installer. Pour ce faire, tapez les commandes suivantes dans la fenêtre de terminal, puis appuyez sur : cd /opt/oracle/patches/Disk1/ ./runInstaller 9 L'écran Welcome (Bienvenue) s'affiche. Cliquez sur Next (Suivant). 10 Dans la fenêtre Specify Home Details (Indiquer l'emplacement racine), cliquez sur Next (Suivant).
Création de la base de données initiale Création de la base de données initiale à l'aide du système de fichiers ext3 Pour créer une base de données initiale à l'aide de l'assistant DBCA, procédez comme suit : 1 Connectez-vous en tant qu'utilisateur oracle. 2 Démarrez l'assistant DBCA d'Oracle en tapant : dbca 3 Dans la fenêtre de bienvenue, cliquez sur Next (Suivant). 4 Dans la fenêtre Operations (Opérations), cliquez sur Create a Database (Créer une base de données), puis sur Next (Suivant).
12 Dans la fenêtre Database Content (Contenu de la base de données), cliquez sur Next (Suivant). 13 Dans la fenêtre Initialization Parameters (Paramètres d'initialisation), cliquez sur Next (Suivant). 14 Dans la fenêtre Database Storage (Stockage de la base de données), cliquez sur Next (Suivant). 15 Dans la fenêtre Creation Options (Options de création), cliquez sur Create Database (Créer une base de données), puis cliquez sur Finish (Terminer).
Création de la base de données initiale à l'aide d'Oracle ASM Si vous avez configuré le stockage à l'aide d'Oracle ASM, procédez comme suit pour créer une base de données initiale avec l'assistant DBCA : 1 Connectez-vous en tant qu'utilisateur oracle, puis démarrez l'assistant DBCA en tapant : dbca & 2 Dans la fenêtre de bienvenue, cliquez sur Next (Suivant). 3 Dans la fenêtre Operations (Opérations), cliquez sur Create a Database (Créer une base de données), puis sur Next (Suivant).
12 Dans la fenêtre Create Disk Group (Créer un groupe de disques), entrez les informations relatives au stockage des fichiers de la base de données, puis cliquez sur OK. a Entrez un nom pour le groupe de disques à créer (GDbdd, par exemple), sélectionnez External Redundancy (Redondance externe), puis sélectionnez les disques à inclure dans le groupe. b Si vous utilisez RAW Device Interface, sélectionnez /dev/raw/ASM1.
17 Dans la fenêtre Recovery Configuration (Configuration de la récupération), cliquez sur Browse (Parcourir). Sélectionnez le groupe de récupération flashback créé à l'étape 14 (par exemple, GDflashback), puis modifiez la taille de la zone de récupération flash en fonction de vos besoins. 18 Sélectionnez Enable Archiving (Activer l'archivage), puis cliquez sur Next (Suivant). 19 Dans la fenêtre Database Content (Contenu de la base de données), cliquez sur Next (Suivant).
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 configurer les disques ASM : 1 Ouvrez une session en tant que root. 2 Ouvrez une fenêtre de terminal, puis connectez-vous en tant que root. 3 Copiez le fichier /dell-oracle-deployment/scripts/permissions.ini d'un nœud vers le répertoire correspondant du nouveau nœud. 4 Tapez la commande suivante afin de définir les autorisations appropriées pour les périphériques de bloc : /etc/rc.
Ajout d'un nœud à la couche Clusterware 1 Connectez-vous en tant qu'utilisateur oracle sur l'un des nœuds existants. 2 À partir du répertoire /crs/oracle/product/11.1.0/crs/oui/bin de l'un des nœuds existants, tapez ./addNode.sh pour lancer Oracle Universal Installer. 3 Dans la fenêtre de bienvenue, cliquez sur Next (Suivant).
4 Dans la fenêtre Specify Cluster Nodes for Node Addition (Définition des nœuds à ajouter au cluster), vérifiez que le nouveau nœud est sélectionné, puis cliquez sur Next (Suivant). La fenêtre Cluster Node Addition Summary (Résumé de l'ajout du nœud au cluster) s'affiche lorsque les vérifications se sont déroulées correctement. 5 Cliquez sur Install (Installer). La fenêtre Cluster Node Addition Progress (Progression de l'ajout du nœud au cluster) affiche l'état de l'opération.
5 Une fois cette opération terminée, tapez netca pour lancer l'assistant de configuration réseau. 6 Sélectionnez Cluster Configuration (Configuration du cluster), puis cliquez sur Next (Suivant). 7 Dans la fenêtre Real Application Clusters, Active Nodes (RAC, Nœuds actifs), cliquez sur Select all nodes (Sélectionner tous les nœuds), puis cliquez sur Next (Suivant). 8 Dans la fenêtre de bienvenue, cliquez sur Listener configuration (Configuration de l'écouteur), puis cliquez sur Next (Suivant).
Ajout d'un 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 (Suivant). 3 Dans la fenêtre Operations (Opérations), cliquez sur Instance Management (Gestion des instances), puis cliquez sur Next (Suivant).
12 Cliquez sur No (Non). 13 Sur l'un des nœuds, vérifiez que l'instance a été ajoutée correctement en tapant : srvctl status database -d REMARQUE : Pour définir des options de sécurité supplémentaires, suivez les instructions de la section “Protection du système”, à la page 108. 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é.
8 Sélectionnez l'instance à supprimer et cliquez sur Next (Suivant). Il ne peut pas s'agir de l'instance locale à partir de laquelle vous exécutez l'assistant DBCA. Si vous sélectionnez l'instance locale, l'assistant DBCA affiche une erreur. Le cas échéant, cliquez sur OK, sélectionnez une autre instance, puis cliquez sur Finish (Terminer). Si des services sont attribués à cette instance, la fenêtre DBCA Services Management (Gestion des services de l'assistant DBCA) s'affiche.
6 Dans la fenêtre Listener Configuration, Select Protocols (Configuration de l'écouteur, Sélection des protocoles), sélectionnez LISTENER, puis cliquez sur Next (Suivant). Lorsque le message “Are you sure you want to delete listener LISTENER?” (Voulez-vous vraiment supprimer l'écouteur LISTENER ?) s'affiche, cliquez sur Yes (Oui). 7 Dans la fenêtre Listener Configuration, Listener Deleted (Configuration de l'écouteur, Écouteur supprimé), cliquez sur Next (Suivant).
Suppression d'un nœud de la couche Oracle Clusterware 1 Connectez-vous comme utilisateur root sur le nœud à supprimer, puis désactivez les services CRS en tapant : /crs/oracle/product/11.1.0/crs/install/rootdelete.sh remote nosharedvar 2 Connectez-vous ensuite en tant que root sur l'un des nœuds restants, puis tapez : /crs/oracle/product/11.1.0/crs/install/rootdeletenod e.
3 Appuyez sur
pour lancer la commande de saisie du mot de passe Grub. Une invite de saisie du mot de passe s'affiche. 4 Entrez le mot de passe par défaut dell ou celui que vous avez choisi, si vous l'avez modifié. Grub peut alors afficher les options d'amorçage disponibles, que vous pouvez modifier selon vos besoins.
2 Vérifiez qu'une carte réseau Broadcom NetXtreme Gigabit ou Intel PRO/1000 est connectée via un câble Cat 5e au commutateur Gigabit Ethernet. 3 Identifiez le pilote utilisé par la carte réseau privée (voir le tableau 1). 4 Affichez le fichier /etc/modprobe.conf en tapant : more /etc/modprobe.conf Plusieurs lignes s'affichent, avec le format alias ethx module-pilote, où x correspond au numéro d'interface Ethernet et module-pilote, au module défini à l'étape 3.
Obtention d'aide Support Dell Pour plus d'informations 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 dell.com/oracle. 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, visitez le site support.dell.com.
Dell™ PowerEdge™-Systeme Oracle Database 11g R1 mit Red Hat® Enterprise Linux® 5 Advanced Server x86-64 oder Oracle Enterprise Linux® 5 Advanced Server x86-64 Oracle Database Setup- und Installationshandbuch Version 1.0 Übersicht über die Dokumentation zu Oracle Database 11G Die Dokumentationen für Oracle Database 11g R1 mit Red Hat® Enterprise Linux® 5 Advanced Server x86-64 oder Oracle Enterprise Linux® 5 Advanced Server x86-64 wurden in einer Reihe von Modulen neu strukturiert.
Anmerkungen, Vorsichtshinweise und Warnungen ANMERKUNG: Eine ANMERKUNG macht auf wichtige Informationen aufmerksam, mit denen Sie das System besser einsetzen können. ____________________ Irrtümer und technische Änderungen vorbehalten. © 2009 Dell Inc. Alle Rechte vorbehalten. Nachdrucke jeglicher Art ohne die vorherige schriftliche Genehmigung von Dell Inc. sind strengstens untersagt. Marken in diesem Text: Dell, das DELL Logo, PowerEdge und PowerVault sind Marken von Dell Inc.
In diesem Dokument verwendete Terminologie In diesem Dokument werden die Begriffe Logische Gerätenummer (LUN) und Virtueller Datenträger verwendet. Diese Begriffe sind synonym und untereinander ersetzbar. Der Begriff LUN wird üblicherweise im Zusammenhang mit Dell|EMC Fibre-Channel-Speichersystemumgebungen und der Begriff virtuelles Laufwerk bei Dell PowerVault SAS-Speicherumgebungen (Dell MD3000i und Dell MD3000i mit Erweiterung MD1000) verwendet.
Konfiguration der Systemzeiteinstellung für alle Knoten Um Fehler beim Installationsvorgang zu vermeiden, konfigurieren Sie alle Clusterknoten mit identischen Systemzeiteinstellungen. Synchronisieren Sie die Knotensystemzeit mit einem NTP-Server (Network Time Protocol).
7 Geben Sie die folgenden Befehle ein, um den Oracle Universal Installer zu starten: unset ORACLE_HOME /runInstaller Die folgende Meldung wird eingeblendet: Has ’rootpre.sh’ been run by root? [y/n] (n) 8 Geben Sie y ein, um fortzufahren. 9 Klicken Sie im Begrüßungsfenster auf Weiter. 10 Ändern Sie im Fenster Specify Home Details (Stamm-Details festlegen) den „Oracle home path“ (Oracle-Stammpfad) in /crs/oracle/product/11.1.0/crs, und klicken Sie auf Next (Weiter).
13 Überprüfen Sie im Fenster Specify Network Interface Usage (Nutzung der Netzwerkschnittstelle festlegen), ob die öffentlichen und privaten Schnittstellennamen korrekt sind. Um eine Schnittstelle zu ändern, gehen Sie wie folgt vor: a Wählen Sie den Schnittstellennamen aus, und klicken Sie auf Edit (Bearbeiten).
15 Führen Sie im Fenster Specify Voting Disk Location (Speicherort für VotingDatenträger festlegen) die folgenden Schritte durch: a Wählen Sie im Feld Votingdisk Configuration (Voting-DatenträgerKonfiguration) den Eintrag External Redundancy (Externe Redundanz) aus. b Geben Sie im Feld Specify Votingdisk Location (Speicherort für VotingDatenträger festlegen) Folgendes ein: /dev/emcpowerb1 Oder /u01/votingdisk1, wenn Sie OCFS2 verwenden.
17 Befolgen Sie die Anweisungen im Fenster, und klicken Sie dann auf OK. ANMERKUNG: Falls root.sh beim Formatieren des Voting-Datenträgers nicht mehr reagiert, installieren Sie den Oracle-Patch 4679769, und wiederholen Sie dann diesen Schritt. ANMERKUNG: Führen Sie root.sh erst auf dem primären Knoten und dann der Reihe nach auf allen anderen Knoten aus. Beispiel: Führen Sie root.sh auf Knoten1 aus 1. Nachdem root.sh auf Knoten 1 beendet wurde, fahren Sie mit Knoten 2 fort usw. Führen Sie root.
3 Melden Sie sich als oracle an und geben Sie folgende Befehle ein: /bin/ cluvfy stage -pre dbinst -n Knoten1,Knoten2 -r 11gR1 -verbose wobei Knoten1 und Knoten2 die öffentlichen Hostnamen sind. Wenn das System nicht korrekt konfiguriert ist, lesen Sie das Handbuch zur Fehlerbehebung, um weitere Informationen zu erhalten. Wenn das System korrekt konfiguriert ist, wird die folgende Meldung angezeigt: Pre-check for database installation was successful.
10 Wählen Sie im Fenster Select Configuration Option (Konfigurationsoption wählen) die Option Install database Software only (Nur Datenbank-Software installieren), und klicken Sie auf Next (Weiter). 11 Klicken Sie im Fenster Summary (Übersicht) auf Install (Installieren). Oracle Database ist damit auf dem Cluster installiert. Als Nächstes wird das Fenster Execute Configuration Scripts (Konfigurationsskripts ausführen) angezeigt. 12 Befolgen Sie die Anweisungen im Fenster, und klicken Sie dann auf OK.
9 Geben Sie im Fenster Listener Configuration → Listener Name (ListenerKonfiguration, Name des Listeners) im Feld Listener Name (Name des Listeners) die Zeichenfolge LISTENER ein, und klicken Sie auf Next (Weiter). 10 Wählen Sie im Fenster Listener Configuration → Select Protocols (ListenerKonfiguration, Protokolle auswählen) die Option TCP, und klicken Sie auf Next (Weiter).
3 Wählen Sie im Fenster Welcome (Willkommen) die Option Oracle Real Application Cluster Database (Oracle Real Application Cluster-Datenbank), und klicken Sie auf Next (Weiter). 4 Klicken Sie im Fenster Operations (Aktionen) auf Create a Database (Datenbank erstellen) und danach auf Weiter. 5 Klicken Sie im Fenster Node Selection (Knotenauswahl) auf Select All (Alle auswählen) und danach auf Weiter.
13 Klicken Sie im Fenster Database Content (Datenbankinhalt) auf Weiter. 14 Klicken Sie im Fenster Database Services (Datenbankdienste) auf Weiter. 15 Wenn der Cluster mehr als vier Knoten umfasst, ändern Sie im Fenster Initialization Parameters (Initialisierungsparameter) den Wert für Shared Pool (Gemeinsam genutzter Speicher) auf 500MB, und klicken Sie auf Next (Weiter). 16 Klicken Sie im Fenster Database Storage (Datenbankspeicher) auf Weiter.
b Fügen Sie dem Benutzerprofil oracle mit folgendem Befehl die Umgebungsvariable ORACLE_SID hinzu: echo "export ORACLE_SID=racdbx" >> /home/oracle/.bash_profile source /home/oracle/.bash_profile wobei racdbx dem Bezeichner der Datenbankinstanz auf dem Knoten entspricht. ANMERKUNG: In diesem Beispiel wird davon ausgegangen, dass Sie im DBCA racdb als globalen Datenbanknamen definiert haben. Installation des Patchsets 11.1.0.
Upgrade der Oracle Clusterware-Installation Führen Sie die folgenden Schritte aus, bevor Sie mit dem Upgradeprozess beginnen: 1 Melden Sie sich am ersten Knoten als Benutzer root an. 2 Fahren Sie Oracle Clusterware herunter, indem Sie im Terminalfenster den nachstehenden Befehl eingeben und anschließend die drücken: crsctl stop crs 3 Öffnen Sie auf den übrigen Knoten ein Terminalfenster, und wiederholen Sie Schritt 1 und Schritt 2. 4 Melden Sie sich am ersten Knoten als Benutzer oracle an.
5 Klicken Sie im Bildschirm Summary (Übersicht) auf Install (Installieren). Der Oracle Universal Installer untersucht das System, zeigt alle benötigten Patches an und installiert diese auf dem System. Nach Abschluss des Vorgangs wird der Bildschirm End of Installation (Installation abgeschlossen) angezeigt. ANMERKUNG: Dieser Vorgang kann mehrere Minuten dauern. 6 Lesen Sie alle Anweisungen im angezeigten Meldungsfenster.
Installation des Patchsets 1 Öffnen Sie auf dem ersten Knoten ein Terminalfenster. 2 Melden Sie sich als Benutzer oracle an. 3 Beenden Sie auf allen Knoten die Oracle Clusterware-Knotenanwendungen. Geben Sie im Terminalfenster den folgenden Befehl ein, und drücken Sie die : $ORACLE_HOME/bin/srvctl stop nodeapps -n 4 Wiederholen Sie Schritt 3 auf den verbleibenden Knoten, und ändern Sie den Knotennamen des jeweiligen Knotens.
14 Geben Sie die folgende Zeile ein, und drücken Sie die : /opt/oracle/product/11.1.0/db_1/root.sh 15 Wiederholen Sie Schritt 13 und Schritt 14 auf den verbleibenden Knoten (jeweils nur für einen Knoten). Nach Abschluss des Vorgangs wird der Bildschirm End of Installation (Installation abgeschlossen) angezeigt. ANMERKUNG: Dieser Vorgang kann mehrere Minuten dauern. 16 Klicken Sie im Bildschirm End of Installation (Installation abgeschlossen) auf Exit (Beenden).
3 Wählen Sie im Fenster Welcome (Willkommen) die Option Oracle Real Application Cluster Database (Oracle Real Application Cluster-Datenbank), und klicken Sie auf Next (Weiter). 4 Klicken Sie im Fenster Operations (Aktionen) auf Create a Database (Datenbank erstellen) und danach auf Weiter. 5 Klicken Sie im Fenster Node Selection (Knotenauswahl) auf Select All (Alle auswählen) und danach auf Weiter.
14 Führen Sie im Fenster Create Disk Group (Datenträgergruppe erstellen) folgende Schritte durch: a Geben Sie einen Namen für die zu erstellende Datenträgergruppe ein, etwa databaseDG, wählen Sie External Redundancy (Externe Redundanz), und wählen Sie dann die Datenträger für die Datenträgergruppe aus.
b Wählen Sie bei Shared Memory Management (Verwaltung des gemeinsamen Speichers) die Option Automatic (Automatisch). c Geben Sie in den Fenstern SGA Size (SGA-Größe) und PGA Size (PGA-Größe) die zutreffenden Informationen ein. d Klicken Sie auf Next (Weiter). 23 Klicken Sie im Fenster Database Storage (Datenbankspeicher) auf Weiter. 24 Klicken Sie im Fenster Creation Options (Erstellungsoptionen) auf Create Database (Datenbank erstellen) und anschließend auf Finish (Fertigstellen).
wobei racdbx dem Bezeichner der Datenbankinstanz auf dem Knoten entspricht. In diesem Beispiel wird davon ausgegangen, dass Sie im DBCA racdb als globalen Datenbanknamen definiert haben. 28 Geben Sie auf einem Knoten folgenden Befehl ein: srvctl status database -d dbname wobei dbname der globale Bezeichnername ist, den Sie im DBCA definiert haben. Wenn die Datenbankinstanzen aktiv sind, wird auf dem Bildschirm eine Bestätigung angezeigt.
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. Führen Sie die nachstehenden Schritte durch, um das oracle-Kennwort festzulegen: 1 Melden Sie sich als root beim System an. 2 Geben Sie passwd oracle ein, und befolgen Sie die Anweisungen auf dem Bildschirm, um das oracle-Kennwort zu erstellen.
Konfigurieren des Datenbankspeichers Konfiguration des Datenbankspeichers mit ext3-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 folgenden Befehl ein: cd /opt/oracle 3 Geben Sie folgenden Befehl ein: mkdir oradata recovery Erstellen Sie mit dem Dienstprogramm fdisk eine Partition zum Speichern Ihrer Datenbankdateien. Beispiel: sdb1, falls Ihr Speichergerät die Bezeichnung sdb hat.
7 Geben Sie folgenden Befehl ein: chown -R oracle.
Um eine weitere ASM-Datenträgergruppe hinzuzufügen, zum Beispiel ASM3 mit dem Namen /dev/emcpowere1, fügen Sie der Sitzung einen weiteren Eintrag hinzu: asm3=/dev/emcpowere1 2 Geben Sie den folgenden Befehl ein, um das Skript permissions.py auszuführen: /dell-oracle-deployment/scripts/permissions.py 3 Geben Sie den folgenden Befehl ein, um die korrekten Blockgerätberechtigungen festzulegen: /etc/rc.
5 Überprüfen Sie, ob die ASM-Datenträger erstellt wurden und für ASMVerwendung 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 im Terminalfenster aufgelistet. Zum Beispiel: ASM1 ASM2 Installation von Oracle Database 11g Gehen Sie wie folgt vor, um Oracle 11g zu installieren: 1 Melden Sie sich als root beim System an.
9 Stellen Sie im Fenster Specify Home Details (Stamm-Details festlegen) sicher, dass im Feld Path (Pfad) Folgendes eingetragen ist: /opt/oracle/product/11.1.0/db_1 10 Klicken Sie auf Next (Weiter). 11 Klicken Sie im Fenster Product-Specific Prerequisite Checks (Produktspezifische Vorüberprüfungen) auf Weiter. 12 Falls eine Warnmeldung angezeigt wird, übergehen Sie diese, und klicken Sie auf Yes (Ja).
5 Geben Sie netca ein, um den Oracle Net Configuration Assistant (Netzkonfigurationsassistent) zu starten. 6 Behalten Sie in allen Fenstern die Standardeinstellungen bei, und klicken Sie jeweils auf Next (Weiter), um die Konfiguration des Listeners abzuschließen. Installation des Patchsets 11.1.0.7 für Oracle Database 11g R1 Führen Sie die folgenden Schritte aus, um die Installationssoftware herunterzuladen und zu extrahieren: 1 Melden Sie sich am ersten Knoten als Benutzer oracle an.
4 Melden Sie sich am ersten Knoten als Benutzer oracle an. 5 Geben Sie im Terminalfenster den folgenden Befehl ein, und drücken Sie die : export ORACLE_HOME=/crs/oracle/product/11.1.0/crs Installation des Patchsets 11.1.0.7 für Oracle Clusterware ANMERKUNG: Sie müssen die Patchset-Software über den Knoten installieren, auf dem die RAC 11g R1-Software installiert wurde.
10 Wiederholen Sie Schritt 7 bis Schritt 9 auf den verbleibenden Knoten (jeweils nur für einen Knoten). 11 Kehren Sie auf dem ersten Knoten zum Bildschirm End of Installation (Installation abgeschlossen) zurück. 12 Klicken Sie auf Exit (Beenden). 13 Klicken Sie auf Yes (Ja), um den Oracle Universal Installer zu beenden. Installation des Patchsets 11.1.0.7 für Oracle Database ANMERKUNG: Vergewissern Sie sich vor dem Installieren des Patchsets, dass alle Oracle-Dienste beendet sind.
9 Der Begrüßungsbildschirm wird angezeigt. Klicken Sie auf Next (Weiter). 10 Klicken Sie im Bildschirm Specify Home Details (Stammdetails festlegen) auf Next (Weiter). 11 Klicken Sie im Fenster Specify Hardware Cluster Installation Mode (Hardware-Cluster-Installationsmodus festlegen) auf Next (Weiter). 12 Klicken Sie im Bildschirm Summary (Übersicht) auf Install (Installieren). Der Oracle Universal Installer untersucht das System, zeigt alle benötigten Patches an und installiert diese auf dem System.
Erstellen der Startdatenbank Erstellen der Startdatenbank mit ext3-Dateisystem Gehen Sie wie folgt vor, um mit dem Datenbankkonfigurationsassistenten eine Startdatenbank zu erstellen: 1 Melden Sie sich als Benutzer oracle an. 2 Starten Sie den Oracle DBCA, indem Sie folgenden Befehl eingeben: dbca 3 Klicken Sie im Begrüßungsfenster auf Weiter. 4 Klicken Sie im Fenster Operations (Aktionen) auf Create a Database (Datenbank erstellen) und danach auf Weiter.
13 Klicken Sie im Fenster Initialization Parameters (Initialisierungs-Parameter) auf Weiter. 14 Klicken Sie im Fenster Database Storage (Datenbankspeicher) auf Weiter. 15 Aktivieren Sie im Fenster Creation Options (Erstellungsoptionen) das Kontrollkästchen Create Database (Datenbank erstellen), und klicken Sie anschließend auf Finish (Fertig stellen). 16 Klicken Sie im Fenster Confirmation (Bestätigung) auf OK, um die Datenbank zu erstellen.
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 Weiter. 3 Klicken Sie im Fenster Operations (Aktionen) auf Create a Database (Datenbank erstellen) und danach auf Weiter.
12 Geben Sie im Fenster Create Disk Group (Datenträgergruppe erstellen) die Speicherinformationen für die Datenbankdateien ein, und klicken Sie auf OK. a Geben Sie einen Namen für die zu erstellende Datenträgergruppe ein, etwa databaseDG, wählen Sie External Redundancy (Externe Redundanz), und wählen Sie dann die Datenträger für die Datenträgergruppe aus. b Wenn Sie die RAW-Geräteschnittstelle verwenden, wählen Sie /dev/raw/ASM1.
17 Klicken Sie im Fenster Recovery Configuration (Wiederherstellungsoptionen) auf Browse (Durchsuchen). Wählen Sie die Wiederherstellungsgruppe aus, die Sie in Schritt 14 erstellt haben (im Beispiel flashbackDG), und ändern Sie die Größe des Wiederherstellungsbereichs nach Bedarf. 18 Wählen Sie Enable Archiving (Archivierungsfunktion aktivieren), und klicken Sie auf Next (Weiter). 19 Klicken Sie im Fenster Database Content (Datenbankinhalt) auf Weiter.
Hinzufügen und Entfernen von Knoten In diesem Abschnitt wird beschrieben, wie Knoten zu einem Cluster hinzugefügt bzw. aus einem Cluster entfernt werden. ANMERKUNG: Der neue Knoten muss die gleiche Hardware- und Betriebssystemkonfiguration aufweisen wie die bestehenden Knoten. So fügen Sie einem bestehenden Cluster einen Knoten hinzu: • Fügen Sie der Netzwerkschicht einen Knoten hinzu. • Konfigurieren Sie gemeinsamen Speicher.
Konfiguration von gemeinsamem Speicher auf dem neuen Knoten mit ASM 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. Wenn Sie ASM verwenden, sollten die neuen Knoten die gleichen Zugriffsrechte für den ASM-Datenträger erhalten wie die bereits vorhandenen Knoten. Dieser Abschnitt enthält die Vorgehensweise für ASM. So konfigurieren Sie die ASM-Laufwerke: 1 Melden Sie sich als root beim System an.
6 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. Zum Beispiel: ASM1 ASM2 Hinzufügen eines neuen Knotens zur Oracle Clusterware-Schicht 1 Melden Sie sich auf einem der bestehenden Knoten als oracle an.
7 Wenn die Ausführung von root.sh im Fenster Execute Configuration Scripts (Konfigurationsskripte ausführen) beendet ist, klicken Sie auf OK. 8 Klicken Sie im Fenster End of Cluster Node Addition (Knoten hinzufügen: Fertig) auf Exit (Beenden) und klicken Sie im Fenster Exit (Beenden) auf Yes (Ja). 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/11.1.
Neukonfiguration des Listeners In diesem Abschnitt werden die Schritte zum Neukonfigurieren des Listeners beschrieben; dies ist erforderlich, damit Clients sich über das Netzwerk mit einer Datenbank verbinden können. ANMERKUNG: Beim folgenden Vorgang wird angenommen, dass Sie bereit sind, den Listener anzuhalten und den vorhandenen Listener neu zu konfigurieren. Andernfalls weicht die Vorgehensweise eventuell etwas von den untenstehenden Schritten ab.
11 Wählen Sie im Fenster Listener Configuration → Select Protocols (ListenerKonfiguration, Protokolle auswählen) die Option TCP, und klicken Sie auf Next (Weiter). 12 Wählen Sie im Fenster Listener Configuration → TCP/IP Protocol (ListenerKonfiguration, TCP/IP-Protokoll) die Option Use the standard port number of 1521 (Standardportnummer 1521 verwenden) aus, und klicken Sie auf Next (Weiter).
6 Geben Sie den Benutzernamen sys und das Kennwort ein, und klicken Sie auf Next (Weiter). Das Fenster List of Cluster Database Instances (Liste der ClusterDatenbankinstanzen) wird eingeblendet. Hier sind die Instanzen angezeigt, die mit der von Ihnen ausgewählten RAC-Datenbank verbunden sind, sowie der Status jeder Instanz. 7 Klicken Sie im Fenster List of Cluster Database Instances (Liste von ClusterDatenbankinstanzen) 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 Benutzer oracle an. 2 Geben Sie auf einem der anderen Knoten Folgendes ein: dbca 3 Klicken Sie im Begrüßungsfenster auf Weiter.
9 Klicken Sie im Fenster Summary (Übersicht) auf OK. 10 Überprüfen Sie die Angaben zum Löschen der Instanz, und klicken Sie auf OK. Der DBCA entfernt die Instanz und die dazugehörige Oracle NetKonfiguration. Dieser Vorgang wird durch einen Fortschrittsbalken visualisiert. Nach Abschluss des Vorgangs werden Sie in einem Dialogfeld gefragt, ob Sie einen weiteren Vorgang ausführen möchten. 11 Klicken Sie zum Beenden auf No (Nein).
8 Klicken Sie im Fenster Listener Configuration Done (Listener-Konfiguration abgeschlossen) auf Next (Weiter). 9 Klicken Sie auf Fertig stellen. Anhalten und Entfernen von ASM vom gelöschten Knoten Führen Sie auf einem der verbleibenden Knoten folgende Schritte durch: 1 Öffnen Sie ein Terminalfenster. 2 Geben Sie Folgendes ein: srvctl stop asm -n wobei für den Knoten steht, der aus dem Cluster entfernt werden soll.
Entfernen eines Knoten aus der Oracle Clusterwareschicht 1 Deaktivieren Sie CRS auf dem zu entfernenden Knoten, indem Sie als Benutzer root den folgenden Befehl eingeben: /crs/oracle/product/11.1.0/crs/install/rootdelete.sh remote nosharedvar 2 Geben Sie auf einem der verbleibenden Knoten als Benutzer root folgenden Befehl ein: /crs/oracle/product/11.1.0/crs/install/rootdeletenod e.
2 Drücken Sie eine beliebige Taste auf der Konsolentastatur, um fortzufahren. 3 Drücken Sie
, um den Kennwortbefehl an Grub zu übermitteln. Sie werden zur Eingabe des Kennworts aufgefordert. 4 Geben Sie das voreingestellte Kennwort dell ein. Falls Sie die Voreinstellung geändert haben, geben Sie statt dessen das von Ihnen festgelegte Kennwort ein. Grub kann jetzt die verfügbaren Startoptionen anzeigen und ermöglicht Ihnen, sie nach Bedarf zu ändern.
Tabelle 1.
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|OracleWebsite unter dell.com/oracle.
Dell™ PowerEdge™ システム Red Hat® Enterprise Linux® 5 Advanced Server x86-64/Oracle Enterprise Linux® 5 Advanced Server x86-64 上で使用する Oracle Database 11g R1 Oracle データベースセットアップ & インストールガイドバージョン 1.
メモ、注意、警告 メモ:コンピュータを使いやすくするための重要な情報を説明しています。 ____________________ 本書の内容は予告なく変更されることがあります。 © 2009 すべての著作権は Dell Inc. にあります。 Dell Inc. の書面による許可のない複製は、いかなる形態においても厳重に禁じられています。 本書に使用されている商標:Dell、DELL ロゴ、PowerEdge、および PowerVault は Dell Inc. の商標です。EMC、PowerPath、および Navisphere は EMC Corporation の登録商標です。 Intel および Xeon は Intel Corporation の登録商標です。Red Hat および Red Hat Enterprise Linux は Red Hat, Inc の登録商標です。AMD および Opteron は AMD Corporation の商標 です。 商標または製品の権利を主張する事業体を表すためにその他の商標および社名が使用されて いることがあります。Dell Inc.
本書で使用されている用語 本書では、「論理ユニット番号」(LUN)および「仮想ディスク」という語が 使われています。これらの用語は同義語であり、どちらを使用しても構いま せん。「LUN」は Dell|EMC ファイバーチャネルストレージシステムの環 境で、「仮想ディスク」は Dell PowerVault SAS(Dell MD3000i および Dell MD3000i + MD1000 拡張)ストレージの環境で、通常使われる用語です。 Oracle 11g RAC のインストール 本項では Oracle 11g RAC のインストール手順について説明します。これに は CRS のインストール および Oracle Database 11g ソフトウェアのインス トールが含まれます。クラスタを実働環境に導入する前に、シードデータ ベースを作成してそのクラスタが正しく動作するかどうか確認することをお 勧めします。 作業を開始する前に 以下の項では、Oracle 11g RAC をインストールする前の準備作業について説 明します。 Enterprise Linux と Dell Automation Scr
すべてのノードのシステムクロックの設定 インストール中のエラーを避けるために、すべてのノードでシステムクロッ クの設定を同一にしてください。 お使いのノードのシステムクロックを Network Time Protocol(NTP)サー バーと同期化します。NTP サーバーにアクセスできない場合は、次の手順の いずれかを実行してください。 • Oracle Database ソフトウェアのインストールを実行するノードのシス テムクロックが残りのノードよりも遅い時刻に設定されていることを確 認します。 • ノードの 1 つを NTP サーバーとして構成し、クラスタ内の残りのノー ドを同期化します。 Oracle Clusterware のインストール 1 root としてログインします。 2 次のように入力して、X Window System を起動します。 startx 3 ターミナルウィンドウを開き、次のように入力します。 xhost + 4 『Oracle Clusterware CD』をマウントします。 5 次のように入力します。 su - oracle 6 次のように入力します。
7 次のコマンドを入力して、Oracle Universal Installer を起動します。 unset ORACLE_HOME /runInstaller 次のメッセージが表示されます。 Has ’rootpre.sh’ been run by root?(rootpre.sh はルー トで実行されましたか ?) [y/n] (n) 8 y と入力して続行します。 9 Welcome(ようこそ)ウィンドウで Next(次へ)をクリックします。 10 Specify Home Details(ホームの詳細の指定)ウィンドウで、Oracle ホームのパスを /crs/oracle/product/11.1.
b Interface Type(インタフェースタイプ)ボックスの Edit private interconnect type(プライベート相互接続タイプの 編集)ウィンドウで、適切なインタフェースタイプを選択し、OK をクリックします。 c Specify Network Interface Usage(ネットワークインタフェー スの用途を指定する)ウィンドウで、パブリックインタフェース名 とプライベートインタフェース名が正しいことを確認し、Next (次へ)をクリックします。 14 Specify Oracle Cluster Registry (OCR) Location(Oracle Cluster Registry(OCR)の場所の指定)ウィンドウで、次の手順を実行します。 a OCR Configuration(OCR の設定)ボックスで、Normal Redundancy(ノーマルな冗長性)を選択します。 Specify OCR Location(OCR の場所の指定)フィールドに次のテ キストを入力します。 /dev/emcpowera1 b または /u01/ocr1.
Additional Voting Disk 1 Location(追加の投票ディスク 1 の 場所)フィールドに次のテキストを入力します。 /dev/emcpowerb2 c または /u01/votingdisk2 Additional Voting Disk 2 Location(追加の投票ディスク 2 の 場所)フィールドに次のテキストを入力します。 /dev/emcpowerb3 d または /u01/votingdisk3 e Next(次へ)をクリックします。 16 Summary(サマリー)ウィンドウで、Install(インストール)をク リックします。 Oracle Clusterware がシステムにインストールされます。 完了すると、Execute Configuration scripts(構成スクリプトの 実行)ウィンドウが表示されます。 17 ウィンドウ内の指示に従い、OK をクリックします。 メモ:投票ディスクのフォーマット中に root.
20 すべてのノードで以下の手順を実行します。 a 次のコマンドを入力して Oracle Clusterware のインストールを確認 します。 olsnodes -n -v クラスタ内のすべてのノードのパブリックノード名が一覧表示され ます。 b 次のように入力します。 crs_stat -t 実行中のすべての Oracle Clusterware サービスが表示されます。 すべてがオンラインになっていることを確認します。 Oracle Database 11g ソフトウェアのインストール 1 root ユーザーとして、次のように入力します。 xhost + 2 ユーザー root として、『Oracle Database 11g CD』をマウントします。 3 oracle としてログインし、次のように入力します。 /bin/ cluvfy stage -pre dbinst -n node1,node2 -r 11gR1 -verbose node1 および node2 はパブリックホスト名です。 お使いのシステムが正しく構成されない場合は、『トラブルシューティ ングガイド』で
6 Select Installation Type(インストールタイプの選択)ウィンドウで Enterprise Edition を選択し、Next(次へ)をクリックします。 7 Specify Home Details(ホームの詳細の指定)ウィンドウの Path (パス)フィールドで、Oracle ホームの完全なパスが /opt/oracle/product/11.1.
リスナーの設定 本項では、データベースへのリモートクライアントの接続に必要なリスナー の設定手順について説明します。 1 つのノードのみで、以下の手順を実行します。 1 root としてログインします。 2 次のように入力して、X Window System を起動します。 startx 3 ターミナルウィンドウを開き、次のように入力します。 xhost + 4 ユーザー oracle として、netca と入力して Net Configuration Assistant を起動します。 5 Cluster Configuration(クラスタ構成)を選択してから、Next (次へ)をクリックします。 6 TOPSNodes ウィンドウで Select All Nodes(すべてのノードを選択 する)をクリックし、Next(次へ)をクリックします。 7 Welcome(ようこそ)ウィンドウで Listener Configuration(リス ナーの設定)を選択してから、Next(次へ)をクリックします。 8 Listener Configuration(リスナーの設定) → Listener(リスナー) ウ
13 Listener Configuration Done(リスナーの設定が終了しました) ウィンドウで Next(次へ)をクリックします。 14 Finish(完了)をクリックします。 OCFS2 を使用したシードデータベースの作成 1 最初のノードで oracle としてログインし、次のように入力します。 $CRS_HOME/bin/cluvfy stage -pre dbcfg -n node1,node2 d $ORACLE_HOME -verbose node1 および node2 はパブリックホスト名です。 お使いのシステムが正しく構成されない場合は、『トラブルシューティ ングガイド』で詳細を参照してください。 お使いのシステムが正しく構成されると、次のメッセージが表示され ます。 Pre-check for database configuration was successful.
9 Database Credentials(データベース資格証明)ウィンドウで、以下 の手順を実行します。 a Use the same password for all accounts(すべてのアカウント に対して同じパスワードを使用)をクリックします。 b パスワードの選択と入力を完了します。 c Next(次へ)をクリックします。 10 Storage Options(記憶域オプション)ウィンドウで、Cluster File System を選択してから、Next(次へ)をクリックします。 11 Database File Locations(データベースファイルの位置)ウィンドウ で Next(次へ)をクリックします。 12 Recovery Configuration(リカバリ設定)ウィンドウで、次の手順 を実行します。 a Specify Flash Recovery Area(フラッシュリカバリ領域の指定) をクリックします。 b Browse(参照)をクリックして、/u03 を選択します。 c フラッシュリカバリのサイズを指定します。 d Enable Archi
18 Summary(サマリー)ウィンドウで OK をクリックして、データベー スを作成します。 メモ:シードデータベースの作成には 1 時間以上かかる場合があります。 メモ:データベースの作成中に Enterprise Manager Configuration Error(Enterprise Manager の設定エラー)が表示され たら、そのまま OK をクリックし、エラーを無視してください。 データベースの作成が完了すると、Password Management(パス ワード管理)ウィンドウが表示されます。 19 Exit(終了)をクリックします。 クラスタデータベースがすべてのノードで起動中であることを示すメッ セージが表示されます。 20 各ノードで、以下の手順を実行します。 a 次のように入力して、そのノードにどのデータベースインスタンス が存在するかどうかを判断します。 srvctl status database -d < データベース名 > b 次のように入力して、ユーザープロファイル oracle に ORACLE_SID 環境変数エントリを追加します。 echo "export
Oracle Database 11g R1 11.1.0.7 パッチセットのイ ンストール 以下の手順に従って、インストールソフトウェアをダウンロードし、抽出し ます。 1 最初のノードで、oracle としてログインします。 2 /opt/oracle/patches にパッチとユーティリティのためのフォルダ を作成します。 3 ウェブブラウザを開いて Oracle のサポートサイト www.metalink.oracle.
Oracle Clusterware 用 11.1.0.7 パッチセットのインストール メモ:パッチセットソフトウェアのインストールは、RAC 11g R1 ソフト ウェアをインストールしたノードから行う必要があります。 1 ターミナルウィンドウに次のように入力して を押し、Oracle Universal Installer を起動します。 cd /opt/oracle/patches/Disk1/ .
12 Exit(終了)をクリックします。 13 Yes(はい)をクリックして Oracle Universal Installer を終了します。 Oracle Database 用 11.1.0.
12 Summary(サマリー)画面で Install(インストール)をクリックし ます。 Oracle Universal Installer がお使いのシステムをスキャンし、インス トールの必要なすべてのパッチを表示して、お使いのシステムにインス トールします。インストールが完了すると、End of Installation (インストールの終了)画面が表示されます。ユーザー root として root.sh を実行するように指示するメッセージウィンドウが表示され ます。 13 ターミナルウィンドウを開きます。 14 次のテキストを入力し、 キーを押します。 /opt/oracle/product/11.1.0/db_1/root.
お使いのシステムが正しく構成されない場合は、『トラブルシューティ ングガイド』で詳細を参照してください。 お使いのシステムが正しく構成されると、次のメッセージが表示され ます。 Pre-check for database configuration was successful.
b Create server parameter file(SPFILE)(サーバーパラメータ ファイル(SPFILE)を作成)を選択します。 c Server Parameter Filename(サーバーパラメータファイル名) フィールドに次のテキストを入力します。 /opt/oracle/product/11.1.0/db_1/initl+ASM.
18 Recovery Configuration(リカバリ構成)ウィンドウで、Browse (参照)をクリックして、手順 15 で作成したフラッシュバックグループ (たとえば、flashbackDG)を選択し、必要に応じてフラッシュリカバ リ領域のサイズを変更します。 19 Enable Archiving(アーカイブの有効化)を選択し、Next(次へ) をクリックします。 20 Database Content(データベースコンテンツ)ウィンドウで Next (次へ)をクリックします。 21 Database Services(データベースサービス)ウィンドウで、必要に 応じてサービスの設定を行い、Next(次へ)をクリックします。 22 Initialization Parameters(初期化パラメータ)ウィンドウで、次の 手順を実行します。 a Custom(カスタム)を選択します。 b Shared Memory Management(共有メモリ管理)で Automatic(自動)を選択します。 c SGA Size(SGA サイズ)ウィンドウと PGA Size(PGA サイズ) ウィ
27 次の手順を各ノードで実行します。 a 次のように入力して、そのノードにどのデータベースインスタンス が存在するかどうかを判断します。 srvctl status database -d < データベース名 > b 以下のコマンドを入力して、oracle ユーザープロファイルに ORACLE_SID 環境変数エントリを追加します。 echo "export ORACLE_SID=racdbx" >> /home/oracle/.bash_profile source /home/oracle/.
システムの保護 rsh を無効にする システムへの不正なアクセスを防ぐために、Oracle ソフトウェアのインス トール後は rsh を無効にすることをお勧めします。 rsh を無効にするには、次のテキストを入力します。 chkconfig rsh off Oracle のインストールのために ssh は有効になっており、root ユーザーに パスワードが要求されることはありません。RAC のすべてのノードで ssh が 無効になっていることを確認してください。次のディレクトリのすべての ファイルを削除すれば、ssh は無効になります。 /root/.
Oracle Database 11g の設定および導入 (シングルノード) 本項では、『OS のインストールとハードウェアの取り付け - Linux ガイド』、 に説明されている初期セットアップまたは再インストール手順に関する情報 を提供します。本項では、以下のトピックについて説明します。 • パブリックネットワークの設定 • データベースストレージ(記憶域)の設定 • Oracle ASM Library Driver を使用したデータベースストレージ (記憶域)の設定 • Oracle Database 11g のインストール • リスナーの設定 • シードデータベースの作成 パブリックネットワークの設定 パブリックネットワークが機能していること、IP アドレスとホスト名がシス テムに割り当てられていることを確認します。 データベースストレージ(記憶域)の設定 ext3 ファイルシステムを使用したデータベースストレージ(記憶域)の設定 ストレージデバイスを追加した場合は、以下の手順を実行します。 1 root としてログインします。 2 次のコマンドを入力します。 cd /o
fdisk ユーティリティを使用して、リカバリファイルを格納する場所に パーティションを作成します。 次に、例を示します。 sdc1(お使いのストレージデバイスが sdc の場合) 4 次のコマンドを入力して、新しいパーティションを確認します。 cat /proc/partitions 新しいパーティションが見つからない場合は、次のように入力します。 sfdisk -R /dev/sdb sfdisk -R /dev/sdc 5 次のコマンドを入力します。 mke2fs -j /dev/sdb1 mke2fs -j /dev/sdc1 6 次のような項目を追加することで、新しく作成したファイルシステム用 の /etc/fstab ファイルを編集します。 /dev/sdb1 /opt/oracle/oradata ext3 defaults 1 2 7 次のコマンドを入力します。 chown -R oracle.
Oracle ASM を使用したデータベースストレージ(記憶域)の設定 以下の例では、データベースファイル用のディスクグループ 1 つ、およびフ ラッシュバックリカバリとアーカイブログファイル用のディスクグループ 1 つをそれぞれ作成するために利用できる 2 台のストレージデバイス(sdb お よび sdc)があることを前提とします。 1 root としてログインします。 2 次のように入力して、デバイス全体に対するプライマリパーティション を作成します。 fdisk /dev/sdb 3 次のように入力して、デバイス全体に対するプライマリパーティション を作成します。 fdisk /dev/sdc ブロックデバイスを使用した ASM ストレージの設定 1 permissions.
2 次のコマンドを実行して permissions.py スクリプトを実行します。 /dell-oracle-deployment/scripts/permissions.py 3 次のコマンドを実行して、正しいブロックデバイスの権限を設定し ます。 /etc/rc.
手順 3 で作成したディスクがターミナルウィンドウに表示されます。 たとえば、次のとおりです。 ASM1 ASM2 Oracle Database 11g のインストール Oracle 11g をインストールするには、次の手順を実行します。 1 root としてログインします。 2 ユーザー root として、『Oracle Database 11g CD』をマウントします。 3 次のように入力して、X Window System を起動します。 startx 4 ターミナルウィンドウを開き、次のように入力します。 xhost + 5 oracle としてログインします。 6 Oracle Universal Installer を起動します。 ターミナルウィンドウで次のテキストを入力し、 を押します。 /runInstaller 7 Select Installation Method(インストール方法の選択)ウィンド ウで Advanced Installation(拡張インストール)をクリックし、 Next(次へ)をクリックします。 8 Select Inst
12 Warning(警告)メッセージが表示されても、メッセージを無視して Yes(はい)をクリックします。 13 Select Configuration Option(構成オプションの選択)ウィンド ウで、Install Database Software Only(データベースソフトウェア のみインストール)をクリックします。 14 Summary(サマリー)ウィンドウで、Install(インストール)をク リックします。 15 確認のメッセージが表示されたら、ターミナルウィンドウを開き、 root.sh を実行します。 進行状況を示すウィンドウが少しの間表示され、続いて End of Installation(インストールの終了)ウィンドウが表示されます。 16 Exit(終了)をクリックしてから、確認のため Yes(はい)をクリック します。 17 root としてログインします。 18 次のように入力します。 /opt/oracle/product/11.1.
Oracle Database 11g R1 11.1.0.7 パッチセットのイ ンストール 以下の手順に従って、インストールソフトウェアをダウンロードし、抽出し ます。 1 最初のノードで、oracle としてログインします。 2 /opt/oracle/patches にパッチとユーティリティのためのフォルダ を作成します。 3 ウェブブラウザを開いて Oracle のサポートサイト www.metalink.oracle.
Oracle Clusterware 用 11.1.0.7 パッチセットのインストール メモ:パッチセットソフトウェアのインストールは、RAC 11g R1 ソフト ウェアをインストールしたノードから行う必要があります。 1 ターミナルウィンドウに次のように入力して を押し、Oracle Universal Installer を起動します。 cd /opt/oracle/patches/Disk1/ .
11 最初のノードで、End of Installation(インストールの終了)画面に 戻ります。 12 Exit(終了)をクリックします。 13 Yes(はい)をクリックして Oracle Universal Installer を終了します。 Oracle Database 用 11.1.0.
11 Specify Hardware Cluster Installation Mode(ハードウェアのク ラスタインストールモードの指定)画面で、Next(次へ)をクリック します。 12 Summary(サマリー)画面で Install(インストール)をクリックし ます。 Oracle Universal Installer がお使いのシステムをスキャンし、インス トールの必要なすべてのパッチを表示して、お使いのシステムにインス トールします。インストールが完了すると、End of Installation (インストールの終了)画面が表示されます。ユーザー root として root.sh を実行するように指示するメッセージウィンドウが表示され ます。 13 ターミナルウィンドウを開きます。 14 次のテキストを入力し、 キーを押します。 /opt/oracle/product/11.1.0/db_1/root.
シードデータベースの作成 ext3 ファイルシステムを使用したシードデータベースの作成 DBCA を使用してシードデータベースを作成するには、次の手順を実行し ます。 1 oracle としてログインします。 2 次のように入力して、Oracle DBCA を起動します。 dbca 3 Welcome(ようこそ)ウィンドウで Next(次へ)をクリックします。 4 Operations(操作)ウィンドウで Create a Database(データベー スの作成)をクリックしてから、Next(次へ)をクリックします。 5 Database Templates(データベーステンプレート)ウィンドウで Custom Database(カスタムデータベース)をクリックしてから、 Next(次へ)をクリックします。 6 Database Identification(データベース識別情報)ウィンドウで、 Global Database Name(グローバルデータベース名)と SID Prefix (SID 接頭辞)フィールドに、作成するデータベース名を入力してから、 Next(次へ)をクリックします。 7 Mana
12 Database Content(データベースコンテンツ)ウィンドウで Next (次へ)をクリックします。 13 Initialization Parameters(初期化パラメータ)ウィンドウで Next (次へ)をクリックします。 14 Database Storage(データベースストレージ)ウィンドウで Next (次へ)をクリックします。 15 Creation Options(作成オプション)ウィンドウで、Create Database(データベースの作成)をクリックし、Finish(完了)をク リックします。 16 Confirmation(確認)ウィンドウで OK をクリックするとデータベー スが作成されます。 メモ:シードデータベースの作成には 1 時間以上かかる場合があり ます。 データベースの作成手順が完了すると、Password Management (パスワード管理)ウィンドウが表示されます。 17 Exit(終了)をクリックします。 18 次のように入力します。 export ORACLE_SID=db 名 db 名 は、DBCA でデータベースに定義したグローバル識
Oracle ASM を使用したシードデータベースの作成 Oracle ASM を使用してストレージを設定した場合は、DBCA を使用し、 次の手順を実行してシードデータベースを作成します。 1 ユーザー oracle として、次のように入力して DBCA を起動します。 dbca & 2 Welcome(ようこそ)ウィンドウで Next(次へ)をクリックします。 3 Operations(操作)ウィンドウで Create a Database(データベー スの作成)をクリックしてから、Next(次へ)をクリックします。 4 Database Templates(データベーステンプレート)ウィンドウで Custom Database(カスタムデータベース)をクリックしてから、 Next(次へ)をクリックします。 5 Database Identification(データベース識別情報)ウィンドウで、 oradb のような Global Database Name(グローバルデータベー ス名)を入力してから、Next(次へ)をクリックします。 6 Management Options(管理オプション)ウィンド
12 Create Disk Group(ディスクグループの作成)ウィンドウでデータ ベースファイルのストレージ情報を入力し、OK をクリックします。 a databaseDG など、作成するディスクグループの名前を入力し、 External Redundancy(外部冗長性)を選択してから、ディスク グループに含めるディスクを選択します。 b RAW デバイスインタフェースを使用する場合は、/dev/raw/ASM1 を選択します。 c ASM ライブラリドライバを使用する場合で、候補ディスクにアクセ スできない場合は、Change Disk Discovery String(ディスク検 出パスの変更)をクリックし、ストリングとして ORCL:* と入 力し、ASM1 を選択します。 ディスクグループの作成が進行中であることを示すウィンドウが表 示されます。 d ASM ライブラリドライバを使用する場合で、候補ディスクが表示さ れていなければ、Change Disk Discover String(ディスク検出 パスの変更)をクリックし、ストリングとして ORCL:* と入力し ます。 13
17 Recovery Configuration(リカバリ設定)ウィンドウで、Browse (参照)をクリックします。手順 14 で作成したフラッシュバックグル ープ(たとえば、flashbackDG)を選択し、必要に応じてフラッシュリ カバリ領域のサイズを変更します。 18 Enable Archiving(アーカイブの有効化)を選択し、Next(次へ) をクリックします。 19 Database Content(データベースコンテンツ)ウィンドウで Next (次へ)をクリックします。 20 Initialization Parameters(初期化パラメータ)ウィンドウで、 Typical(標準)を選択し、Next(次へ)をクリックします。 21 Database Storage(データベースストレージ)ウィンドウで Next (次へ)をクリックします。 22 Creation Options(作成オプション)ウィンドウで Create Database(データベースの作成)を選択してから、Finish(完了) をクリックします。 23 Confirmation(確認)ウィンドウで OK をクリックす
ノードの追加と削除 本項では既存のクラスタにノードを追加する手順とクラスタからノードを削 除する手順について説明します。 メモ:新しいノードは、ハードウェアと OS の構成を既存のノードと同一に する必要があります。 既存のクラスタにノードを追加するには、以下の手順を実行します。 • ネットワーク層にノードを追加します。 • 共有ストレージを設定します。 • Oracle Clusterware、データベース、およびデータベースインスタンス の各層にノードを追加します。 既存のクラスタからノードを削除するには、追加の手順を逆にして、データ ベースインスタンス、データベース、そして Oracle Clusterware の各層から ノードを削除する必要があります。 既存のクラスタにノードを追加する方法の詳細については、Oracle のウェブ サイト www.oracle.
ASM を使用して新しいノードに共有ストレージを設定する方法 既存の RAC データベースを新しいノードに拡張するには、ストレージを 既存のノードと同様にするため、新しいノード用にストレージの設定を行い ます。ASM を使用する場合は、新しいノードが既存のノードと同じ権限で ASM ディスクにアクセスできるようにする必要があります。本項では ASM 用の適切な手順を説明します。 ASM ディスクを設定するには、以下の手順を実行します。 1 root としてログインします。 2 ターミナルウィンドウを開き、root としてログインします。 3 /dell-oracle-deployment/scripts/permissions.ini ファイルを、 既存のノードの 1 つから新しいノードの同じ場所にコピーします。 4 次のコマンドを入力して、ブロックデバイスの正しい権限を設定し ます。 /etc/rc.
6 新しいノードで ASM ディスクが使用できることを確認します。 ターミナルウィンドウで次のテキストを入力し、 を押します。 service oracleasm listdisks 残りのノードで使用可能なディスクのすべてが表示されます。 たとえば、次のとおりです。 ASM1 ASM2 Oracle クラスタウェア層への新しいノードの追加 1 既存のノードの 1 つに oracle としてログインします。 2 この既存のノードの /crs/oracle/product/11.1.0/crs/oui/bin ディレク トリから ./addNode.
データベース層への新しいノードの追加 1 既存のノードの 1 つに oracle としてログインします。 2 この既存のノードの /opt/oracle/product/11.1.0/db_1/oui/bin ディレ クトリから ./addNode.
3 ターミナルウィンドウを開き、次のように入力します。 xhost + 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(次へ)をク リックします。
14 Listener Configuration Done(リスナーの設定が終了しました) ウィンドウで Next(次へ)をクリックします。 15 Finish(完了)をクリックします。 16 次のように入力して、すべてのノードでリスナーを開始します。 lsnrctl start データベースインスタンス層への新しいノードの追加 1 既存ノードの 1 つで、ユーザー oracle として次のように入力し、 DBCA を起動します。 dbca 2 Welcome(ようこそ)ウィンドウで Next(次へ)をクリックします。 3 Operations(操作)ウィンドウで、Instance Management(インス タンス管理)をクリックしてから、Next(次へ)をクリックします。 4 Instance Management(インスタンス管理)ウィンドウで、Add Instance(インスタンスの追加)をクリックしてから、Next(次へ) をクリックします。 5 List of Cluster Databases(クラスタデータベースの一覧)ウィンド ウで既存のデータベースを選択します。 使用したユーザー名が
10 Summary(サマリー)ウィンドウで OK をクリックして、データベー スインスタンスを追加します。 プログレスバーに続いて、ASM を新しいノードに拡張するかどうかを 尋ねるメッセージが表示されます。 11 Yes(はい)をクリックします。 次のメッセージが表示されます。 Do you want to perform another operation?(別の操作を実行 しますか ?) 12 No(いいえ)をクリックします。 13 いずれかのノードで次のように入力して、インスタンスが正常に追加さ れたことを確認します。 srvctl status database -d < データベース名 > メモ:210 ページの「システムの保護」を参照して、追加のセキュリティ セットアップを実行する手順に従ってください。 クラスタからのノードの削除 本項の手順を実行する際には、クラスタから必ず正しいノードを選択し、 削除してください。 データベースインスタンス層からのノードの削除 1 oracle としてログインします。 2 残りのノードの 1 つから、次のように入力します。 dbca 3 Welcome(
6 List of Cluster Databases(クラスタデータベースのリスト)ウィン ドウで、インスタンスを削除する RAC データベースを選択します。 使用したユーザー名が OS によって認証されない場合は、SYSDBA 権限 を持つデータベースユーザーに対するユーザー名とパスワードの入力を 求めるメッセージが DBCA によって表示されます。 7 ユーザー名 sys とパスワードを入力して、Next(次へ)をクリックし ます。 選択した RAC データベース関連のインスタンスと各インスタンスのス テータスを示す List of Cluster Database Instances(クラスタデー タベースインスタンスのリスト)ウィンドウが表示されます。 8 削除するインスタンスを選択して、Next(次へ)をクリックします。 DBCA を実行しているローカルインスタンスは削除できません。ローカ ルインスタンスを選択した場合、DBCA によって Error(エラー)ダイ アログが表示されます。このような状況が発生した場合は、OK をク リックして、別のインスタンスを選択してから、Finish(完了)をク
リスナーの再設定 1 netca と入力します。 2 Real Application Clusters → Configuration(構成)ウィンド ウで、Cluster Configuration(クラスタの構成)を選択し、Next (次へ)をクリックします。 3 Real Application Clusters → Active Nodes(アクティブノード) ウィンドウで、削除するノードを選択し、Next(次へ)をクリックし ます。 4 Welcome(ようこそ)ウィンドウで Listener Configuration(リス ナーの設定)を選択してから、Next(次へ)をクリックします。 5 Listener Configuration(リスナーの設定) → Listener(リスナー) ウィンドウで Delete(削除)を選択し、Next(次へ)をクリックし ます。 6 Listener Configuration(リスナーの設定) → Select Listener (リスナーの選択)ウィンドウで LISTENER を選択し、Next(次へ)を クリックします。 "Are you sure
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/11.1.0/db_1/* Oracle クラスタウェア層からのノードの削除 1 削除するノードで、root ユーザーとして、次のコマンドを入力し、 CRS を無効にします。 /crs/oracle/product/11.1.0/crs/install/rootdelete.
追加情報 サポートされるソフトウェアのバージョン 最新のサポートされているハードウェアとソフトウェアについては、 Dell|Oracle Tested and Validated Configuration(Dell|Oracle で検証済みの 構成)ウェブサイト dell.
表 1.
3 プライベート NIC で使用しているドライバモジュールを確認します (表 1 を参照)。 4 次のように入力して、/etc/modprobe.conf ファイルを表示します。 more /etc/modprobe.conf alias ethx driver-module のフォーマットで数行が表示されます。 ここで、x は Ethernet インタフェース番号、driver-module は 手順 3 で確認したモジュールです。 たとえば、OS によって eth1 が Broadcom NetXtreme Gigabit NIC に 割り当てられている場合には、alias eth1 tg3 という行が表示され ます。 5 ギガビットスイッチに接続されているギガビット NIC に割り当てられて いるイーサネットインタフェース(ethx)の種類を確認します。 お使いのドライバモジュールタイプについて、/etc/modprobe.
ハードウェアおよび OS ソフトウェアに対するデルのテクニカルサポート、 アップデートのダウンロードについては、デルサポートサイト support.dell.com を参照してください。デルへのお問い合わせ先につい ては、システムに付属の『インストール & トラブルシューティング』に記載 されています。 デルでは、企業向けのトレーニングと資格認証を実施しております。詳細に ついては、dell.com/training を参照してください。なお、トレーニング サービスを提供していない地域がありますのでご了承ください。 Oracle のサポート Oracle ソフトウェアおよびアプリケーションクラスタウェアのトレーニング については、Oracle のウェブサイト www.oracle.com または Oracle のマ ニュアルを参照して Oracle までお問い合わせください。 テクニカルサポート、ダウンロード、その他の技術情報については、Oracle MetaLink ウェブサイト www.metalink.oracle.
Sistemas Dell™ PowerEdge™ Base de datos Oracle 11g R1 en Red Hat® Enterprise Linux® 5 Advanced Server x86-64 u Oracle Enterprise Linux® 5 Advanced Server x86-64 Guía de configuración e instalación de la base de datos Oracle versión 1.
Notas, precauciones y avisos NOTA: Una NOTA proporciona información importante que le ayudará a utilizar mejor el ordenador. ____________________ La información contenida en este documento puede modificarse sin previo aviso. © 2009 Dell Inc. Todos los derechos reservados. Queda estrictamente prohibida la reproducción de este documento en cualquier forma sin la autorización por escrito de Dell Inc.
Terminología utilizada en este documento En este documento se utilizan los términos número de unidad lógica (LUN) y disco virtual. Dichos términos son sinónimos y pueden utilizarse indistintamente. El término LUN suele utilizarse en un entorno de sistema de almacenamiento Dell|EMC Fibre Channel, mientras que disco virtual suele emplearse en un entorno de almacenamiento SAS Dell PowerVault (Dell MD3000i y Dell MD3000i con alojamiento de expansión MD1000).
Configuración de los ajustes del reloj del sistema para todos los nodos Para evitar que se produzcan errores durante el procedimiento de instalación, configure todos los nodos con ajustes del reloj del sistema idénticos. Sincronice el reloj del sistema del nodo con un servidor de protocolo de hora de red (NTP).
7 Escriba los comandos siguientes para iniciar Oracle Universal Installer: unset ORACLE_HOME /runInstaller Aparece el mensaje siguiente: Has ’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/11.1.
Para modificar una interfaz, realice los pasos siguientes: a Seleccione el nombre de interfaz y haga clic en Edit (Editar). b En la casilla Interface Type (Tipo de interfaz) de la ventana Edit private interconnect type (Editar tipo de interconexión privada), seleccione el tipo de interfaz apropiado y haga clic en OK (Aceptar).
O bien: /u01/votingdisk1 si se utiliza OCFS2. c En el campo Additional Voting Disk 1 Location (Ubicación adicional del disco de votación 1), escriba: /dev/emcpowerb2 O bien: /u01/votingdisk2 d En el campo Additional Voting Disk 2 Location (Ubicación adicional del disco de votación 2), escriba: /dev/emcpowerb3 O bien: /u01/votingdisk3 e Haga clic en Next (Siguiente). 16 En la ventana Summary (Resumen), haga clic en Install (Instalar). El software de clúster Oracle se instala en el sistema.
20 Realice los pasos siguientes en todos los nodos: a Compruebe la instalación del software de clúster Oracle al escribir el comando siguiente: olsnodes -n -v Aparece una lista con 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. Asegúrese de que todos estén en línea.
6 En la ventana Select Installation Type (Seleccionar tipo de instalación), seleccione Enterprise Edition y haga clic en Next (Siguiente). 7 En el campo Path (Ruta) de la ventana Specify Home Details (Especificar detalles de la ubicación principal), compruebe que la ruta principal completa de Oracle es /opt/oracle/product/11.1.0/db_1 y haga clic en Next (Siguiente).
Configuración del proceso de escucha En esta sección se describen los pasos para configurar el proceso de escucha, que es necesario para la conexión remota de un cliente a una base de datos. Realice los pasos siguientes sólo en un nodo: 1 Inicie la sesión como root. 2 Inicie el sistema X Window; para ello, escriba: startx 3 Abra una ventana de terminal y escriba lo siguiente: xhost + 4 Escriba netca para iniciar el asistente de configuración de red como usuario oracle.
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).
7 En el campo Global Database Name (Nombre de base de datos global) de la ventana Database Identification (Identificación de la base de datos), escriba un nombre de base de datos global, como por ejemplo racdb, y haga clic en Next (Siguiente). 8 En la ventana Management Options (Opciones de administración), haga clic en Next (Siguiente).
17 En la ventana Creation Options (Opciones de creación), seleccione Create Database (Crear base de datos) y haga clic en Finish (Finalizar). 18 En la ventana Summary (Resumen), haga clic en OK (Aceptar) para crear la base de datos. NOTA: La creación de la base de datos semilla puede tardar más de una hora. NOTA: Si se detecta un error de configuración de Enterprise Manager durante la creación de la base de datos semilla, haga clic en OK (Aceptar) para ignorar el error.
Instalación del patchset 11.1.0.7 de la base de datos Oracle 11g R1 Descargue y extraiga el software de instalación mediante los pasos siguientes: 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 acceda a la página web de asistencia de Oracle en www.metalink.oracle.com. 4 Inicie una sesión en su cuenta de Oracle Metalink. Busque el parche número 6890831 con Linux x86-64 como plataforma.
Instalación del patchset 11.1.0.7 para el software de clúster Oracle NOTA: Debe instalar el software del patchset desde el nodo en el que se ha instalado el software RAC 11g R1. 1 Inicie Oracle Universal Installer; para ello, escriba lo siguiente en la ventana de terminal y pulse : cd /opt/oracle/patches/Disk1/ ./runInstaller 2 Aparece la pantalla de bienvenida. Haga clic en Next (Siguiente).
Instalación del patchset 11.1.0.7 para la base de datos Oracle NOTA: Antes de instalar el patchset, asegúrese de que todos los servicios de Oracle estén detenidos. Realice los procedimientos siguientes antes de crear un proceso de escucha y una base de datos semilla. Instalación del patchset 1 En el primer nodo, abra una ventana de terminal. 2 Inicie la sesión como oracle. 3 Cierre las aplicaciones de nodo del software de clúster Oracle en todos los nodos.
12 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). A continuación, aparece una ventana de mensaje en la que se le solicita que ejecute root.sh como usuario root. 13 Abra una ventana de terminal. 14 Escriba lo siguiente y pulse : /opt/oracle/product/11.1.
Si el sistema está configurado correctamente, aparece el mensaje siguiente: Pre-check for database configuration was successful. (La comprobación previa de la configuración de la base de datos ha sido correcta.) 2 En el primer nodo, escriba dbca & para iniciar el asistente para la creación de bases de datos (DBCA) como usuario oracle. 3 En la ventana de bienvenida, seleccione Oracle Real Application Cluster Database (Base de datos Oracle Real Application Cluster) y haga clic en Next (Siguiente).
c En el campo Server Parameter Filename (Nombre de archivo de parámetros de servidor), escriba: /opt/oracle/product/11.1.0/db_1/initl+ASM.ora d Haga clic en Next (Siguiente). 12 Cuando aparezca un mensaje que indique que el DBCA está listo para crear e iniciar la instancia de ASM, haga clic en OK (Aceptar). 13 En ASM Disk Groups (Grupos de discos ASM), haga clic en Create New (Crear nuevo).
19 Seleccione Enable Archiving (Habilitar archivado) y haga clic en Next (Siguiente). 20 En la ventana Database Content (Contenido de la base de datos), haga clic en Next (Siguiente). 21 En la ventana Database Services (Servicios de la base de datos), configure los servicios (si es necesario) y luego haga clic en Next (Siguiente). 22 En la ventana Initialization Parameters (Parámetros de inicialización), realice los pasos siguientes: a Seleccione Custom (Personalizada).
27 Realice los pasos siguientes en cada nodo: a Determine qué instancia de base de datos existe en cada nodo; para ello, escriba: srvctl status database -d b Escriba los comandos siguientes para añadir la entrada de la variable de entorno ORACLE_SID al perfil de usuario oracle: echo "export ORACLE_SID=racdbx" >> /home/oracle/.bash_profile source /home/oracle/.bash_profile donde racdbx corresponde al identificador de la instancia de base de datos asignada al nodo.
Protección del sistema Deshabilitación de rsh A fin de evitar que usuarios no autorizados puedan acceder al sistema, Dell recomienda deshabilitar rsh después de instalar el software Oracle. Para deshabilitar rsh, escriba: chkconfig rsh off Para instalar Oracle, ssh se habilita sin que el usuario root deba introducir una contraseña. Asegúrese de que ssh esté deshabilitado en todos los nodos de RAC. Para deshabilitar ssh, elimine todos los archivos del directorio siguiente: /root/.
Configuración e implantación de la base de datos Oracle 11g (un solo nodo) En esta sección se proporciona información sobre cómo completar los procedimientos de configuración inicial o reinstalación descritos en la Guía de instalación del sistema operativo y el hardware para Linux.
Por ejemplo: sdb1 si el dispositivo de almacenamiento es sdb. Mediante la utilidad fdisk, cree una partición en la que se almacenarán los archivos de recuperación. Por ejemplo: sdc1 si el dispositivo de almacenamiento es sdc.
Configuración del almacenamiento de base de datos mediante ASM de Oracle En el ejemplo siguiente, se da por sentado que se dispone de dos dispositivos de almacenamiento (sdb y sdc) para crear un grupo de discos para los archivos de base de datos y otro para la recuperación flashback y los archivos de registro, respectivamente. 1 Inicie la sesión como root.
3 Ejecute el comando siguiente para definir los permisos de dispositivos de bloque correctos: /etc/rc.local Configuración del almacenamiento de base de datos mediante el controlador de biblioteca ASM de Oracle 1 Abra una ventana de terminal e inicie la sesión como root.
Instalación de la base de datos Oracle 11g Realice los pasos siguientes para instalar Oracle 11g: 1 Inicie la sesión como root. 2 Como usuario root, monte el CD Oracle Database 11g. 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.
15 Cuando se le solicite, abra una ventana de terminal y ejecute root.sh. Aparecerá brevemente una ventana de progreso, seguida de la ventana End of Installation (Fin de la instalación). 16 Haga clic en Exit (Salir) y confirme la acción haciendo clic en Yes (Sí). 17 Inicie la sesión como root. 18 Escriba lo siguiente: /opt/oracle/product/11.1.0/db_1/bin/localconfig add El procedimiento de instalación ha finalizado. Aparece la pantalla de bienvenida.
4 Inicie una sesión en su cuenta de Oracle Metalink. Busque el parche número 6890831 con Linux x86-64 como plataforma. 5 Descargue el parche en el directorio /opt/oracle/patches. 6 Para descomprimir el archivo .
5 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. 6 Lea todas las instrucciones de la ventana de mensaje que aparece.
4 Repita el paso 3 en los demás nodos y cambie el nombre de nodo del nodo en cuestión. 5 En el primer nodo, abra una nueva ventana de terminal. 6 Inicie la sesión como oracle. 7 Escriba lo siguiente y pulse : export ORACLE_HOME=/opt/oracle/product/11.1.0/db_1 8 Inicie Oracle Universal Installer; para ello, escriba lo siguiente en la ventana de terminal y pulse : cd /opt/oracle/patches/Disk1/ ./runInstaller 9 Aparece la pantalla de bienvenida. Haga clic en Next (Siguiente).
17 Haga clic en Yes (Sí) para salir de Oracle Universal Installer. 18 En el primer nodo, abra una ventana de terminal. Inicie la sesión como oracle. Escriba lo siguiente y pulse : srvctl start nodeapps -n Creación de la base de datos semilla Creación de una base de datos semilla mediante el sistema de archivos ext3 Realice los pasos siguientes para crear una base de datos semilla mediante el DBCA: 1 Inicie la sesión como oracle.
11 En la ventana Recovery Configuration (Configuración de recuperación), haga clic en Browse (Examinar) y seleccione el área de recuperación flashback que ha creado en “Configuración del almacenamiento de base de datos mediante el sistema de archivos ext3” en la página 263 (por ejemplo, /opt/oracle/recovery). Cambie el tamaño del área de recuperación flash según convenga. Seleccione Enable Archiving (Habilitar archivado) y haga clic en Next (Siguiente).
Creación de la base de datos semilla mediante ASM de Oracle Si ha configurado el almacenamiento mediante ASM de Oracle, 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).
12 En la ventana Create Disk Group (Crear grupo de discos), escriba la información de almacenamiento para los archivos de base de datos y haga clic en OK (Aceptar). a Escriba un nombre para el grupo de discos que va a crear, como por ejemplo basededatosDG, seleccione External Redundancy (Redundancia externa) y luego seleccione los discos que va a incluir en el grupo de discos. b Si utiliza la interfaz de dispositivo sin formato, seleccione /dev/raw/ASM1.
17 En la ventana Recovery Configuration (Configuración de recuperación), haga clic en Browse (Examinar). Seleccione el grupo flashback que ha creado en el paso 14 (por ejemplo, flashbackDG) y cambie el tamaño del área de recuperación flash según sea necesario. 18 Seleccione Enable Archiving (Habilitar archivado) y haga clic en Next (Siguiente). 19 En la ventana Database Content (Contenido de la base de datos), haga clic en Next (Siguiente).
Adición y eliminación de nodos En esta sección se describen los pasos para añadir un nodo a un clúster existente y para eliminar un nodo de un clúster. NOTA: El nodo nuevo debe tener la misma configuración de sistema operativo y de hardware que los nodos existentes. Para añadir un nodo a un clúster existente: • Añada el nodo al nivel de red. • Configure el almacenamiento compartido. • Añada el nodo a los niveles de software de clúster Oracle, base de datos e instancia de base de datos.
Configuración del almacenamiento compartido en el nodo nuevo mediante ASM Para ampliar una base de datos RAC existente a los nodos nuevos, configure el almacenamiento de los nodos nuevos de forma que el almacenamiento sea el mismo que en los nodos existentes. Si utiliza ASM, asegúrese de que los nodos nuevos puedan acceder a los discos ASM con los mismos permisos que los nodos existentes. En esta sección se proporciona el procedimiento correcto para ASM.
Por ejemplo: ASM1 ASM2 Adición de un nodo nuevo al nivel de software de clúster Oracle 1 Inicie la sesión como oracle en uno de los nodos existentes. 2 Desde el directorio /crs/oracle/product/11.1.0/crs/oui/bin del nodo existente, escriba ./addNode.sh para iniciar Oracle Universal Installer. 3 En la ventana de bienvenida, haga clic en Next (Siguiente).
Adición de un nuevo nodo al nivel de base de datos 1 Inicie la sesión como oracle en uno de los nodos existentes. 2 Desde el directorio /opt/oracle/product/11.1.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).
3 Abra una ventana de terminal y escriba lo siguiente: xhost + 4 Detenga el proceso de escucha en todos los nodos como usuario oracle; para ello, escriba: lsnrctl stop 5 Si el comando funciona correctamente, escriba netca para iniciar el asistente para la configuración de red. 6 Seleccione Cluster Configuration (Configuración de clúster) y haga clic en Next (Siguiente).
15 Haga clic en Finish (Finalizar). 16 Inicie el proceso de escucha en todos los nodos; para ello, escriba: lsnrctl start Adición de un nodo nuevo al nivel de instancia de base de datos 1 En uno de los nodos existentes, inicie el DBCA como usuario oracle; para ello, escriba: dbca 2 En la ventana de bienvenida, haga clic en Next (Siguiente). 3 En la ventana Operations (Operaciones), haga clic en Instance Management (Administración de instancias) y, a continuación, en Next (Siguiente).
10 En la ventana Summary (Resumen), haga clic en OK (Aceptar) para añadir la instancia de base de datos. Aparece una barra de progreso, seguida de un mensaje en que se le pregunta si desea ampliar ASM al nuevo nodo. 11 Haga clic en Yes (Sí). Aparece el mensaje siguiente: Do you want to perform another operation? (¿Desea realizar otra operación?) 12 Haga clic en No.
6 En la ventana List of Cluster Databases (Lista de bases de datos de clúster), seleccione una base de datos RAC de la que desee eliminar una instancia. 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. 7 Escriba el nombre de usuario sys y la contraseña y, a continuación, haga clic 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).
3 Escriba lo siguiente: srvctl remove asm -n donde es el nodo que desea eliminar del clúster. 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 va a eliminar. Por ejemplo, si está eliminando 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.
3 En el nodo que va a eliminar, si también desea eliminar el software Oracle CRS, escriba el comando siguiente: rm -rf /crs/oracle/product/11.1.0/crs/* Información adicional Versiones de software admitidas Para ver el hardware y el software admitidos más recientes, visite la página web de configuraciones probadas y validadas por Dell|Oracle en dell.com/oracle.
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 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.
3 Determine qué módulo controlador utiliza su NIC privada (vea la tabla 1). 4 Para ver el archivo /etc/modprobe.conf, escriba lo siguiente: more /etc/modprobe.conf Aparecen varias líneas con el formato alias ethx módulo-controlador, donde x es el número de interfaz Ethernet y módulo-controlador es el módulo determinado en el paso 3. Por ejemplo, la línea alias eth1 tg3 aparece si el sistema operativo ha asignado eth1 a una NIC Broadcom NetXtreme Gigabit.
Asistencia de Oracle Para obtener información de formación sobre el software Oracle y el software de clúster de aplicaciones, visite la página web de Oracle (www.oracle.com) o consulte la documentación de Oracle para determinar cómo ponerse en contacto con Oracle. Encontrará información sobre asistencia técnica, descargas y otras cuestiones técnicas en la página web de Oracle MetaLink (www.metalink.oracle.com).