Dell PowerEdge Systems Oracle Database on Enterprise Linux x86_64 Database Setup and Installation Guide Version 4.
Notes NOTE: A NOTE indicates important information that helps you make better use of your computer. ____________________ Information in this publication is subject to change without notice. © 2009–2010 Dell Inc. All rights reserved. Reproduction of these materials in any manner whatsoever without the written permission of Dell Inc. is strictly forbidden. Trademarks used in this text: Dell™, the DELL logo, and PowerEdge™ are trademarks of Dell Inc.
Contents 1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . Required Documentation for Deploying the Dell|Oracle Database . . . . . . . . . . . . . . . . . 7 . . . . . . . . . . . 8 . . . . . . . . . . . . . . . . . . . . . . . . 8 Terminology Used in This Document Getting Help Dell Support . . . . . . . . . . . . . . . . . . . . . . Oracle Support 2 . . . . . . . . . . . . . . . . . . . . Before You Begin . . . . . . . . . . . . . . . . . . . .
Installing the Oracle 10g R2 Database Software . . . . . . . . . . . . . . . . . Installing 10.2.0.5 Patch Set for Oracle 10g R2 Database Software . . . . . . . . . 18 . . . . . . . . . . 18 . . . . . . . . . . . . . . . . . 20 Upgrading the RAC Installation . Configuring the Listener Creating the Seed Database Using OCFS2 Creating the Seed Database Using ASM . . . . . . . 21 . . . . . . . . 23 Modifying the CSS Timeout of 11gR1 Clusterware for Proper LUN Failover of MD3000i/MD32xxi. . .
Creating the Seed Database . . . . . . . . . . . . . . . Creating the Seed Database Using ext3 File System . . . . . . . . . . . . . . . 33 Creating the Seed Database Using Oracle ASM . . . . . . . . . . . . . . . . . 35 Creating the Seed Database Using Oracle ASM for a Single Node . . 5 . . . . . . . . . . . Adding and Removing Nodes Adding Nodes 37 . . . . . . . . . 41 . . . . . . . . . . . . . . . . . . . . . . 42 Adding a New Node to the Network Layer . . . . . 42 . . . . . . . .
Contents
Overview This document applies to Oracle Database 10g R2 running on Red Hat Enterprise Linux or Oracle Enterprise Linux 5.5 AS x86_64. This document assists you in installing the Oracle 10g Real Application Clusters (RAC) software on a Dell PowerEdge system running either the Red Hat Enterprise Linux or the Oracle Enterprise Linux operating system. The installation procedure involves installing Oracle Cluster Ready Services (CRS) and then installing the Oracle Database 10g software.
Terminology Used in This Document Throughout this document, the terms logical unit number (LUN) and virtual disk are used synonymously. The term LUN is commonly used in a Dell/EMC Fibre Channel storage system environment. The term virtual disk is commonly used in a Dell PowerVault SAS storage environment. This document uses the term Enterprise Linux as applicable to both Red Hat Enterprise Linux and Oracle Enterprise Linux unless stated specifically.
Before You Begin The following sections describe activities that you must complete before installing the Oracle 10g Real Application Clusters (RAC). Download the Enterprise Linux and Dell Automation Scripts Before you install the Oracle RAC software on your system: • Download the Red Hat Enterprise Linux media images from the Red Hat Network website at rhn.redhat.com. The Oracle Enterprise Linux media images can be downloaded from the Enterprise Linux|Linux|Oracle website at oracle.com/linux.
Oracle Clusterware Software Recommendations NOTE: Before installing the Oracle Clusterware software, the raw devices are deprecated on the Enterprise Linux 5.x operating system and above. NOTE: It is recommended that you install the Oracle 11g Clusterware with Oracle 10g R2 Database for the Enterprise Linux 5.x operating system.
Installing Oracle 11g Clusterware, 10g Database, and Patch Set for Enterprise Linux 5 NOTE: You can download Oracle 11g Clusterware from the Oracle website at oracle.com if it was not shipped as part of your Oracle Software kit. Installing Oracle 11g R1 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 11g Clusterware media. 5 Type: su - oracle. 6 Type: /runcluvfy.
11 In the Product-Specific Prerequisite Checks window, ensure that Succeeded is displayed in the Status column for each system check. 12 Click Next. 13 In the Specify Cluster Configuration window, add the nodes that are managed by Oracle Clusterware. a Click Add. b Enter a name for the Public Node Name, Private Node Name, and Virtual Host Name, and then click OK. c Repeat step a and step b for the remaining nodes. d In Cluster Name, enter a name for your cluster. e Click Next.
17 In the Specify Voting Disk Location window, perform the following steps: a In the Votingdisk Configuration box, select Normal Redundancy. b In the Specify Votingdisk Location field, enter: /dev/emcpowerX or /u03/votingdisk1, if using OCFS2. c In the Additional Voting Disk 1 Location field, enter: /dev/emcpowerX or /u03/votingdisk2, if using OCFS2. d In the Additional Voting Disk 2 Location field, enter: /dev/emcpowerX or /u03/votingdisk3, if using OCFS2. e Click Next.
Downloading 11.1.0.7 Patch Set for Oracle 11g R1 Clusterware 1 On the first node, log in as oracle. 2 Create a folder for the patches and utilities at /u01/app/oracle/patches. 3 Open a web browser and navigate to support.oracle.com. 4 Log in to your Oracle Support account. Search for the patch number 6890831 with Linux x86-64 as the platform. 5 Download the patch to the /u01/app/oracle/patches directory.
Installing 11.1.0.7 Patch Set for Oracle 11g R1 Clusterware NOTE: You must install the patch set software from the node where the 11gR1 Clusterware software was installed. 1 Start the Oracle Universal Installer by typing the following in the terminal window and press : $> cd /u01/app/oracle/patches/Disk1/ $> ./runInstaller The Welcome screen is displayed. 2 Click Next. 3 In the Specify Home Details screen, click Next. 4 In the Specify Hardware Cluster Installation Mode screen, click Next.
Installing the Oracle 10g R2 Database Software 1 As user root, enter: xhost + 2 As user root, mount the Oracle Database 10g media. 3 Log in as oracle, and enter: /bin/cluvfy stage -pre dbinst -n node1,node2 -r 10gR2 -verbose, where node1 and node2 are the public host names. NOTE: The database precheck fails for the rmem_max kernel parameter with the following message: Configured: 262144 Required: 4194304.
8 In the Specify Hardware Cluster Installation Mode window, click Select All and click Next. NOTE: In the Product-Specific Prerequisite Checks window, you see an error, a warning, and four requirements. Follow step 9, step 10, and step 11 to resolve these issues and continue installation. 9 Check the Warning Status box to change it to User Defined. The Warning Status checkbox is located next to Checking operating systems requirements.
Installing 10.2.0.5 Patch Set for Oracle 10g R2 Database Software 1 On the first node, log in as oracle. 2 Create a folder for the patches and utilities at /u01/app/oracle/patches. 3 Open a web browser and navigate to support.oracle.com. 4 Log in to your Oracle Support account. 5 Search for the Patch number 8202632 with Linux x86-64 as the platform. 6 Download the patch to the /u01/app/oracle/patches directory.
9 Click Next. 10 In the Specify Home Details screen, click Next. 11 (Optional) In the Configure Security Updates window, provide the email address and the oracle support password. If you want to skip this step, deselect the box, and click Next. If you do not provide the email address, the Email Address Not Specified alert window is displayed. 12 Click Yes to continue. 13 In the Specify Hardware Cluster Installation Mode screen, click Next.
23 Log in as oracle. 24 Type the following and press : $> srvctl start nodeapps -n , where is the public host name of the node. Configuring the Listener This section describes the steps to configure the listener, which is required for remote client connection to a database. On one node only, perform the following steps: 1 Log in as root. 2 Start the X Window System by typing: startx.
Creating the Seed Database Using OCFS2 1 Log in as oracle on the first node and type: cluvfy stage -pre dbcfg -n node1,node2 -d $ORACLE_HOME -verbose, where node1 and node2 are the public host names. If your system is configured correctly, the following message is displayed: Pre-check for database configuration was successful. If your system is not configured correctly, see the Dell PowerEdge Systems Oracle Database on Enterprise Linux x86_64 Troubleshooting Guide available at support.dell.com.
12 In the Recovery Configuration window: a Click Specify Flash Recovery Area. b Click Browse and select /u05. c Specify the flash recovery size. d Select Enable Archiving. e Click Next. 13 In the Database Content window, click Next. 14 In the Database Services window, click Next. 15 In the Initialization Parameters window, if your cluster has more than four nodes, change the Shared Pool value to 500 MB. 16 Click Next. 17 In the Database Storage window, click Next.
22 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, where racdbx is the database instance identifier assigned to the node.
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. 8 In the Management Options window, click Next. 9 In the Database Credentials window, select a password option, and type the appropriate password information (if required) and click Next.
15 Repeat step 14 for the remaining ASM disk group, using flashbackDG as the disk group name. In the ASM Disk Groups window, select the disk group that you created in step 14 for database storage (for example, databaseDG). 16 Click Next. 17 In the Database File Locations window, select Use Oracle-Managed Files. 18 Click Next. 19 In the Recovery Configuration window, select the specify flash recovery area.
30 Click Password Management to assign specific passwords to authorized users (if required). 31 Otherwise, click Exit. A message is displayed indicating that the cluster database is being started on all nodes.
Modifying the CSS Timeout of 11gR1 Clusterware for Proper LUN Failover of MD3000i/MD32xxi When a Dell MD3000i/MD32xxi iSCSI storage RAID controller module fails, the total LUN failover time to the remaining RAID controller module may exceed 200 seconds. The default CSS disk timeout for Oracle 11g R1 version 11.1.0.7 is 200 seconds. To ensure that the MD3000i/MD32xxi LUN failover procedure functions correctly, increase the CSS disk timeout to 300 seconds.
Installing Oracle on Enterprise Linux
Configuring and Deploying Oracle Database 10g for a Single Node This section provides information about completing the initial setup or completing the re-installation procedures for Enterprise Linux for a single-node installation.
Installing Oracle Database 10g for a Single Node Perform the following steps to install Oracle Database 10g: 1 Log in as root. 2 As the user root, mount the Oracle Database 10g media. 3 Start the X Window System by typing: startx. 4 Open a terminal window and enter: xhost + 5 Log in as oracle. 6 Start the Oracle Universal Installer. In the terminal window, type the following: /runInstaller 7 In the Select Installation Method window, click Advanced Installation and then click Next.
16 Click Exit, and confirm by clicking Yes. 17 Log in as root. 18 Type: bin/localconfig add, where is similar to /u01/app/oracle/product/10.2.0/db_1/ The installation procedure completes. Downloading the Oracle Database 10g 10.2.0.5 Patch Set for a Single Node 1 Log in as oracle. 2 Create a folder for the patches and utilities at patches, where ORACLE_BASE is similar to /u01/app/oracle/. 3 Open a web browser and navigate to support.oracle.com.
Upgrading the Database 10g Software for a Single Node 1 As the user root, stop the cssd process by typing the following: /etc/init.d/init.cssd stop NOTE: This procedure may take a few minutes to complete. 2 Open a terminal window. 3 Log in as oracle. 4 Ensure that ORACLE_DB_HOME is set, where ORACLE_DB_HOME is similar to /u01/app/oracle/product/10.2.0/db_1/.
13 In the End of Installation screen, click Exit. 14 Click Yes to exit the Oracle Universal Installer. 15 To restart the cssd process as root, type the following: /etc/init.d/init.cssd start Configuring the Listener 1 Log in as root. 2 Start the X Window System by typing: startx. 3 Open a terminal window and enter: xhost + 4 Log in as oracle. 5 Enter netca to start the Oracle Net Configuration Assistant. 6 Accept the default settings. 7 Click Next on all the screens to complete the listener configuration.
10 In the Storage Options window, select File System and click Next. 11 In the Database File Locations window, click Next. 12 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 29. For example: recovery. Change the Flash Recovery Area size as needed. 13 Select Enable Archiving and click Next. 14 In the Database Content window, click Next.
Creating the Seed Database Using Oracle ASM If you configured your storage using Oracle ASM, perform the following steps to create a seed database with the DBCA: 1 As user oracle, start DBCA by typing: dbca & 2 In the Welcome 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, enter a Global Database Name such as oradb and click Next.
13 Repeat step 12 for the remaining ASM disk groups, using flashbackDG as the disk group name. 14 In the ASM Disk Groups window, check the disk group that you would like to use for Database Storage (for example, databaseDG) and click Next. 15 In the Database File Locations window, check Use Common Location for All Database Files and click Next. 16 In the Recovery Configuration window, click Browse.
Creating the Seed Database Using Oracle ASM for a Single Node If you configured your storage using Oracle ASM, perform the following steps to create a seed database with the DBCA: 1 As user oracle, start DBCA by typing: dbca & 2 In the Welcome window, click Next. 3 In the Operations window, click Create a Database and click Next. 4 In the Node Selection window, click Select All and click Next. 5 In the Database Templates window, click Custom Database and click Next.
13 In the Create Disk Group window, perform the following steps: a Enter a name for the disk group to be created (for example, databaseDG). b Select External redundancy. c Select the disks to include in the disk group. If your Operating System is Enterprise Linux 5.x, i.e Block devices, select /dev/emcpowerX, where emcpowerX is the disk stamped for ASM. A window is displayed indicating that disk group creation is in progress.
21 In the Initialization Parameters window, perform the following steps: a Select Custom. b In Shared Memory Management, select Automatic. c In the SGA Size and PGA Size windows, enter the appropriate information. d Click Next. 22 In the Database Storage window, click Next. 23 In the Creation Options window, select Create Database and click Finish. 24 In the Summary window, click OK to create the database. NOTE: This procedure may take an hour or more to complete.
28 On one node, type: srvctl status database -d dbname, where dbname is the global identifier name that you defined for the database in DBCA. If the database instances are running, confirmation is displayed on the screen. If the database instances are not running, type: srvctl start database -d dbname, where dbname is the global identifier name that you defined for the database in DBCA.
Adding and Removing Nodes This section describes the procedure to add and remove a node from an existing 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: a Add the node to the network layer. b Configure the shared storage. c Add the node to the Oracle Clusterware database and to the database instance layers.
Adding Nodes Adding a New Node to the Network Layer To add a new node to the network layer: 1 Install the Enterprise Linux operating system on the new node. For instructions to configure and install the operating system, see the Installing and Configuring Enterprise Linux section of the Dell PowerEdge Systems Oracle Database 10gR2 on Redhat Enterprise Linux or Oracle Enterprise Linux Advanced Server Hardware Installation Guide document at support.dell.com.
Adding a New Node to the Oracle Clusterware Layer 1 Log in as oracle into one of the existing nodes. 2 From the oui/bin directory of the existing node, enter ./addNode.sh to start the Oracle Universal Installer, where is similar to /crs/oracle/product/11.1.0/crs/ 3 In the Welcome window, click Next. 4 In the Specify Cluster Nodes to Add to Installation window, enter the public and private node names for the new node. 5 Click Next.
5 Click Next. If all the verification checks pass, the Cluster Node Addition Summary window is displayed. 6 Click Install. The Cluster Node Addition Progress window displays the status of the node addition process. 7 When prompted, as user root, type: root.sh on the new node, where is similar to /u01/app/oracle/product/10.2.0./db_1/. Press when asked to enter the full path name of the local bin directory. 8 When root.
8 In the Welcome window, select Listener Configuration and click Next. 9 In the Listener Configuration→ Listener window, select Reconfigure and click Next. 10 In the Listener Configuration→ Select Listener window, select LISTENER from the pull down menu and click Next. 11 In the Listener Configuration→ Select Protocols window, select TCP and click Next. 12 In the Listener Configuration→ TCP/IP Protocol window, select Use the standard port number of 1521 and click Next.
10 In the Summary window, click OK to add the database instance. A progress bar is displayed, followed by a message asking if you want to extend ASM to the new node(s). 11 Click Yes. The following message is displayed: Do you want to perform another operation? 12 Click No.
8 Select the instance to delete and click Next. The instance that you selected 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 and select another instance. Click Finish. If services are assigned to this instance, the DBCA Services Management window is displayed. Use this window to re-assign services to other instances in the cluster database. 9 In the Summary window, click OK.
To Stop and Remove ASM From the Deleted Node 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.
Removing a Node From the Oracle Clusterware Layer 1 On the node that you are deleting, as user root, disable Cluster Ready Services (CRS) by typing the following command: install/rootdelete.s h remote nosharedvar, where is similar to /u01/app/oracle/product/11.1.0./crs/. 2 On one of the remaining nodes, as user root, type the following command: install/rootdelete node.
Adding and Removing Nodes
Index D N Database Configuration Assistant, 33 Network Time Protocol server, 9 Deployment Automation Scripts, 16 devices Block devices, 24 download Dell automation scripts, 9 Oracle 11g clusterware, 11 Oracle Enterprise Linux, 9 Red Hat Enterprise Linux, 9 O operating system check, 17, 19 Oracle metalink, 8 P patch Oracle patch 6810189, 18, 31 Oracle patch 6890831, 14 E Enterprise Linux, 8 S SQL prompt, 34 H SYSDBA privileges, 45-46 help, 8 Dell support, 8 Oracle support, 8 T L training and ce
Index
Dell PowerEdge 系统 Enterprise Linux x86_64 上的 Oracle Database 数据库设置和 安装指南 4.
注 注:“注”表示可以帮助您更好地使用计算机的重要信息。 ____________________ 本出版物中的信息如有更改,恕不另行通知。 © 2009 – 2010 Dell Inc. 版权所有,翻印必究。 未经 Dell Inc. 书面许可,严禁以任何形式复制这些材料。 本文中使用的商标:Dell™、 DELL 徽标 和 PowerEdge™ 是 Dell Inc. 的商标; Oracle® 是 Oracle Corporation 和 / 或其子公司的注册商标; Red Hat Enterprise Linux® 和 Enterprise Linux® 是 Red Hat, Inc. 在美国和 / 或其它国家和地区的注册商标。 本出版物中述及的其它商标和产品名称是指拥有相应商标和产品名称的公司或其制造的产 品。 Dell Inc. 对其它公司的商标和产品名称不拥有任何所有权。 2010 年 7 月 Rev.
目录 1 概览 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 部署 Dell|Oracle 数据库所需的说明文件 . . . . . . . 59 . . . . . . . . . . . . . . . 60 . . . . . . . . . . . . . . . . . . . . . . . . 60 本说明文件中使用的术语 获得帮助 . Dell 支持 . . . . . . . . . . . . . . . . . . . . . . Oracle 支持 . 2 开始之前 60 . . . . . . . . . . . . . . . . . . . . 60 . . . . . . . . . . . . . . . . . . . . . . . . . 61 下载 Enterprise Linux 和 Dell 自动化脚本 . . . . . . . 61 . . . . . . . . . . . . 61 . . . . . . . . . . . . . .
为 Oracle 10g R2 数据库软件安装 10.2.0.5 增补软件集 . . . . . . . . . . . . . . . . . . . . . 70 . . . . . . . . . . . . . . . . . . . 70 . . . . . . . . . . . . . . . . . . . . . . 72 升级 RAC 安装 配置侦听程序 使用 OCFS2 创建基础数据库 . 使用 ASM 创建基础数据库 . . . . . . . . . . . . . . 73 . . . . . . . . . . . . . . 76 修改 11gR1 群集件的 CSS 超时时间,对 MD3000i/MD32xxi 的 LUN 进行正确的故障转移 4 . . . 80 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 为单个节点配置和部署 Oracle Database 10g . . . 配置公用网络 . . . . . . . . . . . . . 81 .
5 添加和删除节点 添加节点 . . . . . . . . . . . . . . . . . . . . 93 . . . . . . . . . . . . . . . . . . . . . . . . 93 将新节点添加到网络层 . . . . . . . . . . . . . . 使用 ASM 在新节点上配置共 享的存储设备 . . . . . . . . . . . . . . . . . . . 将新节点添加到 Oracle 群集件层 95 . . . . . . . . . . . . 96 . . . . . . . . . . . . . . . . 96 将新节点添加到数据库实例层 . 删除节点 . . . . . . . . . . 98 . . . . . . . . . . . . . . . . . . . . . . . . 99 从数据库实例层中删除节点 重新配置侦听程序 . . . . . . . . . . . 99 . . . . . . . . . . . . . . . .
目录
概览 本说明文件适用于在 Red Hat Enterprise Linux 或 Oracle Enterprise Linux 5.
本说明文件中使用的术语 在本说明文件中,术语逻辑单元号码 (LUN) 和虚拟磁盘是同义词。术语 LUN 通常用于 Dell/EMC 光纤信道存储系统环境。术语虚拟磁盘通常在 Dell PowerVault SAS 存储环境中使用。 除非另有说明,否则本说明文件中使用的术语 Enterprise Linux 同时适用于 Red Hat Enterprise Linux 和 Oracle Enterprise Linux。 获得帮助 Dell 支持 • 有关系统使用方面的详情,请参阅随系统组件附带的说明文件。 • 有关白皮书、Dell 支持的配置和一般信息,请访问 Dell|Oracle Tested and Validated Configurations(经 Dell|Oracle 测试和验证的配置)Web 站点 dell.com/oracle。 • 要获得对硬件和操作系统软件的 Dell 技术支持并下载最新的系统更 新,请访问 support.dell.
开始之前 以下各节介绍在安装 Oracle 10g Real Application Clusters (RAC) 之前必须完 成的操作。 下载 Enterprise Linux 和 Dell 自动化脚本 在系统上安装 Oracle RAC 软件之前: • 从 Red Hat Network Web 站点 rhn.redhat.com 下载 Red Hat Enterprise Linux 介质映像。可以从 Enterprise Linux|Linux|Oracle 网站 oracle.com/linux 上下载 Oracle Enterprise Linux 介质映像。 • 找到 Oracle 介质套件。 • 下载 Dell 自动化脚本,这些脚本适用于从 Dell|Oracle Tested and Validated Configurations(经 Dell|Oracle 测试和验证的配置)Web 站 点 dell.
Oracle 群集件软件建议 注:安装 Oracle 群集件软件之前,原始设备在 Enterprise Linux 5.x 操作系统 及更高版本中已弃用。 注:建议为 Enterprise Linux 5.
为 Enterprise Linux 5 安装 Oracle 11g 群集件、 10g 数据库和增补软 件集 注:如果您的 Oracle 软件套件中未附带 Oracle 11g 群集件,可以从 Oracle 网 站 oracle.com 下载该软件。 安装 Oracle 11g R1 群集件 1 作为 root 登录。 2 通过键入以下命令启动 X Window 系统:startx。 3 打开终端窗口,然后键入:xhost + 4 安装 Oracle 11g 群集件介质。 5 键入:su - oracle。 6 键入:/runcluvfy.sh stage -pre crsinst -n node1,node2 -r 11gR1 -verbose,其中 node1 和 node2 是公用主机名。 如果系统配置正确,屏幕将显示以下信息:Pre-check for cluster services setup was successful on all the nodes.
10 单击 Next (下一步),其中 类似于 /u01/crs/product/11.1.
16 在 Specify Oracle Cluster Registry (OCR) Location (指定 Oracle 群集 注册表 [OCR] 位置)窗口中,执行以下步骤: a 在 OCR Configuration (OCR 配置)框中,选择 Normal Redundancy (普通冗余)。 b 在 Specify OCR Location (指定 OCR 位置)字段中,输入: /dev/emcpowerX 或 /u03/ocr1.dbf (如果使用 OCFS2)。 c 在 Specify OCR Location (指定 OCR 位置)字段中,输入: /dev/emcpowerX 或 /u03/ocr2.
18 在 Summary (摘要)窗口中,单击 Install (安装)。 在系统上安装 Oracle 群集件。完成后,屏幕将显示 Execute Configuration scripts (执行配置脚本)窗口。 19 请按照窗口中的说明操作,然后单击 OK (确定)。 注:从主节点开始,依次在所有节点上运行 root.sh。例如,在节点 1 运行 root.sh。当在节点 1 上完成 root.sh 后,继续在节点 2 上运行,以此 类推。请勿同时在多个节点上运行 root.
升级 Oracle 群集件安装 在开始升级过程之前,请完成一下步骤: 1 在第一个节点上,作为用户 root 登录。 2 通过在终端窗口中键入以下命令并按 键,关闭 Oracle 群集 件: $> crsctl stop crs 3 在其余节点上,打开终端窗口并重复步骤 1 和步骤 2。 4 在第一个节点上,作为用户 oracle 登录。 5 在终端窗口中,键入以下命令并按 键: $> export ORACLE_HOME=/, 其中 类似于 /u01/crs/product/11.1.0/crs,具体取决于 CRS_BASE (在本例中为 /u01/crs)。 为 Oracle 11g R1 群集件安装 11.1.0.7 增补软件集 注:必须从安装 11gR1 群集件软件的节点安装增补软件集软件。 1 通过在终端窗口中键入以下命令并按 键来启动 Oracle Universal Installer: $> cd /u01/app/oracle/patches/Disk1/ $> .
7 打开终端窗口。 8 作为 root 登录。 9 键入以下命令并按 键: $>$ORA_CRS_HOME/install/root111.
6 在 Select Installation Types (选择安装类型)窗口中,选择 Enterprise Edition (企业版),然后单击 Next (下一步)。 7 在 Specify Home Details (指定主目录详细信息)窗口的 Path (路 径)字段中,验证完整的 Oracle 主目录路径是否为 ,然后单击 Next (下一步)。 此处的 类似于 /u01/app/oracle/product/10.2.
12 在 Select Configuration Option (选择配置选项)窗口中,选择 Install database Software only (仅安装数据库软件),然后单击 Next (下一 步)。 13 在 Summary (摘要)窗口中,单击 Install (安装)。 由此在群集上安装 Oracle 数据库软件。接下来将显示 Execute Configuration Scripts (执行配置脚本)窗口。 14 按照窗口中的说明操作,然后单击 OK (确定)。 15 在 End of Installation (安装结束)窗口中,单击 Exit (退出)。 为 Oracle 10g R2 数据库软件安装 10.2.0.5 增补软件集 1 在第一个节点上,作为用户 oracle 登录。 2 为增补软件和公用程序创建一个文件夹 /u01/app/oracle/patches。 3 打开 Web 浏览器并浏览至 support.oracle.
7 键入以下命令并按 键: $> export ORACLE_HOME=, 其中 类似于 /u01/app/oracle/product/10.2.0/db_1,具体取决于 ORACLE_BASE (在 本例中为 /u01/app/oracle)。 8 通过在终端窗口中键入以下命令并按 键来启动 Oracle Universal Installer: $> cd /u01/app/oracle/patches/Disk1/ $> .
18 键入以下命令并按 键: $> /root.sh,其中 类似于 /u01/app/oracle/product/10.2.
9 在 Listener Configuration (侦听程序配置) → Listener Name (侦听 程序名称)窗口中,在 Listener Name (侦听程序名称)字段中键入 LISTENER,然后单击 Next (下一步)。 10 在 Listener Configuration (侦听程序配置) → Select Protocols (选择 协议)窗口中,选择 TCP 并单击 Next (下一步)。 11 在 Listener Configuration (侦听程序配置) → TCP/IP Protocol (TCP/IP 协议)窗口中,选择 Use the standard port number of 1521 (使用标准端口号 1521),然后单击 Next (下一步)。 12 在 Listener Configuration (侦听程序配置) → More Listeners (更多 侦听程序)窗口中,选择 No (否),然后单击 Next (下一步)。 13 在 Listener Configuration Done (侦听程序配置完成)窗口中,单击 Next (下一步)。 14
5 在 Node Selection (节点选择)窗口中,单击 Select All (全选),然 后单击 Next (下一步)。 6 在 Database Templates (数据库模板)窗口中,单击 Custom Database (自定义数据库),然后单击 Next (下一步)。 7 在 Database Identification (数据库识别)窗口中,键入 Global Database Name (全局数据库名称)(如 racdb),然后单击 Next (下一步)。 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 在 D
16 单击 Next (下一步)。 17 在 Database Storage (数据库存储)窗口中,单击 Next (下一步)。 18 在 Creation Options (创建选项)窗口中,选择 Create Database (创 建数据库)。 19 单击 Finish (完成)。 20 在 Summary (摘要)窗口中,单击 OK (确定)创建数据库。 注:创建基础数据库可能需要一个多小时。 注:如果在基础数据库创建过程中收到 Enterprise Manager Configuration Error(企业管理器配置错误),请单击 OK(确定)忽略该错误。 数据库创建完成后,屏幕上将显示 Password Management(密码管理)窗 口。 21 单击 Exit (退出)。 屏幕上会显示一则信息,表示正在所有节点上启动群集数据库。 22 在每个节点上,执行以下步骤: a 通过键入以下命令,确定该节点上存在的数据库实例:srvctl status database -d b 通过键入以下命令,在 oracle 的用户配置文件中添加 ORACLE_SID
使用 ASM 创建基础数据库 本节包含使用 Oracle 自动存储管理 (ASM) 创建基础数据库以及验证基础数 据库的过程。 1 作为用户 oracle 登录并键入: /bin/cluvfy stage -pre dbcfg -n node1,node2 -d $ORACLE_HOME -verbose,其中 node1 和 node2 是公用主机名。 如果系统配置正确,屏幕将显示以下信息: Pre-check for database configuration was successful. (数据库配置预检查成功。) 如果系统配置不正确,请参阅 support.dell.
9 在 Database Credentials (数据库证书)窗口中,选择密码选项,键入 相应的密码信息 (如果需要),然后单击 Next (下一步)。 10 在 Storage Options (存储选项)窗口中,单击 Automatic Storage Management (自动存储管理 [ASM]),然后单击 Next (下一步)。 11 在 Create ASM Instance (创建 ASM 实例)窗口中的 SYS password (SYS 密码)字段中输入密码。 • 如果操作系统为 Enterprise Linux 5.
16 单击 Next (下一步)。 17 在 Database File Locations (数据库文件位置)窗口中,选择 Use Oracle-Managed Files (使用 Oracle 管理的文件)。 18 单击 Next (下一步)。 19 在 Recovery Configuration (恢复配置)窗口中,选择 specify flash recovery area (指定快擦写恢复区域)。 20 单击 Browse (浏览),选择您在步骤 15 中创建的回闪组 (例如, flashbackDG),然后根据需要更改快擦写恢复区域的大小。 21 选择 Enable Archiving (启用存档)并单击 Next (下一步)。 22 在 Database Content (数据库内容)窗口中,单击 Next (下一步)。 23 在 Database Services (数据库服务)窗口中,配置服务 (如果需要), 然后单击 Next (下一步)。 24 在 Initialization Parameters (初始化参数)窗口中,执行以下步骤: a 选择 Custom (自定义)。 b
29 数据库创建完成后,屏幕中将显示 Database Configuration Assistant (数据库配置助手)窗口。 30 单击 Password Management (密码管理),向授权用户分配特定的密 码 (如果需要)。 31 否则,单击 Exit (退出)。 屏幕上会显示一条消息,指示正在所有节点上启动群集数据库。 32 在每个节点上执行以下步骤。 a 通过键入以下命令,确定该节点上存在的数据库实例: srvctl status database -d b 键入以下命令,在 oracle 用户配置文件中添加 ORACLE_SID 环境 变量条目: $> echo "export ORACLE_SID=racdbx" >> /home/oracle/.bash_profile, 其中 racdbx 是分配给节点的数据库实例标识符 $> source /home/oracle/.
修改 11gR1 群集件的 CSS 超时时间,对 MD3000i/MD32xxi 的 LUN 进行正确的故障转移 当 Dell MD3000i/MD32xxi iSCSI 存储 RAID 控制器模块发生故障时,切换 到其余 RAID 控制器模块的总 LUN 故障转移时间可能会超过 200 秒。 Oracle 11g R1 11.1.0.7 版的默认 CSS 磁盘超时时间为 200 秒。为确保 MD3000i/MD32xxi LUN 故障转移过程正常工作,请将 CSS 超时时间增加到 300 秒。 增加 CSS 磁盘超时时间: 1 关掉所有节点 (仅留一个)上的 CRS。有关详情,请参阅 support.oracle.com/CSP/main/article?cmd=show&type=NOT&id= 309542.
为单个节点配置和部署 Oracle Database 10g 本节介绍有关为进行单节点安装的 Enterprise Linux 完成初始设置或完成重 新安装过程的信息。 配置公用网络 若要配置公用网络,请参阅“Dell PowerEdge Systems Oracle Database on Enterprise Linux x86_64 Storage and Network Guide”(Dell PowerEdge 系 统:Enterprise Linux x86_64 上的 Oracle 数据库:存储设备和网络指南)说 明文件中的“Configuring Storage and Networking for Oracle 10g Real Application Clusters (RAC)”(配置 Oracle 10g Real Application Clusters (RAC) 的存储设备和网络)一节,该说明文件可从 support.dell.com 获取。 使用 ext3 文件系统配置数据库存储 若要使用 ext3 文件系统配置数据库存储,请参阅 support.dell.
使用 Oracle ASM 配置数据库存储 若要使用 Oracle 自动存储管理 (ASM) 配置数据库存储,请参阅 support.dell.
10 单击 Next (下一步)。 11 在 Product-Specific Prerequisite Checks (产品特定先决条件检查)窗 口中,单击 Next (下一步)。 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 键入: bin/localconfig add,其中 类似于 /u01/app/oracle/product/10.2.
升级用于单个节点的 Database 10g 软件 1 作为用户 root 键入以下命令,以停止 cssd 进程: /etc/init.d/init.cssd stop 注:完成此过程可能需要几分钟。 2 打开终端窗口。 3 作为用户 oracle 登录。 4 确保设置了 ORACLE_DB_HOME,其中 ORACLE_DB_HOME 类似于 /u01/app/oracle/product/10.2.
13 在 End of Installation (安装结束)屏幕中,单击 Exit (退出)。 14 单击 Yes (是)以退出 Oracle Universal Installer。 15 要作为 root 重新启动 cssd 进程,请键入以下命令: /etc/init.d/init.
8 在 Management Options (管理选项)窗口中,单击 Next (下一 步)。 9 在 Database Credentials (数据库证书)窗口中,完成密码选择和输 入,然后单击 Next (下一步)。 10 在 Storage Options (存储选项)窗口中选择 File System (文件系 统),然后单击 Next (下一步)。 11 在 Database File Locations (数据库文件位置)窗口中,单击 Next (下一步)。 12 在 Recovery Configuration (恢复配置)窗口中,单击 Browse (浏览) 并选择在第 81 页上的 “使用 ext3 文件系统配置数据库存储”中创建 的回闪恢复区域。 例如:recovery。 根据需要更改快擦写恢复区域的大小。 13 选择 Enable Archiving (启用存档)并单击 Next (下一步)。 14 在 Database Content (数据库内容)窗口中,单击 Next (下一步)。 15 在 Initialization Parameters (初始化
要验证数据库是否可以正常运行,请执行以下步骤: 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 (欢迎)窗口中,单击 Next (下一步)。 3 在 Operations (操作)窗口中,单击 Create a Database (创建数据 库),然后单击 Next (下一步)。 4 在 Database Templates (数据库模板)窗口中,单击 Custom Database (自定义数据库),然后单击 Next (下一步)。 5 在 Database Identification (数据库标识)窗口中,输入
12 在 Create Disk Group (创建磁盘组)窗口中,输入数据库文件的存储 信息,然后单击 OK (确定)。 a 为要创建的磁盘组输入名称 (如 databaseDG),选择 External Redundancy (外部冗余),然后选择要包括在磁盘组中的 ORCL:ASM1 磁盘。 b 如果您使用的是 ASM 库驱动程序,且无法访问候选磁盘,请单击 Change Disk Discovery String (更改磁盘搜索字符串),输入 ORCL:* 作为字符串,然后选择 ORCL:ASM1。 c 单击 OK (确定)。 由此在群集上创建第一个 ASM 磁盘组。 接下来将显示 ASM Disks Groups (ASM 磁盘组)窗口。 13 对另一个 ASM 磁盘组重复执行步骤 12 (使用 flashbackDG 作为磁盘 组名称)。 14 在 ASM Disk Groups (ASM 磁盘组)窗口中,选中要用于数据库存储 的磁盘组 (例如, databaseDG),然后单击 Next (下一步)。 15 在 Database File Locations (数据库文件位置)窗口中
23 数据库创建完成后,屏幕上将显示 Password Management (密码管 理)窗口。 24 单击 Exit (退出)。 25 数据库创建完成后,键入以下命令,以便将 ORACLE_SID 环境变量条 目添加到 oracle 用户配置文件中: echo "export ORACLE_SID=oradb" >> /home/oracle/.bash_profile source /home/oracle/.
9 在 Storage Options (存储选项)窗口中,单击 Automatic Storage Management (自动存储管理 [ASM]),然后单击 Next (下一步)。 10 在 Create ASM Instance (创建 ASM 实例)窗口中,执行以下步骤: • 在 SYS password(SYS 密码)字段中,输入密码。 如果操作系统为 Enterprise Linux 5.
15 在 ASM Disk Groups (ASM 磁盘组)窗口中,选择在步骤 13 中为数 据库存储创建的磁盘组 (例如 databaseDG),然后单击 Next (下 一步)。 16 在 Database File Locations (数据库文件位置)窗口中,选择 Use Oracle-Managed Files (使用 Oracle 管理文件),然后单击 Next (下 一步)。 17 在 Recovery Configuration (恢复配置)窗口中,单击 Browse (浏 览),选择您在步骤 14 中创建的回闪组 (例如, flashbackDG), 然后根据需要更改快擦写恢复区域的大小。 18 选择 Enable Archiving (启用存档)并单击 Next (下一步)。 19 在 Database Content (数据库内容)窗口中,单击 Next (下一步)。 20 在 Database Services (数据库服务)窗口中,配置服务 (如果需要), 然后单击 Next (下一步)。 21 在 Initialization Parameters (初始化参数)窗口中,执行以下步
26 否则,单击 Exit (退出)。 屏幕上会显示一条消息,指示正在所有节点上启动群集数据库。 27 在每个节点上执行以下步骤。 a 通过键入以下命令,确定该节点上存在的数据库实例: srvctl status database -d b 键入以下命令,在 oracle 用户配置文件中添加 ORACLE_SID 环境 变量条目: $> echo "export ORACLE_SID=racdbx" >> /home/oracle/.bash_profile, 其中 racdbx 是分配给节点的数据库实例标识符 $> source /home/oracle/.
添加和删除节点 本节介绍为现有群集添加和删除节点的步骤: 注:新节点必须与现有节点具有相同的硬件和操作系统配置。 要向现有群集添加节点,请执行以下操作: a 将节点添加到网络层。 b 配置共享存储。 c 将节点添加到 Oracle 群集件数据库层和数据库实例层。 要从现有群集中删除节点,请按相反顺序执行该过程,即依次从数据库实例 层、数据库层和 Oracle 群集件层删除节点。 有关向现有群集添加其它节点的详情,请参阅 oracle.com 上的 Oracle Real Application Clusters 10g Administration(Oracle Real Application Clusters 10g 管理)说明文件。 添加节点 将新节点添加到网络层 要将新节点添加到网络层,请执行以下操作: 1 在新节点上安装 Enterprise Linux 操作系统。 有关配置和安装操作系统的说明,请参阅 support.dell.
2 在新节点上配置公用网络和专用网络。有关详情,请参阅 “Dell PowerEdge Systems Oracle Database 10gR2 on Redhat Enterprise Linux or Oracle Enterprise Linux Advanced Server Storage and Network Guide” (Dell PowerEdge 系统:Redhat Enterprise Linux 或 Oracle Enterprise Linux 上的 Oracle Database 10gR2:高级服务器存储设备和网络指南) 说明文件的 “Configuring Storage and Networking for Oracle 10g RAC (配置 Oracle 10g RAC 的存储设备和网络)”一节,该说明文件可从 support.dell.
将新节点添加到 Oracle 群集件层 1 作为用户 oracle 登录到一个现有节点中。 2 从现有节点的 oui/bin 目录,输入 ./addNode.sh 以启动 Oracle Universal Installer,其中 类似于 /crs/oracle/product/11.1.0/crs/ 3 在 Welcome (欢迎)窗口中,单击 Next (下一步)。 4 在 Specify Cluster Nodes to Add to Installation (指定添加到安装的群 集节点)窗口中,输入新节点的公用和专用节点名称。 5 单击 Next (下一步)。 如果所有网络和存储验证检查均已通过,则会显示 Cluster Node Addition Summary (群集节点添加摘要)窗口。 6 单击 Install (安装)。 7 Cluster Node Addition Progress (群集节点添加进度)窗口会显示节点 添加进度的状态。 8 当提示以用户 root 身份在本地节点上运行 rootaddnode.
将新节点添加到数据库层 1 作为用户 oracle 登录到一个现有节点中。 2 从现有节点的 oui/bin 目录,键入 ./addNode.sh 以启动 Oracle Universal Installer,其 中 类似于 /u01/app/oracle/product/10.2.0./db_1/。 3 在 Welcome (欢迎)窗口中,单击 Next (下一步)。 4 在 Specify Cluster Nodes for Node Addition (指定用于节点添加的群集 节点)窗口中,验证是否已选定新节点。 5 单击 Next (下一步)。 如果所有验证检查均已通过,则会显示 Cluster Node Addition Summary (群集节点添加摘要)窗口。 6 单击 Install (安装)。 Cluster Node Addition Progress (群集节点添加进度)窗口会显示节点 添加进度的状态。 7 出现提示时,作为用户 root 在新节点上键入: root.
仅在一个节点上,执行以下步骤: 1 作为 root 登录。 2 通过键入以下命令启动 X Window 系统:startx。 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
将新节点添加到数据库实例层 1 在一个现有节点上,作为用户 oracle 键入以下命令,以启动 Database Configuration Assistant (数据库配置助手, DBCA):dbca 2 在 Welcome (欢迎)窗口中,单击 Next (下一步)。 3 在 Operations (操作)窗口中,单击 Instance Management (实例管 理),然后单击 Next (下一步)。 4 在 Instance Management (实例管理)窗口中,单击 Add Instance (添加实例),然后单击 Next (下一步)。 5 在 List of Cluster Databases (群集数据库列表)窗口中,选择现有的 数据库。 如果您的用户名未经过操作系统验证, DBCA 会提示您输入具有 SYSDBA 权限的数据库用户的用户名和密码。 6 输入用户名 sys 和密码,然后单击 Next (下一步)。 屏幕将显示 List of Cluster Database Instances (群集数据库实例列表) 窗口,其中显示与选定 RAC 数据库相关的实例以及每个实例的状态。
删除节点 注:在执行本节中的过程时,确保从群集中选择和删除正确的节点。 从数据库实例层中删除节点 1 作为用户 oracle 登录。 2 在剩余的某个节点上,输入:dbca 3 在 Welcome (欢迎)窗口中,单击 Next (下一步)。 4 在 Operations (操作)窗口中,单击 Instance Management (实例管 理),然后单击 Next (下一步)。 5 在 Instance Management (实例管理)窗口中,单击 Delete an instance (删除实例),然后单击 Next (下一步)。 6 在 List of Cluster Databases (群集数据库列表)窗口中,选择要删除 的实例所在的 RAC 数据库。 如果您的用户名未经过操作系统验证, DBCA 会提示您输入具有 SYSDBA 权限的数据库用户的用户名和密码。 7 输入用户名 sys 和密码,然后单击 Next (下一步)。 屏幕将显示 List of Cluster Database Instances (群集数据库实例列表) 窗口,其中显示与选定 RAC 数据库相关的实例以及每个实例的状
重新配置侦听程序 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 (侦听程序) 窗口中,选择 Reconfigure (重新配置)并单击 Next (下一步)。 6 在 Listener Configuration (侦听程序配置) → Select Listener (选择 侦听程序)窗口中,选择 LISTENER,然后单击 Next (下一步)。 当显示 Are you sure you want to stop and modify
从数据库层中删除节点 1 在要删除的节点上,作为用户 oracle 登录。 2 使用要删除的节点的公用名称,输入以下命令。例如,如果您要删除 node3-pub, srvctl stop nodeapps -n node3-pub 忽略有关侦听程序的错误 CRS-0210。 3 在将要删除的节点上,请作为 root 登录。 4 如果要删除 Oracle 数据库软件,请输入以下命令:rm -rf /*,其中 类似于 /u01/app/oracle/product/10.2.0./db_1。 从 Oracle 群集件层中删除节点 1 在要删除的节点上,作为用户 root 键入以下命令来禁用群集就绪服务 (CRS): install/rootdelete.s h remote nosharedvar, 其中 类似于 /u01/app/oracle/product/11.1.0.
添加和删除节点
索引 B S 帮助 , 60 Dell 支持 , 60 Oracle 支持 , 60 SQL 提示 , 87 部署自动化脚本 , 68 SYSDBA 权限 , 98-99 设备 块设备 , 77 数据库配置助手 , 85 C 操作系统检查 , 69, 71 W 网络时间协议服务器 , 61 E Enterprise Linux , 60 L 逻辑单元编号 , 60 O X 下载 Dell 自动化脚本 , 61 Oracle 11g 群集件 , 63 Oracle Enterprise Linux, 61 Red Hat Enterprise Linux, 61 Oracle metalink, 60 Z P 增补软件 Oracle 增补软件 6810189, 70, 83 Oracle 增补软件 6890831, 66 培训与认证 Dell, 60 Oracle, 60 索引 103
索引
Systèmes Dell PowerEdge Oracle Database sur Enterprise Linux x86_64 Guide d’installation et de configuration de la base de données Version 4.
Remarques 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–2010 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.
Table des matières 1 Présentation . . . . . . . . . . . . . . . . . . . . . Documentation requise pour déployer Dell|Oracle Database . . . . . . . . . . . . . . . . . . Terminologie utilisée dans le présent document . Obtention d’aide 111 . . . 112 . . . . . . . . . . . . . . . . . . . . . 113 Support Dell . . . . . . . . . . . . . . . . . . . . . 113 . . . . . . . . . . . . . . . . . . . 113 Support Oracle 2 111 Avant de commencer . . . . . . . . . . . . . . .
3 Installation d’Oracle 11g Clusterware, d’Oracle Database 10g et du groupe de correctifs sous Enterprise Linux 5 . . . 117 Installation d’Oracle Clusterware 11g R1 . . . . . 117 Téléchargement du groupe de correctifs 1.1.0.7 d’Oracle 11g R1 Clusterware . . . . . . . 120 . . . . . . . . . . 121 Mise à niveau de l’installation d’Oracle Clusterware . . . . . Installation du groupe de correctifs 1.1.0.7 d’Oracle 11g R1 Clusterware Installation du logiciel Oracle 10g R2 Database . . . . . . .
4 Configuration et déploiement d’Oracle Database 10g (sur un seul nœud) . . . . . . . . Configuration du réseau public . . . . . . . . . . . . . . . . . . . . . Configuration du stockage de la base de données à l’aide du système de fichiers ext3 . Installation d’Oracle Database 10g (sur un seul nœud) . . . . . . . . . 137 . . . . . 137 . . . . . . . . . 138 . . . . . . . . . . . 138 Configuration du stockage de la base de données à l’aide d’Oracle ASM . .
5 Ajout et suppression de nœuds . Ajout de nœuds. . . . . . . 151 . . . . . . . . . . . . . . . . . . . . 152 Ajout d’un nœud à la couche réseau . . . . . . . 152 Configuration des périphériques de stockage partagés sur le nouveau nœud à l’aide d’ASM . . . . . . . . . . . . . . . 153 Ajout d’un nœud à la couche Clusterware . . . . 153 Ajout d’un nœud à la couche de la base de données . . . . . . . . . . . . . . 154 Reconfiguration de l’écouteur . . . . . . . . . .
Présentation Ce document s’applique au logiciel Oracle Database 10g R2 exécuté sur Red Hat Enterprise Linux ou Oracle Enterprise Linux 5.5 AS x86_64. Il vous aidera à installer le logiciel Oracle 10g Real Application Clusters (RAC) sur un système Dell PowerEdge exécutant Red Hat Enterprise Linux ou Oracle Enterprise Linux. La procédure d’installation consiste à installer les services CRS Oracle (Cluster Ready Services), puis Oracle Database 10g.
• Dell PowerEdge Systems Oracle Database on Enterprise Linux x86_64 Troubleshooting Guide (Oracle Database sous Enterprise Linux x86_64 pour systèmes Dell PowerEdge - Guide de dépannage) : Ce guide explique comment ajouter un nœud au cluster, dépanner et résoudre les erreurs rencontrées lors de l’installation de la base de données Oracle. REMARQUE : Tous les modules indiquent comment recevoir une assistance technique auprès de Dell.
Obtention d’aide Support Dell • Pour plus d’informations sur l’utilisation de votre système, consultez la documentation fournie avec ses composants. • Vous trouverez des livres blancs, des détails sur les configurations prises en charge par Dell et des informations générales sur le site Web dell.com/oracle. • Pour obtenir une assistance technique sur votre matériel ou système d’exploitation et pour télécharger les dernières mises à jour appropriées à votre système, consultez le site support.dell.com.
Présentation
Avant de commencer Les sections suivantes présentent la procédure à effectuer avant d’installer Oracle 10g Real Application Clusters (RAC). Télécharger les scripts d’automatisation Enterprise Linux et Dell Avant d’installer le logiciel Oracle RAC sur le système : • Téléchargez les images de support Red Hat Enterprise Linux à partir du site Web Red Hat Network, à l’adresse rhn.redhat.com.
Recommandations relatives à Oracle Clusterware REMARQUE : Avant l’installation du logiciel Oracle Clusterware, les périphériques RAW sont abandonnés sous le système d’exploitation Enterprise Linux 5.x et les versions ultérieures. REMARQUE : Il est recommandé d’installer Oracle 11g Clusterware avec Oracle 10g R2 Database pour le système d’exploitation Enterprise Linux 5.x.
Installation d’Oracle 11g Clusterware, d’Oracle Database 10g et du groupe de correctifs sous Enterprise Linux 5 REMARQUE : Si Oracle 11g Clusterware n’était pas fourni dans le kit de logiciels Oracle, vous pouvez le télécharger à partir du site web d’Oracle, oracle.com. Installation d’Oracle Clusterware 11g R1 1 Ouvrez une session en tant que root. 2 Démarrez le système X Window en tapant la commande startx. 3 Ouvrez une fenêtre de terminal et entrez : xhost + 4 Montez le CD Oracle 11g Clusterware.
9 Dans la fenêtre Specify Home Details (Indiquer l’emplacement racine), changez le chemin de l’emplacement racine d’Oracle en : . 10 Cliquez sur Next (Suivant), où est similaire à u01/crs/product/11.2.0/crs selon la valeur de BASE_CRS, qui, dans cet exemple, est u01/crs.
d Dans la fenêtre Specify Network Interface Usage (Définir l’utilisation des interfaces réseau), vérifiez que le nom des interfaces publique et privée est correct, puis cliquez sur Next (Suivant). 16 Dans la fenêtre Specify Oracle Cluster Registry (OCR) Location (Indiquer l’emplacement du registre du cluster Oracle), procédez comme suit : a Dans la zone OCR Configuration (Configuration du registre du cluster Oracle), sélectionnez Normal Redundancy (Redondance normale).
18 Dans la fenêtre Summary (Résumé), cliquez sur Install (Installer). Oracle Clusterware est installé sur le système. La fenêtre Execute Configuration scripts (Exécuter les scripts de configuration) s’affiche. 19 Suivez les instructions affichées à l’écran, puis cliquez sur OK. REMARQUE : Exécutez le script root.sh sur chaque nœud (un à la fois), en commençant par le nœud principal. Par exemple, exécutez root.sh sur le nœud 1. Une fois l’exécution terminée, passez au nœud 2, etc. Ne lancez pas root.
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, ouvrez une session en tant qu’utilisateur root. 2 Fermez Oracle Clusterware. Pour ce faire, tapez les commandes suivantes dans la fenêtre de terminal et appuyez sur : $> crsctl stop crs 3 Sur les autres nœuds, ouvrez une fenêtre de terminal et recommencez l’étape 1 et l’étape 2. 4 Sur le premier nœud, ouvrez une session 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 à l’ étape 1 et à l’étape 2 de la section «Mise à niveau de l’installation d’Oracle Clusterware» à la page 121. 7 Ouvrez une fenêtre de terminal. 8 Ouvrez une session en tant que root. 9 Entrez la commande suivante et appuyez sur : $>$ORA_CRS_HOME/install/root111.
Si le système est configuré correctement, le message suivant s’affiche : Pre-check for database installation was successful. (La vérification préalable pour l’installation de la base de données a abouti.) Dans le cas contraire, reportez-vous au document Dell PowerEdge Systems Oracle Database on Enterprise Linux x86_64 Troubleshooting Guide (Oracle Database sous Enterprise Linux x86_64 pour systèmes Dell PowerEdge Guide de dépannage), disponible sur le site support.dell.com.
9 Cochez la case Warning Status (État d’avertissement) pour afficher la valeur User Defined (Défini par l’utilisateur). La case Warning Status (État d’avertissement) est située en regard de l’option Checking operating systems requirements (Vérification de la configuration requise du système d’exploitation). REMARQUE : Cet avertissement est dû au fait qu’Oracle 10g n’effectue pas de vérification du système d’exploitation sous Enterprise Linux 5.
Installation du groupe de correctifs 10.2.0.5 pour Oracle Database 10g R2 1 Sur le premier nœud, ouvrez une session en tant qu’utilisateur oracle. 2 Créez un dossier pour les correctifs et les utilitaires dans /u01/app/oracle/patches. 3 Ouvrez une fenêtre de navigateur Web et accédez au site support.oracle.com. 4 Connectez-vous à votre compte Oracle Support. 5 Recherchez le correctif 8202632 pour plate-forme Linux x86-64. 6 Téléchargez ce correctif dans le répertoire /u01/app/oracle/patches.
8 Lancez le programme Oracle Universal Installer. Pour ce faire, entrez les commandes suivantes dans la fenêtre de terminal, puis appuyez sur : $> cd /u01/app/oracle/patches/Disk1/ $> ./runInstaller L’écran d’accueil Welcome s’affiche. 9 Cliquez sur Suivant. 10 Dans la fenêtre Specify Home Details (Indiquer l’emplacement racine), cliquez sur Next (Suivant).
16 Dans la fenêtre Summary (Résumé), cliquez sur Install (Installer). Le programme Oracle Universal Installer analyse le système, puis affiche et installe tous les correctifs requis. Une fois l’opération terminée, la fenêtre End of Installation (Fin de l’installation) s’affiche. Un message vous invite à ouvrir une session en tant que root et à exécuter root.sh. 17 Ouvrez une fenêtre de terminal. 18 Entrez la commande suivante et appuyez sur : $> /root.
Configuration de l’écouteur Cette section explique comment configurer le processus d’écoute nécessaire 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 entrant la commande startx. 3 Ouvrez une fenêtre de terminal et entrez : xhost + 4 Pour démarrer l’assistant de configuration réseau, ouvrez une session en tant qu’utilisateur oracle, puis entrez 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, ouvrez une session en tant qu’utilisateur oracle et entrez : 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.
7 Dans la fenêtre Database Identification (Identification de la base de données), entrez un nom global de base de données dans la zone Global Database Name (racdb par exemple), puis cliquez sur Next (Suivant). 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).
17 Dans la fenêtre Database Storage (Stockage de la base de données), cliquez sur Next (Suivant). 18 Dans la fenêtre Creation Options (Options de création), sélectionnez Create Database (Créer une base de données). 19 Cliquez sur Finish (Terminer). 20 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.
Création de la base de données initiale à l’aide d’ASM Cette section indique comment créer et vérifier la base de données initiale à l’aide d’Oracle ASM (Automatic Storage Management). 1 Ouvrez une session en tant qu’utilisateur oracle, puis entrez : /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.
9 Dans la fenêtre Database Credentials (Autorisations de la base de données), sélectionnez une option de mot de passe (password), entrez les informations appropriées le cas échéant, puis cliquez sur Next (Suivant). 10 Dans la fenêtre Storage Options (Options de stockage), cliquez sur Automatic Storage Management (ASM), puis cliquez sur Next (Suivant). 11 Dans le champ SYS password (Mot de passe SYS) de la fenêtre Create ASM Instance (Création d’une instance ASM), entrez un mot de passe.
15 Répétez l’étape 14 pour l’autre groupe de disques ASM en utilisant GDflashback comme nom de groupe. Dans la fenêtre ASM Disk Groups (Groupes de disques ASM), sélectionnez le groupe de disques créé à l’étape 14 destiné au stockage de la base de données (par exemple, GDbdd). 16 Cliquez sur Next (Suivant). 17 Dans la fenêtre Database File Locations (Emplacement des fichiers de base de données), sélectionnez Use Oracle-Managed Files (Utiliser des fichiers OMF). 18 Cliquez sur Next (Suivant).
25 Dans la fenêtre Database Storage (Stockage de la base de données), cliquez sur Next (Suivant). 26 Dans la fenêtre Creation Options (Options de création), sélectionnez Create Database (Créer une base de données). 27 Cliquez sur Finish (Terminer). 28 Dans la fenêtre Summary (Résumé), cliquez sur OK pour créer la base de données. REMARQUE : cette procédure peut prendre plus d’une heure.
33 Sur un nœud, entrez : srvctl status database -d nom_bdd, où nom_bdd est l’identificateur global défini pour la base de données dans l’assistant de configuration de base de données (DBCA). Si les instances de la base de données sont en cours d’exécution, un message de confirmation s’affiche.
Configuration et déploiement d’Oracle Database 10g (sur un seul nœud) Cette section contient des informations sur la configuration initiale et les procédures de réinstallation d’Enterprise Linux dans le cadre d’une installation sur un seul nœud.
Configuration du stockage de la base de données à l’aide d’Oracle ASM Pour configurer le stockage de la base de données à l’aide d’Oracle ASM (Automatic Storage Management), voir la section correspondante du document Dell PowerEdge Systems Oracle Database on Enterprise Linux x86_64 Storage and Network Guide (Oracle Database sous Enterprise Linux x86_64 pour systèmes Dell PowerEdge - Guide de stockage et de mise en réseau), disponible sur le site support.dell.com.
11 Dans la fenêtre Product-Specific Prerequisite Checks (Vérification des conditions prérequises), cliquez sur Next (Suivant). 12 Lorsque le message d’avertissement s’affiche, ignorez-le et cliquez sur Yes (Oui). 13 Dans la fenêtre Select Configuration Option (Sélection d’une option de configuration), cliquez sur Install Database Software Only (Installer uniquement le logiciel de base de données). 14 Dans la fenêtre Summary (Résumé), cliquez sur Install (Installer).
Mise à niveau d’Oracle Database 10g (sur un seul nœud) 1 En tant qu’utilisateur root, arrêtez le processus cssd en entrant la commande suivante : /etc/init.d/init.cssd stop REMARQUE : Cette procédure peut prendre plusieurs minutes. 2 Ouvrez une fenêtre de terminal. 3 Ouvrez une session en tant qu’utilisateur oracle. 4 Vérifiez que la variable RACINE_BDD_ORACLE est définie, où RACINE_BDD_ORACLE est similaire à /u01/app/oracle/product/10.2.0/db_1/.
10 Dans une fenêtre de terminal, tapez la commande suivante : root.sh, où RACINE_BDD_ORACLE est similaire à /u01/app/oracle/product/10.2.0/db_1 11 Appuyez sur pour accepter les réponses par défaut générées par root.sh. REMARQUE : Cette procédure peut prendre plusieurs minutes. 12 Une fois l’exécution de root.sh terminée, revenez à la fenêtre Execute Configuration Scripts (Exécution des scripts de configuration) et cliquez sur OK.
Création de la base de données initiale Création de la base de données initiale à l’aide du système de fichiers ext3 Procédez comme suit pour créer une base de données initiale avec l’assistant de configuration de base de données (DBCA) d’Oracle : 1 Ouvrez une session en tant qu’utilisateur oracle. 2 Démarrez l’assistant de configuration de base de données (DBCA) d’Oracle en entrant la commande dbca. 3 Dans la fenêtre Welcome (Bienvenue), cliquez sur Next (Suivant).
12 Dans la fenêtre Recovery Configuration (Configuration de la récupération), cliquez sur Browse (Parcourir), puis sélectionnez la zone de récupération flashback créée à l’«Configuration du stockage de la base de données à l’aide du système de fichiers ext3» à la page 137. Par exemple : recovery. Sélectionnez l’emplacement approprié dans le champ Flash Recovery Area (Zone de récupération Flash). 13 Sélectionnez Enable Archiving (Activer l’archivage) et cliquez sur Next (Suivant).
Pour vérifier que la base de données fonctionne correctement, procédez comme suit : a Entrez sqlplus “/ as sysdba” pour afficher l’invite SQL>. b Entrez la requête suivante à l’invite SQL> : SELECT * FROM v$instance; c Si la base de données ne fonctionne pas et si un message d’erreur s’affiche, entrez startup à l’invite SQL> pour démarrer l’instance de la base de données sur le nœud.
10 Lorsqu’un message indiquant que l’assistant de configuration de base de données (DBCA) est prêt à créer et à démarrer l’instance ASM s’affiche, cliquez sur OK. 11 Dans la fenêtre ASM Disk Groups (Groupes de disques ASM), sous Available Disk Groups (Groupes de disques disponibles), cliquez sur Create New (Créer). 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.
18 Dans la fenêtre Database Content (Contenu de la base de données), cliquez sur Next (Suivant). 19 Dans la fenêtre Initialization Parameters (Paramètres d’initialisation), sélectionnez Typical (Standard), puis cliquez sur Next (Suivant). 20 Dans la fenêtre Database Storage (Stockage de la base de données), cliquez sur Next (Suivant). 21 Dans la fenêtre Creation Options (Options de création), sélectionnez Create Database (Créer la base de données) et cliquez sur Finish (Terminer).
Création de la base de données initiale à l’aide d’Oracle ASM sur un seul nœud 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 de configuration de base de données (DBCA) : 1 En tant qu’utilisateur oracle, lancez l’assistant de configuration de base de données (DBCA) en entrant : dbca & 2 Dans la fenêtre Welcome (Bienvenue), cliquez sur Next (Suivant).
11 Lorsqu’un message indiquant que l’assistant de configuration de base de données (DBCA) est prêt à créer et à démarrer l’instance ASM s’affiche, cliquez sur OK. 12 Sous ASM Disk Groups (Groupes de disques ASM), cliquez sur Create New (Créer). 13 Dans la fenêtre Create Disk Group (Création d’un groupe de disques), procédez comme suit : a Entrez un nom pour le groupe de disques à créer (par exemple, GDbdd). b Sélectionnez External redundancy (Redondance externe).
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 (GDflashback, par exemple), 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).
25 Cliquez sur Password Management (Gestion des mots de passe) pour attribuer des mots de passe aux utilisateurs autorisés (le cas échéant). 26 Sinon, cliquez sur Exit (Quitter). Un message indique que la base de données du cluster est en cours de démarrage sur tous les nœuds.
Ajout et suppression de nœuds Cette section explique comment ajouter et supprimer un nœud dans un cluster existant : 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 : a Ajoutez le nœud à la couche réseau. b Configurez le stockage partagé. c Ajoutez le nœud à la base de données Oracle Clusterware et aux couches d’instance de base de données.
Ajout de nœuds Ajout d’un nœud à la couche réseau Pour ajouter un nœud à la couche réseau : 1 Installez Enterprise Linux sur le nouveau nœud.
Configuration des périphériques de stockage partagés sur le nouveau nœud à l’aide d’ASM Pour étendre une base de données RAC existante aux nouveaux nœuds, configurez ceux-ci pour que leurs ressources de stockage soient identiques à celles des nœuds existants. Si vous utilisez la fonction de gestion automatique du stockage ASM (Automatic Storage Management), assurez-vous que les nouveaux nœuds ont accès aux disques ASM avec les mêmes autorisations que les nœuds existants.
8 Lorsque vous êtes invité à exécuter rootaddnode.sh sur le nœud local et root.sh sur le nouveau nœud en tant qu’utilisateur root, entrez : install/rootaddnode.sh, où RACINE_CRS_ORACLE est similaire à /crs/oracle/product/11.1.0/crs 9 Une fois l’exécution de root.sh terminée, cliquez sur OK dans la fenêtre Execute Configuration Scripts (Exécuter les scripts de configuration). 10 Dans la fenêtre End of Cluster Node Addition (Fin de l’ajout du nœud au cluster), cliquez sur Exit (Quitter).
8 Une fois l’exécution de root.sh terminée, cliquez sur OK dans la fenêtre Execute Configuration Scripts (Exécuter les scripts de configuration). 9 Dans la fenêtre End of Installation (Fin de l’installation), cliquez sur Exit (Quitter). 10 Cliquez sur Yes (Oui) pour confirmer. Reconfiguration de l’écouteur Cette section indique comment reconfigurer l’écouteur. Cette procédure est requise pour que les clients puissent se connecter à distance à la base de données.
10 Dans la fenêtre Listener Configuration (Configuration de l’écouteur)→ Select Listener (Sélectionner un écouteur), sélectionnez LISTENER dans le menu déroulant, puis cliquez sur Next (Suivant). 11 Dans la fenêtre Listener Configuration (Configuration de l’écouteur)→ Select Protocols (Sélection des protocoles), sélectionnez TCP et cliquez sur Next (Suivant).
6 Entrez le nom d’utilisateur sys et le mot de passe, puis cliquez sur Next (Suivant). La fenêtre List of Cluster Database Instances (Liste des instances de bases de données de cluster) s’affiche. Elle répertorie les instances associées à la base de données RAC sélectionnée et l’état de chacune d’entre elles. 7 Dans la fenêtre List of Cluster Database Instances (Liste des instances de base de données du cluster), cliquez sur Next (Suivant).
Suppression de nœuds REMARQUE : Lorsque vous effectuez les procédures décrites dans cette section, vérifiez que le nœud sélectionné est bien celui qui doit être supprimé. Suppression du nœud de la couche de l’instance de base de données 1 Ouvrez une session en tant qu’utilisateur oracle. 2 Sur l’un des nœuds restants, entrez : dbca 3 Dans la fenêtre Welcome (Bienvenue), cliquez sur Next (Suivant).
10 Vérifiez les informations relatives à la suppression de l’instance, puis cliquez sur OK. Une barre de progression s’affiche lorsque l’assistant de configuration de base de données (DBCA) supprime l’instance et sa configuration réseau Oracle Net. Une fois l’opération terminée, une boîte de dialogue vous demande si vous souhaitez effectuer une autre opération. 11 Cliquez sur No (Non).
Pour arrêter et supprimer ASM d’un nœud supprimé Sur l’un des nœuds restants, effectuez les opérations suivantes : 1 Ouvrez une fenêtre de terminal. 2 Entrez : srvctl stop asm -n , où est le nœud à supprimer du cluster. 3 Entrez : srvctl remove asm -n , où est le nœud à supprimer du cluster. Suppression d’un nœud de la couche de la base de données 1 Sur le nœud à supprimer, ouvrez une session en tant qu’utilisateur oracle.
Suppression d’un nœud de la couche Oracle Clusterware 1 Ouvrez une session en tant qu’utilisateur root sur le nœud à supprimer, puis désactivez les services CRS en entrant la commande : install/rootdelete.s h remote nosharedvar, où est similaire à /u01/app/oracle/product/11.1.0./crs/. 2 Ouvrez une session en tant qu’utilisateur root sur l’un des nœuds restants, puis entrez : install/rootdelete node.
Ajout et suppression de nœuds
Index A L Aide, 113 support Dell, 113 support Oracle, 113 LUN (numéro d’unité logique), 112 Assistant de configuration de base de données, 142 O Oracle Metalink, 113 C Correctif Oracle 6810189, 125, 139 Oracle 6890831, 120 P Périphériques périphériques de bloc, 133 E S Enterprise Linux, 112 Scripts d’automatisation du déploiement, 122 F Serveur NTP (Network Time Protocol), 115 Formation et certification Dell, 113 Oracle, 113 SQL invite, 144 SYSDBA droits, 156, 158 Index 163
T Téléchargement Oracle 11g Clusterware, 117 Oracle Enterprise Linux, 115 Red Hat Enterprise Linux, 115 scripts d’automatisation Dell, 115 V Vérification du système d’exploitation, 124, 126 164 Index
Dell PowerEdge-Systeme Oracle Database unter Enterprise Linux x86_64 Datenbankeinrichtungsund Installationsanleitung Version 4.
Anmerkungen ANMERKUNG: Eine ANMERKUNG macht auf wichtige Informationen aufmerksam, mit denen Sie den Computer besser einsetzen können. ____________________ Irrtümer und technische Änderungen vorbehalten. © 2009–2010 Dell Inc. Alle Rechte vorbehalten. Die Vervielfältigung oder Wiedergabe dieser Materialien in jeglicher Weise ohne vorherige schriftliche Genehmigung von Dell Inc. ist strengstens untersagt. In diesem Text verwendete Marken: Dell™, das DELL Logo und PowerEdge™ sind Marken von Dell Inc.
Inhalt 1 Übersicht . . . . . . . . . . . . . . . . . . . . . . . . Erforderliche Dokumentation zum Bereitstellen von Dell|Oracle Database . . . . . . . . 171 . . . . 172 . . . . . . . . . . . . . . . . 172 . . . . . . . . . . . . . . . . . . . . 172 In diesem Dokument verwendete Terminologie Wie Sie Hilfe bekommen Dell-Support Oracle-Support . 2 171 . . . . . . . . . . . . . . . . . . Bevor Sie beginnen . . . . . . . . . . . . . . . .
3 Installation von Oracle 11g Clusterware, 10g Database und des Patchsets für Enterprise Linux 5 . . . . . . . . . . . . . . 177 . . . 177 . . . . . . 181 . . . . . . . . . . . . . 181 Installation von Oracle 11g R1 Clusterware Herunterladen des Patchsets 11.1.0.7 für Oracle 11g R1 Clusterware . . . . Upgrade der Oracle Clusterware-Installation Installation des Patchsets 11.1.0.7 für Oracle 11g R1 Clusterware . . . . . . Installation der Oracle 10g R2-Datenbanksoftware . . . . . . . . 182 . . . .
Installation von Oracle Database 10g für einen einzelnen Knoten . . . . . . . . . . . . . . . Herunterladen des Patchsets 10.2.0.5 von Oracle Database 10g für einen Einzelknoten . . . . . . 199 . . . . . . . . . . 200 Konfiguration des Listeners . . . . . . . . . . . . . . . 201 Erstellen der Startdatenbank . . . . . . . . . . . . . . 202 Upgrade der Database 10g-Software für einen Einzelknoten . . . . . . . . Erstellen der Startdatenbank mit ext3-Dateisystem . . . . . . . . . . . . . . . .
Entfernen von Knoten . . . . . . . . . . . . . . . . . Entfernen eines Knotens aus der Datenbankinstanzschicht . . . . . Neukonfiguration des Listeners 218 219 . . . . . . . . 220 Entfernen eines Knotens aus der Datenbankschicht. . . . . . . . . . . . . . . . . 220 . . . . . . . . . 221 . . . . . . . . . . . . . . . . . 223 Stichwortverzeichnis Inhalt . . . . . . . . . . . . . . . . . Anhalten und Entfernen von ASM vom gelöschten Knoten . . . . . .
Übersicht Dieses Dokument gilt für folgende Konfigurationen: Oracle Database 11g R2 unter Red Hat Enterprise Linux oder Oracle Enterprise Linux 5.3 AS x86_64. In diesem Dokument wird die Installation der Software Oracle 10g Real Application Clusters (RAC) auf einem Dell PowerEdge-System mit Red Hat Enterprise Linux oder Oracle Enterprise Linux beschrieben. Beim Installationsvorgang wird zunächst Oracle Cluster Ready Services (CRS) und dann die Oracle Database 10g-Software installiert.
ANMERKUNG: Alle Module enthalten Informationen zur technischen Unterstützung von Dell. In diesem Dokument verwendete Terminologie In diesem Dokument werden die Begriffe Logische Gerätenummer (LUN) und Virtueller Datenträger synonym verwendet. Der Begriff „LUN“ wird üblicherweise in Dell|EMC Fibre-Channel-Speichersystemumgebungen verwendet. Der Begriff „virtueller Datenträger“ wird in der Regel bei Dell PowerVault SAS-Speicherumgebungen verwendet.
Oracle-Support • Informationen über Schulungen für Oracle-Software und AnwendungsClusterware sowie Kontaktinformationen von Oracle finden Sie auf der Oracle-Website oracle.com oder in Ihrer Oracle-Dokumentation. • Technischer Support, Downloads und weitere technische Informationen sind auf der My Oracle Support-Website unter support.oracle.com verfügbar.
Übersicht
Bevor Sie beginnen Die folgenden Abschnitte beschreiben Vorgänge, die vor der Installation von Oracle 10g Real Application Clusters (RAC) durchzuführen sind. Herunterladen der Enterprise Linux- und Dell-Automatisierungsskripts Bevor Sie die Oracle-RAC-Software auf dem System installieren: • Laden Sie die Red Hat Enterprise Linux-Medien-Images von der Red Hat Network-Website unter rhn.redhat.com herunter.
Empfehlungen für Oracle Clusterware-Software ANMERKUNG: Vor dem Installieren der Oracle Clusterware-Software werden die veralteten Raw-Geräte für Enterprise Linux 5.x und höher entfernt. ANMERKUNG: Es wird empfohlen, für das Betriebssystem Enterprise Linux 5.x Oracle 11g Clusterware mit Oracle 10g R2 Database zu installieren.
Installation von Oracle 11g Clusterware, 10g Database und des Patchsets für Enterprise Linux 5 ANMERKUNG: Sie können Oracle 11g Clusterware von der Oracle-Website oracle.com herunterladen, wenn es in Ihrem Oracle Software-Kit nicht enthalten war. Installation von Oracle 11g R1 Clusterware 1 Melden Sie sich als root beim System an. 2 Starten Sie das X-Window-System, indem Sie Folgendes eingeben: startx.
10 Klicken Sie auf Next (Weiter), wobei dem Pfad /u01/crs/product/11.1.0/crs ähnelt, abhängig von CRS_BASE, in diesem Beispiel /u01/crs. 11 Überprüfen Sie, ob im Fenster Product-Specific Prerequisite Checks (Produktspezifische Vorüberprüfungen) der Eintrag Succeeded (Erfolgreich) in der Spalte Status für die einzelnen Systemüberprüfungen angezeigt wird. 12 Klicken Sie auf Next (Weiter).
c Klicken Sie auf OK. d Überprüfen Sie im Fenster Specify Network Interface Usage (Nutzung der Netzwerkschnittstelle festlegen), ob die öffentlichen und privaten Schnittstellennamen korrekt sind, und klicken Sie dann auf Next (Weiter). 16 Führen Sie im Fenster Specify Oracle Cluster Registry (OCR) Location (Speicherort für Oracle Cluster-Registry [OCR]) die folgenden Schritte durch: a Wählen Sie im Feld OCR Configuration (OCR-Konfiguration) den Eintrag Normal Redundancy (Normale Redundanz) aus.
d Geben Sie im Fenster Additional Voting Disk 2 Location (Speicherort für zusätzlichen Voting-Datenträger 2) Folgendes ein: /dev/emcpowerX oder /u03/votingdisk3, falls OCFS2 verwendet wird. e Klicken Sie auf Next (Weiter). 18 Klicken Sie im Fenster Summary (Übersicht) auf Install (Installieren). Oracle Clusterware ist damit auf dem System installiert. Nach Abschluss des Vorgangs wird das Fenster Execute Configuration scripts (Konfigurationsskripts ausführen) angezeigt.
Herunterladen des Patchsets 11.1.0.7 für Oracle 11g R1 Clusterware 1 Melden Sie sich am ersten Knoten als oracle an. 2 Erstellen Sie für die Patches und Dienstprogramme den Ordner /u01/app/oracle/patches. 3 Öffnen Sie einen Webbrowser und rufen Sie support.oracle.com auf. 4 Melden Sie sich beim Oracle Support-Konto an. Suchen Sie nach der Patch-Nummer 6890831 mit Linux x86-64 als Plattform. 5 Laden Sie den Patch in das Verzeichnis /u01/app/oracle/patches herunter.
Installation des Patchsets 11.1.0.7 für Oracle 11g R1 Clusterware ANMERKUNG: Sie müssen die Patchset-Software über den Knoten installieren, auf dem die 11g R1 Clusterware-Software installiert wurde. 1 Starten Sie den Oracle Universal Installer, indem Sie im Terminalfenster den nachstehenden Befehl eingeben und anschließend die drücken: $> cd /u01/app/oracle/patches/Disk1/ $> ./runInstaller Der Startbildschirm wird angezeigt. 2 Klicken Sie auf Next (Weiter).
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 Ja, um den Oracle Universal Installer zu beenden. Installation der Oracle 10g R2-Datenbanksoftware 1 Geben Sie als Benutzer root ein: xhost + 2 Mounten Sie als Benutzer root das Oracle Database 10g-Medium.
7 Achten Sie im Fenster Specify Home Details darauf, dass im Feld Path (Pfad) der vollständige Oracle-Stammpfad angegeben ist, und klicken Sie auf Next (Weiter). In diesem Fall ähnelt dem Pfad /u01/app/oracle/product/10.2.0/db_1, abhängig von ORACLE_BASE, in diesem Beispiel /u01/app/oracle. ANMERKUNG: Das Oracle-Stammname in Schritt 7 muss sich unterscheiden von dem Oracle-Stammnamen, den Sie bei der CRS-Installation festgelegt haben.
11 Aktivieren Sie das Feld Error Status (Fehlerstatus), um es in User Defined (Benutzerdefiniert) zu ändern. Das Kontrollkästchen Error Status (Fehlerstatus) befindet sich neben Check Oracle Clusterware version (Überprüfen der Oracle Clusterware-Version). ANMERKUNG: Diese Warnung besteht, weil Oracle 10g keine Betriebssystemüberprüfung bei Enterprise Linux 5 durchführt. Wegen dieses Fehlers lässt sich die Oracle 10g-Datenbanksoftware nicht installieren.
Upgrade der RAC-Installation 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 ClusterwareKnotenanwendungen. Geben Sie im Terminalfenster den folgenden Befehl ein und drücken Sie die : $> $ORACLE_HOME/bin/srvctl stop nodeapps -n ANMERKUNG: Übergehen Sie eventuell angezeigte Warnmeldungen.
12 Klicken Sie auf Yes (Ja), um fortzufahren. 13 Klicken Sie im Fenster Specify Hardware Cluster Installation Mode (Hardware-Cluster-Installationsmodus festlegen) auf Next (Weiter). 14 Ignorieren Sie die Kernel-Parameterwarnungen im Fenster ProductSpecific Prerequisite Checks (Produktspezifische Vorüberprüfungen), indem Sie Error status (Fehlerstatus) zu „User Defined“ (Benutzerdefiniert) ändern. 15 Klicken Sie auf Next (Weiter).
22 Öffnen Sie auf dem ersten Knoten ein Terminalfenster. 23 Melden Sie sich als Benutzer oracle an. 24 Geben Sie die folgende Zeile ein und drücken Sie die : $> srvctl start nodeapps -n , wobei der öffentliche Hostname des Knotens ist. Konfiguration des Listeners In diesem Abschnitt werden die Schritte zum Konfigurieren des Listeners beschrieben, der erforderlich ist, damit entfernte Clients Verbindung zu einer Datenbank aufnehmen können.
11 Wählen Sie im Fenster Listener Configuration→ TCP/IP Protocol (Listener-Konfiguration, TCP/IP-Protokoll) die Option Use the standard port number of 1521 (Standardportnummer 1521 verwenden) aus und klicken Sie auf Next (Weiter). 12 Wählen Sie im Fenster Listener Configuration→ More Listeners (Listener-Konfiguration, Weitere Listener?) die Option No (Nein) und klicken Sie auf Next (Weiter). 13 Klicken Sie im Fenster Listener Configuration Done (Konfiguration des Listeners abgeschlossen) auf Next (Weiter).
6 Klicken Sie im Fenster Database Templates (Datenbankvorlagen) auf Custom Database (Benutzerdefinierte Datenbank) und anschließend auf Next (Weiter). 7 Geben Sie im Fenster Database Identification (Datenbankidentifikation) einen Global Database Name (Globalen Datenbanknamen) wie racdb ein und klicken Sie auf Next (Weiter). 8 Klicken Sie im Fenster Management Options (Verwaltungsoptionen) auf Next (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 500 MB. 16 Klicken Sie auf Next (Weiter). 17 Klicken Sie im Fenster Database Storage (Datenbankspeicher) auf Next (Weiter). 18 Klicken Sie im Fenster Creation Options (Erstellungsoptionen) auf Create Database (Datenbank erstellen). 19 Klicken Sie auf Fertig stellen.
Erstellen der Startdatenbank mit ASM In diesem Abschnitt sind die Vorgehensweisen zum Erstellen einer Startdatenbank mit Oracle Automatic Storage Management (ASM) sowie zum Überprüfen der Startdatenbank beschrieben. 1 Melden Sie sich als oracle an und geben Sie folgende Befehle ein: /bin/cluvfy stage -pre dbcfg -n Knoten1,Knoten2 -d $ORACLE_HOME -verbose, wobei Knoten1 und Knoten2 die öffentlichen Hostnamen sind.
9 Wählen Sie im Fenster Database Credentials (Datenbank-Zugriffsrechte) eine Option für password (Kennwort), geben Sie die entsprechenden Kennwortinformationen ein (falls erforderlich) und klicken Sie auf Next (Weiter). 10 Wählen Sie im Fenster Storage Options (Speicheroptionen) die Option Automatic Storage Management (ASM) (Automatische Speicherverwaltung) und klicken Sie auf Next (Weiter). 11 Geben Sie im Fenster Create ASM Instance (ASM-Instanz erstellen) ein Kennwort in das Feld SYS password ein.
Die erste ASM-Datenträgergruppe wird auf dem Cluster erstellt. Das Fenster ASM Disks Groups (ASM-Datenträgergruppen) angezeigt. 15 Wiederholen Sie Schritt 14 für die verbleibende ASM-Datenträgergruppe und verwenden Sie flashbackDG als Datenträgergruppennamen. Wählen Sie im Fenster ASM Disk Groups (ASM-Datenträgergruppen) die Datenträgergruppe aus, die Sie als Datenbankspeicher in Schritt 14 erstellt haben (zum Beispiel databaseDG). 16 Klicken Sie auf Next (Weiter).
25 Klicken Sie im Fenster Database Storage (Datenbankspeicher) auf Next (Weiter). 26 Klicken Sie im Fenster Creation Options (Erstellungsoptionen) auf Create Database (Datenbank erstellen). 27 Klicken Sie auf Fertig stellen. 28 Klicken Sie im Fenster Summary (Übersicht) auf OK, um die Datenbank zu erstellen. ANMERKUNG: Dieser Vorgang kann eine Stunde oder länger dauern. 29 Nachdem die Datenbank erstellt wurde, wird das Fenster Database Configuration Assistant (Datenbankkonfigurationsassistent) angezeigt.
33 Geben Sie auf einem Knoten folgenden Befehl ein: srvctl status database -d dbname, wobei dbname der Name der globalen Kennung ist, die Sie im DBCA für die Datenbank definiert haben. Wenn die Datenbankinstanzen aktiv sind, wird auf dem Bildschirm eine Bestätigung angezeigt. Falls die Datenbankinstanzen noch nicht gestartet sind, geben Sie Folgendes ein: srvctl start database -d dbname, wobei dbname der Name der globalen Kennung ist, die Sie im DBCA für die Datenbank definiert haben.
Konfigurieren und Bereitstellen von Oracle Database 10g für einen Einzelknoten Dieser Abschnitt enthält Informationen über das Durchführen der Ersteinrichtung bzw. der Neuinstallation für Enterprise Linux bei einem einzelnen Knoten.
Installation von Oracle Database 10g für einen einzelnen Knoten Gehen Sie wie folgt vor, um Oracle Database 10g zu installieren: 1 Melden Sie sich als root beim System an. 2 Mounten Sie als Benutzer root das Oracle Database 10g-Medium. 3 Starten Sie das X-Window-System, indem Sie Folgendes eingeben: startx. 4 Öffnen Sie ein Terminalfenster und geben Sie Folgendes ein: xhost + 5 Melden Sie sich als Benutzer oracle an. 6 Starten Sie den Oracle Universal Installer.
15 Öffnen Sie nach Aufforderung ein Terminalfenster und führen Sie root.sh aus. Kurzzeitig wird ein Statusfenster angezeigt. Anschließend wird End of Installation (Installation abgeschlossen) angezeigt. 16 Klicken Sie auf Exit (Beenden) und bestätigen Sie mit Yes (Ja). 17 Melden Sie sich als root beim System an. 18 Geben Sie Folgendes ein: bin/localconfig add, wobei dem Pfad /u01/app/oracle/product/10.2.0/db_1/ ähnelt. Die Installation wird abgeschlossen.
Upgrade der Database 10g-Software für einen Einzelknoten 1 Halten Sie als Benutzer root den Prozess cssd an, indem Sie Folgendes eingeben: /etc/init.d/init.cssd stop ANMERKUNG: Dieser Vorgang kann einige Minuten dauern. 2 Öffnen Sie ein Terminalfenster. 3 Melden Sie sich als Benutzer oracle an. 4 Stellen Sie sicher, dass ORACLE_DB_HOME gesetzt ist, wobei ORACLE_DB_HOME dem Pfad /u01/app/oracle/product/10.2.0/db_1/ ähnelt.
10 Geben Sie in einem Terminalfenster Folgendes ein: root.sh , wobei ORACLE_DB_HOME dem Pfad /u01/app/oracle/product/10.2.0/db_1 ähnelt. 11 Drücken Sie die , um die Standardantworten auf die von root.sh erzeugten Fragen zu akzeptieren. ANMERKUNG: Dieser Vorgang kann mehrere Minuten dauern. 12 Wenn die Ausführung von root.sh beendet ist, kehren Sie zum Fenster Execute Configuration Scripts (Konfigurationsskripte ausführen) zurück und klicken Sie auf OK.
Erstellen der Startdatenbank Erstellen der Startdatenbank mit ext3-Dateisystem Führen Sie folgende Schritte aus, um mit dem DatenbankKonfigurationsassistenten (DBCA) 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 Next (Weiter). 4 Klicken Sie im Fenster Operations (Vorgänge) auf Create a Database (Datenbank erstellen) und anschließend auf Next (Weiter).
12 Klicken Sie im Fenster Recovery Configuration (Wiederherstellungskonfiguration) auf Browse (Durchsuchen) und wählen Sie den Wiederherstellungsbereich aus, den Sie im Abschnitt „Konfiguration des Datenbankspeichers mit ext3-Dateisystem“ auf Seite 197 erstellt haben. Zum Beispiel: recovery. Ändern Sie die Größe des Wiederherstellungsbereichs nach Bedarf. 13 Wählen Sie Enable Archiving (Archivierungsfunktion aktivieren) und klicken Sie auf Next (Weiter).
Überprüfen Sie, ob die Datenbank ausgeführt wird, indem Sie folgende Schritte durchführen: a Geben Sie sqlplus "/ as sysdba" ein, um die Eingabeaufforderung SQL>anzuzeigen. b Geben Sie an der Eingabeaufforderung SQL> folgende Abfrage ein: SELECT * FROM v$instance; c Wenn die Datenbank nicht gestartet ist und eine Fehlermeldung angezeigt wird, geben Sie an der Eingabeaufforderung SQL> startup ein, um die Datenbankinstanz auf dem Knoten zu starten.
9 Geben Sie im Fenster Create ASM Instance (ASM-Instanz erstellen) das Kennwort für den Benutzer sys ein und klicken Sie auf Next (Weiter). 10 Wenn in einer Meldung mitgeteilt wird, dass die ASM-Instanz vom DBCA erstellt und gestartet werden kann, klicken Sie auf OK. 11 Klicken Sie im Fenster ASM Disk Groups (ASM-Datenträgergruppen) unter Available Disk Groups (Verfügbare Datenträgergruppen) auf Create New (Neu erstellen).
16 Klicken Sie im Fenster Recovery Configuration (Wiederherstellungsoptionen) auf Browse (Durchsuchen). Wählen Sie die Wiederherstellungsgruppe aus, die Sie in Schritt 12 erstellt haben (im Beispiel flashbackDG) und ändern Sie die Größe des Wiederherstellungsbereichs nach Bedarf. 17 Wählen Sie Enable Archiving (Archivierungsfunktion aktivieren) und klicken Sie auf Next (Weiter). 18 Klicken Sie im Fenster Database Content (Datenbankinhalt) auf Next (Weiter).
Erstellen der Startdatenbank mit Oracle ASM bei einem Einzelknoten 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 den DBCA, indem Sie als Benutzer oracle folgenden Befehl eingeben: dbca & 2 Klicken Sie im Begrüßungsfenster auf Next (Weiter). 3 Klicken Sie im Fenster Operations (Vorgänge) auf Create a Database(Datenbank erstellen) und anschließend auf Next (Weiter).
10 Führen Sie im Fenster Create ASM Instance (ASM-Instanz erstellen) die folgenden Schritte durch: • Geben Sie im Feld SYS password (SYS-Kennwort) ein Kennwort ein. Wenn es sich um Enterprise Linux 5.x handelt: a Wählen Sie Create initialization parameter file (IFILE) (Parameterdatei für Initialisierung [IFILE] erstellen). b Klicken Sie auf Next (Weiter). 11 Wenn in einer Meldung mitgeteilt wird, dass die ASM-Instanz vom DBCA erstellt und gestartet werden kann, klicken Sie auf OK.
15 Wählen Sie im Fenster ASM Disk Groups die Datenträgergruppe aus, die Sie in Schritt 13 als Database Storage (Datenbankspeicher) erstellt haben (zum Beispiel databaseDG), und klicken Sie auf Next (Weiter). 16 Wählen Sie im Fenster Database File Locations (DatenbankSpeicherorte) Use Oracle-Managed Files (Von Oracle verwaltete Dateien verwenden) und klicken Sie auf Next (Weiter).
Nachdem die Datenbank erstellt wurde, wird das Fenster Database Configuration Assistant (Datenbankkonfigurationsassistent) angezeigt. 25 Klicken Sie auf Password Management (Kennwortverwaltung), um zugelassenen Benutzern spezifische Kennwörter zuzuweisen (falls erforderlich). 26 Klicken Sie andernfalls auf Exit (Beenden). Eine Meldung informiert darüber, dass die Clusterdatenbank auf allen Knoten gestartet wird.
Hinzufügen und Entfernen von Knoten In diesem Abschnitt wird beschrieben, wie ein Knoten einem bestehenden Cluster hinzugefügt oder daraus entfernt wird: 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: a Fügen Sie der Netzwerkschicht einen Knoten hinzu. b Konfigurieren Sie den gemeinsamen Speicher.
Hinzufügen von Knoten Hinzufügen eines neuen Knotens zur Netzwerkschicht So fügen Sie der Netzwerkschicht einen neuen Knoten hinzu: 1 Installieren Sie auf dem neuen Knoten das Betriebssystem Enterprise Linux.
Konfiguration von gemeinsamem Speicher auf dem neuen Knoten mit ASM Legen Sie für die neuen Knoten, die Sie der bestehenden Oracle Real Application Clusters (RAC)-Datenbank hinzufügen wollen, den gleichen Speicherort fest wie für die bereits vorhandenen Knoten. Wenn Sie Automatic Storage Management (ASM) verwenden, müssen die neuen Knoten die gleichen Zugriffsrechte für die ASM-Datenträger erhalten wie die bereits vorhandenen Knoten.
8 Wenn Sie dazu aufgefordert werden, rootaddnode.sh auf dem lokalen Knoten und root.sh auf dem neuen Knoten als Benutzer root auszuführen, geben Sie Folgendes ein: install/rootaddnode.sh, wobei ORACLE_CRS_HOME dem Pfad /crs/oracle/product/11.1.0/crs ähnelt. 9 Wenn die Ausführung von root.sh im Fenster Execute Configuration Scripts (Konfigurationsskripte ausführen) beendet ist, klicken Sie auf OK.
7 Wenn Sie dazu aufgefordert werden, geben Sie als Benutzer root Folgendes ein: root.sh auf dem neuen Knoten, wobei dem Pfad /u01/app/oracle/product/10.2.0./db_1/ ähnelt. Drücken Sie die , wenn Sie zur Eingabe des vollständigen Pfadnamens des lokalen bin-Verzeichnisses aufgefordert werden. 8 Wenn die Ausführung von root.sh im Fenster Execute Configuration Scripts (Konfigurationsskripte ausführen) beendet ist, klicken Sie auf OK.
7 Wählen Sie im Fenster Real Application Clusters Active Nodes (Real Application Clusters, Aktive Knoten) die Option Select All Nodes (Alle Knoten auswählen) und klicken Sie auf Next (Weiter). 8 Wählen Sie im Begrüßungsfenster die Option Listener Configuration (Listener-Konfiguration) aus und klicken Sie auf Next (Weiter). 9 Wählen Sie im Fenster Listener Configuration→ Listener (ListenerKonfiguration, Listener) Reconfigure (Neukonfiguration) aus und klicken Sie auf Next (Weiter).
Hinzufügen eines neuen Knotens zur Datenbankinstanzschicht 1 Starten Sie auf einem der bestehenden Knoten als Benutzer oracle den Datenbank-Konfigurationsassistenten (DBCA), indem Sie Folgendes eingeben: dbca 2 Klicken Sie im Begrüßungsfenster auf Next (Weiter). 3 Klicken Sie im Fenster Operations (Vorgänge) auf Instance Management (Instanzen verwalten) und anschließend auf Next (Weiter).
11 Klicken Sie auf Yes (Ja). Die folgende Meldung wird angezeigt: Do you want to perform another operation? 12 Klicken Sie auf No (Nein). 13 Vergewissern Sie sich, dass die Datenbankinstanz erfolgreich hinzugefügt wurde, indem Sie auf einem beliebigen Knoten Folgendes eingeben: srvctl status database -d Entfernen von Knoten ANMERKUNG: Achten Sie beim Durchführen der Maßnahmen in diesem Abschnitt darauf, dass Sie den richtigen Knoten zum Entfernen aus dem Cluster auswählen.
8 Wählen Sie die zu löschende Instanz aus und klicken Sie auf Next (Weiter). Die lokale Instanz, von der aus Sie den DBCA ausführen, kann nicht gelöscht werden. Wenn Sie die lokale Instanz auswählen, wird vom DBCA eine Fehlermeldung angezeigt. Wenn dieser Fall eintritt, klicken Sie auf OK und wählen Sie eine andere Instanz. Klicken Sie auf Finish (Fertig stellen). Falls dieser Instanz Dienste zugewiesen sind, wird das Fenster DBCA Services Management (DBCA-Diensteverwaltung) angezeigt.
6 Wählen Sie im Fenster Listener Configuration→ Select Listener (Listener-Konfiguration, Listener auswählen) die Option LISTENER und klicken Sie auf Next (Weiter). Wenn die Meldung Are you sure you want to stop and modify the listener with the name LISTENER? angezeigt wird, klicken Sie auf Yes (Ja). 7 Klicken Sie im Fenster Listener Configuration (Listener-Konfiguration)→ Listener Reconfigured (Listener neu konfiguriert) auf Next (Weiter).
Entfernen eines Knoten aus der Oracle Clusterwareschicht 1 Deaktivieren Sie Cluster Ready Services (CRS) auf dem zu entfernenden Knoten, indem Sie als Benutzer root den folgenden Befehl eingeben: install/rootdelete.s h remote nosharedvar, wobei dem Pfad /u01/app/oracle/product/11.1.0./crs/ ähnelt. 2 Geben Sie auf einem der verbleibenden Knoten als Benutzer root den folgenden Befehl ein: install/rootdelete node.
Hinzufügen und Entfernen von Knoten
Stichwortverzeichnis A Automation-Skripts für Bereitstellung, 183 D Datenbank-Konfigurationsassist ent, 202 Hilfe, 172 Dell Support, 172 Oracle-Support, 173 L Logische Gerätenummer, 172 N E Enterprise Linux, 172 G Geräte Block-Geräte, 193 Network Time Protocol-Server, 175 O Oracle Metalink, 173 P H Herunterladen Dell Automation-Skripts, 175 Oracle 11g-Clusterware, 177 Oracle Enterprise Linux, 175 Red Hat Enterprise Linux, 175 Patch Oracle-Patch 6810189, 185, 199 Oracle-Patch 6890831, 181 Stichwort
S Schulung und Zertifizierung Dell, 172 Oracle, 173 SQL-Eingabeaufforderung, 204 SYSDBA-Zugriffsrechte, 217-218 U Überprüfung des Betriebssystems, 184-185, 187 224 Stichwortverzeichnis
Dell PowerEdge システム Enterprise Linux x86_64 で使 用する Oracle データベース データベースセット アップ & インストールガイド バージョン 4.
メモ メモ:コンピュータを使いやすくするための重要な情報を説明しています。 ____________________ 本書の内容は予告なく変更されることがあります。 © 2009 ~ 2010 すべての著作権は Dell Inc. にあります。 Dell Inc. の書面による許可のない複製は、いかなる形態においても厳重に禁じられています。 本書に使用されている商標:Dell™、DELL ロゴ、および PowerEdge™ は Dell Inc. の商標 です。Oracle® は Oracle Corporation および / またはその関連会社の登録商標です。 Red Hat Enterprise Linux® および Enterprise Linux® は米国その他の国における Red Hat, Inc. の登録商標です。 商標または製品の権利を主張する事業体を表すためにその他の商標および社名が使用され ていることがあります。それらの商標や会社名は、一切 Dell Inc. に帰属するものではあり ません。 2010 年 7 月 Rev.
目次 1 概要 . . . . . . . . . . . . . . . . . . . . . . . . . . . . Dell|Oracle データベースの導入に必 要なマニュアル . . . . . . . . . . . . . . . . . . . . 231 . . . . . . . . . . . . . 232 . . . . . . . . . . . . . . . . . . . . . 232 本書で使用されている用語 . 困ったときは . デルサポート 作業を開始する前に 233 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Enterprise Linux と Dell Automation Scripts のダウンロード . . . . . . . . . . . . . . . 235 235 . . . . 推奨される Oracle Clusterware ソフトウェア .
Oracle 10g R2 Database ソフトウェア用 10.2.0.5 パッチセットのインストール . . . . 246 RAC のインストールのアップグレード . . . 246 . . . . . . . . . . . . . . . . . . . 249 リスナーの設定 . OCFS2 を使用したシードデータベースの作成 ASM を使用したシードデータベースの作成 . . 250 . . . 253 MD3000i/MD32xxi で LUN のフェイルオーバー が正常に行われるように 11gR1 Clusterware の CSS タイムアウトを変更する . . . . . . . . 4 . . 257 . . . . . 259 . . . . . . . . . . 259 Oracle Database 10g の設定およ び導入(シングルノード). . . . . パブリックネットワークの設定 ext3 ファイルシステムを使用したデータ ベースストレージ(記憶域)の設定 . . . . . . . 259 . . . . .
シードデータベースの作成 . Oracle ASM を使用したシードデータベ ースの作成(シングルノード). . . . . . ノードの追加と削除 ノードの追加 . . . . . 266 . . . . . . 269 . . . . . . . . . . . . . . 274 . . 274 . . . 275 . . . . 275 ASM を使用して新しいノードに共有ス トレージを設定する方法 . . . . . . . . . Oracle クラスタウェア層への新しいノ ードの追加 . . . . . . . . . . . . . . . . データベース層への新しいノードの追加 . リスナーの再設定 . . 276 . . . . . . . . . . . . . . . . 277 データベースインスタンス層への新 しいノードの追加 . . . . . . . . . . . . . . . . 279 . . . . . . . . . . . . . . . . . . . . .
目次
概要 本書の説明は、Red Hat Enterprise Linux または Oracle Enterprise Linux 5.
メモ:各分冊のいずれにも、デルのテクニカルサポートを利用する方法 が記されています。 本書で使用されている用語 本書では、「LUN」と「仮想ディスク」は同義語として使われています。 「LUN」は、Dell/EMC ファイバーチャネルストレージシステムの環境で通 常使われる用語です。「仮想ディスク」は、Dell PowerVault SAS スト レージの環境で一般に使われる用語です。 本書で使われている Enterprise Linux という用語は、特に説明のない限 り Red Hat Enterprise Linux と Oracle Enterprise Linux の両方に適用 されます。 困ったときは デルサポート 232 • システムの詳しい使い方については、システムコンポーネントに付 属のマニュアルを参照してください。 • 各種のホワイトペーパー、デルがサポートする設定、一般情報につ いては、Dell|Oracle Tested and Validated Configurations (Dell|Oracle で検証済みの構成)ウェブサイト dell.
Oracle のサポート • Oracle ソフトウェアおよびアプリケーションクラスタウェアのト レーニング、および Oracle へのお問い合わせの方法については、 Oracle のウェブサイト oracle.com または Oracle のマニュアルを 参照してください。 • テクニカルサポート、ダウンロード、その他の技術情報については、 My Oracle Support ウェブサイト support.oracle.
概要
作業を開始する前に 以下の項では、Oracle 10g RAC(Real Application Clusters)をインス トールする前の準備作業について説明します。 Enterprise Linux と Dell Automation Scripts のダ ウンロード Oracle RAC ソフトウェアをシステムにインストールする前に、以下の手 順を実行してください。 • Red Hat Network のウェブサイト rhn.redhat.com から Red Hat Enterprise Linux メディアイメージをダウンロードします。Oracle Enterprise Linux メディアイメージは Enterprise Linux|Linux|Oracle のウェブサイト oracle.com/linux からダウンロードします。 • Oracle メディアキットを用意します。 • Dell|Oracle Tested and Validated Configurations(Dell | Oracle で検証済みの構成)ウェブサイト dell.
推奨される Oracle Clusterware ソフトウェア メモ:Oracle Clusterware ソフトウェアをインストールする前に、 Enterprise Linux 5.x 以上では raw デバイスは非推奨となります。 メモ:Enterprise Linux 5.
Oracle 11g Clusterware、10g デー タベース、および Enterprise Linux 5 パッチセットのインス トール メモ:Oracle 11g Clusterware が Oracle ソフトウェアキットの一部として同 梱されていなかった場合は、Oracle のウェブサイト oracle.com からダウン ロードしてください。 Oracle 11g R1 Clusterware のインストール 1 root としてログインします。 2 startx と入力して X Window System を起動します。 3 ターミナルウィンドウを開き、xhost + と入力します。 4 Oracle 11g Clusterware メディアをマウントします。 5 su - oracle と入力します。 6 次のように入力します。 /runcluvfy.
7 次のコマンドを入力して、Oracle Universal Installer を起動しま す。 unset ORACLE_HOME /runInstaller 8 Welcome(ようこそ)ウィンドウで Next(次へ)をクリックし ます。 9 Specify Home Details(ホームの詳細の指定)ウィンドウで、 Oracle ホームのパスを に変更します。 10 Next(次へ)をクリックします。 には /u01/crs/product/11.1.
15 インタフェースを変更するには、次の手順を実行します。 a インタフェース名を選択し、Edit(編集)をクリックします。 b Interface Type(インタフェースタイプ)ボックスの Edit private interconnect type(プライベート相互接続タイプの 編集)ウィンドウで、プライベートおよびパブリックインタ フェースに適切なインタフェースタイプを選択します。パブリッ クおよびプライベート以外のネットワークインタフェースには、 Do Not Use(使用しない)を選択します。 c OK をクリックします。 d Specify Network Interface Usage(ネットワークインタ フェースの用途を指定する)ウィンドウで、パブリックインタ フェース名とプライベートインタフェース名が正しいことを確認 し、Next(次へ)をクリックします。 16 Specify Oracle Cluster Registry (OCR) Location(Oracle Cluster Registry(OCR)の場所の指定)ウィンドウで、次の手順を 実行します。 a OC
c Additional Voting Disk 1 Location(追加の投票ディスク 1 の場所)フィールドに次のテキストを入力します。 /dev/emcpowerX または /u03/votingdisk2(OCFS2 を使用している場合) d Additional Voting Disk 2 Location(追加の投票ディスク 2 の場所)フィールドに次のテキストを入力します。 /dev/emcpowerX または /u03/votingdisk3(OCFS2 を使用している場合) e Next(次へ)をクリックします。 18 Summary(サマリ)ウィンドウで、Install(インストール)をク リックします。 Oracle Clusterware がシステムにインストールされます。完了する と、Execute Configuration scripts(構成スクリプトの実行) ウィンドウが表示されます。 19 ウィンドウ内の指示に従い、OK をクリックします。 メモ:プライマリノードから順にすべてのノードで root.sh を実行し ます。たとえば、ノード 1 で root.
Oracle 11g R1 Clusterware 用 11.1.0.7 パッチセットのダウンロード 1 最初のノードで、oracle としてログインします。 2 /u01/app/oracle/patches にパッチとユーティリティのためのフォ ルダを作成します。 3 ウェブブラウザを開き、support.oracle.
Oracle 11g R1 Clusterware 用 11.1.0.7 パッチセットのインストール メモ:パッチセットソフトウェアのインストールは、11gR1 Clusterware ソ フトウェアをインストールしたノードから行う必要があります。 1 ターミナルウィンドウに次のように入力して を押し、 Oracle Universal Installer を起動します。 $> cd /u01/app/oracle/patches/Disk1/ $> .
11 最初のノードで、End of Installation(インストールの終了)画面 に戻ります。 12 Exit(終了)をクリックします。 13 Yes(はい)をクリックして Oracle Universal Installer を終了し ます。 Oracle 10g R2 Database ソフトウェアのインストール 1 ユーザー root として、xhost + と入力します。 2 ユーザー root として、Oracle Database 10g メディアをマウントし ます。 3 oracle としてログインし、次のように入力します。 /bin/cluvfy stage -pre dbinst -n node1,node2 -r 10gR2 -verbose node1 および node2 はパブリックホスト名です。 メモ:データベースの事前チェックは rmem_max カーネルパラメー タで失敗し、次のメッセージが表示されます。 Configured: 262144 Required: 4194304.
5 Welcome(ようこそ)ウィンドウで Next(次へ)をクリックし ます。 6 Select Installation Type(インストールタイプの選択)ウィン ドウで Enterprise Edition を選択し、Next(次へ)をクリック します。 7 Specify Home Details(ホームの詳細の指定)ウィンドウの Path (パス)フィールドで、Oracle ホームの完全なパスが となっていることを確認し、Next(次へ)をク リックします。 には /u01/app/oracle/product/10.2.
10 次の 3 つの必要条件チェックについて、Not Executed(実行され ていません)ボックスを確認します。 • Operating system package requirements(オペレーティング システムパッケージの要件) • Kernel parameters(カーネルパラメータ) • Recommended glibc version(推奨されている glibc バージョン) これらのボックスにチェックを入れると、Not Executed(実行さ れていません)ステータスが User Defined(ユーザー定義)に変 わります。 メモ:この警告は、Oracle 10g が Enterprise Linux 5 に対して OS の チェックを実行しないことによるものです。 11 Error Status(エラーステータス)ボックスにチェックを入れ、 User Defined(ユーザー定義)に変更します。Error Status(エ ラーステータス)チェックボックスは、Check Oracle Clusterware version(Oracle Clusterware バー
Oracle 10g R2 Database ソフトウェア用 10.2.0.5 パッチセットのイン ストール 1 最初のノードで、oracle としてログインします。 2 /u01/app/oracle/patches にパッチとユーティリティのためのフォ ルダを作成します。 3 ウェブブラウザを開き、support.oracle.
7 次のテキストを入力し、 キーを押します。 $> export ORACLE_HOME= には /u01/app/oracle/product/10.2.0/db_1 と同様のパスを入力しま す。これはお使いの ORACLE_BASE によって異なりますが、この例 では /u01/app/oracle です。 8 ターミナルウィンドウに次のように入力して を押し、 Oracle Universal Installer を起動します。 $> cd /u01/app/oracle/patches/Disk1/ $> .
16 Summary(サマリ)画面で Install(インストール)をクリックし ます。 Oracle Universal Installer がお使いのシステムをスキャンし、イ ンストールの必要なすべてのパッチを表示して、お使いのシステム にインストールします。インストールが完了すると、End of Installation(インストールの終了)画面が表示されます。ユー ザー root として root.sh を実行するように指示するメッセージウィ ンドウが表示されます。 17 ターミナルウィンドウを開きます。 18 次のテキストを入力し、 キーを押します。 $> /root.sh には /u01/app/oracle/product/10.2.
リスナーの設定 本項では、データベースへのリモートクライアントの接続に必要なリス ナーの設定手順について説明します。 1 つのノードのみで、以下の手順を実行します。 1 root としてログインします。 2 startx と入力して X Window System を起動します。 3 ターミナルウィンドウを開き、xhost + と入力します。 4 ユーザー oracle として、netca と入力して Net Configuration Assistant を起動します。 5 Cluster Configuration(クラスタ構成)を選択してから、Next (次へ)をクリックします。 6 設定するノードを選択し、Select All Nodes(すべてのノードを選 択する)をクリックし、Next(次へ)をクリックします。 7 Welcome(ようこそ)ウィンドウで Listener Configuration(リ スナーの設定)を選択してから、Next(次へ)をクリックします。 8 Listener Configuration(リスナーの設定)→ Listener(リス ナー)ウィンドウで Add(追加)を
13 Listener Configuration Done(リスナーの設定が終了しました) ウィンドウで Next(次へ)をクリックします。 14 Finish(完了)をクリックします。 OCFS2 を使用したシードデータベースの作成 1 最初のノードで oracle としてログインし、次のように入力します。 cluvfy stage -pre dbcfg -n node1,node2 -d $ORACLE_HOME -verbose node1 および node2 はパブリックホスト名です。 お使いのシステムが正しく設定されている場合は、次のメッセージ が表示されます。 Pre-check for database configuration was successful.(データベース設定の事前チェックが成功しました)。 お使いのシステムが正しく設定されない場合は、support.dell.
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(参照)をクリ
18 Creation Options(作成オプション)ウィンドウで Create Database(データベースの作成)を選択します。 19 Finish(完了)をクリックします。 20 Summary(サマリ)ウィンドウで OK をクリックして、データ ベースを作成します。 メモ:シードデータベースの作成には 1 時間以上かかる場合があります。 メモ:データベースの作成中に Enterprise Manager Configuration Error (Enterprise Manager の設定エラー)が表示されたら、そのまま OK をク リックし、エラーを無視してください。 データベースの作成が完了すると、Password Management(パス ワード管理)ウィンドウが表示されます。 21 Exit(終了)をクリックします。 クラスタデータベースがすべてのノードで起動中であることを示す メッセージが表示されます。 22 各ノードで、以下の手順を実行します。 a 次のように入力して、そのノードにどのデータベースインスタン スが存在するかを判断します。 srvctl status database
ASM を使用したシードデータベースの作成 本項では、Oracle ASM(Automatic Storage Management)を使用して シードデータベースを作成する手順とシードデータベースを確認する手順 について説明します。 1 oracle としてログインし、次のように入力します。 /bin/cluvfy stage -pre dbcfg -n node1,node2 -d $ORACLE_HOME -verbose node1 および node2 はパブリックホスト名です。 お使いのシステムが正しく設定されている場合は、次のメッセージ が表示されます。 Pre-check for database configuration was successful.(データベース設定の事前チェックが成功しました)。 お使いのシステムが正しく設定されない場合は、support.dell.
9 Database Credentials(データベース資格証明)ウィンドウでパ スワードオプションを選択し、(要求された場合は)適切なパスワー ド情報を入力し、Next(次へ)をクリックします。 10 Storage Options(ストレージオプション)ウィンドウで、 Automatic Storage Management(ASM)をクリックし、Next (次へ)をクリックします。 11 Create ASM Instance(ASM インスタンスの作成)ウィンドウで、 SYS password(SYS パスワード)フィールドにパスワードを入力 します。 • お使いの OS が Enterprise Linux 5.
クラスタに最初の ASM ディスクグループが作成されます。 ASM Disks Groups(ASM ディスクグループ)ウィンドウが表示さ れます。 15 flashbackDG をディスクグループ名として使用し、残りの ASM ディスクグループについて 手順 14 を繰り返します。ASM Disk Groups(ASM ディスクグループ)ウィンドウで、手順 14 でデータ ベースストレージ用に作成したディスクグループ(たとえば、 databaseDG)を選択します。 16 Next(次へ)をクリックします。 17 Database File Locations(データベースファイルの位置)ウィン ドウで、Use Oracle-Managed Files(Oracle Managed Files の使 用)を選択します。 18 Next(次へ)をクリックします。 19 Recovery Configuration(リカバリ構成)ウィンドウで、 Specify flash recovery area(フラッシュリカバリ領域の指定) を選択します。 20 Browse(参照)をクリックして、手順 15 で作成した
25 Database Storage(データベースストレージ)ウィンドウで Next(次へ)をクリックします。 26 Creation Options(作成オプション)ウィンドウで Create Database(データベースの作成)を選択します。 27 Finish(完了)をクリックします。 28 Summary(サマリ)ウィンドウで OK をクリックして、データ ベースを作成します。 メモ:この処理には 1 時間またはそれ以上かかることがあります。 29 データベースの作成が完了すると、Database Configuration Assistant ウィンドウが表示されます。 30 必要に応じて Password Management(パスワード管理)をク リックして、権限を持つユーザーに特定のパスワードを割り当て ます。 31 その必要がない場合は Exit(終了)をクリックします。 クラスタデータベースがすべてのノードで起動中であることを示す メッセージが表示されます。 32 次の手順を各ノードで実行します。 a 次のように入力して、そのノードにどのデータベースインスタン スが存在するかを判断し
33 1 つのノードで、次のように入力します。 srvctl status database -d db 名 db 名 は、DBCA でデータベースに定義したグローバル識別子名 です。 データベースインスタンスがすでに起動している場合は、確認 メッセージが画面に表示されます。 データベースインストールが起動していない場合は、次のように 入力します。srvctl start database -d db 名 db 名 は、DBCA でデータベースに定義したグローバル識別子名 です。 MD3000i/MD32xxi で LUN のフェイルオーバー が正常に行われるように 11gR1 Clusterware の CSS タイムアウトを変更する Dell MD3000i/MD32xxi iSCSI ストレージ RAID コントローラモジュール に障害が発生すると、残りの RAID コントローラモジュールに対する LUN すべてのフェイルオーバー時間が 200 秒を超える可能性があります。 Oracle 11g R1 バージョン 11.1.0.
Enterprise Linux への Oracle のインストール
Oracle Database 10g の設定および 導入(シングルノード) 本項では、シングルノードの導入向けに初期セットアップまたは再インス トール手順に関する情報を提供します。 パブリックネットワークの設定 パブリックネットワークの設定については、『Dell PowerEdge システム — Enterprise Linux x86_64 で使用する Oracle データベース — ストレー ジ & ネットワークガイド』の「Oracle 10g Real Application Clusters (RAC)のストレージおよびネットワークの設定」を参照してください。 マニュアルは support.dell.
Oracle Database 10g のインストール(シング ルノード) Oracle Database 10g をインストールするには、次の手順を実行します。 1 root としてログインします。 2 ユーザー root として、Oracle Database 10g メディアをマウントし ます。 3 startx と入力して X Window System を起動します。 4 ターミナルウィンドウを開き、xhost + と入力します。 5 oracle としてログインします。 6 Oracle Universal Installer を起動します。ターミナルウィンドウで、次のように入力します。 /runInstaller 7 Select Installation Method(インストール方法の選択)ウィンド ウで Advanced Installation(拡張インストール)をクリックし、 Next(次へ)をクリックします。 8 Select Installation Type(インストールタイプの選択)ウィンド ウで Enterprise Edition をクリックしま
14 Summary(サマリ)ウィンドウで、Install(インストール)をク リックします。 15 確認のメッセージが表示されたら、ターミナルウィンドウを開き、 root.sh を実行します。 進行状況を示すウィンドウが少しの間表示され、続いて End of Installation(インストールの終了)ウィンドウが表示されます。 16 Exit(終了)をクリックしてから、確認のため Yes(はい)をク リックします。 17 root としてログインします。 18 次のように入力します。 bin/localconfig add には /u01/app/oracle/product/10.2.0/db_1/ と同様のパスを入力します。これでインストール手順が完了しまし た。 Oracle Database 10g 10.2.0.
Database 10g ソフトウェアのアップグレード (シングルノード) 1 ユーザー root として、次のように入力して cssd の処理を停止しま す。 /etc/init.d/init.cssd stop メモ:この処理には数分かかることがあります。 2 ターミナルウィンドウを開きます。 3 oracle としてログインします。 4 ORACLE_DB_HOME が設定されていることを確認します。 ORACLE_DB_HOME は /u01/app/oracle/product/10.2.
10 ターミナルウィンドウで、次のように入力します。 root.sh ORACLE_DB_HOME には /u01/app/oracle/product/10.2.0/db_1 と同様のパスを入力します。 11 を押すことで、root.sh によって生成された質問に対する デフォルトの回答に同意します。 メモ:この処理には数分かかることがあります。 12 root.sh の実行が完了したら、Execute Configuration Scripts (構成スクリプトの実行)ウィンドウに戻り、OK をクリックします。 13 End of Installation(インストールの終了)画面で、Exit(終了) をクリックします。 14 Yes(はい)をクリックして Oracle Universal Installer を終了し ます。 15 root として cssd の処理を再開するために、以下を入力します。 /etc/init.d/init.
シードデータベースの作成 ext3 ファイルシステムを使用したシードデータベースの作成 DBCA(Database Configuration Assistant)で以下の手順を実行して、 シードデータベースを作成します。 1 oracle としてログインします。 2 dbca と入力して、Oracle 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 接頭辞)フィールドに入力し ます。
12 Recovery Configuration(リカバリ設定)ウィンドウで、 Browse(参照)をクリックして、259 ページの「ext3 ファイルシ ステムを使用したデータベースストレージ(記憶域)の設定 >」 で作成した flashback recovery area(フラッシュバックリカバリ 領域)を選択します。 例:recovery 必要に応じて、Flash Recovery Area(フラッシュリカバリ領域) のサイズを変更します。 13 Enable Archiving(アーカイブの有効化)を選択し、Next(次へ) をクリックします。 14 Database Content(データベースコンテンツ)ウィンドウで Next(次へ)をクリックします。 15 Initialization Parameters(初期化パラメータ)ウィンドウで Next(次へ)をクリックします。 16 Database Storage(データベースストレージ)ウィンドウで Next(次へ)をクリックします。 17 Creation Options(作成オプション)ウィンドウで Crea
21 export ORACLE_SID=db 名 と入力します。 db 名 は、DBCA でデータベースに定義したグローバル識別子名で す。 データベースが動作していることを確認するには、次の手順を実行しま す。 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(ようこそ)ウィンドウで Next(次へ)をクリックし ます。 3 Operations(操作)ウィンドウで Cr
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 b c databaseDG など、作成するディスクグループの名前を入力し、 External Redundancy(外部冗長性)を選択してから、ディス クグループに含める ORCL:ASM1 ディスクを選択し
16 Recovery Configuration(リカバリ設定)ウィンドウで、 Browse(参照)をクリックします。手順 12 で作成したフラッシュ バックグループ(たとえば、flashbackDG)を選択し、必要に応 じて Flash Recovery Area(フラッシュリカバリ領域)のサイズを 変更します。 17 Enable Archiving(アーカイブの有効化)を選択し、Next(次へ) をクリックします。 18 Database Content(データベースコンテンツ)ウィンドウで Next(次へ)をクリックします。 19 Initialization Parameters(初期化パラメータ)ウィンドウで、 Typical(標準)を選択し、Next(次へ)をクリックします。 20 Database Storage(データベースストレージ)ウィンドウで Next(次へ)をクリックします。 21 Creation Options(作成オプション)ウィンドウで Create Database(データベースの作成)を選択してから、Finish(完了) をクリックします。 22 Confirmatio
Oracle ASM を使用したシードデータベース の作成(シングルノード) Oracle ASM を使用してストレージを設定した場合は、DBCA を使用し、 次の手順を実行してシードデータベースを作成します。 1 ユーザー oracle として、dbca & と入力して DBCA を起動します。 2 Welcome(ようこそ)ウィンドウで Next(次へ)をクリックしま す。 3 Operations(操作)ウィンドウで Create a Database(データ ベースの作成)をクリックしてから、Next(次へ)をクリックしま す。 4 Node Selection(ノードの選択)ウィンドウで Select All(すべ て選択)を選択し、Next(次へ)をクリックします。 5 Database Templates(データベーステンプレート)ウィンドウで Custom Database(カスタムデータベース)をクリックしてから、 Next(次へ)をクリックします。 6 Database Identification(データベース識別情報)ウィンドウで、 racdb のような Global Database
10 Create ASM Instance(ASM インスタンスの作成)ウィンドウで、 以下の手順を実行します。 • SYS password(SYS パスワード)フィールドにパスワードを入力 します。 お使いの OS が Enterprise Linux 5.
14 flashbackDG をディスクグループ名として使用し、残りの ASM ディ スクグループについて 手順 13 を繰り返します。 15 ASM Disk Groups(ASM ディスクグループ)ウィンドウで、手 順 13 で Database Storage(データベースストレージ)用に作成 したディスクグループ(たとえば、databaseDG)を選択し、Next (次へ)をクリックします。 16 Database File Locations(データベースファイルの位置)ウィン ドウで、Use Oracle-Managed Files(Oracle Managed Files の使 用)を選択し、Next(次へ)をクリックします。 17 Recovery Configuration(リカバリ構成)ウィンドウで、 Browse(参照)をクリックして、手順 14 で作成したフラッシュ バックグループ(たとえば、flashbackDG)を選択し、必要に応 じて Flash Recovery Area(フラッシュリカバリ領域)のサイズを 変更します。 18 Enable Archiving(アーカイブの有効
24 Summary(サマリ)ウィンドウで OK をクリックして、データ ベースを作成します。 メモ:この処理には 1 時間またはそれ以上かかることがあります。 データベースの作成が完了すると、Database Configuration Assistant ウィンドウが表示されます。 25 必要に応じて Password Management(パスワード管理)をク リックして、権限を持つユーザーに特定のパスワードを割り当てま す。 26 その必要がない場合は Exit(終了)をクリックします。 クラスタデータベースがすべてのノードで起動中であることを示す メッセージが表示されます。 27 次の手順を各ノードで実行します。 a 次のように入力して、そのノードにどのデータベースインスタン スが存在するかを判断します。 srvctl status database -d < データベース名 > b 以下のコマンドを入力して、oracle ユーザープロファイルに ORACLE_SID 環境変数エントリを追加します。 $> echo "export ORACLE_SID=racdbx" >> /home/ora
ノードの追加と削除 本項では既存のクラスタにノードを追加する手順とクラスタからノードを 削除する手順について説明します。 メモ:新しいノードは、ハードウェアと OS の構成を既存のノードと同一 にする必要があります。 既存のクラスタにノードを追加するには、以下の手順を実行します。 a ネットワーク層にノードを追加します。 b 共有ストレージを構成します。 c Oracle Clusterware データベース、およびデータベースイン スタンスの各層にノードを追加します。 既存のクラスタからノードを削除するには、追加の手順を逆にして、デー タベースインスタンス、データベース、そして Oracle Clusterware の 各層からノードを削除する必要があります。 既存のクラスタにノードを追加する方法の詳細については、oracle.
ノードの追加 ネットワーク層への新しいノードの追加 ネットワーク層に新しいノードを追加するには、以下の手順を実行しま す。 1 新しいノードに Enterprise Linux をインストールします。 OS のインストールと設定の手順については、『Dell PowerEdge シス テム — Redhat Enterprise Linux または Oracle Enterprise Linux Advanced Server で使用する Oracle Database 10gR2 — ハードウェ ア設置ガイド』の「Enterprise Linux のインストールおよび設定」を 参照してください。マニュアルは support.dell.
ASM を使用して新しいノードに共有ストレージを設定する方法 既存の RAC(Oracle Real Application Clusters)データベースを新しい ノードに拡張するには、ストレージを既存のノードと同様にするため、新 しいノード用にストレージの構成を行います。ASM(Automatic Storage Management)を使用する場合は、新しいノードが既存のノードと同じ 権限で ASM ディスクにアクセスできるようにする必要があります。 メモ:共有ストレージの設定の詳細については、『Dell PowerEdge システ ム — Redhat Enterprise Linux または Oracle Enterprise Linux Advanced Server で 使用する Oracle Database 10gR2 — ストレージ & ネットワークガイド』バー ジョン 1.0 の「ASM を使用して新しいノードに共有ストレージを設定する 方法」に記載されている手順を参照してください。マニュアルは support.dell.com.
7 Cluster Node Addition Progress(クラスタノード追加の進行状 況)ウィンドウにノード追加処理のステータスが表示されます。 8 ユーザー root として、ローカルノードで rootaddnode.sh を、新 しいノードで root.sh を実行するように指示されたら、次のように 入力します。 install/rootaddnode.sh. ORACLE_CRS_HOME には /crs/oracle/product/11.1.0/crs と同様の パスを入力します。 9 Execute Configuration Scripts(構成スクリプトの実行)ウィン ドウで root.
7 画面の指示に従って、ユーザー root として新しいノードで次のよう に入力します。 root.sh には /u01/app/oracle/product/10.2.0./db_1/ と同様のパスを入力しま す。 ローカル bin ディレクトリのフルパス名を入力するように求められ たら、 を押します。 8 Execute Configuration Scripts(構成スクリプトの実行)ウィン ドウで root.
8 Welcome(ようこそ)ウィンドウで Listener Configuration(リ スナーの設定)を選択してから、Next(次へ)をクリックします。 9 Listener Configuration(リスナーの設定)→ Listener(リス ナー)ウィンドウで Reconfigure(再設定)を選択し、Next(次 へ)をクリックします。 10 Listener Configuration(リスナーの設定)→ Select Listener (リスナーの選択)ウィンドウで、プルダウンメニューから LISTENER を選択し、Next(次へ)をクリックします。 11 Listener Configuration(リスナーの設定)→ Select Protocols (プロトコルの選択)ウィンドウで、TCP を選択し、Next(次へ) をクリックします。 12 Listener Configuration(リスナーの設定)→ TCP/IP Protocol (TCP/IP プロトコル)ウィンドウで、Use the standard port number of 1521(標準ポート番号 1521 を使
データベースインスタンス層への新しいノードの追加 1 いずれかの既存のノードで、ユーザー oracle として dbca と入力 し、DBCA(Database Configuration Assistant)を起動します。 2 Welcome(ようこそ)ウィンドウで Next(次へ)をクリックしま す。 3 Operations(操作)ウィンドウで、Instance Management(イ ンスタンス管理)をクリックしてから、Next(次へ)をクリックし ます。 4 Instance Management(インスタンス管理)ウィンドウで、Add Instance(インスタンスの追加)をクリックしてから、Next(次 へ)をクリックします。 5 List of Cluster Databases(クラスタデータベースのリスト)ウィ ンドウで既存のデータベースを選択します。 使用したユーザー名が OS によって認証されない場合は、SYSDBA 権 限を持つデータベースユーザーに対するユーザー名とパスワードの 入力を求めるメッセージが DBCA によって表示されます。 6 ユーザー名 sys とパスワードを入力
11 Yes(はい)をクリックします。 次のメッセージが表示されます。Do you want to perform another operation?(別の操作を実行しますか ?) 12 No(いいえ)をクリックします。 13 いずれかのノードで次のように入力して、インスタンスが正常に追 加されたことを確認します。 srvctl status database -d < データベース名 > ノードの削除 メモ:本項の手順を実行する際には、クラスタから必ず正しいノードを 選択し、削除してください。 データベースインスタンス層からのノードの削除 1 oracle としてログインします。 2 残りのノードの 1 つから、dbca と入力します。 3 Welcome(ようこそ)ウィンドウで Next(次へ)をクリックしま す。 4 Operations(操作)ウィンドウで、Instance Management(イ ンスタンス管理)をクリックしてから、Next(次へ)をクリックし ます。 5 Instance Management(インスタンス管理)ウィンドウで Delete an instance(インスタン
8 削除するインスタンスを選択して、Next(次へ)をクリックしま す。 DBCA を実行しているローカルインスタンスは削除の対象として 選択できません。ローカルインスタンスを選択した場合、DBCA によって Error(エラー)ダイアログが表示されます。その場合 は、OK をクリックして別のインスタンスを選択します。Finish (完了)をクリックします。このインスタンスにサービスが割り当 てられている場合は、DBCA Services Management(DBCA サー ビス管理)ウィンドウが表示されます。このウィンドウを使って、 クラスタデータベース内の別のインスタンスにサービスを割り当 てなおします。 9 Summary(サマリ)ウィンドウで OK をクリックします。 10 インスタンス削除の処理に関する情報を確認して、OK をクリックし ます。DBCA がインスタンスとその Oracle Net 設定を削除している 間、プログレスバーが表示されます。処理が完了すると、別の操作 を実行するかどうかを尋ねるダイアログが表示されます。 11 No(いいえ)をクリックして、終了します。 12 次のように入
6 Listener Configuration(リスナーの設定)→ Select Listener (リスナーの選択)ウィンドウで LISTENER を選択し、Next(次へ) をクリックします。 Are you sure you want to stop and modify the listener with the name LISTENER?(中断して LISTENER という名前のリスナー を変更してよいですか ?)というメッセージが表示されたら、Yes (はい)をクリックします。 7 Listener Configuration(リスナーの設定)→ Listener Reconfigured(リスナーが再設定されました)ウィンドウで、 Next(次へ)をクリックします。 8 Listener Configuration Done(リスナーの設定が終了しました) ウィンドウで Next(次へ)をクリックします。 9 Finish(完了)をクリックします。 削除されたノードでの ASM の停止と削除 残りのノードの 1 つで、次の手順を実行します。 1 ターミナルウィンドウを開きます。 2 次のよ
Oracle クラスタウェア層からのノードの削除 1 削除するノードで、root ユーザーとして、次のコマンドを入力し、 CRS(Cluster Ready Services)を無効にします。 install/rootdelete.s h remote nosharedvar には /u01/app/oracle/product/11.1.0./crs/ と同様のパスを入力します。 2 残りのノードの 1 つで、root ユーザーとして、次のコマンドを入力 します。install/rootdelete node.sh < パブリックノード名 >, < ノード番号 > には /u01/app/oracle/product/11.1.0.
ノードの追加と削除
索引 D Z DBCA(Database Configuration Assistant), 264 ダウンロード Dell automation scripts, 235 Oracle 11g Clusterware, 237 Oracle Enterprise Linux, 235 Red Hat Enterprise Linux, 235 Deployment Automation Scripts, 243 E デバイス Block デバイス , 254 Enterprise Linux, 232 トレーニングと資格認証 Oracle, 233 デル , 232 L ネットワークタイムプロトコル (NTP)サーバー , 235 LUN, 232 O Oracle のメタリンク , 233 OS のチェック , 244-245, 247 パッチ Oracle パッチ 6890831, 241 ヘルプ , 232 Oracle サポート , 233 デルサポート , 232 パッチ Oracle パッチ 6810189, 246, 261 S SQL プロンプト , 266 SY
索引
Sistemas Dell PowerEdge Base de datos Oracle en Enterprise Linux x86_64 Guía de configuración e instalación de la base de datos versión 4.
Notas NOTA: Una NOTA proporciona información importante que le ayudará a utilizar mejor el ordenador. ____________________ La información contenida en esta publicación puede modificarse sin previo aviso. © 2009–2010 Dell Inc. Todos los derechos reservados. Queda estrictamente prohibida la reproducción de este material en cualquier forma sin la autorización por escrito de Dell Inc. Marcas comerciales utilizadas en este texto: Dell™, el logotipo de DELL y PowerEdge™ son marcas comerciales de Dell Inc.
Contenido 1 Información general . . . . . . . 293 Terminología utilizada en este documento . . . . . . . 294 . . . . . . . . . . . . . . . . . . . 294 Asistencia de Dell Antes de comenzar 294 . . . . . . . . . . . . . . . . . Asistencia de Oracle 295 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Descarga de las secuencias de comandos de automatización de Dell y Enterprise Linux Recomendaciones para el software de clúster Oracle . . . . . . . . . . 297 . . . . . . .
Actualización de la instalación del software de clúster Oracle . . . . . . . . . . . . . . . . . 303 . . . . . . 303 . . . . . . . 304 Instalación del patchset 11.1.0.7 para el software de clúster Oracle 11g R1 . Instalación del software de base de datos Oracle 10g R2 . . . . . . . . . Instalación del patchset 10.2.0.5 para el software de base de datos Oracle 10g R2 . . . 307 . . . . . 307 . . . . . . . 309 . . . . . . . . . . . . .
Descarga del patchset 10.2.0.5 de la base de datos Oracle 10g para un solo nodo . . . . . . . . . . . 321 Actualización del software de base de datos 10g para un solo nodo . . . . . . . . . . . . . . . 322 Configuración del proceso de escucha . . . . . . . . . 323 . . . . . . . . . 324 Creación de la base de datos semilla . Creación de una base de datos semilla mediante el sistema de archivos ext3 . Creación de la base de datos semilla mediante ASM de Oracle . . . . . . . . . . . . . 324 . .
Eliminación de nodos . . . . . . . . . . . . . . . . . Eliminación del nodo del nivel de instancia de base de datos . . . . . . . . . . . . . . . . . 339 . . . . 341 . . . . . . . . 342 Reconfiguración del proceso de escucha Detención y eliminación de ASM del nodo eliminado . . . . . . . . Índice 292 Contenido 339 Eliminación de un nodo del nivel de base de datos . . . . . . . . . . . . . . . . . . . 342 Eliminación de un nodo del nivel de software de clúster Oracle . . . . . . . . . . . .
Información general Este documento se aplica a la base de datos Oracle 10g R2 que se ejecuta en Red Hat Enterprise Linux u Oracle Enterprise Linux 5.5 AS x86_64. Este documento le ayuda a instalar el software Oracle 10g Real Application Clusters (RAC) en un sistema Dell PowerEdge con el sistema operativo Red Hat Enterprise Linux u Oracle Enterprise Linux.
Terminología utilizada en este documento En este documento, los términos número de unidad lógica (LUN) y disco virtual se utilizan como sinónimos. El término LUN suele utilizarse en un entorno de sistema de almacenamiento Dell/EMC Fibre Channel. El término disco virtual suele utilizarse en un entorno de almacenamiento SAS Dell PowerVault. En este documento, el término Enterprise Linux se aplica tanto a Red Hat Enterprise Linux como a Oracle Enterprise Linux, a menos que se especifique lo contrario.
Asistencia de Oracle • Para obtener información de formación sobre el software Oracle y el software de clúster de aplicaciones e información sobre cómo ponerse en contacto con Oracle, visite la página web de Oracle (oracle.com) o consulte la documentación de Oracle. • Encontrará información sobre asistencia técnica, descargas y otras cuestiones técnicas en la página web My Oracle Support en support.oracle.com.
Información general
Antes de comenzar En las secciones siguientes se describen las actividades que debe realizar antes de instalar Oracle 10g Real Application Clusters (RAC). Descarga de las secuencias de comandos de automatización de Dell y Enterprise Linux Antes de instalar el software Oracle RAC en el sistema: • Descargue las imágenes del soporte multimedia Red Hat Enterprise Linux desde la página web de Red Hat Network (rhn.redhat.com).
Recomendaciones para el software de clúster Oracle NOTA: Antes de instalar el software de clúster Oracle, los dispositivos sin formato se rechazan en el sistema operativo Enterprise Linux 5.x y posteriores. NOTA: Se recomienda instalar el software de clúster Oracle 11g con la base de datos Oracle 10g R2 para el sistema operativo Enterprise Linux 5.x.
Instalación del software de clúster Oracle 11g, la base de datos 10g y el patchset para Enterprise Linux 5 NOTA: Si el kit de software Oracle del que dispone no incluye el software de clúster Oracle 11g, puede descargarlo desde la página web de Oracle (oracle.com). Instalación del software de clúster Oracle 11g R1 1 Inicie la sesión como root. 2 Inicie el sistema X Window escribiendo: startx. 3 Abra una ventana de terminal y escriba: xhost +.
10 Haga clic en Next (Siguiente). El valor de es parecido a /u01/crs/product/11.1.0/crs, según el valor de CRS_BASE, que en este ejemplo es /u01/crs. 11 En la ventana Product-Specific Prerequisite Checks (Comprobaciones de requisitos previos específicos del producto), asegúrese de que aparece Succeeded (Correcto) en la columna Status (Estado) para cada comprobación del sistema. 12 Haga clic en Next (Siguiente).
16 En la ventana Specify Oracle Cluster Registry (OCR) Location (Especificar ubicación del registro de clúster Oracle [OCR]), realice los pasos siguientes: a En la casilla OCR Configuration (Configuración de OCR), seleccione Normal Redundancy (Redundancia normal). b En el campo Specify OCR Location (Especificar ubicación de OCR), escriba: /dev/emcpowerX o /u03/ocr1.dbf, si utiliza OCFS2.
19 Siga las instrucciones de la ventana y luego haga clic en OK (Aceptar). NOTA: Ejecute root.sh de forma secuencial en todos los nodos empezando por el nodo principal. Por ejemplo, ejecute root.sh en el nodo 1. Cuando finalice root.sh en el nodo 1, continúe con el nodo 2 y así sucesivamente. No ejecute root.sh en más de un nodo a la vez.
Actualización de la instalación del software de clúster Oracle Antes de iniciar el proceso de actualización, realice los pasos siguientes: 1 Inicie la sesión como root en el primer nodo. 2 Cierre el software de clúster Oracle; para ello, escriba lo siguiente en la ventana de terminal y pulse : $> crsctl stop crs 3 En los nodos restantes, abra una ventana de terminal y repita el paso 1 y el paso 2. 4 Inicie la sesión como oracle en el primer nodo.
6 Lea todas las instrucciones de la ventana de mensaje que aparece. NOTA: No apague los daemons del software de clúster Oracle, puesto que ya lo ha hecho en el paso 1 y el paso 2 de la sección “Actualización de la instalación del software de clúster Oracle” en la página 303. 7 Abra una ventana de terminal. 8 Inicie la sesión como root. 9 Escriba lo siguiente y pulse : $>$ORA_CRS_HOME/install/root111.sh 10 Repita del paso 7 al paso 9 en los nodos restantes, de uno en uno.
Si su sistema está configurado correctamente, aparecerá el mensaje siguiente: Pre-check for database installation was successful (La comprobación previa de la instalación de la base de datos ha sido correcta) Si su sistema no está configurado correctamente, consulte el documento Sistemas Dell PowerEdge — Base de datos Oracle en Enterprise Linux x86_64 — Guía de solución de problemas disponible en support.dell.com.
9 Seleccione la casilla Warning Status (Estado de aviso) para cambiar el valor a User Defined (Definido por el usuario). La casilla de verificación Warning Status (Estado de aviso) está situada junto a Checking operating systems requirements (Comprobación de los requisitos de los sistemas operativos). NOTA: Este aviso se debe a que Oracle 10g no realiza una comprobación del sistema operativo en Enterprise Linux 5.
Instalación del patchset 10.2.0.5 para el software de base de datos Oracle 10g R2 1 Inicie la sesión como oracle en el primer nodo. 2 Cree una carpeta para los parches y las utilidades en /u01/app/oracle/patches. 3 Abra un explorador web y vaya a support.oracle.com. 4 Inicie sesión en su cuenta de Oracle Support. 5 Busque el parche número 8202632 con Linux x86-64 como plataforma. 6 Descargue el parche en el directorio /u01/app/oracle/patches. 7 Para descomprimir el archivo .
8 Inicie Oracle Universal Installer; para ello, escriba lo siguiente en la ventana de terminal y pulse : $> cd /u01/app/oracle/patches/Disk1/ $> ./runInstaller Se muestra la pantalla de bienvenida. 9 Haga clic en Next (Siguiente). 10 En la pantalla Specify Home Details (Especificar detalles de la ubicación principal), haga clic en Next (Siguiente).
18 Escriba lo siguiente y pulse : $> /root.sh, donde es parecido a /u01/app/oracle/product/10.2.0/db_1, según el valor de ORACLE_BASE, que en este ejemplo es /u01/app/oracle. 19 Repita el paso 17 y el paso 18 en los nodos restantes, de uno en uno. Cuando la instalación ha finalizado, se muestra la pantalla End of Installation (Fin de la instalación). NOTA: Este procedimiento puede tardar varios minutos en completarse.
7 En la ventana de bienvenida, seleccione Listener configuration (Configuración del proceso de escucha) y haga clic en Next (Siguiente). 8 En la ventana Listener Configuration (Configuración del proceso de escucha)→ Listener (Proceso de escucha), seleccione Add (Agregar) y haga clic en Next (Siguiente).
Creación de la base de datos semilla mediante OCFS2 1 Inicie la sesión como oracle en el primer nodo y escriba: cluvfy stage -pre dbcfg -n node1,node2 -d $ORACLE_HOME -verbose, donde node1 y node2 son los nombres de host públicos. Si su sistema está configurado correctamente, aparecerá 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).
9 En la ventana Database Credentials (Credenciales de la base de datos): a Haga clic en Use the same password for all accounts (Utilizar la misma contraseña para todas las cuentas). b Complete las entradas y selecciones de contraseña. c Haga clic en Next (Siguiente). 10 En la ventana Storage Options (Opciones de almacenamiento), seleccione Cluster File System (Sistema de archivos de clúster) y haga clic en Next (Siguiente).
18 En la ventana Creation Options (Opciones de creación), seleccione Create Database (Crear base de datos). 19 Haga clic en Finish (Finalizar). 20 En la ventana Summary (Resumen), haga clic en OK (Aceptar) para crear la base de datos. NOTA: La base de datos semilla puede tardar más de una hora en crearse. 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.
Creación de la base de datos semilla mediante ASM En esta sección se describen los procedimientos necesarios para crear la base de datos semilla mediante Automatic Storage Management (ASM) de Oracle y para verificarla. 1 Inicie la sesión como oracle y escriba: /bin/cluvfy stage -pre dbcfg -n node1,node2 -d $ORACLE_HOME -verbose, donde node1 y node2 son los nombres de host públicos.
9 En la ventana Database Credentials (Credenciales de la base de datos), seleccione una contraseña, escriba la información de contraseña adecuada (si es necesario) y haga clic en Next (Siguiente). 10 En la ventana Storage Options (Opciones de almacenamiento), haga clic en Automatic Storage Management (ASM) y haga clic en Next (Siguiente). 11 En el campo SYS password (Contraseña SYS) de la ventana Create ASM Instance (Crear instancia de ASM), escriba una contraseña.
15 Repita el paso 14 para el grupo de discos ASM restante, utilizando flashbackDG como nombre del grupo de discos. En la ventana ASM Disk Groups (Grupos de discos ASM), seleccione el grupo de discos que ha creado en el paso 14 para el almacenamiento de base de datos (por ejemplo, databaseDG). 16 Haga clic en Next (Siguiente). 17 En la ventana Database File Locations (Ubicaciones de archivos de base de datos), seleccione Use Oracle-Managed Files (Utilizar archivos administrados por Oracle).
27 Haga clic en Finish (Finalizar). 28 En la ventana Summary (Resumen), haga clic en OK (Aceptar) para crear la base de datos. NOTA: Este procedimiento puede tardar una hora o más en completarse. 29 Una vez creada la base de datos, se muestra la ventana del asistente para la configuración de bases de datos. 30 Haga clic en Password Management (Administración de contraseñas) para asignar contraseñas específicas a usuarios autorizados (si es necesario).
Modificación del tiempo de espera de CSS del software de clúster 11g R1 para una correcta sustitución tras error de LUN de MD3000i/MD32xxi Cuando falla un módulo de controladora RAID de almacenamiento iSCSI Dell MD3000i/MD32xxi, el tiempo de sustitución tras error de LUN total al otro módulo de controladora RAID puede superar los 200 segundos. El tiempo de espera predeterminado del disco CSS para Oracle 11g R1 versión 11.1.0.7 es de 200 segundos.
Configuración e implantación de la base de datos Oracle 10g para un solo nodo En esta sección se proporciona información sobre cómo completar los procedimientos de configuración inicial o reinstalación de Enterprise Linux para la instalación en un solo nodo.
Configuración del almacenamiento de base de datos mediante ASM de Oracle Para configurar el almacenamiento de base de datos mediante Oracle Automatic Storage Management (ASM), consulte la sección “Configuración del almacenamiento compartido mediante el controlador de biblioteca ASM” del documento Sistemas Dell PowerEdge — Base de datos Oracle en Enterprise Linux x86_64 — Guía de almacenamiento y redes disponible en support.dell.com.
11 En la ventana Product-Specific Prerequisite Checks (Comprobaciones de requisitos previos específicos del producto), haga clic en Next (Siguiente). 12 Cuando aparezca el mensaje de aviso, ignórelo y haga clic en Yes (Sí). 13 En la ventana Select Configuration Option (Seleccionar opción de configuración), haga clic en Install Database Software Only (Instalar sólo software de base de datos). 14 En la ventana Summary (Resumen), haga clic en Install (Instalar).
Actualización del software de base de datos 10g para un solo nodo 1 Como usuario root, detenga el proceso cssd; para ello, escriba: /etc/init.d/init.cssd stop NOTA: Este procedimiento puede tardar varios minutos en completarse. 2 Abra una ventana de terminal. 3 Inicie la sesión como oracle. 4 Asegúrese de que ORACLE_DB_HOME está definido, donde ORACLE_DB_HOME es parecido a /u01/app/oracle/product/10.2.0/db_1/.
11 Pulse para aceptar las respuestas predeterminadas a las preguntas que formuló root.sh. NOTA: Este procedimiento puede tardar varios minutos en completarse. 12 Cuando haya finalizado la ejecución de root.sh, vuelva a la ventana Execute Configuration Scripts (Ejecutar secuencias de comandos de configuración) y haga clic en OK (Aceptar). 13 En la pantalla End of Installation (Fin de la instalación), haga clic en Exit (Salir). 14 Haga clic en Yes (Sí) para salir de Oracle Universal Installer.
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 con el asistente para la configuración de bases de datos (DBCA): 1 Inicie la sesión como oracle. 2 Inicie el DBCA de Oracle; para ello, escriba: dbca. 3 En la ventana de bienvenida, haga clic en Next (Siguiente).
12 En la ventana Recovery Configuration (Configuración de la 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 319. Por ejemplo: recovery. Cambie el tamaño del área de recuperación flash según convenga. 13 Seleccione Enable Archiving (Habilitar archivado) y haga clic en Next (Siguiente).
Para verificar que la base de datos está operativa, realice los pasos siguientes: a Escriba sqlplus “/ as sysdba” para ver el indicador SQL>. b Escriba la consulta siguiente en el indicador SQL>: SELECT * FROM v$instance; c Si la base de datos no está en ejecución y recibe un mensaje de error, escriba startup en el indicador SQL> para iniciar la instancia de base de datos en el nodo.
9 En la ventana Create ASM Instance (Crear instancia de ASM), introduzca la contraseña de usuario sys y haga clic en Next (Siguiente). 10 Cuando aparezca un mensaje que indique que el DBCA está listo para crear e iniciar la instancia de ASM, haga clic en OK (Aceptar). 11 En la ventana ASM Disk Groups (Grupos de discos ASM), bajo Available Disk Groups (Grupos de discos disponibles), haga clic en Create New (Crear nuevo).
17 Seleccione Enable Archiving (Habilitar archivado) y haga clic en Next (Siguiente). 18 En la ventana Database Content (Contenido de la base de datos), haga clic en Next (Siguiente). 19 En la ventana Initialization Parameters (Parámetros de inicialización), seleccione Typical (Típica) y haga clic en Next (Siguiente). 20 En la ventana Database Storage (Almacenamiento de base de datos), haga clic en Next (Siguiente).
Creación de la base de datos semilla mediante ASM de Oracle para un solo nodo 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).
10 En la ventana Create ASM Instance (Crear instancia de ASM), realice los pasos siguientes: • En el campo SYS password (Contraseña SYS), escriba una contraseña. Si tiene el sistema operativo Enterprise Linux 5.x: a Seleccione Create initialization parameter file (IFILE) (Crear archivo de parámetros de inicialización [IFILE]). b Haga clic en Next (Siguiente). 11 Cuando aparezca un mensaje que indique que el DBCA está listo para crear e iniciar la instancia de ASM, haga clic en OK (Aceptar).
15 En la ventana ASM Disk Groups (Grupos de discos ASM), seleccione el grupo de discos que ha creado en el paso 13 para el almacenamiento de base de datos (por ejemplo, databaseDG) y haga clic en Next (Siguiente). 16 En la ventana Database File Locations (Ubicaciones de archivos de base de datos), seleccione Use Oracle-Managed Files (Utilizar archivos administrados por Oracle) y haga clic en Next (Siguiente).
25 Haga clic en Password Management (Administración de contraseñas) para asignar contraseñas específicas a usuarios autorizados (si es necesario). 26 Si no desea realizar cambios, haga clic en Exit (Salir). Se muestra un mensaje que indica que la base de datos del clúster se está iniciando en todos los nodos.
Adición y eliminación de nodos En esta sección se describe el procedimiento para añadir y eliminar un nodo en un clúster existente: 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 Añada el nodo al nivel de red. b Configure el almacenamiento compartido. c Añada el nodo a los niveles de software de clúster Oracle, de base de datos y de instancia de base de datos.
2 Configure las redes pública y privada en el nodo nuevo.
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 oui/bin del nodo existente, escriba ./addNode.sh para iniciar Oracle Universal Installer, donde es parecido a /crs/oracle/product/11.1.0/crs/. 3 En la ventana de bienvenida, haga clic en Next (Siguiente).
Adición de un nodo nuevo al nivel de base de datos 1 Inicie la sesión como oracle en uno de los nodos existentes. 2 Desde el directorio oui/bin del nodo existente, escriba ./addNode.sh para iniciar Oracle Universal Installer, donde es parecido a /u01/app/oracle/product/10.2.0./db_1/. 3 En la ventana de bienvenida, haga clic en Next (Siguiente).
Reconfiguración del proceso de escucha En esta sección se describen los pasos necesarios para reconfigurar el proceso de escucha para poder conectar un cliente remoto a una base de datos. NOTA: En los pasos que se indican a continuación se presupone que quiere detener el proceso de escucha para volver a configurar el proceso de escucha existente. Si no es así, es posible que los pasos difieran un poco de los que se indican a continuación.
12 En la ventana Listener Configuration (Configuración del proceso de escucha)→ TCP/IP Protocol (Protocolo TCP/IP), seleccione Use the standard port number of 1521 (Utilizar el puerto estándar 1521) y haga clic en Next (Siguiente). 13 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).
7 En la ventana List of Cluster Database Instances (Lista de instancias de base de datos del clúster), haga clic en Next (Siguiente). 8 En la ventana Instance Naming and Node Selection (Nombre de instancia y selección de nodo), introduzca el nombre de la instancia en la parte superior de la ventana, seleccione el nombre del nodo nuevo y haga clic en Next (Siguiente). 9 En la ventana Instance Storage (Almacenamiento de instancias), haga clic en Finish (Finalizar).
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 Introduzca 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 Cluster→ 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).
Detención y eliminación de ASM del nodo eliminado En uno de los nodos restantes, realice los pasos siguientes: 1 Abra una ventana de terminal. 2 Escriba: srvctl stop asm -n , donde es el nodo que desea eliminar del clúster. 3 Escriba: 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.
Eliminación de un nodo del nivel de software de clúster Oracle 1 En el nodo que está eliminando, como usuario root, deshabilite Cluster Ready Services (CRS) escribiendo el comando siguiente: install/rootdelete.sh remote nosharedvar, donde es parecido a /u01/app/oracle/product/11.1.0./crs/. 2 En uno de los nodos restantes, como usuario root, escriba el comando siguiente: install/rootdelete node.
Adición y eliminación de nodos
Índice A F asistente para la configuración de bases de datos, 324 formación y certificación Dell, 294 Oracle, 295 ayuda, 294 asistencia de Dell, 294 asistencia de Oracle, 295 C comprobación del sistema operativo, 306, 308 I indicador SQL, 326 N número de unidad lógica, 294 D descargar Oracle Enterprise Linux, 297 Red Hat Enterprise Linux, 297 secuencias de comandos de automatización de Dell, 297 software de clúster Oracle 11g, 299 dispositivos dispositivos de bloque, 315 O Oracle Metalink, 295 P p
S secuencias de comandos de automatización de implantación, 304 servidor de protocolo de hora de red, 297 346 Índice