Dell™ PowerEdge™ Systems Oracle® Database on Enterprise Linux® x86_64 Database Setup and Installation Guide Version 1.1 w w w. d e l l . c o m | s u p p o r t . d e l l .
Notes and Cautions NOTE: A NOTE indicates important information that helps you make better use of your computer. CAUTION: A CAUTION indicates potential damage to hardware or loss of data if instructions are not followed. ____________________ Information in this document is subject to change without notice. © 2008–2009 Dell Inc. All rights reserved. Reproduction of these materials in any manner whatsoever without the written permission of Dell Inc. is strictly forbidden.
Contents 1 Overview . Required Documentation for Deploying the Dell|Oracle 11g Database . . . . . . . . . . . . . . 7 . . . . . . . . . . . 8 . . . . . . . . . . . . . . . . . . . . . . . 8 . . . . . . . . . . . . . . . . . . . . . 8 . . . . . . . . . . . . . . . . . . . 9 Terminology Used in this Document Getting Help . Dell Support Oracle Support 2 7 . . . . . . . . . . . . . . . . . . . . . . . . . Installing Oracle ® 11g R1 Database Real Application Clusters (RAC) . . .
Configuring the Listener . . . . . . . . . . . . . . . . . Creating the Seed Database Using Oracle Cluster File System (OCFS) 2 . . . . . . . . . . . 22 . . . . . . . . 24 Creating the Seed Database Using ASM 3 Installing Oracle 11g R1 Database (Single Node) . . . . . . . . . . . . . . . . . . . . . 29 . . . . . . . . . . . . 29 . . . . . . . . . . . . . 30 Configuring the Public Network . Configuring Database Storage . Configuring Database Storage Using ext3 File System . . . . . . . . .
4 Adding and Removing Nodes . . . . . . . . . 41 . . . . . . . 41 Adding a New Node to the Network Layer Configuring Shared Storage on the New Node Using Automatic Storage Mangement (ASM) . . Adding a New Node to the Oracle Clusterware Layer . . . . . . . . . . . . . 42 . . . . . . . . . . . 43 Adding a New Node to the Database Layer . Reconfiguring the Listener . . . . . . 43 . . . . . . . . . . . . . . . 44 Adding a New Node to the Database Instance Layer . . . . . . . . . . . .
Contents
Overview This document applies to: • Oracle® Database 11g R1 on Red Hat® Enterprise Linux® or Oracle Enterprise Linux 5.
Terminology Used in this Document • This document uses the terms logical unit number (LUN) and virtual disk. These terms are synonymous and can be used interchangeably. The term LUN is commonly used in a Dell/EMC Fibre Channel storage system environment and virtual disk is commonly used in a Dell™ PowerVault™ SAS (Dell MD3000i and Dell MD3000i with MD1000 expansion) storage environment.
Oracle Support • For training information on your Oracle software, application Clusterware, training, and contacting Oracle, see the Oracle website at oracle.com or see your Oracle documentation that shipped with your system. • For information on technical support, downloads, and other technical information, see the My Oracle Support website at metalink.oracle.com. • For information on troubleshooting Oracle 11G systems, see the Oracle Database on Enterprise Linux x86_64 Troubleshooting Guide.
Overview
Installing Oracle® 11g R1 Database Real Application Clusters (RAC) This section describes the steps required to install Oracle 11g RAC, which involves installing CRS and installing the Oracle Database 11g software. It is recommended that you create a seed database to verify that the cluster works correctly before you deploy it in a production environment. Before You Begin The following sections describe activities that you should complete before installing Oracle 11g RAC.
Configure the System Clock Settings for All Nodes To prevent failures during the installation procedure, configure all the nodes with identical system clock settings. Synchronize your node system clock with a Network Time Protocol (NTP) server. If you cannot access an NTP server, perform one of the following procedures: • Ensure that the system clock on the Oracle Database software installation node is set to a later time than the remaining nodes.
7 Type the following commands to start the Oracle Universal Installer: unset ORACLE_HOME /runInstaller The following message is displayed: Has ’rootpre.sh’ been run by root? [y/n] (n) 8 Type y to proceed. 9 In the Welcome window, click Next. 10 In the Specify Home Details window, change the Oracle home path to /crs/oracle/product/11.1.0/crs and click Next.
In the Specify Oracle Cluster Registry (OCR) Location window, perform the following steps: a In the OCR Configuration box, select Normal Redundancy. b In the Specify OCR Location field, type: /dev/emcpowera1 or /u01/ocr1.dbf if using OCFS2 c In the Specify OCR Mirror Location field, type: /dev/emcpowera2 or /u01/ocr2.dbf d Click Next. 15 In the Specify Voting Disk Location window, perform the following steps: a In the Votingdisk Configuration box, select External Redundancy.
16 In the Summary window, click Install. Oracle Clusterware is installed on your system. When complete, the Execute Configuration scripts window is displayed. 17 Follow the instructions in the window and then click OK. NOTE: If root.sh hangs while formatting the Voting disk, apply Oracle patch 4679769 and then repeat this step. NOTE: Run root.sh sequentially on all nodes starting with the primary node. For example, run root.sh on node 1. When root.sh completes on node 1, continue with node 2 and so on.
Installing Oracle 11G R1 Database Software 1 As user root, type: xhost + 2 As user root, mount the Oracle Database 11g media. 3 Log in as oracle, and type: /bin/ cluvfy stage -pre dbinst -n node1,node2 -r 11gR1 -verbose where node1 and node2 are the public host names. If your system is not configured correctly, see the Troubleshooting Guide for more information. If your system is configured correctly, the following message is displayed: Pre-check for database installation was successful.
9 In the Product-Specific Prerequisite Checks window, ensure that Succeeded is displayed in the Status column for each system check and click Next. NOTE: In some cases, a warning may be displayed regarding swap size. Ignore the warning and click Yes to proceed. 10 In the Select Configuration Option window, select Install database Software only and click Next. 11 In the Summary window, click Install. The Oracle Database software is installed on your cluster.
Before You Begin Before you begin the upgrade process, complete the following steps: 1 On the first node, log in as root. 2 Shut down Oracle Clusterware by entering the following in the terminal window and pressing : crsctl stop crs 3 On the remaining nodes, open a terminal window and repeat step 1 and step 2. 4 On the first node, log in as oracle. 5 In the terminal window, type the following and press : export ORACLE_HOME=/crs/oracle/product/11.1.0/crs Installing 11.1.0.
8 Log in as root. 9 Type the following and press : $ORA_CRS_HOME/install/root111.sh 10 Repeat step 7 through step 9 on the remaining nodes, one node at a time. 11 On the first node, return to the End of Installation screen. 12 Click Exit. 13 Click Yes to exit the Oracle Universal Installer. Installing 11.1.0.7 Patch Set for Oracle Database NOTE: Before you install the patch set, ensure that all the Oracle services are stopped.
9 The Welcome screen is displayed. Click Next. 10 In the Specify Home Details screen, click Next. 11 In the Specify Hardware Cluster Installation Mode screen, click Next. 12 In the Summary screen, click Install. The Oracle Universal Installer scans your system, displays all the patches that are required to be installed, and installs them on your system. When the installation completes, the End of Installation screen is displayed. A message window is displayed, prompting you to run root.sh as user root.
Configuring the Listener This section describes the steps to configure the listener, which is required for remote client connection to a database. On one node only, perform the following steps: 1 Log in as root. 2 Start the X Window System by typing: startx 3 Open a terminal window and type: xhost + 4 As the user oracle, type netca to start the Net Configuration Assistant. 5 Select Cluster Configuration and click Next. 6 In the TOPSNodes window, click Select All Nodes and click Next.
Creating the Seed Database Using Oracle Cluster File System (OCFS) 2 1 Log in as oracle on the first node and type: $CRS_HOME/bin/cluvfy stage -pre dbcfg -n node1,node2 -d $ORACLE_HOME -verbose where node1 and node2 are the public host names. If your system is not configured correctly, see the Troubleshooting Guide for more information. If your system is configured correctly, the following message is displayed: Pre-check for database configuration was successful.
12 In the Recovery Configuration window: a Click Specify Flash Recovery Area. b Click Browse and select /u03. 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 and click Next. 16 In the Database Storage window, click Next.
20 On each node, perform the following steps: a Determine the database instance that exists on that node by typing: srvctl status database -d b Add the ORACLE_SID environment variable entry in the user profile oracle by typing: echo "export ORACLE_SID=racdbx" >> /home/oracle/.bash_profile source /home/oracle/.bash_profile where racdbx is the database instance identifier assigned to the node. NOTE: This example assumes that racdb is the global database name that you defined in DBCA.
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, type the appropriate password information (if required), and click Next.
16 In the ASM Disk Groups window, select the disk group that you would like to use for Database Storage (for example, databaseDG) and click Next. 17 In the Database File Locations window, select Use Oracle-Managed Files and click Next. 18 In the Recovery Configuration window, click Browse, select the flashback group that you created in step 15 (for example, flashbackDG), and change the Flash Recovery Area size as needed. 19 Select Enable Archiving and click Next.
Perform the following steps on each node: a Determine the database instance that exists on that node by typing: srvctl status database -d b Type the following commands to add the ORACLE_SID environment variable entry in the oracle user profile: echo "export ORACLE_SID=racdbx" >> /home/oracle/.bash_profile source /home/oracle/.bash_profile where racdbx is the database instance identifier assigned to the node.
Installing Oracle 11g R1 Database RAC
Installing Oracle 11g R1 Database (Single Node) This section provides information about completing the initial setup or completing the reinstallation procedures as described in the Oracle Database on Enterprise Linux x86_64 Operating System and Hardware Installation Guide. This section covers the following topics: • "Configuring the Public Network" on page 29 • "Configuring Database Storage" on page 30 • "Installing Oracle Database 11g" on page 33 • "Installing the Oracle Database 11g R1 11.1.0.
Configuring Database Storage Configuring Database Storage Using ext3 File System If you have additional storage device, perform the following steps: 1 Log in as root. 2 Enter the following command: cd /opt/oracle 3 Enter the following command: mkdir oradata recovery Use the fdisk utility to create a partition where you want to store your database files. For example: sdb1 if your storage device is sdb Use the fdisk utility to create a partition where you want to store your recovery files.
7 Enter the following command: chown -R oracle.dba oradata recovery /dev/sdc1 /opt/oracle/recovery ext3 defaults 1 2 8 Enter the following command: mount /dev/sdb1 /opt/oracle/oradata mount /dev/sdc1 /opt/oracle/recovery Configuring Database Storage Using Oracle ASM The following example assumes that you have two storage devices (sdb and sdc) available to create a disk group for the database files and a disk group to be used for flash back recovery and archive log files respectively. 1 Log in as root.
2 Run the following command to run the permissions.py script: /dell-oracle-deployment/scripts/permissions.py 3 Run the following command to set the correct block device permissions: /etc/rc.local Configuring Database Storage Using the Oracle ASM Library Driver 1 Open a terminal window and log in as root.
Installing Oracle Database 11g Perform the following steps to install Oracle 11g: 1 Log in as root. 2 As the user root, mount the Oracle Database 11g media. 3 Start the X Window System by typing: startx 4 Open a terminal window and type: xhost + 5 Log in as oracle. 6 Start the Oracle Universal Installer. In the terminal window, type the following and press : /runInstaller 7 In the Select Installation Method window, click Advanced Installation and then click Next.
17 Log in as root. 18 Type: /opt/oracle/product/11.1.0/db_1/bin/localconfig add The installation procedure completes. The Welcome screen is displayed. Installing the Oracle Database 11g R1 11.1.0.7 Patch Set Download and extracting the installation software using the following steps: 1 On the first node, log in as oracle. 2 Create a folder for the patches and utilities at /opt/oracle/patches. 3 Open a web browser and navigate to the My Oracle Support website at metalink.oracle.com.
Installing the Patch Set 1 On the first node, open a terminal window. 2 Log in as oracle. 3 Shut down the Oracle Clusterware node applications on all nodes. In the terminal window, type the following and press : $ORACLE_HOME/bin/srvctl stop nodeapps -n 4 Repeat step 3 on the remaining nodes and change the node name of that given node. 5 On the first node, open a new terminal window. 6 Log in as oracle. 7 Type the following and press : export ORACLE_HOME= /opt/oracle/product/11.1.
15 Type the following and press : /opt/oracle/product/11.1.0/db_1/root.sh 16 Repeat step 13 and step 14 on the remaining nodes, one node at a time. When the installation completes, the End of Installation screen is displayed. NOTE: This procedure may take several minutes to complete. 17 In the End of Installation screen, click Exit. 18 Click Yes to exit the Oracle Universal Installer. 19 On the first node, open a terminal window. Log in as oracle.
Creating the Seed Database Creating the Seed Database Using ext3 File System Perform the following steps to create a seed database with the Database Configuration Assistant (DBCA): 1 Log in as oracle. 2 Start the Oracle DBCA by typing: dbca 3 In the Welcome window, click Next. 4 In the Operations window, click Create a Database and click Next. 5 In the Database Templates window, click Custom Database and click Next.
16 In the Confirmation window, click OK to create the database. NOTE: The seed database creation may take more than an hour to complete. When the database creation procedure completes, the Password Management window is displayed. 17 Click Exit. 18 Type: export ORACLE_SID=dbname where dbname is the global identifier name that you defined for the database in DBCA. 19 To verify that the database is operating, perform the following steps: a Type sqlplus "/ as sysdba" to display the SQL> prompt.
7 In the Database Credentials window, click Use the Same Password for All Accounts, complete password entries, and click Next. 8 In the Storage Options window, click ASM and click Next. 9 In the Create ASM Instance window, type the password for user sys and click Next. 10 When a message is displayed indicating that DBCA is ready to create and start the ASM instance, click OK. 11 In the ASM Disk Groups window, under Available Disk Groups, click Create New.
16 In the Database File Locations window, check Use Common Location for All Database Files, and click Next. 17 In the Recovery Configuration window, click Browse. Select the flashback group that you created in step 14 (for example, flashbackDG) and change the Flash Recovery Area size as needed. 18 Select Enable Archiving and click Next. 19 In the Database Content window, click Next. 20 In the Initialization Parameters window, select Typical and click Next. 21 In the Database Storage window, click Next.
Adding and Removing Nodes This section describes the steps to add a node to an existing cluster and the steps to remove a node from a cluster. NOTE: The new node must have the same hardware and operating system configuration as the existing node(s). To add a node to an existing cluster: • Add the node to the network layer. • Configure shared storage. • Add the node to Oracle Clusterware, database, and the database instance layers.
Configuring Shared Storage on the New Node Using Automatic Storage Mangement (ASM) To extend an existing RAC database to your new nodes, configure storage for the new nodes so that the storage is the same as on the existing nodes. If you are using ASM, ensure that the new nodes can access the ASM disks with the same permissions as the existing nodes. This section provides the appropriate procedure for ASM. To configure the ASM disks: 1 Log in as root. 2 Open a terminal window and log in as root.
Adding a New Node to the Oracle Clusterware Layer 1 Log in as oracle into one of the existing nodes. 2 From the /crs/oracle/product/11.1.0/crs/oui/bin directory of this existing node, type ./addNode.sh to start the Oracle Universal Installer. 3 In the Welcome window, click Next. 4 In the Specify Cluster Nodes to Add to Installation window, type the public and private node names for the new node and click Next.
5 Click Install. The Cluster Node Addition Progress window displays the status of the node addition process. 6 When prompted, as user root run /opt/oracle/product/11.1.0/db_1/root.sh on the new node and press when asked to enter the full path name of the local bin directory. 7 When root.sh finishes running in the Execute Configuration Scripts window, click OK. 8 In the End of Installation window, click Exit and click Yes when asked to confirm.
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, s elect Use the standard port number of 1521 and click Next.
8 In the Instance Naming and Node Selection window, type the instance name at the top of the window, select the new node name, and click Next. 9 In the Instance Storage window, click Finish. 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.
7 Type the user name sys and the password, and click Next. The List of Cluster Database Instances window is displayed, showing the instances associated with the RAC database that you selected and the status of each instance. 8 Select the instance to delete and click Next. This instance cannot be the local instance from where you are running DBCA. If you select the local instance, the DBCA displays an Error dialog. If this occurs, click OK, select another instance, and click Finish.
6 In the Listener Configuration→ Select Listener window, select LISTENER and click Next. When a message "Are you sure you want to delete listener LISTENER?" is displayed, click Yes. 7 In the Listener Configuration→ Listener Deleted window, click Next. 8 In the Listener Configuration Done window, click Next. 9 Click Finish. To Stop and Remove ASM From the Node That is Deleted On one of the remaining nodes, perform the following steps: 1 Open a terminal window.
Removing a Node From the Oracle Clusterware Layer 1 On the node that you are deleting, as user root, disable CRS by typing the following command: /crs/oracle/product/11.1.0/crs/install/rootdelete.s h remote nosharedvar 2 On one of the remaining nodes, as user root, type the following command: /crs/oracle/product/11.1.0/crs/install/rootdelete node.sh , where is the public name and is the node number of the node being deleted.
Adding and Removing Nodes
Index Numerics H 11.1.0.
O R OCFS2 creating seed database, 22 Redhat website, 11 OCR, 14 Oracle 10g RAC installing, 11 Oracle Clusterware media, 12 Oracle Database 10g installing, 33 Oracle Universal Installer, 13 Oracle website, 9 P Patch Set 11.1.0.
Dell™ PowerEdge™ 系统 Enterprise Linux® x86_64 上的 Oracle® 数据库 数据库设置和安装指南 版本 1.1 w w w. d e l l . c o m | s u p p o r t . d e l l .
注和小心 注: “注”表示可以帮助您更好地使用计算机的重要信息。 小心: “小心”表示如果不遵循说明,就有可能损坏硬件或 导致数据丢失。 ____________________ 本说明文件中的信息如有更改,恕不另行通知。 © 2008 – 2009 Dell Inc. 版权所有,翻印必究。 未经 Dell Inc. 书面许可,严禁以任何形式复制这些材料。 本文中使用的商标:Dell 和 DELL 徽标是 Dell Inc. 的商标; Red Hat、 Red Hat Enterprise Linux 和 Enterprise Linux 是 Red Hat, Inc. 在美国和 / 或其它国家的注册商标; Oracle 是 Oracle 公司和 / 或其附属机构的注册商标。 本说明文件中述及的其它商标和产品名称是指拥有相应商标和产品名称的公司或其制造的 产品。 Dell Inc. 对本公司的商标和产品名称之外的其它商标和产品名称不拥有任何专有权。 2009 年 3 月 Rev.
目录 1 概述 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 部署 Dell|Oracle 11g Database 需要的说明文件 . . . . . . . . 59 . . . . . . . . . . . . . . . . . . . . 60 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 本说明文件中使用的术语 获得帮助 Dell 支持 . . . . . . . . . . . . . . . . . . . . . . . . . . . Oracle 支持 2 . . . . . . . . . . . . . . . . . . . . . . . . . 安装 Oracle ® 11g R1 Database Real Application Clusters (RAC) 准备工作 59 60 60 . . . . . . . . . . . . 61 . . . . . . .
3 安装 Oracle 11g R1 Database (单个节点) . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 配置公用网络 . . . . . . . . . . . . . . . . . . . . . . . . . . . 配置数据库存储 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 81 . . . . . . . . . . . . . . . . 81 使用 Oracle ASM 配置数据库存储 . . . . . . . 82 . . . . . . . . . . . . . . . . . . . . 83 使用 Oracle ASM 库驱动程序配置数据库存储 安装 Oracle Database 11g 安装 Oracle Database 11g R1 11.1.0.7 增补软件集 . . . . . . . . . . . . . . . . . . . . . . . . .
4 添加和删除节点 . . . . . . . . . . . . . . . . . . . . . . . . 将新节点添加到网络层 . . . . . . . . . . . . . . . . . . . . . 使用自动存储管理 (ASM) 在新节点上配 置共享存储 . . . . . . . . . . . . . . . . . 92 . . . . . . . . . . . . . . . 93 . . . . . . . . . . . . . . . . . . . . 94 . . . . . . . . . . . . . . . . . . . . . . . . 94 将新节点添加到数据库层 . . . . . . . . . . . . . . . . . 96 . . . . . . . . . . . . . . . . . . . . . . . . 97 将新节点添加到数据库实例层 从群集中删除节点 从数据库实例层中删除节点 重新配置侦听程序 . . . . . . . . . . . . . . . . 97 . . . .
目录
概述 本说明文件适用于: • Red Hat® Enterprise Linux® 或 Oracle Enterprise Linux 5.
本说明文件中使用的术语 • 本说明文件中使用了逻辑单元号码 (LUN) 和虚拟磁盘两个术语。这两 个术语是同义词,可互换使用。术语 LUN 通常在 Dell|EMC 光纤信道 存储系统环境中使用,而虚拟磁盘通常在 Dell™ PowerVault™ SAS (Dell MD3000i 和带有 MD1000 扩展的 Dell MD3000i)存储环境中 使用。 • 本说明文件使用术语 Enterprise Linux,它适用于 Red Hat Enterprise Linux 和 Oracle Enterprise Linux,除非特别声明。 获得帮助 Dell 支持 • 有关使用系统的详情,请参阅系统组件附带的说明文件。 • 有关白皮书、Dell 支持的配置和一般信息,请访问 Oracle Databases and Applications Solutions(Oracle 数据库和应用程序解决方案)Web 站点 dell.
安装 Oracle® 11g R1 Database Real Application Clusters (RAC) 本节介绍安装 Oracle 11g RAC 需要的步骤,包括安装 CRS 和 Oracle Database 11g 软件。建议创建一个基础数据库,以在生产环境下部署群集前 验证该群集是否运行正常。 准备工作 以下各节介绍在安装 Oracle 11g RAC 之前应完成的操作。 下载 Enterprise Linux 和 Dell 自动化脚本 在系统上安装 Oracle RAC 软件之前: • 从 Red Hat 网络登录 Web 站点 rhn.redhat.com 下载 Red Hat® 介质映像。 • 从 Oracle 和 Linux Web 站点 oracle.com/linux 下载 Oracle Enterprise Linux® 介质映像。 • 找到 Oracle 介质套件。 • 下载 Dell 自动化脚本,这些脚本应适用于从 Oracle 数据库和应用程序 解决方案 Web 站点 dell.
配置所有节点的系统时钟设置 为避免在安装过程中出现故障,请为所有节点配置完全相同的系统时钟 设置。 使节点系统时钟与网络时间协议 (NTP) 服务器同步。如果您无法访问 NTP 服务器,请执行以下步骤之一: • 确保 Oracle 数据库软件安装节点上的系统时钟设置为比其余节点稍晚 的时间。 • 将其中一个节点配置为 NTP 服务器,以同步群集中的其余节点。 安装 Oracle 11G R1 群集件 1 作为 root 登录。 2 通过键入以下命令启动 X Window 系统: startx 3 打开终端窗口,然后键入: xhost + 4 安装 Oracle 群集件介质。 5 键入: su - oracle 6 键入: /cluvfy/runcluvfy.sh stage -pre crsinst -n node1,node2 -r 11gR1 -verbose 其中, node1 和 node2 是公用主机名。 如果系统配置不正确,请解决相关问题,然后重复执行上述 runcluvfy.
7 键入以下命令以启动 Oracle Universal Installer: unset ORACLE_HOME /runInstaller 系统将显示以下信息: Has ’ rootpre.sh’ been run by root? (root 是否已运行 ’ rootpre.sh’?) [y/n] (n) 8 键入 y 以继续。 9 在 Welcome (欢迎)窗口中,单击 Next (下一步)。 10 在 Specify Home Details (指定主目录详细信息)窗口中,将 Oracle 主目录路径更改为 /crs/oracle/product/11.1.
13 在 Specify Network Interface Usage (指定网络接口用途)窗口中, 确保公用接口名称和专用接口名称正确。 要修改接口,请执行以下步骤: a 选择 Interface Name (接口名称),然后单击 Edit (编辑)。 b 在 Edit private interconnect type (编辑专用互连类型)窗口的 Interface Type (接口类型)框中,选择相应的接口类型, 然后单击 OK (确定)。 c 在 Specify Network Interface Usage (指定网络接口用途)窗口中, 确保公用接口名称和专用接口名称正确,然后单击 Next (下一步)。 14 在 Specify Oracle Cluster Registry (OCR) Location (指定 Oracle Cluster Registry [OCR] 位置)窗口中,执行以下步骤: a 在 OCR Configuration (OCR 配置)框中,选择 Normal Redundancy (普通冗余)。 b 在 Specify OCR Location (指
15 在 Specify Voting Disk Location (指定投票磁盘位置)窗口中, 执行以下步骤: a 在 Votingdisk Configuration (投票磁盘配置)框中, 选择 External Redundancy (外部冗余)。 b 在 Specify Votingdisk Location (指定投票磁盘位置)字段中, 键入: /dev/emcpowerb1 或 /u01/votingdisk1(如果使用 OCFS2) c 在 Additional Voting Disk 1 Location (附加投票磁盘 1 位置) 字段中,键入: /dev/emcpowerb2 或 /u01/votingdisk2 d 在 Additional Voting Disk 2 Location (附加投票磁盘 2 位置) 字段中,键入: /dev/emcpowerb3 或 /u01/votingdisk3 e 单击 Next (下一步)。 16 在 Summary (摘要)窗口中,单击 Install (安装)。 在系统上安装 Oracle 群集件。 完成后,屏幕将显示 E
18 在 Configuration Assistants (配置助手)窗口中,确保每个工具名称 的 Status (状态)列中均显示 Succeeded (成功)。 完成后,屏幕将显示 End of Installation (安装结束)窗口。 19 单击 Exit (退出)。 20 在所有节点上,执行以下步骤: a 通过键入以下命令,验证 Oracle 群集件安装: olsnodes -n -v 此时将显示群集中所有节点的公用节点名称列表。 b 键入: crs_stat -t 此时会显示所有正在运行的 Oracle 群集件服务。确保所有服务均联机。 安装 Oracle 11G R1 Database 软件 1 以 root 用户身份键入: xhost + 2 以 root 用户身份安装 Oracle Database 11g 介质。 3 作为用户 oracle 登录并键入: /bin/ cluvfy stage -pre dbinst -n node1,node2 -r 11gR1 -verbose 其中, node1 和 node2 是公用主机名。 如果系统配置不正确,请参
6 在 Select Installation Types (选择安装类型)窗口中,选择 Enterprise Edition (企业版),然后单击 Next (下一步)。 7 在 Specify Home Details (指定主目录详细信息)窗口的 Path (路径)字段中,验证完整的 Oracle 主目录路径是否为 /opt/oracle/product/11.1.
为 Oracle 11g R1 Database 安装 11.1.0.7 增补软件集 按以下步骤下载并提取安装软件: 1 在第一个节点上,作为用户 oracle 登录。 2 为增补软件和公用程序创建一个文件夹 /opt/oracle/patches。 3 打开 Web 浏览器,浏览至 Oracle Support Web 站点 metalink.oracle.
为 Oracle 群集件安装 11.1.0.7 增补软件集 注:必须从安装 RAC 11g R1 软件的节点安装增补软件集软件。 1 通过在终端窗口中键入以下命令并按 键来启动 Oracle Universal Installer: cd /opt/oracle/patches/Disk1/ .
为 Oracle 数据库安装 11.1.0.7 增补软件集 注:安装增补软件集之前,请确保所有 Oracle 服务均已停止。 创建侦听程序和基础数据库之前,请完成以下步骤。 安装增补软件集 1 在第一个节点上,打开终端窗口。 2 作为用户 oracle 登录。 3 关闭所有节点上的 Oracle 群集件节点应用程序。在终端窗口中,键入 以下命令并按 键: $ORACLE_HOME/bin/srvctl stop nodeapps -n < 节点名称 > 4 在其余节点上重复步骤 3 并更改指定节点的节点名称。 5 在第一个节点上,打开一个新的终端窗口。 6 作为用户 oracle 登录。 7 键入以下命令并按 键: export ORACLE_HOME= /opt/oracle/product/11.1.0/db_1 8 通过在终端窗口中键入以下命令并按 键来启动 Oracle Universal Installer: cd /opt/oracle/patches/Disk1/ .
14 键入以下命令并按 键: /opt/oracle/product/11.1.0/db_1/root.
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
4 在 Operations (操作)窗口中,单击 Create a Database (创建数据 库),然后单击 Next (下一步)。 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 Optio
17 在 Creation Options (创建选项)窗口中,选择 Create Database (创建数据库),然后单击 Finish (完成)。 18 在 Summary (摘要)窗口中,单击 OK (确定)创建数据库。 注:创建基础数据库可能需要一个多小时。 注:如果在基础数据库创建过程中收到 Enterprise Manager Configuration Error(企业管理器配置错误),请单击 OK(确定), 忽略该错误。 数据库创建完成后,屏幕上将显示 Password Management (密码管理)窗口。 19 单击 Exit (退出)。 屏幕上会显示一条信息,表示正在所有节点上启动群集数据库。 20 在每个节点上,执行以下步骤: a 通过键入以下命令确定该节点上存在的数据库实例: srvctl status database -d < 数据库名称 > b 通过键入以下命令,在 oracle 的用户配置文件中添加 ORACLE_SID 环境变量条目: echo "export ORACLE_SID=racdbx" >> /home/oracle/.
使用 ASM 创建基础数据库 本节包含使用 Oracle ASM 创建基础数据库以及验证基础数据库的过程。 请执行以下步骤: 1 作为用户 oracle 登录并键入: $CRS_HOME/bin/cluvfy stage -pre dbcfg -n node1,node2 -d $ORACLE_HOME -verbose 其中, node1 和 node2 是公用主机名, $ORACLE_HOME 是 Oracle_database 主目录。 如果系统配置不正确,请参阅 《故障排除指南》了解详情。 如果系统配置正确,屏幕将显示以下信息: Pre-check for database configuration was successful.
11 在 Create ASM Instance (创建 ASM 实例)窗口中,执行以下步骤: a 在 SYS password (SYS 密码)字段中,键入密码。 b 选择 Create server parameter file (SPFILE) (创建服务器参数文件 [SPFILE])。 c 在 Server Parameter Filename (服务器参数文件名)字段中, 键入: /opt/oracle/product/11.1.0/db_1/initl+ASM.
21 在 Database Services (数据库服务)窗口中,配置服务 (如果需要), 然后单击 Next (下一步)。 22 在 Initialization Parameters (初始化参数)窗口中,执行以下步骤: a 选择 Custom (自定义)。 b 在 Shared Memory Management (共享内存管理)中,选择 Automatic (自动)。 c 在 SGA Size (SGA 大小)和 PGA Size (PGA 大小)窗口中, 输入相应的信息。 d 单击 Next (下一步)。 23 在 Database Storage (数据库存储)窗口中,单击 Next (下一步)。 24 在 Creation Options (创建选项)窗口中,选择 Create Database (创建数据库),然后单击 Finish (完成)。 25 在 Summary (摘要)窗口中,单击 OK (确定)创建数据库。 注:完成此过程可能需要一个小时或更长时间。 数据库创建完后,屏幕上将显示 Database Configuration Assistant (数据库配置助手)
28 在一个节点上,键入: srvctl status database -d dbname 其中, dbname 是您在 DBCA 中为数据库定义的全局标识符名称。 如果正在运行数据库实例,屏幕将显示确认信息。 如果未运行数据库实例,请键入: srvctl start database -d dbname 其中, dbname 是您在 DBCA 中为数据库定义的全局标识符名称。 78 安装 Oracle 11g R1 Database RAC
安装 Oracle 11g R1 Database (单个节点) 本节介绍有关如何按照《Oracle Database on Enterprise Linux x86_64 Operating System and Hardware Installation Guide》(Enterprise Linux x86_64 上的 Oracle 数据库 - 操作系统和硬件安装指南)中的说明完成初始设置或重 新安装过程的信息。本节包括以下主题: • 第 79 页上的“配置公用网络” • 第 80 页上的“配置数据库存储” • 第 83 页上的“安装 Oracle Database 11g” • 第 84 页上的“安装 Oracle Database 11g R1 11.1.0.
配置数据库存储 使用 ext3 文件系统配置数据库存储 如果您拥有附加存储设备,请执行以下步骤: 1 作为用户 root 登录。 2 输入以下命令: cd /opt/oracle 3 输入以下命令: mkdir oradata recovery 使用 fdisk 公用程序创建用于存储数据库文件的分区。 例如:sdb1 (如果存储设备为 sdb) 使用 fdisk 公用程序创建用于存储恢复文件的分区。 例如:sdc1 (如果存储设备为 sdc) 4 输入以下命令验证新分区: cat /proc/partitions 如果没有检测到新分区,请键入: sfdisk -R /dev/sdb sfdisk -R /dev/sdc 5 输入以下命令: mke2fs -j /dev/sdb1 mke2fs -j /dev/sdc1 6 通过添加如下条目编辑新建文件系统的 /etc/fstab 文件: /dev/sdb1 /opt/oracle/oradata ext3 defaults 1 2 80 安装 Oracle 11g R1 Database (单个节点)
7 输入以下命令: chown -R oracle.dba oradata recovery /dev/sdc1 /opt/oracle/recovery ext3 defaults 1 2 8 输入以下命令: mount /dev/sdb1 /opt/oracle/oradata mount /dev/sdc1 /opt/oracle/recovery 使用 Oracle ASM 配置数据库存储 以下示例假定您有两台存储设备(sdb 和 sdc),可以分别使用它们创建一 个用于存储数据库文件的磁盘组和一个用于存储回闪恢复文件和存档日志文 件的磁盘组。 1 作为用户 root 登录。 2 通过键入以下命令,创建整个设备的主分区: fdisk /dev/sdb 3 通过键入以下命令,创建整个设备的主分区: fdisk /dev/sdc 使用块设备配置 ASM 存储 1 将 asm1 和 asm2 的磁盘组名称添加到 permissions.
2 运行以下命令以运行 permissions.py 脚本: /dell-oracle-deployment/scripts/permissions.py 3 运行以下命令以设置正确的块设备权限: /etc/rc.
安装 Oracle Database 11g 要安装 Oracle 11g,请执行以下步骤: 1 作为 root 登录。 2 以 root 用户身份安装 Oracle Database 11g 介质。 3 通过键入以下命令启动 X Window 系统: startx 4 打开终端窗口,然后键入: xhost + 5 作为用户 oracle 登录。 6 启动 Oracle Universal Installer。 在终端窗口中,键入以下命令并按 键: /runInstaller 7 在 Select Installation Method (选择安装方法)窗口中,单击 Advanced Installation (高级安装),然后单击 Next (下一步)。 8 在 Select Installation Type (选择安装类型)窗口中,单击 Enterprise Edition (企业版),然后单击 Next (下一步)。 9 在 Specify Home Details (指定主目录详细信息)窗口的 Path (路径)字段中,确保路径为: /opt/oracle/prod
16 单击 Exit (退出),然后单击 Yes (是)进行确认。 17 作为 root 登录。 18 键入: /opt/oracle/product/11.1.0/db_1/bin/localconfig add 安装过程即告完成。 随即显示 Welcome (欢迎)屏幕。 安装 Oracle Database 11g R1 11.1.0.7 增补软件集 按以下步骤下载并提取安装软件: 1 在第一个节点上,作为用户 oracle 登录。 2 为增补软件和公用程序创建一个文件夹 /opt/oracle/patches。 3 打开 Web 浏览器,并浏览至 My Oracle Support Web 站点 metalink.oracle.
安装增补软件集 1 在第一个节点上,打开终端窗口。 2 作为用户 oracle 登录。 3 关闭所有节点上的 Oracle 群集件节点应用程序。在终端窗口中,键入 以下命令并按 键: $ORACLE_HOME/bin/srvctl stop nodeapps -n < 节点名称 > 4 在其余节点上重复步骤 3 并更改指定节点的节点名称。 5 在第一个节点上,打开一个新的终端窗口。 6 作为用户 oracle 登录。 7 键入以下命令并按 键: export ORACLE_HOME= /opt/oracle/product/11.1.0/db_1 8 通过在终端窗口中键入以下命令并按 键来启动 Oracle Universal Installer: cd /opt/oracle/patches/Disk1/ .
15 键入以下命令并按 键: /opt/oracle/product/11.1.0/db_1/root.
创建基础数据库 使用 ext3 文件系统创建基础数据库 执行以下步骤,使用数据库配置助手 (DBCA) 创建一个基础数据库: 1 作为用户 oracle 登录。 2 通过键入以下命令启动 Oracle DBCA: dbca 3 在 Welcome (欢迎)窗口中,单击 Next (下一步)。 4 在 Operations (操作)窗口中,单击 Create a Database (创建数据库),然后单击 Next (下一步)。 5 在 Database Templates (数据库模板)窗口中,单击 Custom Database (自定义数据库),然后单击 Next (下一步)。 6 在 Database Identification (数据库识别)窗口的 Global Database Name (全局数据库名称)和 SID Prefix (SID 前缀)字段中, 键入您要创建的数据库的名称,然后单击 Next (下一步)。 7 在 Management Options (管理选项)窗口中,单击 Next (下一步)。 8 在 Database Credentials (数据库证书)窗口中,完成密码选择和
15 在 Creation Options (创建选项)窗口中,单击 Create Database (创建数据库),然后单击 Finish (完成)。 16 在 Confirmation (确认)窗口中,单击 OK (确定)以创建数据库。 注:创建基础数据库可能需要一个多小时才能完成。 数据库创建过程完成后,屏幕上将显示 Password Management (密码管理)窗口。 17 单击 Exit (退出)。 18 键入: export ORACLE_SID=dbname 其中, dbname 是您在 DBCA 中为数据库定义的全局标识符名称。 19 要验证数据库是否可以正常运行,请执行以下步骤: a 键入 sqlplus "/ as sysdba" 以显示 SQL> 提示符。 b 在 SQL> 提示符下键入以下查询: SELECT * FROM v$instance; c 如果数据库没有运行并且您收到错误信息,请在 SQL> 提示符下键 入 startup,在节点上启动数据库实例。 使用 Oracle 自动存储管理 (ASM) 创建基础数据库 如果您使用 Oracle ASM 配置了存储设
6 在 Management Options (管理选项)窗口中,单击 Next (下一步)。 7 在 Database Credentials (数据库证书)窗口中,单击 Use the Same Password for All Accounts (对所有帐户使用相同密码),完成密码 输入,然后单击 Next (下一步)。 8 在 Storage Options (存储选项)窗口中,单击 ASM,然后单击 Next (下一步)。 9 在 Create ASM Instance (创建 ASM 实例)窗口中,输入用户 sys 的密码,然后单击 Next (下一步)。 10 当屏幕上显示一条信息,指示 DBCA 已准备就绪,可以创建和启动 ASM 实例时,单击 OK (确定)。 11 在 ASM Disk Groups (ASM 磁盘组)窗口中的 Available Disk Groups (可用磁盘组)下,单击 Create New (新建)。 12 在 Create Disk Group (创建磁盘组)窗口中,键入数据库文件的存储 信息,然后单击 OK (确定)。 a 为要创建的磁盘组键入名称 (如 d
15 在 ASM Disk Groups (ASM 磁盘组)窗口中,选中要用于数据库存储 的磁盘组 (例如, databaseDG),然后单击 Next (下一步)。 16 在 Database File Locations (数据库文件位置)窗口中,选中 Use Common Location for All Database Files (对所有数据库文件使用公用 位置),然后单击 Next (下一步)。 17 在 Recovery Configuration (恢复配置)窗口中,单击 Browse (浏览)。选择您在步骤 14 中创建的回闪组 (例如, flashbackDG), 然后根据需要更改快擦写恢复区域的大小。 18 选择 Enable Archiving (启用存档)并单击 Next (下一步)。 19 在 Database Content (数据库内容)窗口中,单击 Next (下一步)。 20 在 Initialization Parameters (初始化参数)窗口中,选择 Typical (典型),然后单击 Next (下一步)。 21 在 Database Storage (数据库存
添加和删除节点 本节介绍向现有群集添加节点以及从群集中删除节点的步骤。 注:新节点必须与现有节点具有相同的硬件和操作系统配置。 要向现有群集添加节点,请执行以下操作: • 将节点添加到网络层。 • 配置共享的存储设备。 • 向 Oracle 群集件层、数据库层和数据库实例层添加节点。 要从现有群集中删除节点,则按相反顺序执行该过程,即依次从数据库实例 层、数据库层和 Oracle 群集件层删除节点。 有关向现有群集添加其它节点的详情,请参阅 Oracle Web 站点 oracle.
使用自动存储管理 (ASM) 在新节点上配 置共享存储 要将现有 RAC 数据库扩展到新节点,请为新节点配置存储设备,使新节点 的存储设备与现有节点上的相同。如果您使用的是 ASM,应确保新节点可 以使用与现有节点相同的权限访问 ASM 磁盘。本节介绍用于 ASM 的相应 过程。 配置 ASM 磁盘: 1 作为 root 登录。 2 打开终端窗口,然后作为 root 登录。 3 将 /dell-oracle-deployment/scripts/permissions.ini 文件从现有节点之一 复制到新节点上的相同位置。 4 输入以下命令以设置块设备的正确权限: /etc/rc.
6 确保 ASM 磁盘在新节点上可用。 在终端窗口中,键入以下命令并按 键: service oracleasm listdisks 随即列出其余节点上的所有可用磁盘。 例如: ASM1 ASM2 将新节点添加到 Oracle 群集件层 1 作为用户 oracle 登录到其中一个现有节点中。 2 从此现有节点的 /crs/oracle/product/11.1.0/crs/oui/bin 目录,键入 ./addNode.
将新节点添加到数据库层 1 作为用户 oracle 登录到其中一个现有节点中。 2 从此现有节点的 /opt/oracle/product/11.1.0/db_1/oui/bin 目录, 键入 ./addNode.sh 以启动 Oracle Universal Installer。 3 在 Welcome (欢迎)窗口中,单击 Next (下一步)。 4 在 Specify Cluster Nodes for Node Addition (指定节点添加的群集节点) 窗口中,验证选定的新节点,然后单击 Next (下一步)。 如果所有验证检查均已通过,则会显示 Cluster Node Addition Summary (群集节点添加摘要)窗口。 5 单击 Install (安装)。 Cluster Node Addition Progress (群集节点添加进度)窗口会显示节点 添加进度的状态。 6 屏幕出现提示时,作为用户 root 在新节点上运行 /opt/oracle/product/11.1.0/db_1/root.
4 作为用户 oracle 键入以下命令,以停止所有节点上的侦听程序: lsnrctl stop 5 当此操作成功后,键入 netca 以启动 Net Configuration Assistant (网络配置助手)。 6 选择 Cluster Configuration (群集配置),然后单击 Next (下一步)。 7 在 Real Application Clusters → Active Nodes (活动节点)窗口中, 单击 Select All Nodes (选择全部节点),然后单击 Next (下一步)。 8 在 Welcome (欢迎)窗口中,选择 Listener Configuration (侦听程序 配置),然后单击 Next (下一步)。 9 在 Listener Configuration (侦听程序配置) → Listener (侦听程序) 窗口中,选择 Reconfigure (重新配置)并单击 Next (下一步)。 10 在 Listener Configuration (侦听程序配置) → Select Listener (选择 侦听程序)窗口中,从下拉式菜单中选择 LIS
将新节点添加到数据库实例层 1 在一个现有节点上,作为用户 oracle 键入以下命令,以启动 DBCA: dbca 2 在 Welcome (欢迎)窗口中,单击 Next (下一步)。 3 在 Operations (操作)窗口中,单击 Instance Management (实例管理),然后单击 Next (下一步)。 4 在 Instance Management (实例管理)窗口中,单击 Add Instance (添加实例),然后单击 Next (下一步)。 5 在 List of Cluster Databases (群集数据库列表)窗口中,选择现有的 数据库。 如果您的用户名未经过操作系统验证, DBCA 会提示您输入具有 SYSDBA 权限的数据库用户的用户名和密码。 6 键入用户名 sys 和密码,然后单击 Next (下一步)。 屏幕将显示 List of Cluster Database Instances (群集数据库实例列表) 窗口,上面显示与选定 RAC 数据库相关的实例以及每个实例的状态。 7 在 List of Cluster Database Instances (群集数据
从群集中删除节点 在执行本节中的过程时,确保从群集中选择并删除正确的节点。 从数据库实例层中删除节点 1 作为用户 oracle 登录。 2 从剩余的某个节点上,键入: dbca 3 在 Welcome (欢迎)窗口中,单击 Next (下一步)。 4 在 Operations (操作)窗口中,单击 Instance Management (实例管理),然后单击 Next (下一步)。 5 在 Instance Management (实例管理)窗口中,单击 Delete an instance (删除实例),然后单击 Next (下一步)。 6 在 List of Cluster Databases (群集数据库列表)窗口中,选择要删除 的实例所在的 RAC 数据库。 如果您的用户名未经过操作系统验证, DBCA 会提示您输入具有 SYSDBA 权限的数据库用户的用户名和密码。 7 键入用户名 sys 和密码,然后单击 Next (下一步)。 屏幕将显示 List of Cluster Database Instances (群集数据库实例列表) 窗口,上面显示与选定 RAC 数据库相关的实例以及每个实例
重新配置侦听程序 1 键入 netca。 2 在 Real Application Clusters→ Configuration (配置)窗口中,选择 Cluster Configuration (群集配置),然后单击 Next (下一步)。 3 在 Real Application Clusters→ Active Nodes (活动节点)窗口中, 选择要删除的节点,然后单击 Next (下一步)。 4 在 Welcome (欢迎)窗口中,选择 Listener Configuration (侦听程序 配置),然后单击 Next (下一步)。 5 在 Listener Configuration (侦听程序配置) → Listener (侦听程序) 窗口中,选择 Delete (删除)并单击 Next (下一步)。 6 在 Listener Configuration (侦听程序配置) → Select Listener (选择侦听程序)窗口中,选择 LISTENER 并单击 Next (下一步)。 当显示 Are you sure you want to delete listener LISTENER
从数据库层中删除节点 1 在要删除的节点上,作为用户 oracle 登录。 2 键入以下命令 (使用要删除的节点的公用名称)。例如,如果您要删 除 node3-pub: srvctl stop nodeapps -n node3-pub 忽略有关侦听程序的错误 CRS-0210。 3 在将要删除的节点上,请作为 root 登录。 4 如果要删除 Oracle 数据库软件,请键入以下命令: rm -rf /opt/oracle/product/11.1.0/db_1/* 从 Oracle 群集件层中删除节点 1 在要删除的节点上,作为用户 root 键入以下命令来禁用 CRS: /crs/oracle/product/11.1.0/crs/install/rootdelete.s h remote nosharedvar 2 在剩余的某个节点上,作为用户 root 键入以下命令: /crs/oracle/product/11.1.0/crs/install/rootdelete node.
添加和删除节点
索引 A J ASM, 75, 81, 92 从节点删除 , 98 库驱动程序 , 82 使用 RAW, 81 基础数据库 , 87 ASM, 75, 88 ext3 文件系统 , 87 OCFS2, 72 B 节点 配置共享的存储设备 , 92 删除 ASM, 98 帮助 , 60 Dell 支持 , 60 Oracle 支持 , 60 L LUN, 60 C CRS, 67 M My Oracle Support Web 站点 , 60 D Dell 培训 Web 站点 , 60 O Dell 支持 Web 站点 , 60 OCFS2 创建基础数据库 , 72 Dell 自动化脚本 , 61 OCR, 64 G 公用网络 , 79 Oracle 10g RAC 安装 , 61 Oracle Database 10g 安装 , 83 索引 101
Oracle 群集件介质 , 62 T Oracle Web 站点 , 60 投票磁盘 , 65 Oracle Universal Installer, 63 W Q 群集 删除节点 , 97 网络 添加节点 , 91 群集件 安装 , 62 删除节点 , 99 X R Y Redhat Web 站点 , 61 硬件要求 , 79 S Z 实例层 , 96 增补软件集 11.1.0.
Systèmes Dell™ PowerEdge™ Oracle® Database sous Enterprise Linux® x86_64 Guide d'installation et de configuration de la base de données Version 1.1 w w w. d e l l . c o m | s u p p o r t . d e l l .
Remarques et précautions REMARQUE : Une REMARQUE indique des informations importantes qui peuvent vous aider à mieux utiliser votre ordinateur. PRÉCAUTION : Une PRÉCAUTION vous avertit d'un risque de dommage matériel ou de perte de données en cas de non-respect des instructions données. ____________________ Les informations contenues dans ce document sont sujettes à modification sans préavis. © 2008–2009 Dell Inc. Tous droits réservés.
Table des matières 1 Présentation . . . . . . . . . . . . . . . . . . . . . Documentation nécessaire au déploiement de la base de données Dell|Oracle 11g . . . 109 . . . . . . . . . . . . . . . . . . 110 Obtention d'aide . . . . . . . . . . . . . . . . . . . . . . . . . 110 Support Dell . . . . . . . . . . . . . . . . . . . . . . . . . . 110 Terminologie utilisée dans le présent document Oracle Support 2 109 111 . . . . . . . . . . . . . . . . . . . . . . . .
Configuration de l'écouteur. 3 . . . . . . . . . . . . . . . . . . Création de la base de données initiale à l'aide d'OFCS (Oracle Cluster File System) 2 . . . . . . . . . . . . . . . . . 125 Création de la base de données initiale à l'aide d'ASM . . . . 128 . . . . . . . 133 . . . . . . . . . . . . . . . . 133 Installation d'Oracle Database 11g R1 (sur un seul nœud) . . . . Configuration du réseau public . Configuration du stockage de la base de données . . . . . .
4 Ajout et suppression de nœuds . Ajout d'un nœud à la couche réseau . . . . . . . 148 . . . . . . . . . . . . . Ajout d'un nœud à la couche Oracle Clusterware . 149 . . . . . . . Ajout d'un nœud à la couche de la base de données . . . . . . 150 . . . . . . . . . . . . . . . . . . 151 Ajout d'un nouveau nœud à la couche de l'instance de base de données . . . Suppression d'un nœud du cluster . . . . . . . . . . . . . . 152 . . . . . . . . . . . . . . .
Table des matières
Présentation Ce document s'applique aux configurations suivantes : • Oracle Database® 11g R1 exécutée sous Red Hat® Enterprise Linux® ou Oracle Enterprise Linux 5.
Terminologie utilisée dans le présent document • Les termes LUN (numéro d'unité logique) et disque virtuel sont synonymes et interchangeables. Le terme LUN est généralement utilisé pour les environnements de systèmes de stockage Fibre Channel Dell/EMC, tandis que le terme disque virtuel est plutôt réservé aux environnements de stockage Dell™ PowerVault™ SAS (Dell MD3000i et Dell MD3000i avec baie d'extension MD1000).
Oracle Support • Pour obtenir des informations sur les formations disponibles pour votre logiciel et clusterware Oracle ainsi que les coordonnées d'Oracle, rendez-vous sur le site Web d'Oracle oracle.com ou consultez votre documentation Oracle. • Pour obtenir des informations sur l'assistance technique, les téléchargements et d'autres informations techniques, rendez-vous sur le site Web My Oracle Support à l'adresse metalink.oracle.com.
Présentation
Installation d'Oracle® Database 11g R1 Real Application Clusters (RAC) Cette section indique comment installer Oracle 11g RAC. La procédure requise inclut l'installation des services CRS et du logiciel Oracle Database 11g. Dell conseille de créer une base de données initiale pour vérifier le fonctionnement du cluster avant de le déployer dans un environnement de production. Avant de commencer Les sections suivantes décrivent les opérations à effectuer avant l'installation d'Oracle 11g RAC.
Configuration de l'horloge système sur tous les nœuds Pour éviter que des erreurs ne se produisent pendant l'installation, attribuez à tous les nœuds des paramètres d'horloge système identiques. Synchronisez l'horloge système du nœud avec un serveur NTP (Network Time Protocol [Protocole de synchronisation réseau]).
7 Entrez les commandes suivantes pour démarrer le programme d'installation universel d'Oracle (OUI) : unset ORACLE_HOME /runInstaller Le message suivant s'affiche : Has 'rootpre.sh' been run by root? (Le script 'rootpre.sh' a-t-il été lancé par l'utilisateur root ?) [y/n] (n) 8 Entrez y pour continuer. 9 Dans la fenêtre Welcome (Bienvenue), cliquez sur Next (Suivant).
13 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. Pour modifier une interface, procédez comme suit : a Sélectionnez le nom de l'interface, puis cliquez sur Edit (Modifier). b Dans la zone Interface Type (Type d'interface) de la fenêtre Edit private interconnect type (Modifier le type d'interconnexion privée), sélectionnez le type d'interface approprié, puis cliquez sur OK.
15 Dans la fenêtre Specify Voting Disk Location (Indiquer l'emplacement du disque de vote), procédez comme suit : a Dans la zone Voting disk Configuration (Configuration du disque de vote), sélectionnez External Redundancy (Redondance externe). b Dans le champ Specify Voting disk Location (Indiquer l'emplacement du disque de vote), entrez : /dev/emcpowerb1 ou /u01/votingdisk1 si vous utilisez OCFS2.
18 Dans la fenêtre Configuration Assistant (Assistant de configuration), vérifiez que la mention Succeeded (Réussi) s'affiche dans la colonne Status (État) pour chaque nom d'outil. La fenêtre End of Installation (Fin de l'installation) s'affiche. 19 Cliquez sur Exit (Quitter). 20 Sur tous les nœuds, effectuez les opérations suivantes : a Vérifiez l'installation d'Oracle Clusterware en entrant la commande suivante : olsnodes -n -v La liste de tous les noms de nœud public du cluster s'affiche.
4 Entrez : /runInstaller Le programme d'installation universel d'Oracle (OUI) démarre. 5 Dans la fenêtre Welcome (Bienvenue), cliquez sur Next (Suivant). 6 Dans la fenêtre Select Installation Type (Sélection du type d'installation), cliquez sur Enterprise Edition, puis sur Next (Suivant). 7 Dans le champ Path (Chemin d'accès) de la fenêtre Specify Home Details (Indiquer l'emplacement racine), vérifiez que le répertoire racine d'Oracle est /opt/oracle/product/11.1.
Installation du groupe de correctifs 1.1.0.7 d'Oracle 11g R1 Téléchargez et extrayez les logiciels d'installation en procédant comme suit : 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 /opt/oracle/patches. 3 Ouvrez un navigateur Web et accédez au site de support Oracle www.metalink.oracle.com. 4 Connectez-vous à votre compte Oracle Metalink. Recherchez le correctif 6890831 pour la plate-forme Linux x86_64.
Installation du patchset 11.1.0.7 d'Oracle Clusterware REMARQUE : Vous devez installer le groupe de correctifs à partir du nœud sur lequel Oracle RAC 10g R1 est installé. 1 Lancez le programme d'installation universel d'Oracle (OUI). Pour ce faire, entrez les commandes suivantes dans la fenêtre de terminal, puis appuyez sur : cd /opt/oracle/patches/Disk1/ ./runInstaller 2 La fenêtre Welcome (Bienvenue) s'affiche. Cliquez sur Next (Suivant).
Installation du groupe de correctifs 11.1.0.7 pour Oracle Database REMARQUE : Avant d'installer le groupe de correctifs, vérifiez que tous les services Oracle sont arrêtés. Effectuez les opérations suivantes avant de créer un écouteur et la base de données initiale. Installation du groupe de correctifs 1 Sur le premier nœud, ouvrez une fenêtre de terminal. 2 Ouvrez une session en tant qu'utilisateur oracle. 3 Arrêtez les applications Oracle Clusterware sur tous les nœuds.
12 Dans la fenêtre Summary (Résumé), cliquez sur Install (Installer). Le programme OUI 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. 13 Ouvrez une fenêtre de terminal. 14 Entrez la commande suivante et appuyez sur : /opt/oracle/product/11.1.0/db_1/root.
5 Sélectionnez Cluster Configuration (Configuration du cluster), puis cliquez sur Next (Suivant). 6 Dans la fenêtre TOPSNodes, cliquez sur Select All Nodes (Sélectionner tous les nœuds), puis sur Next (Suivant). 7 Dans la fenêtre de bienvenue, cliquez sur Listener configuration (Configuration de l'écouteur), puis sur Next (Suivant). 8 Dans la fenêtre Listener Configuration→ Listener (Configuration de l'écouteur, Écouteur), sélectionnez Add (Ajouter), puis cliquez sur Next (Suivant).
Création de la base de données initiale à l'aide d'OFCS (Oracle Cluster File System) 2 1 Sur le premier nœud, ouvrez une session en tant qu'utilisateur oracle et entrez : $CRS_HOME/bin/cluvfy stage -pre dbcfg -n nœud1,nœud2 -d $ORACLE_HOME -verbose où nœud1 et nœud2 sont les noms d'hôte public. Si le système n'est pas configuré correctement, voir le document Troubleshooting Guide (Guide de dépannage) pour plus d'informations.
9 Dans la fenêtre Database Credentials (Autorisations de la base de données) : a Cliquez sur Use the same password for all accounts (Utiliser le même mot de passe pour tous les comptes). b Complétez les champs relatifs au mot de passe. c Cliquez sur Suivant. 10 Dans la fenêtre Storage Options (Options de stockage), sélectionnez Cluster File System (Système de fichiers du cluster), puis cliquez sur Next (Suivant).
18 Dans la fenêtre Summary (Résumé), cliquez sur OK pour créer la base de données. REMARQUE : La création de la base de données initiale peut durer plus d'une heure. REMARQUE : Si un message Enterprise Manager Configuration Error (Erreur de configuration d'Enterprise Manager) s'affiche pendant la création de la base de données initiale, cliquez sur OK pour ne pas en tenir compte. Une fois la création de la base de données terminée, la fenêtre Password Management (Gestion des mots de passe) s'affiche.
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. Effectuez les opérations suivantes : 1 Connectez-vous en tant qu'utilisateur oracle, puis entrez : $CRS_HOME/bin/cluvfy stage -pre dbcfg -n nœud1,nœud2 -d $ORACLE_HOME -verbose où nœud1 et nœud2 sont les noms d'hôte public et $ORACLE_HOME le répertoire racine de la base de données Oracle.
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), sélectionnez une option de mot de passe, 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) (Gestion automatique du stockage) et cliquez sur Next (Suivant).
14 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 (GDbdd, par exemple), sélectionnez External Redundancy (Redondance externe), puis sélectionnez les disques à inclure dans le groupe.
22 Dans la fenêtre Initialization Parameters (Paramètres d'initialisation), procédez comme suit : a Sélectionnez Custom (Personnaliser). b Dans Shared Memory Management (Gestion de la mémoire partagée), sélectionnez Automatic (Automatique). c Dans les fenêtres SGA Size (Taille SGA) et PGA Size (Taille PGA), entrez les informations appropriées. d Cliquez sur Next (Suivant). 23 Dans la fenêtre Database Storage (Stockage de la base de données), cliquez sur Next (Suivant).
27 Procédez comme suit pour chaque nœud. a Pour savoir quelle instance de base de données se trouve sur ce nœud, entrez : srvctl status database -d b Pour ajouter la variable d'environnement ORACLE_SID du profil utilisateur oracle, entrez les commandes suivantes : echo "export ORACLE_SID=racdbx" >> /home/oracle/.bash_profile source /home/oracle/.bash_profile où racdbx représente l'identificateur de l'instance de base de données attribué au nœud.
Installation d'Oracle Database 11g R1 (sur un seul nœud) Cette section contient des informations sur la configuration initiale et les procédures de réinstallation décrites dans le document Oracle Database on Enterprise Linux x86_64 Operating System and Hardware Installation Guide (Oracle Database sous Enterprise Linux x86_64 - Guide d'installation du système d'exploitation et du matériel).
Configuration du stockage de la base de données Configuration du stockage de la base de données à l'aide du système de fichiers ext3 Si vous disposez d'un périphérique de stockage supplémentaire, procédez comme suit : 1 Ouvrez une session en tant que root. 2 Entrez la commande suivante : cd /opt/oracle 3 Entrez la commande suivante : mkdir oradata recovery À l'aide de fdisk, créez une partition pour le stockage des fichiers de la base de données. Par exemple : sdb1, si le périphérique de stockage est sdb.
7 Entrez la commande suivante : chown -R oracle.
Par exemple, si les noms de vos groupes de disques ASM1 et ASM2 sont /dev/emcpowerc1 et /dev/emcpowerd1, alors le fichier permissions.ini sera modifié comme suit : [asm] asm1=/dev/emcpowerc1 asm2=/dev/emcpowerd1 Pour ajouter un groupe de disques ASM supplémentaire, ASM3, en utilisant /dev/emcpowere1, ajoutez une autre entrée à la session : asm3=/dev/emcpowere1 2 Entrez la commande suivante pour exécuter le script permissions.py : /dell-oracle-deployment/scripts/permissions.
4 Répétez la procédure de l'étape 1 à l'étape 3 pour tout disque ASM supplémentaire à créer. 5 Vérifiez que les disques ASM sont créés et marqués pour l'utilisation d'ASM. Dans la fenêtre de terminal, entrez la commande suivante, puis appuyez sur : service oracleasm listdisks Les disques créés à l'étape 3 sont répertoriés dans la fenêtre de terminal.
9 Dans la fenêtre Specify Home Details (Indiquer l'emplacement racine), vérifiez que la valeur du champ Path (Chemin d'accès) est la suivante : /opt/oracle/product/11.1.0/db_1 10 Cliquez sur Next (Suivant). 11 Dans la fenêtre Product-Specific Prerequisite Checks (Vérification des conditions prérequises), cliquez sur Next (Suivant). 12 Lorsque le message Warning (Avertissement) s'affiche, n'en tenez pas compte. Cliquez sur Yes (Oui).
Installation du groupe de correctifs 11.1.0.7 pour Oracle Database 11g R1 Téléchargez et extrayez les logiciels d'installation en procédant comme suit : 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 /opt/oracle/patches. 3 Ouvrez un navigateur Web et accédez au site My Oracle Support : www.metalink.oracle.com. 4 Connectez-vous à votre compte Oracle Metalink.
6 Ouvrez une session en tant qu'utilisateur oracle. 7 Entrez la commande suivante, puis appuyez sur : export ORACLE_HOME= /opt/oracle/product/11.1.0/db_1 8 Lancez le programme OUI (Oracle Universal Installer). Pour ce faire, entrez les commandes suivantes dans la fenêtre de terminal, puis appuyez sur : cd /opt/oracle/patches/Disk1/ ./runInstaller 9 La fenêtre Welcome (Bienvenue) s'affiche. Cliquez sur Next (Suivant).
16 Recommencez l'étape 13 et l'étape 14 sur les autres nœuds, un à la fois. Une fois l'opération terminée, la fenêtre End of Installation (Fin de l'installation) s'affiche. REMARQUE : Cette procédure peut prendre plusieurs minutes. 17 Dans la fenêtre End of Installation (Fin de l'installation), cliquez sur Exit (Quitter). 18 Cliquez sur Yes (Oui) pour quitter le programme OUI. 19 Sur le premier nœud, ouvrez une fenêtre de terminal. Ouvrez une session en tant qu'utilisateur oracle.
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 DBCA d'Oracle en entrant : dbca 3 Dans la fenêtre Welcome (Bienvenue), cliquez sur Next (Suivant).
11 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 à la section “Configuration du stockage de la base de données à l'aide du système de fichiers ext3”, page 134 (par exemple, /opt/oracle/recovery). Sélectionnez l'emplacement approprié dans le champ Flash Recovery Area (Zone de récupération Flash). Sélectionnez Enable Archiving (Activer l'archivage), puis cliquez sur Next (Suivant).
19 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 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.
9 Dans la fenêtre Create ASM Instance (Créer une instance ASM), entrez le mot de passe de l'utilisateur sys, puis cliquez sur Next (Suivant). 10 Lorsqu'un message indiquant que 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).
15 Dans la fenêtre ASM Disk Groups (Groupes de disques ASM), sélectionnez le groupe à utiliser pour le stockage de la base de données (GDbdd, par exemple), puis cliquez sur Next (Suivant). 16 Dans la fenêtre Database File Locations (Emplacement des fichiers de base de données), cochez Use Common Location for All Database Files (Utiliser un emplacement commun pour tous les fichiers de base de données), puis cliquez sur Next (Suivant).
Ajout et suppression de nœuds Cette section indique comment ajouter ou supprimer un nœud dans un cluster. REMARQUE : Le nouveau nœud doit posséder la même configuration que les nœuds existants (matériel et système d'exploitation). Pour ajouter un nœud à un cluster existant : • Ajoutez le nœud à la couche réseau. • Configurez le stockage partagé. • Ajoutez le nœud aux couches d'Oracle Clusterware, de la base de données et de l'instance de base de données.
3 Vérifiez que chaque nœud parvient à détecter les unités de stockage ou disques logiques. Consultez le document Oracle Database on Enterprise Linux x86_64 Storage and Networking Guide (Oracle Database sous Enterprise Linux x86_64 - Guide d'installation du système d'exploitation et du matériel).
c Vérifiez que le nouveau nœud peut accéder aux disques ASM. d Dans la fenêtre de terminal, entrez la commande suivante, puis appuyez sur : service oracleasm scandisks 6 Vérifiez que les disques ASM sont disponibles sur le nouveau nœud. Dans la fenêtre de terminal, entrez la commande suivante, puis appuyez sur : service oracleasm listdisks Tous les disques disponibles des autres nœuds sont répertoriés.
7 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). 8 Dans la fenêtre End of Cluster Node Addition (Fin de l'ajout du nœud au cluster), cliquez sur Exit (Quitter), puis sur Yes (Oui) dans la fenêtre qui s'affiche. Ajout d'un nœud à la couche de la base de données 1 Ouvrez une session en tant qu'utilisateur oracle sur l'un des nœuds existants. 2 À partir du répertoire /opt/oracle/product/11.1.
Reconfiguration de l'écouteur Cette section indique comment reconfigurer l'écouteur, qui est requis pour la connexion des clients distants à la base de données. REMARQUE : Les étapes ci-dessous supposent que vous souhaitiez arrêter l'écouteur pour le reconfigurer. Si tel n'est pas le cas, la procédure à suivre peut être légèrement différente. Effectuez les opérations suivantes sur un seul nœud : 1 Ouvrez une session en tant que root.
11 Dans la fenêtre Listener Configuration→ Select Protocols (Configuration de l'écouteur, Sélection des protocoles), sélectionnez TCP, puis cliquez sur Next (Suivant). 12 Dans la fenêtre Listener Configuration→ TCP/IP Protocol (Configuration de l'écouteur, Protocole TCP/IP), sélectionnez Use the standard port number of 1521 (Utiliser le numéro de port standard 1521), puis cliquez sur Next (Suivant).
6 Entrez le nom d'utilisateur sys et le mot de passe correspondant, 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 bases de données du cluster), cliquez sur Next (Suivant).
Suppression d'un nœud du cluster Lorsque vous effectuez les procédures décrites dans cette section, vérifiez que le nœud sélectionné est bien celui qui doit être supprimé. Suppression du nœud de la couche de l'instance de base de données 1 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).
8 Sélectionnez l'instance à supprimer et cliquez sur Next (Suivant). Il ne peut pas s'agir de l'instance locale à partir de laquelle vous exécutez l'assistant DBCA. Si vous sélectionnez l'instance locale, l'assistant DBCA affiche une erreur. Le cas échéant, cliquez sur OK, sélectionnez une autre instance, puis cliquez sur Finish (Terminer). Si des services sont attribués à cette instance, la fenêtre DBCA Services Management (Gestion des services de l'assistant DBCA) s'affiche.
6 Dans la fenêtre Listener Configuration→ Select Listener (Configuration de l'écouteur, Sélection de l’écouteur), sélectionnez LISTENER, puis cliquez sur Next (Suivant). Lorsque le message “Are you sure you want to delete listener LISTENER?” (Voulez-vous vraiment supprimer l'écouteur LISTENER ?) s'affiche, cliquez sur Yes (Oui). 7 Dans la fenêtre Listener Configuration→ Listener Deleted (Configuration de l'écouteur, Écouteur supprimé), cliquez sur Next (Suivant).
Suppression d'un nœud de la couche Oracle Clusterware 1 Ouvrez une session en tant qu'utilisateur root sur le nœud à supprimer, puis désactivez les services CRS en entrant : /crs/oracle/product/11.1.0/crs/install/rootdelete. sh remote nosharedvar 2 Ensuite, ouvrez une session en tant que root sur l'un des nœuds restants, puis entrez : /crs/oracle/product/11.1.0/crs/install/rootdelete node.
Ajout et suppression de nœuds
Index A D aide, 110 support Dell, 110 support Oracle, 111 disque de vote, 117 ASM, 128, 135, 148 pilote de bibliothèque, 136 suppression d'un nœud, 156 utilisation de RAW, 135 assistant de configuration de base de données, 125 E écouteur configuration, 123, 141 reconfiguration, 151, 155 F B formation Dell site Web, 110 base de données initiale, 142 ASM, 128, 144 OCFS2, 125 système de fichiers ext3, 142 G C cluster suppression de nœuds, 154 Clusterware installation, 114 suppression d'un nœud, 157
M R My Oracle Support site Web, 111 Redhat site Web, 113 réseau ajout de nœuds, 147 N nœud configuration du stockage partagé, 148 suppression d'ASM, 156 réseau public, 133 S script d'automatisation Dell, 113 site Web Oracle, 111 O stockage de base de données, 134 OCFS2 création de la base de données initiale, 125 support de Dell site Web, 110 OCR, 116 Oracle 10g RAC installation, 113 Oracle Clusterware CD, 114 Oracle Database 10g installation, 137 OUI (Oracle Universal Installer), 115 P patchset
Dell™ PowerEdge™-Systeme Oracle® Database auf Enterprise Linux® x86_64 Einrichtungsund Installationsanleitung für die Datenbank Version 1.1 w w w. d e l l . c o m | s u p p o r t . d e l l .
Anmerkungen und Vorsichtshinweise ANMERKUNG: Eine ANMERKUNG macht auf wichtige Informationen aufmerksam, mit denen Sie das System besser einsetzen können. VORSICHTSHINWEIS: Mit einem VORSICHTSHINWEIS werden Sie auf mögliche Gefahrenquellen hingewiesen, die Hardwareschäden oder Datenverlust zur Folge haben können, wenn die Anweisungen nicht befolgt werden. ____________________ Irrtümer und technische Änderungen vorbehalten. © 2008–2009 Dell Inc. Alle Rechte vorbehalten.
Inhalt 1 Übersicht . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Erforderliche Dokumentation zum Bereitstellen von Dell|Oracle 11g Database . . . . . . . . . . . . . . . . . . . . . 167 In diesem Dokument verwendete Terminologie . . . . . . . . . . . . 168 . . . . . . . . . . . . . . . . . . . . . . . 169 . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169 Wie Sie Hilfe bekommen . Dell Support Oracle Support 2 167 . . . . . . . . . . . . . . . . . . . . . . . . . . .
Erstellen der Startdatenbank mit Oracle Cluster File System (OCFS) 2 . . . . . . . . . . . . . . . Erstellen der Startdatenbank mit ASM . 3 . . . . . . . . . . 184 . . . . . . . . . . . . . . . 187 Installation von Oracle 11g R1 Database (Einzelknoten) . . . . . . . . . . . . . . . . . . . . . . . . . 193 . . . . . . . . . . . . . 193 . . . . . . . . . . . . . . .
4 Hinzufügen und Entfernen von Knoten Hinzufügen eines neuen Knotens zur Netzwerkschicht . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 207 208 Konfiguration von gemeinsamem Speicher auf dem neuen Knoten mit Automatic Storage Mangement (ASM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 208 Hinzufügen eines neuen Knotens zur Oracle ClusterwareSchicht . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210 . . . . . . . . . . . . . . . . . . .
Inhalt
Übersicht Dieses Dokument betrifft: • Oracle® Database 11g R1 auf Red Hat® Enterprise Linux® oder Oracle Enterprise Linux 5.
• Oracle Database on Enterprise Linux x86_64 Troubleshooting Guide (Oracle Database on Enterprise Linux x86_64 Fehlerbehebungshandbuch) – Beschreibt Maßnahmen zum Lösen von Problemen, die während der Installationsvorgänge in den vorangegangenen Modulen auftreten können. ANMERKUNG: Alle Module enthalten Informationen darüber, wie Sie technische Unterstützung von Dell erhalten.
Wie Sie Hilfe bekommen Dell Support • Ausführliche Informationen zur Verwendung des Systems finden Sie in der zusammen mit den Systemkomponenten gelieferten Dokumentation. • Whitepapers, Informationen zu den von Dell unterstützten OracleKonfigurationen und allgemeine Informationen erhalten Sie auf der Oracle Databases and Applications Solutions-Website unter dell.com/oracle.
Übersicht
Installation von Oracle® 11g R1 Database Real Application Clusters (RAC) In diesem Abschnitt sind die erforderlichen Schritte zur Installation von Oracle 11g RAC beschrieben. Dies beinhaltet die Installation von CRS und Oracle Database 11g. Es wird empfohlen, eine Startdatenbank einzurichten, um zu überprüfen, ob der Cluster korrekt funktioniert, bevor Sie ihn in einer Produktionsumgebung einsetzen.
Konfiguration der Systemzeiteinstellung für alle Knoten Um Fehler beim Installationsvorgang zu vermeiden, konfigurieren Sie alle Clusterknoten mit identischen Systemzeiteinstellungen. Synchronisieren Sie die Knotensystemzeit mit einem NTP-Server (Network Time Protocol).
7 Geben Sie die folgenden Befehle ein, um den Oracle Universal Installer zu starten: unset ORACLE_HOME /runInstaller Die folgende Meldung wird angezeigt: Has ’rootpre.sh’ been run by root? [y/n] (n) 8 Geben Sie y ein, um fortzufahren. 9 Klicken Sie im Begrüßungsfenster auf Next (Weiter). 10 Ändern Sie im Fenster Specify Home Details (Stamm-Details festlegen) den „Oracle home path“ (Oracle-Stammpfad) in /crs/oracle/product/11.1.0/crs, und klicken Sie auf Next (Weiter).
13 Überprüfen Sie im Fenster Specify Network Interface Usage (Nutzung der Netzwerkschnittstelle festlegen), ob die öffentlichen und privaten Schnittstellennamen korrekt sind. Um eine Schnittstelle zu ändern, gehen Sie wie folgt vor: a Wählen Sie den Schnittstellennamen aus, und klicken Sie auf Edit (Bearbeiten).
15 Führen Sie im Fenster Specify Voting Disk Location (Speicherort für Voting-Datenträger festlegen) die folgenden Schritte durch: a Wählen Sie im Feld Votingdisk Configuration (Voting-DatenträgerKonfiguration) den Eintrag External Redundancy (Externe Redundanz) aus. b Geben Sie im Feld Specify Votingdisk Location (Speicherort für Voting-Datenträger festlegen) Folgendes ein: /dev/emcpowerb1 oder /u01/votingdisk1, wenn Sie OCFS2 verwenden.
17 Befolgen Sie die Anweisungen im Fenster, und klicken Sie dann auf OK. ANMERKUNG: Falls root.sh beim Formatieren des Voting-Datenträgers nicht mehr reagiert, installieren Sie den Oracle-Patch 4679769, und wiederholen Sie dann diesen Schritt. ANMERKUNG: Führen Sie root.sh erst auf dem primären Knoten und dann der Reihe nach auf allen anderen Knoten aus. Beispiel: Führen Sie root.sh auf Knoten1 aus 1. Nachdem root.sh auf Knoten 1 beendet wurde, fahren Sie mit Knoten 2 fort usw. Führen Sie root.
Installation der Oracle 11G R1-Datenbanksoftware 1 Geben Sie als Benutzer root ein: xhost + 2 Mounten Sie als Benutzer root das Oracle Database 11g-Medium. 3 Melden Sie sich als oracle an und geben Sie folgende Befehle ein: /bin/ cluvfy stage -pre dbinst -n Knoten1,Knoten2 -r 11gR1 -verbose wobei Knoten1 und Knoten2 die öffentlichen Hostnamen sind. Wenn das System nicht korrekt konfiguriert ist, lesen Sie das Handbuch zur Fehlerbehebung, um weitere Informationen zu erhalten.
8 Klicken Sie im Fenster Specify Hardware Cluster Installation Mode (Installationsmodus für Hardware-Cluster festlegen) auf Select All (Alle auswählen), und klicken Sie danach auf Next (Weiter). 9 Überprüfen Sie, ob im Fenster Product-Specific Prerequisite Checks (Produktspezifische Vorüberprüfungen) in der Spalte Status für jede Systemüberprüfung der Eintrag Succeeded (Erfolgreich) angezeigt wird, und klicken Sie dann auf Next (Weiter).
5 Laden Sie den Patch in das Verzeichnis /opt/oracle/patches herunter. 6 Um die heruntergeladene Zip-Datei zu extrahieren, geben Sie in einem Terminalfenster den folgenden Befehl ein, und drücken Sie die : unzip p6890831_111070_Linux-x86-64 Bevor Sie beginnen Führen Sie die folgenden Schritte aus, bevor Sie mit dem Upgradeprozess beginnen: 1 Melden Sie sich am ersten Knoten als Benutzer root an.
4 Klicken Sie im Fenster Specify Hardware Cluster Installation Mode (Hardware-Cluster-Installationsmodus festlegen) auf Next (Weiter). 5 Klicken Sie im Bildschirm Summary (Übersicht) auf Install (Installieren). Der Oracle Universal Installer untersucht das System, zeigt alle benötigten Patches an und installiert diese auf dem System. Nach Abschluss des Vorgangs wird der Bildschirm End of Installation (Installation abgeschlossen) angezeigt. ANMERKUNG: Dieser Vorgang kann mehrere Minuten dauern.
Installation des Patchsets 1 Öffnen Sie auf dem ersten Knoten ein Terminalfenster. 2 Melden Sie sich als Benutzer oracle an. 3 Beenden Sie auf allen Knoten die Oracle ClusterwareKnotenanwendungen. Geben Sie im Terminalfenster den folgenden Befehl ein, und drücken Sie die : $ORACLE_HOME/bin/srvctl stop nodeapps -n 4 Wiederholen Sie Schritt 3 auf den verbleibenden Knoten, und ändern Sie den Knotennamen des jeweiligen Knotens.
13 Öffnen Sie ein Terminalfenster. 14 Geben Sie Folgendes ein und drücken Sie die : /opt/oracle/product/11.1.0/db_1/root.sh 15 Wiederholen Sie Schritt 13 und Schritt 14 auf den verbleibenden Knoten, und zwar jeweils nur für einen Knoten zugleich. Nach Abschluss des Vorgangs wird der Bildschirm End of Installation (Installation abgeschlossen) angezeigt. ANMERKUNG: Dieser Vorgang kann mehrere Minuten dauern.
6 Klicken Sie im Fenster TOPSNodes auf Select All Nodes (Alle Knoten auswählen) und anschließend auf Next (Weiter). 7 Wählen Sie im Begrüßungsfenster die Option Listener Configuration (Listener-Konfiguration) aus, und klicken Sie auf Weiter. 8 Wählen Sie im Fenster Listener Configuration→ Listener (ListenerKonfiguration, Listener) die Option Add (Hinzufügen), und klicken Sie auf Next (Weiter).
Erstellen der Startdatenbank mit Oracle Cluster File System (OCFS) 2 1 Melden Sie sich als oracle auf dem ersten Knoten an, und geben Sie Folgendes ein: $CRS_HOME/bin/cluvfy stage -pre dbcfg -n Knoten1,Knoten2 -d $ORACLE_HOME -verbose wobei Knoten1 und Knoten2 die öffentlichen Hostnamen sind. Wenn das System nicht korrekt konfiguriert ist, lesen Sie das Handbuch zur Fehlerbehebung, um weitere Informationen zu erhalten.
9 Führen Sie im Fenster Database Credentials (Datenbank-Zugriffsrechte) Folgendes durch: a Klicken Sie auf Use the same password for all accounts (Einheitliches Kennwort für alle Konten verwenden). b Schließen Sie die Kennwortauswahl und die erforderlichen Eingaben ab. c Klicken Sie auf Next (Weiter). 10 Wählen Sie im Fenster Storage Options (Speicheroptionen) die Option Cluster File System (Clusterdateisystem) aus, und klicken Sie anschließend auf Weiter.
18 Klicken Sie im Fenster Summary (Übersicht) auf OK, um die Datenbank zu erstellen. ANMERKUNG: Die Erstellung der Startdatenbank kann mehr als eine Stunde dauern. ANMERKUNG: Wenn Sie während der Erstellung der Startdatenbank eine Fehlermeldung vom Typ Enterprise Manager Configuration Error (Enterprise Manager-Konfigurationsfehler) erhalten, klicken Sie auf OK, um die Meldung zu übergehen. Wenn die Datenbankerstellung abgeschlossen ist, wird das Fenster Password Management (Kennwortverwaltung) angezeigt.
Erstellen der Startdatenbank mit ASM In diesem Abschnitt sind die Vorgehensweisen zum Erstellen einer Startdatenbank mit Oracle ASM sowie zum Überprüfen der Startdatenbank beschrieben. Führen Sie folgende Schritte durch: 1 Melden Sie sich als oracle an und geben Sie folgende Befehle ein: $CRS_HOME/bin/cluvfy stage -pre dbcfg -n Knoten1,Knoten2 -d $ORACLE_HOME -verbose Dabei sind Knoten1 und Knoten2 die öffentlichen Hostnamen, und $ORACLE_HOME ist der Stammname der Oracle-Datenbank.
9 Wählen Sie im Fenster Database Credentials (Datenbank-Zugriffsrechte) eine Kennwortoption, 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).
14 Führen Sie im Fenster Create Disk Group (Datenträgergruppe erstellen) folgende Schritte durch: a Geben Sie einen Namen für die zu erstellende Datenträgergruppe ein, etwa databaseDG, wählen Sie External Redundancy (Externe Redundanz), und wählen Sie dann die Datenträger für die Datenträgergruppe aus.
22 Führen Sie im Fenster Initialization Parameters (Initialisierungsparameter) die folgenden Schritte aus: a Wählen Sie Custom (Benutzerdefiniert). b Wählen Sie bei Shared Memory Management (Verwaltung des gemeinsamen Speichers) die Option Automatic (Automatisch). c Geben Sie in den Fenstern SGA Size (SGA-Größe) und PGA Size (PGA-Größe) die zutreffenden Informationen ein. d Klicken Sie auf Next (Weiter). 23 Klicken Sie im Fenster Database Storage (Datenbankspeicher) auf Next (Weiter).
27 Führen Sie auf jedem Knoten die folgenden Schritte aus: a Stellen Sie fest, welche Datenbankinstanz auf diesem Knoten vorhanden ist, indem Sie eingeben: srvctl status database -d b Geben Sie die folgenden Befehle ein, um dem oracle-Benutzerprofil die Umgebungsvariable ORACLE_SID hinzuzufügen: echo "export ORACLE_SID=racdbx" >> /home/oracle/.bash_profile source /home/oracle/.bash_profile wobei racdbx dem Bezeichner der Datenbankinstanz auf dem Knoten entspricht.
Installation von Oracle 11g R1 Database RAC
Installation von Oracle 11g R1 Database (Einzelknoten) Dieser Abschnitt enthält Informationen über das Durchführen der Ersteinrichtung bzw. der Neuinstallation wie im Oracle Database on Enterprise Linux x86_64 Operating System and Hardware Installation Guide (Oracle Database on Enterprise Linux x86_64 Installationshandbuch für Betriebssystem und Hardware) beschrieben.
Konfigurieren des Datenbankspeichers Konfiguration des Datenbankspeichers mit ext3-Dateisystem Wenn Sie über ein zusätzliches Speichergerät verfügen, führen Sie folgende Schritte aus: 1 Melden Sie sich als root beim System an. 2 Geben Sie folgenden Befehl ein: cd /opt/oracle 3 Geben Sie folgenden Befehl ein: mkdir oradata recovery Erstellen Sie mit dem Dienstprogramm fdisk eine Partition zum Speichern Ihrer Datenbankdateien. Zum Beispiel: sdb1, falls das Speichergerät die Bezeichnung sdb hat.
7 Geben Sie folgenden Befehl ein: chown -R oracle.
Wenn Ihre ASM1- und ASM2-Datenträgergruppen zum Beispiel /dev/emcpowerc1 und /dev/emcpowerd1 sind, wird die Datei permissions.ini folgendermaßen geändert: [asm] asm1=/dev/emcpowerc1 asm2=/dev/emcpowerd1 Um eine weitere ASM-Datenträgergruppe hinzuzufügen, zum Beispiel ASM3 mit dem Namen /dev/emcpowere1, fügen Sie der Sitzung einen weiteren Eintrag hinzu: asm3=/dev/emcpowere1 2 Geben Sie den folgenden Befehl ein, um das Skript permissions.py auszuführen: /dell-oracle-deployment/scripts/permissions.
4 Wiederholen Sie Schritt 1 bis Schritt 3 für weitere zu erstellende ASMDatenträger. 5 Überprüfen Sie, ob die ASM-Datenträger erstellt wurden und für ASMVerwendung gekennzeichnet sind. Geben Sie im Terminalfenster den folgenden Befehl ein, und drücken Sie die : service oracleasm listdisks Die in Schritt 3 erstellten Datenträger werden im Terminalfenster aufgelistet.
8 Klicken Sie im Fenster Select Installation Type (Installationstyp auswählen) auf Enterprise Edition und anschließend auf Next (Weiter). 9 Stellen Sie im Fenster Specify Home Details (Stamm-Details festlegen) sicher, dass im Feld Path (Pfad) Folgendes eingetragen ist: /opt/oracle/product/11.1.0/db_1 10 Klicken Sie auf Next (Weiter). 11 Klicken Sie im Fenster Product-Specific Prerequisite Checks (Produktspezifische Vorüberprüfungen) auf Next (Weiter).
Installation des Patchsets 11.1.0.7 für Oracle Database 11g R1 Führen Sie die folgenden Schritte aus, um die Installationssoftware herunterzuladen und zu extrahieren: 1 Melden Sie sich am ersten Knoten als Benutzer oracle an. 2 Erstellen Sie für die Patches und Dienstprogramme den Ordner /opt/oracle/patches. 3 Öffnen Sie ein Browserfenster und rufen Sie die My Oracle Support-Website metalink.oracle.com auf. 4 Melden Sie sich beim Oracle Metalink-Account an.
4 Wiederholen Sie Schritt 3 auf den verbleibenden Knoten, und ändern Sie den Knotennamen des jeweiligen Knotens. 5 Öffnen Sie auf dem ersten Knoten ein neues Terminalfenster. 6 Melden Sie sich als Benutzer oracle an. 7 Geben Sie die folgende Zeile ein, und drücken Sie die : export ORACLE_HOME= /opt/oracle/product/11.1.
15 Geben Sie die folgende Zeile ein, und drücken Sie die : /opt/oracle/product/11.1.0/db_1/root.sh 16 Wiederholen Sie Schritt 13 und Schritt 14 auf den verbleibenden Knoten, und zwar jeweils nur für einen Knoten zugleich. Nach Abschluss des Vorgangs wird der Bildschirm End of Installation (Installation abgeschlossen) angezeigt. ANMERKUNG: Dieser Vorgang kann mehrere Minuten dauern. 17 Klicken Sie im Bildschirm End of Installation (Installation abgeschlossen) auf Exit (Beenden).
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 (Aktionen) auf Create a Database (Datenbank erstellen) und danach auf Next (Weiter).
12 Klicken Sie im Fenster Database Content (Datenbankinhalt) auf Next (Weiter). 13 Klicken Sie im Fenster Initialization Parameters (Initialisierungs-Parameter) auf Next (Weiter). 14 Klicken Sie im Fenster Database Storage (Datenbankspeicher) auf Next (Weiter). 15 Aktivieren Sie im Fenster Creation Options (Erstellungsoptionen) das Kontrollkästchen Create Database (Datenbank erstellen), und klicken Sie anschließend auf Finish (Fertig stellen).
Erstellen der Startdatenbank mit Oracle Automatic Storage Management (ASM) Wenn Sie den Speicher mit Oracle ASM konfiguriert haben, gehen Sie zum Erstellen einer Startdatenbank mit dem Datenbankerstellungsassistenten (DBCA) wie folgt vor: 1 Starten Sie DBCA, indem Sie als Benutzer oracle folgenden Befehl eingeben: dbca & 2 Klicken Sie im Begrüßungsfenster auf Next (Weiter). 3 Klicken Sie im Fenster Operations (Aktionen) auf Create a Database (Datenbank erstellen) und danach auf Next (Weiter).
12 Geben Sie im Fenster Create Disk Group (Datenträgergruppe erstellen) die Speicherinformationen für die Datenbankdateien ein, und klicken Sie auf OK. a Geben Sie einen Namen für die zu erstellende Datenträgergruppe ein, etwa databaseDG, wählen Sie External Redundancy (Externe Redundanz), und wählen Sie dann die Datenträger für die Datenträgergruppe aus. b Wenn Sie die RAW-Geräteschnittstelle verwenden, wählen Sie /dev/raw/ASM1.
16 Aktivieren Sie im Fenster Database File Locations (Datenbankdateispeicherorte wählen) das Kontrollkästchen Use Common Location for All Database Files (Gemeinsamen Speicherort für alle Datenbankdateien verwenden), und klicken Sie auf Weiter. 17 Klicken Sie im Fenster Recovery Configuration (Wiederherstellungsoptionen) auf Browse (Durchsuchen).
Hinzufügen und Entfernen von Knoten In diesem Abschnitt wird beschrieben, wie Knoten zu einem Cluster hinzugefügt bzw. aus einem Cluster entfernt werden. ANMERKUNG: Der neue Knoten muss die gleiche Hardware- und Betriebssystemkonfiguration aufweisen wie die bestehenden Knoten. So fügen Sie einem bestehenden Cluster einen Knoten hinzu: • Fügen Sie der Netzwerkschicht einen Knoten hinzu. • Konfigurieren Sie gemeinsamen Speicher.
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. Weitere Informationen erhalten Sie im Oracle Database on Enterprise Linux x86_64 Operating System and Hardware Installation (Installationshandbuch für Betriebssystem und Hardware). 2 Konfigurieren Sie das öffentliche und private Netzwerk auf dem neuen Knoten.
5 Öffnen Sie ein Terminalfenster und führen Sie auf dem neuen Knoten die folgenden Schritte durch: a Geben Sie ein: service oracleasm configure. b Machen Sie auf allen Knoten die folgenden Eingaben: Default user to own the driver interface [ ]: oracle Default group to own the driver interface [ ]: dba Start Oracle ASM library driver on boot (y/n) [n]: y Fix permissions of Oracle ASM disks on boot (y/n) [y]: y c Überprüfen Sie, ob der neue Knoten auf die ASM-Datenträger zugreifen kann.
Hinzufügen eines neuen Knotens zur Oracle Clusterware-Schicht 1 Melden Sie sich auf einem der bestehenden Knoten als oracle an. 2 Geben Sie auf dem vorhandenen Knoten im Verzeichnis /crs/oracle/product/11.1.0/crs/oui/bin den Befehl ./addNode.sh ein, um den Oracle Universal Installer zu starten. 3 Klicken Sie im Begrüßungsfenster auf Next (Weiter).
Hinzufügen eines neuen Knotens zur Datenbankschicht 1 Melden Sie sich auf einem der bestehenden Knoten als oracle an. 2 Geben Sie auf dem vorhandenen Knoten im Verzeichnis /opt/oracle/product/11.1.0/db_1/oui/bin den Befehl ./addNode.sh ein, um den Oracle Universal Installer zu starten. 3 Klicken Sie im Begrüßungsfenster auf Next (Weiter).
Neukonfiguration des Listeners In diesem Abschnitt werden die Schritte zum Neukonfigurieren des Listeners beschrieben, der erforderlich ist, damit entfernte Clients Verbindung zu einer Datenbank aufnehmen können. ANMERKUNG: Beim folgenden Vorgang wird angenommen, dass Sie bereit sind, den Listener anzuhalten und den vorhandenen Listener neu zu konfigurieren. Andernfalls weicht die Vorgehensweise eventuell etwas von den untenstehenden Schritten ab.
11 Wählen Sie im Fenster Listener Configuration→ Select Protocols (Listener-Konfiguration, Protokolle auswählen) die Option TCP, und klicken Sie auf Next (Weiter). 12 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).
6 Geben Sie den Benutzernamen sys und das Kennwort ein, und klicken Sie auf Next (Weiter). Das Fenster List of Cluster Database Instances (Liste der ClusterDatenbankinstanzen) wird angezeigt. Hier sind die Instanzen angezeigt, die mit der von Ihnen ausgewählten RAC-Datenbank verbunden sind, sowie der Status jeder Instanz. 7 Klicken Sie im Fenster List of Cluster Database Instances (Liste von Cluster-Datenbankinstanzen) auf Next (Weiter).
Entfernen eines Knotens aus dem Cluster Achten Sie beim Durchführen der Maßnahmen in diesem Abschnitt darauf, dass Sie den richtigen Knoten zum Entfernen aus dem Cluster auswählen. Entfernen eines Knotens aus der Datenbankinstanz-Schicht 1 Melden Sie sich als Benutzer oracle an. 2 Geben Sie auf einem der anderen Knoten Folgendes ein: dbca 3 Klicken Sie im Begrüßungsfenster auf Next (Weiter).
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, können Sie nicht löschen. Wenn Sie die lokale Instanz auswählen, wird vom DBCA eine Fehlermeldung angezeigt. Klicken Sie in diesem Fall auf OK, wählen Sie eine andere Instanz aus, und klicken Sie auf Finish (Beenden). Falls dieser Instanz Dienste zugewiesen sind, wird das Fenster DBCA Services Management (DBCA-Diensteverwaltung) angezeigt.
5 Wählen Sie im Fenster Listener Configuration→ Listener (ListenerKonfiguration, Listener) die Option Delete (Löschen), und klicken Sie auf Next (Weiter). 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 delete listener LISTENER?“ angezeigt wird, klicken Sie auf Yes (Ja).
Entfernen eines Knotens aus der Datenbankschicht 1 Melden Sie sich bei dem zu löschenden Knoten als Benutzer oracle an. 2 Geben Sie den folgenden Befehl ein, und verwenden Sie dabei den öffentlichen Namen des zu löschenden Knotens. Im folgenden Beispiel wird der Name node3-pub verwendet: srvctl stop nodeapps -n node3-pub Übergehen Sie den Fehler CRS-0210 hinsichtlich des Listeners. 3 Melden Sie sich beim zu löschenden Knoten als Benutzer root an.
Stichwortverzeichnis A H ASM, 187, 195, 208 Bibliothekstreiber, 196 Entfernen von Knoten, 217 Verwenden von RAW, 195 Hilfe, 169 Dell Support, 169 Oracle Support, 169 C Cluster Entfernen von Knoten, 215 Clusterware Entfernen eines Knotens, 218 Installieren, 172 CRS, 177 D Databank-Konfigurationsassistent, 184 Datenbank-Speicher, 194 Dell Automation-Skripte, 171 Dell Support-Website, 169 Dell Training-Website, 169 E I Instanzen-Schicht, 213 K Knoten Entfernen von ASM, 217 Konfiguration des gemeinsamen
N P Netzwerke Hinzufügen von Knoten, 208 Patch-Set 11.1.0.
Dell™ PowerEdge™ システム Enterprise Linux® x86_64 で使用する Oracle® データベース データベースセットアップ & インストールガイド バージョン 1.1 w w w. d e l l . c o m | s u p p o r t . d e l l .
メモおよび注意 メモ:コンピュータを使いやすくするための重要な情報を 説明しています。 注意 : 手順に従わない場合は、ハードウェアの損傷やデー タの損失の可能性があることを示しています。 ____________________ 本書の内容は予告なく変更されることがあります。 © 2008 ~ 2009 すべての著作権は Dell Inc. にあります。 Dell Inc. の書面による許可のない複製は、いかなる形態においても厳重に禁じられています。 本書に使用されている商標:Dell および DELL ロゴは Dell Inc. の商標です。Red Hat、 Red Hat Enterprise Linux および Enterprise Linux は Red Hat, Inc. 米国その他の国における Red Hat, Inc. の登録商標です。Oracle は Oracle Corporation および / またはその関連会社の 登録商標です。 商標または製品の権利を主張する事業体を表すためにその他の商標および社名が使用されて いることがあります。Dell Inc.
目次 1 概要 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Dell|Oracle 11g Database の導入に必要なマニュアル . . . . 227 . . . . . . . . . . . . . . . . . . 228 . . . . . . . . . . . . . . . . . . . . . . . . . . 228 本書で使用されている用語 . 困ったときは . デルサポート . . . . . . . . . . . . . . . . . . . . . . . . Oracle のサポート . 2 227 . . . . . . . . . . . . . . . . . . . . . Oracle ® 11g R1 Database RAC (Real Application Clusters) のインストール . . . . . . . . . . 作業を開始する前に . . . . . . . . . . . . . . . . . . .
OCFS2(Oracle Cluster File System 2) を使用したシードデータベースの作成 . . . . . . . . . . . ASM を使用したシードデータベースの作成 3 . . . . . . . . Oracle 11g R1 Database のインストール (シングルノード). . . . . . . . . . . . . . . . . . パブリックネットワークの設定 251 . . . . . . . . . . . . . . . 251 . . . . . . . . ext3 ファイルシステムを使用したデータベー スストレージ (記憶域)の設定 . . . . . . . . . . . . . . . . . . . . . Oracle ASM を使用したデータベースストレージ (記憶域)の設定 . . . . . . . . . . . . . . . . . . . 252 252 . . 253 ブロックデバイスを使用した ASM ストレージ の設定 . . . . . . . . . . . . . . . . .
4 ノードの追加と削除 . . . . . . . . . . . . . . . . . . . ネットワーク層への新しいノードの追加 . . . . . . . . . . ASM(Automatic Storage Mangement)を使用して新 しいノードに共有ストレージを設定する方法 . . . . 268 . . . . . 270 . . . . . . . . . . 271 . . . . . . . . . . . . . . . . . . . . . . . . 272 データベース層への新しいノードの追加 データベースインスタンス層への新しいノ ードの追加 . . . . . . . . . . . . . . . . . . . クラスタからのノードの削除 . . . . . . . . . 273 . . . . . . . . . . . . . . . . . 275 データベースインスタンス層からのノー ドの削除 . . . . . . . . . . . . . . . . . . . . リスナーの再設定 . . . . . .
目次
概要 本書の説明は次の製品に適用されます。 • Red Hat® Enterprise Linux® または Oracle Enterprise Linux 5.
本書で使用されている用語 • 本書では、 「論理ユニット番号」 (LUN)および「仮想ディスク」という語 が使われています。これらの用語は同義語であり、どちらを使用して も構いません。 「LUN」は Dell/EMC ファイバーチャネルストレージシ ステムの環境で、 「仮想ディスク」は Dell™ PowerVault™ SAS (Dell MD3000i および Dell MD3000i + MD1000 拡張)ストレージの 環境で、通常使われる用語です。 • 本書で使われている Enterprise Linux という用語は、特に説明のな い限り Red Hat Enterprise Linux と Oracle Enterprise Linux の両方 に適用されます。 困ったときは デルサポート • システムの使い方の詳細については、システムコンポーネントに付 属のマニュアルを参照してください。 • 各種のホワイトペーパー、デルがサポートする設定、一般情報につ いては、Oracle Databases and Applications Solutions のウェブサイ ト dell.
Oracle のサポート • Oracle ソフトウェア、アプリケーションクラスタウェアのトレーニ ング、および Oracle へのお問い合わせの方法については、Oracle の ウェブサイト oracle.com またはシステムに付属の Oracle のマニュ アルを参照してください。 • テクニカルサポート、ダウンロード、その他の技術情報については、 My Oracle Support ウェブサイト metalink.oracle.
概要
Oracle® 11g R1 Database RAC (Real Application Clusters) のインストール 本項では Oracle 11g RAC のインストール手順について説明します。これ には CRS のインストール および Oracle Database 11g ソフトウェアのイ ンストールが含まれます。クラスタを実働環境に導入する前に、シード データベースを作成してそのクラスタが正しく動作するかどうか確認する ことをお勧めします。 作業を開始する前に 以下の項では、Oracle 11g RAC をインストールする前の準備作業につい て説明します。 Enterprise Linux と Dell Automation Scripts のダウンロード Oracle RAC ソフトウェアをシステムにインストールする前に、以下の手 順を実行してください。 • Red Hat Network の Sign In ウェブサイト rhn.redhat.
すべてのノードのシステムクロックの設定 インストール中のエラーを避けるために、すべてのノードでシステムク ロックの設定を同一にしてください。 お使いのノードのシステムクロックを Network Time Protocol(NTP) サーバーと同期化します。NTP サーバーにアクセスできない場合は、 次の手順のいずれかを実行してください。 • Oracle Database ソフトウェアのインストールを実行するノードの システムクロックが残りのノードよりも遅い時刻に設定されている ことを確認します。 • ノードの 1 つを NTP サーバーとして構成し、クラスタ内の残りの ノードを同期化します。 Oracle 11G R1 Clusterware のインストール 1 root としてログインします。 2 次のように入力して、X Window System を起動します。 startx 3 ターミナルウィンドウを開き、次のように入力します。 xhost + 4 Oracle Clusterware メディアをマウントします。 5 次のように入力します。 su - oracle 232 Oracle 1
6 次のように入力します。 /cluvfy/runcluvfy.sh stage -pre crsinst -n node1,node2 -r 11gR1 -verbose node1 および node2 はパブリックホスト名です。 お使いのシステムが正しく構成されていない場合は、問題を解決し てから上記の runcluvfy.sh コマンドを繰り返します。 お使いのシステムが正しく構成されると、次のメッセージが表示さ れます。 Pre-check for cluster services setup was successful on all the nodes. (クラスタサービスセットアップのプリチェックがすべてのノードで 成功しました)。 7 次のコマンドを入力して、Oracle Universal Installer を起動します。 unset ORACLE_HOME /runInstaller 次のメッセージが表示されます。 Has ’rootpre.sh’ been run by root? (rootpre.
12 Specify Cluster Configuration(クラスタ構成の指定)ウィンド ウに、Oracle Clusterware によって管理されるノードを追加します。 a b Add(追加)をクリックします。 Public Node Name(パブリックノード名)、Private Node Name(プライベートノード名)、および Virtual Host Name (仮想ホスト名)を入力し、OK をクリックします。 c 残りのノードに対して 手順 a と 手順 b を繰り返します。 d Cluster Name(クラスタ名)フィールドにお使いのクラスタの 名前を入力します。 デフォルトのクラスタ名は crs です。 e Next(次へ)をクリックします。 13 Specify Network Interface Usage(ネットワークインタフェー スの用途を指定する)ウィンドウで、パブリックインタフェース名 とプライベートインタフェース名が正しいことを確認します。 インタフェースを変更するには、次の手順を実行します。 234 a インタフェース名を選択し、Edit(編集)
14 Specify Oracle Cluster Registry (OCR) Location(Oracle Cluster Registry(OCR)の場所の指定)ウィンドウで、次の手順を 実行します。 a OCR Configuration(OCR の設定)ボックスで、Normal Redundancy(ノーマルな冗長性)を選択します。 b Specify OCR Location(OCR の場所の指定)フィールドに次 のテキストを入力します。 /dev/emcpowera1 または /u01/ocr1.dbf(OCFS2 を使用している場合) c Specify OCR Mirror Location(OCR ミラーの場所の指定) フィールドに次のテキストを入力します。 /dev/emcpowera2 または /u01/ocr2.
d Additional Voting Disk 2 Location(追加の投票ディスク 2 の場所)フィールドに次のテキストを入力します。 /dev/emcpowerb3 または /u01/votingdisk3 e Next(次へ)をクリックします。 16 Summary(サマリ)ウィンドウで、Install(インストール)をク リックします。 Oracle Clusterware がシステムにインストールされます。 完了すると、Execute Configuration scripts(構成スクリプトの 実行)ウィンドウが表示されます。 17 ウィンドウ内の指示に従い、OK をクリックします。 メモ:投票ディスクのフォーマット中に root.sh がハングする場合 は、Oracle パッチ 4679769 を適用し、この手順を繰り返します。 メモ:プライマリノードから順にすべてのノードで root.sh を実行し ます。たとえば、ノード 1 で root.sh を実行します。ノード 1 で root.
Oracle 11G R1 Database ソフトウェアのインス トール 1 root ユーザーとして、次のように入力します。 xhost + 2 ユーザー root として、Oracle Database 11g メディアをマウントし ます。 3 oracle としてログインし、次のように入力します。 /bin/ cluvfy stage -pre dbinst -n node1,node2 -r 11gR1 -verbose node1 および node2 はパブリックホスト名です。 お使いのシステムが正しく構成されない場合は、『トラブルシュー ティングガイド』で詳細を参照してください。 お使いのシステムが正しく構成されると、次のメッセージが表示さ れます。 Pre-check for database installation was successful.
7 Specify Home Details(ホームの詳細の指定)ウィンドウの Path(パス)フィールドで、Oracle ホームの完全なパスが /opt/oracle/product/11.1.
Oracle 11g R1 Database 用 11.1.0.7 パッチセッ トのインストール 以下の手順に従って、インストールソフトウェアをダウンロードし、 抽出します。 1 最初のノードで、oracle としてログインします。 2 /opt/oracle/patches にパッチとユーティリティのためのフォ ルダを作成します。 3 ウェブブラウザを開いて Oracle のサポートサイト metalink.oracle.
Oracle Clusterware 用 11.1.0.7 パッチセットのインストール メモ:パッチセットソフトウェアのインストールは、RAC 11g R1 ソフト ウェアをインストールしたノードから行う必要があります。 1 ターミナルウィンドウに次のように入力して を押し、 Oracle Universal Installer を起動します。 cd /opt/oracle/patches/Disk1/ .
12 Exit(終了)をクリックします。 13 Yes(はい)をクリックして Oracle Universal Installer を終了 します。 Oracle Database 用 11.1.0.
11 Specify Hardware Cluster Installation Mode(ハードウェアの クラスタインストールモードの指定)画面で、Next(次へ)をク リックします。 12 Summary(サマリ)画面で Install(インストール)をクリックし ます。 Oracle Universal Installer がお使いのシステムをスキャンし、インス トールの必要なすべてのパッチを表示して、お使いのシステムにイ ンストールします。インストールが完了すると、End of Installation(インストールの終了)画面が表示されます。ユー ザー root として root.sh を実行するように指示するメッセージ ウィンドウが表示されます。 13 ターミナルウィンドウを開きます。 14 次のテキストを入力し、 キーを押します。 /opt/oracle/product/11.1.0/db_1/root.
リスナーの設定 本項では、データベースへのリモートクライアントの接続に必要なリス ナーの設定手順について説明します。 1 つのノードのみで、以下の手順を実行します。 1 root としてログインします。 2 次のように入力して、X Window System を起動します。 startx 3 ターミナルウィンドウを開き、次のように入力します。 xhost + 4 ユーザー oracle として、netca と入力して Net Configuration Assistant を起動します。 5 Cluster Configuration(クラスタ構成)を選択してから、Next (次へ)をクリックします。 6 TOPSNodes ウィンドウで Select All Nodes(すべてのノードを選 択する)をクリックし、Next(次へ)をクリックします。 7 Welcome(ようこそ)ウィンドウで Listener Configuration (リスナーの設定)を選択してから、Next(次へ)をクリック します。 8 Listener Configuration(リスナーの設定)→ Listener(リス ナー)ウ
12 Listener Configuration(リスナーの設定)→ More Listeners? (リスナーの追加)ウィンドウで、No(いいえ)を選択し、Next (次へ)をクリックします。 13 Listener Configuration Done(リスナーの設定が終了しました) ウィンドウで Next(次へ)をクリックします。 14 Finish(完了)をクリックします。 OCFS2(Oracle Cluster File System 2) を使用したシードデータベースの作成 1 最初のノードで oracle としてログインし、次のように入力します。 $CRS_HOME/bin/cluvfy stage -pre dbcfg -n node1,node2 -d $ORACLE_HOME -verbose node1 および node2 はパブリックホスト名です。 お使いのシステムが正しく構成されない場合は、『トラブルシュー ティングガイド』で詳細を参照してください。 お使いのシステムが正しく構成されると、次のメッセージが表示さ れます。 Pre-check for database confi
6 Database Templates(データベーステンプレート)ウィンドウで Custom Database(カスタムデータベース)をクリックしてから、 Next(次へ)をクリックします。 7 Database Identification(データベース識別情報)ウィンドウで、 racdb のような Global Database Name(グローバルデータベー ス名)を入力してから、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 を選択してから、Ne
16 Database Storage(データベース記憶域)ウィンドウで Next (次へ)をクリックします。 17 Creation Options(作成オプション)ウィンドウで Create Database(データベースの作成)を選択してから、Finish(完了) をクリックします。 18 Summary(サマリ)ウィンドウで OK をクリックして、データ ベースを作成します。 メモ:シードデータベースの作成には 1 時間以上かかる場合があり ます。 メモ:データベースの作成中に Enterprise Manager Configuration Error (Enterprise Manager の設定エラー)が表示されたら、そのまま OK をクリックし、エラーを無視してください。 データベースの作成が完了すると、Password Management (パスワード管理)ウィンドウが表示されます。 19 Exit(終了)をクリックします。 クラスタデータベースがすべてのノードで起動中であることを示す メッセージが表示されます。 20 各ノードで、以下の手順を実行します。 a 次のように入力して、そ
ASM を使用したシードデータベースの作成 本項では、Oracle ASM を使用してシードデータベースを作成する手順と シードデータベースを確認する手順について説明します。 以下の手順を実行します。 1 oracle としてログインし、次のように入力します。 $CRS_HOME/bin/cluvfy stage -pre dbcfg -n node1,node2 -d $ORACLE_HOME -verbose node1 および node2 はパブリックホスト名で、$ORACLE_HOME は Oracle_database のホームです。 お使いのシステムが正しく構成されない場合は、『トラブルシュー ティングガイド』で詳細を参照してください。 お使いのシステムが正しく構成されると、次のメッセージが表示さ れます。 Pre-check for database configuration was successful.
9 Database Credentials(データベース資格証明)ウィンドウでパ スワードオプションを選択し、(要求された場合は)適切なパスワー ド情報を入力し、Next(次へ)をクリックします。 10 Storage Options(記憶域オプション)ウィンドウで、 Automatic Storage Management(ASM)をクリックし、 Next(次へ)をクリックします。 11 Create ASM Instance(ASM インスタンスの作成)ウィンドウで、 以下の手順を実行します。 a SYS password(SYS パスワード)フィールドにパスワードを 入力します。 b Create server parameter file (SPFILE)(サーバーパラメータ ファイル(SPFILE)を作成)を選択します。 c Server Parameter Filename(サーバーパラメータファイル 名)フィールドに次のテキストを入力します。 /opt/oracle/product/11.1.0/db_1/initl+ASM.
15 flashbackDG をディスクグループ名として使用し、残りの ASM ディスクグループについて 手順 14 を繰り返します。 16 ASM Disk Groups(ASM ディスクグループ)ウィンドウで、デー タベース記憶域に使用するディスクグループを選択し(たとえば、 databaseDG)、Next(次へ)をクリックします。 17 Database File Locations(データベースファイルの位置)ウィ ンドウで、Use Oracle-Managed Files(Oracle Managed Files の使用)を選択し、Next(次へ)をクリックします。 18 Recovery Configuration(リカバリ構成)ウィンドウで、 Browse(参照)をクリックして、手順 15 で作成したフラッシュ バックグループ(たとえば、flashbackDG)を選択し、必要に応じ てフラッシュリカバリ領域のサイズを変更します。 19 Enable Archiving(アーカイブの有効化)を選択し、Next(次へ) をクリックします。 20 Database Content(データベースコンテ
25 Summary(サマリ)ウィンドウで OK をクリックして、データ ベースを作成します。 メモ:この処理には 1 時間またはそれ以上かかることがあります。 データベースの作成が完了すると、Database Configuration Assistant ウィンドウが表示されます。 26 必要に応じて Password Management(パスワード管理)をク リックして、権限を持つユーザーに特定のパスワードを割り当て ます。その必要がない場合は Exit(終了)をクリックします。 クラスタデータベースがすべてのノードで起動中であることを示す メッセージが表示されます。 27 次の手順を各ノードで実行します。 a 次のように入力して、そのノードにどのデータベースインスタン スが存在するかどうかを判断します。 srvctl status database -d < データベース名 > b 以下のコマンドを入力して、oracle ユーザープロファイルに ORACLE_SID 環境変数エントリを追加します。 echo "export ORACLE_SID=racdbx" >> /home/oracle/
Oracle 11g R1 Database のインス トール(シングルノード) 本項では、『Enterprise Linux x86_64 で使用する Oracle データベース — OS のインストールとハードウェアの取り付けガイド』に説明されている 初期セットアップまたは再インストール手順に関する情報を提供します。 本項では、以下のトピックについて説明します。 • 251 ページの「パブリックネットワークの設定」 • 252 ページの「データベースストレージ(記憶域)の設定」 • 255 ページの「Oracle Database 11g のインストール」 • 257 ページの「Oracle Database 11g R1 11.1.0.
データベースストレージ(記憶域)の設定 ext3 ファイルシステムを使用したデータベースストレージ (記憶域)の設定 ストレージデバイスを追加した場合は、以下の手順を実行します。 1 root としてログインします。 2 次のコマンドを入力します。 cd /opt/oracle 3 次のコマンドを入力します。 mkdir oradata recovery fdisk ユーティリティを使用して、データベースファイルを格納す る場所にパーティションを作成します。 例:sdb1(お使いのストレージデバイスが sdb の場合) fdisk ユーティリティを使用して、リカバリファイルを格納する場 所にパーティションを作成します。 例:sdc1(お使いのストレージデバイスが sdc の場合) 4 次のコマンドを入力して、新しいパーティションを確認します。 cat /proc/partitions 新しいパーティションが見つからない場合は、次のように入力し ます。 sfdisk -R /dev/sdb sfdisk -R /dev/sdc 5 次のコマンドを入力します。 mke2fs -j /dev/sdb1 mke2fs
7 次のコマンドを入力します。 chown -R oracle.
/dev/emcpowere1 を使用して ASM ディスクグループ ASM3 を追 加するには、次のように入力してセッションにエントリを追加し ます。 asm3=/dev/emcpowere1 2 次のコマンドを実行して permissions.py スクリプトを実行し ます。 /dell-oracle-deployment/scripts/permissions.py 3 次のコマンドを実行して、正しいブロックデバイスの権限を設定し ます。 /etc/rc.
5 ASM ディスクが作成され、ASM 使用のマークが付いていることを 確認します。 ターミナルウィンドウで次のテキストを入力し、 を押し ます。 service oracleasm listdisks 手順 3 で作成したディスクがターミナルウィンドウに表示されます。 例: ASM1 ASM2 Oracle Database 11g のインストール Oracle 11g をインストールするには、次の手順を実行します。 1 root としてログインします。 2 ユーザー root として、Oracle Database 11g メディアをマウントし ます。 3 次のように入力して、X Window System を起動します。 startx 4 ターミナルウィンドウを開き、次のように入力します。 xhost + 5 oracle としてログインします。 6 Oracle Universal Installer を起動します。 ターミナルウィンドウで次のテキストを入力し、 を押し ます。 /runInstaller 7 Select Installati
9 Specify Home Details(ホームの詳細の指定)ウィンドウの Path (パス)フィールドに次のパスが表示されていることを確認します。 /opt/oracle/product/11.1.0/db_1 10 Next(次へ)をクリックします。 11 Product-Specific Prerequisite Checks(製品固有の前提条件の チェック)ウィンドウで、Next(次へ)をクリックします。 12 Warning(警告)メッセージが表示されても、メッセージを無視し て Yes(はい)をクリックします。 13 Select Configuration Option(構成オプションの選択)ウィンド ウで、Install Database Software Only(データベースソフト ウェアのみインストール)をクリックします。 14 Summary(サマリ)ウィンドウで、Install(インストール)をク リックします。 15 確認のメッセージが表示されたら、ターミナルウィンドウを開き、 root.
Oracle Database 11g R1 11.1.0.7 パッチセットの インストール 以下の手順に従って、インストールソフトウェアをダウンロードし、 抽出します。 1 最初のノードで、oracle としてログインします。 2 /opt/oracle/patches にパッチとユーティリティのためのフォ ルダを作成します。 3 ウェブブラウザを起動し、My Oracle Support ウェブサイト metalink.oracle.com にアクセスします。 4 Oracle Metalink アカウントにログインします。Linux x86_64 をプ ラットフォームとして、パッチ番号 6890831 を検索します。 5 パッチを /opt/oracle/patches ディレクトリにダウンロードし ます。 6 ダウンロードした ZIP ファイルを解凍するには、ターミナルウィン ドウに次のコマンドを入力し、 を押します。 unzip p6890831_111070_Linux-x86-64 Oracle Database 用 11.1.0.
5 最初のノードで新しいターミナルウィンドウを開きます。 6 oracle としてログインします。 7 次のテキストを入力し、 キーを押します。 export ORACLE_HOME= /opt/oracle/product/11.1.0/db_1 8 ターミナルウィンドウに次のように入力して を押し、 Oracle Universal Installer を起動します。 cd /opt/oracle/patches/Disk1/ .
16 残りのノードについて、一度に 1 つずつのノードで 手順 13 と 手 順 14 を繰り返します。 インストールが完了すると、End of Installation(インストールの 終了)画面が表示されます。 メモ:この処理には数分かかることがあります。 17 End of Installation(インストールの終了)画面で、Exit(終了) をクリックします。 18 Yes(はい)をクリックして Oracle Universal Installer を終了し ます。 19 最初のノードでターミナルウィンドウを開きます。oracle として ログインします。次のテキストを入力し、 キーを押し ます。 srvctl start nodeapps -n < ノード名 > リスナーの設定 1 root としてログインします。 2 次のように入力して、X Window System を起動します。 startx 3 ターミナルウィンドウを開き、次のように入力します。 xhost + 4 oracle としてログインします。 5 netca と入力して、Oracle Net Configurat
シードデータベースの作成 ext3 ファイルシステムを使用したシードデータベースの作成 DBCA(Database Configuration Assistant)で以下の手順を実行して、 シードデータベースを作成します。 1 oracle としてログインします。 2 次のように入力して、Oracle DBCA を起動します。 dbca 3 Welcome(ようこそ)ウィンドウで Next(次へ)をクリックし ます。 4 Operations(操作)ウィンドウで Create a Database(データ ベースの作成)をクリックしてから、Next(次へ)をクリックし ます。 5 Database Templates(データベーステンプレート)ウィンドウで Custom Database(カスタムデータベース)をクリックしてから、 Next(次へ)をクリックします。 6 Database Identification(データベース識別情報)ウィンドウで、 Global Database Name(グローバルデータベース名)と SID Prefix(SID 接頭辞)フィールドに、作成するデータベース名を入力 し
11 Recovery Configuration(リカバリ設定)ウィンドウで、 Browse(参照)をクリックして、252 ページの「ext3 ファイルシス テムを使用したデータベースストレージ (記憶域)の設定」で作成 したフラッシュバックリカバリ領域(たとえば、 /opt/oracle/recovery)を選択します。必要に応じて、フラッ シュリカバリ領域のサイズを変更します。Enable Archiving (アーカイブの有効化)を選択し、Next(次へ)をクリックします。 12 Database Content(データベースコンテンツ)ウィンドウで Next(次へ)をクリックします。 13 Initialization Parameters(初期化パラメータ)ウィンドウで Next(次へ)をクリックします。 14 Database Storage(データベース記憶域)ウィンドウで Next (次へ)をクリックします。 15 Creation Options(作成オプション)ウィンドウで、Create Database(データベースの作成)をクリックし、Finish(完了) をクリックします。 16
19 データベースが動作していることを確認するには、次の手順を実行 します。 a sqlplus "/ as sysdba" と入力して、SQL> プロンプトを表 示します。 b SQL> プロンプトで次のクエリを入力します。 SELECT * FROM v$instance; c データベースが実行されていない場合は、エラーメッセージが表 示されるので、SQL> プロンプトで startup と入力し、その ノードのデータベースインスタンスを起動します。 Oracle ASM(Automatic Storage Management)を使用したシード データベースの作成 Oracle ASM を使用してストレージを設定した場合は、DBCA を使用し、 次の手順を実行してシードデータベースを作成します。 1 ユーザー oracle として、次のように入力して DBCA を起動し ます。 dbca & 2 Welcome(ようこそ)ウィンドウで Next(次へ)をクリックし ます。 3 Operations(操作)ウィンドウで Create a Database(データ ベースの作成)をクリックして
8 Storage Options(記憶域オプション)ウィンドウで ASM をク リックし、Next(次へ)をクリックします。 9 Create ASM Instance(ASM インスタンスの作成)ウィンドウで、 ユーザー sys のパスワードを入力し、Next(次へ)をクリックし ます。 10 DBCA が ASM インスタンスを作成して起動する準備ができたことを 示すメッセージが表示されたら、OK をクリックします。 11 ASM Disk Groups(ASM ディスクグループ)ウィンドウで、 Available Disk Groups(使用可能なディスクグループ)の下にあ る Create New(新規作成)をクリックします。 12 Create Disk Group(ディスクグループの作成)ウィンドウでデー タベースファイルのストレージ情報を入力し、OK をクリックし ます。 a databaseDG など、作成するディスクグループの名前を入力し、 External Redundancy(外部冗長性)を選択してから、ディス クグループに含めるディスクを選択します。 b c RAW デバイスイ
14 Disk Group(ディスクグループ)ウィンドウでフラッシュバックリ カバリファイルの情報を入力し、OK をクリックします。 a b flashbackDG など、作成するディスクグループの名前を入力し、 External Redundancy(外部冗長性)を選択してから、 ディスクグループに含めるディスクを選択します。 ASM ライブラリドライバを使用する場合で、候補ディスクにア クセスできない場合は、Change Disk Discovery String (ディスク検出パスの変更)をクリックし、ストリングとして ORCL:* と入力し、ASM2 を選択します。 15 ASM Disk Groups(ASM ディスクグループ)ウィンドウで、デー タベース記憶域に使用するディスクグループをチェックし(たとえ ば、databaseDG)、Next(次へ)をクリックします。 16 Database File Locations(データベースファイルの位置)ウィン ドウで、Use Common Location for All Database Files(すべて のデータベースファイルに対して共通
23 Confirmation(確認)ウィンドウで OK をクリックするとデータ ベースが作成されます。 メモ:シードデータベースの作成には 1 時間以上かかる場合があり ます。 データベースの作成手順が完了すると、Password Management (パスワード管理)ウィンドウが表示されます。 24 Exit(終了)をクリックします。 25 データベースの作成が完了したら、次のコマンドを入力して、 oracle のユーザープロファイルに ORACLE_SID 環境変数エントリを 追加します。 echo "export ORACLE_SID=oradb" >> /home/oracle/.bash_profile source /home/oracle/.
Oracle 11g R1 Database のインストール(シングルノード)
ノードの追加と削除 本項では既存のクラスタにノードを追加する手順とクラスタからノードを 削除する手順について説明します。 メモ:新しいノードは、ハードウェアと OS の構成を既存のノードと同一 にする必要があります。 既存のクラスタにノードを追加するには、以下の手順を実行します。 • ネットワーク層にノードを追加します。 • 共有ストレージを設定します。 • Oracle Clusterware、データベース、およびデータベースインスタ ンスの各層にノードを追加します。 既存のクラスタからノードを削除するには、追加の手順を逆にして、デー タベースインスタンス、データベース、そして Oracle Clusterware の各層 からノードを削除する必要があります。 既存のクラスタにノードを追加する方法の詳細については、Oracle の ウェブサイト oracle.
ネットワーク層への新しいノードの追加 ネットワーク層に新しいノードを追加するには、以下の手順を実行し ます。 1 新しいノードに Enterprise Linux をインストールします。詳細につ いては、『Enterprise Linux x86_64 で使用する Oracle データベース — OS のインストールとハードウェアの取り付けガイド』を参照して ください。 2 新しいノードのパブリックおよびプライベートネットワークを設定 します。『Enterprise Linux x86_64 で使用する Oracle データベース — ストレージ & ネットワークガイド』を参照してください。 3 各ノードがストレージ LUN または論理ディスクを検出できることを 確認します。『Enterprise Linux x86_64 で使用する Oracle データ ベース — ストレージ & ネットワークガイド』を参照してください。 ASM(Automatic Storage Mangement)を使用 して新しいノードに共有ストレージを設定す る方法 既存の RAC データベースを新しいノードに拡張するには、スト
5 新しいノードでターミナルウィンドウを開き、次の手順を実行し ます。 a service oracleasm configure と入力します。 b すべてのノードについて、以下の入力を行います。 Default user to own the driver interface(ドライバインタ フェースを所有するデフォルトユーザー)[ ]: oracle Default group to own the driver interface(ドライバイン タフェースを所有するデフォルトグループ)[ ]: dba Start Oracle ASM library driver on boot(起動時に Oracle ASM ライブラリドライバを開始する)(y/n) [n]: y Fix permissions of Oracle ASM disks on boot(起動時に Oracle ASM ディスクのパーミッションを修正)(y/n) [y]: y c 新しいノードが ASM ディスクにアクセスできることを確認し ます。 d ターミナルウィンドウで次のテキストを入力し、 を押し ま
Oracle クラスタウェア層への新しいノードの 追加 1 既存のノードの 1 つに oracle としてログインします。 2 この既存のノードの /crs/oracle/product/11.1.0/crs/oui/bin ディ レクトリから ./addNode.
データベース層への新しいノードの追加 1 既存のノードの 1 つに oracle としてログインします。 2 この既存のノードの /opt/oracle/product/11.1.0/db_1/oui/bin ディレクトリから ./addNode.
リスナーの再設定 本項では、データベースへのリモートクライアントの接続に必要なリス ナーの再設定手順について説明します。 メモ:以下の手順では、既存のリスナーを再設定するためにリスナーを 停止してよいことが前提になっています。そうでない場合は、以下とは多 少異なる手順になることがあります。 1 つのノードのみで、以下の手順を実行します。 1 root としてログインします。 2 次のように入力して、X Window System を起動します。 startx 3 ターミナルウィンドウを開き、次のように入力します。 xhost + 4 ユーザー oracle として、次のように入力してすべてのノードでリ スナーを停止します。 lsnrctl stop 5 リスナーが正常に停止したら、netca と入力して Net Configuration Assistant を起動します。 6 Cluster Configuration(クラスタ構成)を選択してから、Next (次へ)をクリックします。 7 Real Application Clusters→ Active Nodes(アクティブノード) ウィンドウで、Se
11 Listener Configuration(リスナーの設定)→ Select Protocols (プロトコルの選択)ウィンドウで、TCP を選択し、Next(次へ) をクリックします。 12 Listener Configuration(リスナーの設定)→ TCP/IP Protocol (TCP/IP プロトコル)ウィンドウで、Use the standard port number of 1521(標準ポート番号 1521 を使用)を選択し、 Next(次へ)をクリックします。 13 Listener Configuration(リスナーの設定)→ More Listeners? (リスナーの追加)ウィンドウで、No(いいえ)を選択し、Next (次へ)をクリックします。 14 Listener Configuration Done(リスナーの設定が終了しました) ウィンドウで Next(次へ)をクリックします。 15 Finish(完了)をクリックします。 16 次のように入力して、すべてのノードでリスナーを開始します。 lsnrctl start データベースインスタンス層への新しいノ ー
5 List of Cluster Databases(クラスタデータベースの一覧)ウィン ドウで既存のデータベースを選択します。 使用したユーザー名が OS によって認証されない場合は、SYSDBA 権 限を持つデータベースユーザーに対するユーザー名とパスワードの 入力を求めるメッセージが DBCA によって表示されます。 6 ユーザー名 sys とパスワードを入力して、Next(次へ)をクリック します。 選択した RAC データベース関連のインスタンスと各インスタンスの ステータスを示す List of Cluster Database Instances(クラスタ データベースインスタンスのリスト)ウィンドウが表示されます。 7 List of Cluster Database Instances(クラスタデータベースイン スタンスの一覧)ウィンドウで、Next(次へ)をクリックします。 8 Instance Naming and Node Selection (インスタンスの命名と ノードの選択)ウィンドウで、ウィンドウ上部にインスタンス名を 入力して、新しいノード名を選択してから、Next(次へ)
クラスタからのノードの削除 本項の手順を実行する際には、クラスタから必ず正しいノードを選択し、 削除してください。 データベースインスタンス層からのノードの削除 1 oracle としてログインします。 2 残りのノードの 1 つから、次のように入力します。 dbca 3 Welcome(ようこそ)ウィンドウで Next(次へ)をクリックし ます。 4 Operations(操作)ウィンドウで、Instance Management (インスタンス管理)をクリックしてから、Next(次へ)をクリッ クします。 5 Instance Management(インスタンス管理)ウィンドウで Delete an instance(インスタンスの削除)をクリックしてから、 Next(次へ)をクリックします。 6 List of Cluster Databases(クラスタデータベースのリスト) ウィンドウで、インスタンスを削除する RAC データベースを選択し ます。 使用したユーザー名が OS によって認証されない場合は、SYSDBA 権 限を持つデータベースユーザーに対するユーザー名とパスワードの 入力を求めるメ
8 削除するインスタンスを選択して、Next(次へ)をクリックし ます。 DBCA を実行しているローカルインスタンスは削除できません。 ローカルインスタンスを選択した場合、DBCA によって Error (エラー)ダイアログが表示されます。このような状況が発生した場 合は、OK をクリックして、別のインスタンスを選択してから、 Finish(完了)をクリックします。 このインスタンスにサービスが割り当てられている場合は、DBCA Services Management(DBCA サービス管理)ウィンドウが表示 されます。このウィンドウを使って、クラスタデータベース内の別 のインスタンスにサービスを割り当てなおします。 9 Summary(サマリ)ウィンドウで OK をクリックします。 10 インスタンス削除の処理に関する情報を確認して、OK をクリックし ます。 DBCA がインスタンスとその Oracle Net 設定を削除している間、プ ログレスバーが表示されます。処理が完了すると、別の操作を実行 するかどうかを尋ねるダイアログが表示されます。 11 No(いいえ)をクリックして、終了します。 12 次
5 Listener Configuration(リスナーの設定) → Listener(リス ナー)ウィンドウで Delete(削除)を選択し、Next(次へ)をク リックします。 6 Listener Configuration(リスナーの設定) → Select Listener (リスナーの選択)ウィンドウで LISTENER を選択し、Next(次へ) をクリックします。 "Are you sure you want to delete listener LISTENER?"(リスナー LISTENER を削除してよいですか ?)という メッセージが表示されたら、Yes(はい)をクリックします。 7 Listener Configuration(リスナーの設定) → Listener Deleted (リスナーが削除されました)ウィンドウで、Next(次へ)をク リックします。 8 Listener Configuration Done(リスナーの設定が終了しました) ウィンドウで Next(次へ)をクリックします。 9 Finish(完了)をクリックします。 削除されたノードでの ASM の停止
データベース層からのノードの削除 1 削除するノードで、oracle としてログインします。 2 削除するノードのパブリック名を使用して、以下のコマンドを入力 します。たとえば、node3-pub を削除する場合は次のように入力し ます。 srvctl stop nodeapps -n node3-pub リスナーに関するエラーを表示するエラー CRS-0210 は無視します。 3 削除するノードで、root としてログインします。 4 Oracle データベースソフトウェアを削除する場合は、次のコマンド を入力します。 rm -rf /opt/oracle/product/11.1.0/db_1/* Oracle クラスタウェア層からのノードの削除 1 削除するノードで、root ユーザーとして、次のコマンドを入力し、 CRS を無効にします。 /crs/oracle/product/11.1.0/crs/install/rootdelete.
索引 数字 M 11.1.0.
い と インスタンス層 , 273 投票ディスク , 235-236 く ね クラスタ ノードの削除 , 275 ネットワーク ノードの追加 , 268 クラスタウェア インストール , 232 ノードの削除 , 278 の し ノード ASM の削除 , 277 共有ストレージの設定 , 268 システムクロックの設定 , 232 シードデータベース , 260 ASM, 247, 262 ext3 ファイルシステム , 260 OCFS2, 244 は パッチセット 11.1.0.
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 1.1 w w w. d e l l . c o m | s u p p o r t . d e l l .
Notas y precauciones NOTA: Una NOTA proporciona información importante que le ayudará a utilizar mejor el ordenador. PRECAUCIÓN: Un mensaje de PRECAUCIÓN indica la posibilidad de daños en el hardware o la pérdida de datos si no se siguen las instrucciones. ____________________ La información contenida en este documento puede modificarse sin previo aviso. © 2008–2009 Dell Inc. Todos los derechos reservados.
Contenido 1 Información general . . . . . . . . . . . . . . . . . . . . . . Documentación necesaria para implantar la base de datos Dell|Oracle 11g. . . . . . . . . . . . . . . . . . . . . . 287 . . . . . . . . . . . . 288 . . . . . . . . . . . . . . . . . . . . . . . . 288 . . . . . . . . . . . . . . . . . . . . . . 288 . . . . . . . . . . . . . . . . . . . . .
Configuración del proceso de escucha . . . . . . . . . . . . . Creación de una base de datos semilla mediante Oracle Cluster File System (OCFS) 2 . . . . . . . . . . . . . . . 303 . . . . . 306 Creación de la base de datos semilla mediante ASM 3 Instalación de la base de datos Oracle 11g R1 (un solo nodo) . . . . . . . . . . . . . . . . . . . . . . . Configuración de la red pública . . . . 311 . . . . . . . . . . . . . . . . 311 . . . . . 312 . . . . . . 312 . . . . . . . 313 . . . . . .
4 Adición y eliminación de nodos . . . . . . . . . . . . . . Adición de un nodo nuevo al nivel de red. . . . . . . . . . . . . Configuración del almacenamiento compartido en el nodo nuevo mediante Automatic Storage Management (ASM) . . . . . . . . . . . . . . . . . Adición de un nodo nuevo al nivel de software de clúster Oracle . . . . . . . . . . . . . . . . 326 . . . . . . . . . 328 . . . . . . 329 . . . . . . . . . . . . 330 Adición de un nodo nuevo al nivel de instancia de base de datos . .
Contenido
Información general Este documento se aplica a: • Base de datos Oracle® 11g R1 en Red Hat® Enterprise Linux® o Oracle Enterprise Linux 5.
Terminología utilizada en este documento • En este documento se utilizan los términos número de unidad lógica (LUN) y disco virtual. Dichos términos son sinónimos y pueden utilizarse indistintamente. El término LUN suele utilizarse en un entorno de sistema de almacenamiento Dell/EMC Fibre Channel, mientras que disco virtual suele emplearse en un entorno de almacenamiento SAS Dell™ PowerVault™ (Dell MD3000i y Dell MD3000i con alojamiento de expansión MD1000).
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 entregada con el sistema. • Para obtener información sobre asistencia técnica, descargas y otras cuestiones técnicas, visite la página web My Oracle Support en metalink.oracle.com.
Información general
Instalación de la base de datos Oracle® 11g R1 Real Application Clusters (RAC) En esta sección se describen los pasos necesarios para instalar Oracle 11g RAC, proceso que implica la instalación de CRS y del software de base de datos Oracle 11g. Se recomienda crear una base de datos semilla para verificar que el clúster funciona correctamente antes de implantarlo en un entorno de producción.
Configuración de los ajustes del reloj del sistema para todos los nodos Para evitar que se produzcan errores durante el procedimiento de instalación, configure todos los nodos con ajustes del reloj del sistema idénticos. Sincronice el reloj del sistema del nodo con un servidor de protocolo de hora de red (NTP).
Si su sistema está configurado correctamente, aparecerá el mensaje siguiente: Pre-check for cluster services setup was successful on all the nodes. (La comprobación previa de la configuración de los servicios de clúster ha sido correcta en todos los nodos.) 7 Escriba los comandos siguientes para iniciar Oracle Universal Installer: unset ORACLE_HOME /runInstaller Aparece el mensaje siguiente: Has ’rootpre.sh’ been run by root? [y/n] (n) 8 Escriba y para continuar.
13 En la ventana Specify Network Interface Usage (Especificar uso de interfaz de red), asegúrese de que los nombres de interfaz pública y privada son correctos. Para modificar una interfaz, realice los pasos siguientes: a Seleccione el nombre de interfaz y haga clic en Edit (Editar). b En la casilla Interface Type (Tipo de interfaz) de la ventana Edit private interconnect type (Editar tipo de interconexión privada), seleccione el tipo de interfaz apropiado y haga clic en OK (Aceptar).
15 En la ventana Specify Voting Disk Location (Especificar ubicación del disco de votación), realice los pasos siguientes: a En la casilla Votingdisk Configuration (Configuración del disco de votación), seleccione External Redundancy (Redundancia externa). b En el campo Specify Votingdisk Location (Especificar ubicación del disco de votación), escriba: /dev/emcpowerb1 O bien: /u01/votingdisk1, si utiliza OCFS2.
18 En la ventana Configuration Assistants (Asistentes de configuración), asegúrese de que se muestra Succeeded (Correcto) en la columna Status (Estado) de cada nombre de herramienta. A continuación, se muestra la ventana End of Installation (Fin de la instalación). 19 Haga clic en Exit (Salir).
3 Inicie la sesión como oracle y escriba: /bin/ cluvfy stage -pre dbinst -n node1,node2 -r 11gR1 -verbose donde node1 y node2 son los nombres de host públicos. Si el sistema no está configurado correctamente, consulte la Guía de solución de problemas para obtener más información. Si su sistema está configurado correctamente, aparecerá el mensaje siguiente: Pre-check for database installation was successful 4 Escriba: /runInstaller Se inicia Oracle Universal Installer.
10 En la ventana Select Configuration Option (Seleccionar opción de configuración), seleccione Install database Software only (Instalar sólo software de base de datos) y haga clic en Next (Siguiente). 11 En la ventana Summary (Resumen), haga clic en Install (Instalar). El software de base de datos Oracle se instala en el clúster. A continuación, se muestra la ventana Execute Configuration Scripts (Ejecutar secuencias de comandos de configuración).
Antes de comenzar 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 este procedimiento. 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. 11 En el primer nodo, vuelva a la pantalla End of Installation (Fin de la instalación).
7 Escriba lo siguiente y pulse : export ORACLE_HOME= /opt/oracle/product/11.1.0/db_1 8 Inicie Oracle Universal Installer; para ello, escriba lo siguiente en la ventana de terminal y pulse : cd /opt/oracle/patches/Disk1/ ./runInstaller 9 Se muestra la pantalla Welcome (Bienvenida). Haga clic en Next (Siguiente). 10 En la pantalla Specify Home Details (Especificar detalles de la ubicación principal), haga clic en Next (Siguiente).
Configuración del proceso de escucha En esta sección se describen los pasos necesarios para configurar el proceso de escucha, que es necesario para la conexión remota de un cliente a una base de datos. Realice los pasos siguientes sólo en un nodo: 1 Inicie la sesión como root. 2 Inicie el sistema X Window escribiendo: startx 3 Abra una ventana de terminal y escriba: xhost + 4 Como usuario oracle, escriba netca para iniciar el asistente para la configuración de red.
12 En la ventana Listener Configuration (Configuración del proceso de escucha)→ More Listeners? (¿Más procesos de escucha?), seleccione No y haga clic en Next (Siguiente). 13 En la ventana Listener Configuration Done (Configuración del proceso de escucha finalizada), haga clic en Next (Siguiente). 14 Haga clic en Finish (Finalizar).
7 En el campo Global Database Name (Nombre de base de datos global) de la ventana Database Identification (Identificación de la base de datos), escriba un nombre de base de datos global, como por ejemplo racdb, y haga clic en Next (Siguiente). 8 En la ventana Management Options (Opciones de administración), haga clic en Next (Siguiente).
17 En la ventana Creation Options (Opciones de creación), seleccione Create Database (Crear base de datos) y haga clic en Finish (Finalizar). 18 En la ventana Summary (Resumen), haga clic en OK (Aceptar) para crear la base de datos. NOTA: La creación de la base de datos semilla puede tardar más de una hora. NOTA: Si se detecta un error de configuración de Enterprise Manager durante la creación de la base de datos semilla, haga clic en OK (Aceptar) para ignorar el error.
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 ASM de Oracle y para verificarla. Realice los pasos siguientes: 1 Inicie la sesión como oracle y escriba: $CRS_HOME/bin/cluvfy stage -pre dbcfg -n node1,node2 -d $ORACLE_HOME -verbose donde node1 y node2 son los nombres de host públicos y $ORACLE_HOME es la ubicación principal de la base de datos Oracle.
8 En la ventana Management Options (Opciones de administración), haga clic en Next (Siguiente). 9 En la ventana Database Credentials (Credenciales de la base de datos), seleccione una opción de contraseña, escriba la información de contraseña apropiada (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) (Administración automática del almacenamiento [ASM]) y haga clic en Next (Siguiente).
15 Repita el paso 14 para el grupo de discos ASM restante, utilizando flashbackDG como nombre del grupo de discos. 16 En la ventana ASM Disk Groups (Grupos de discos ASM), seleccione el grupo de discos que desea utilizar para el almacenamiento de base de datos (por ejemplo, databaseDG) y haga clic en Next (Siguiente).
25 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. Una vez creada la base de datos, se muestra la ventana del asistente para la configuración de bases de datos. 26 Haga clic en Password Management (Administración de contraseñas) para asignar contraseñas específicas a usuarios autorizados (si es necesario). De lo contrario, haga clic en Exit (Salir).
28 Escriba lo siguiente en un nodo: srvctl status database -d dbname donde dbname es el nombre de identificación global que se ha definido para la base de datos en el DBCA. Si se están ejecutando las instancias de base de datos, se muestra la confirmación en la pantalla. Si no se están ejecutando las instancias de base de datos, escriba lo siguiente: srvctl start database -d dbname donde dbname es el nombre de identificación global que se ha definido para la base de datos en el DBCA.
Instalación de la base de datos Oracle 11g R1 (un solo nodo) En esta sección se proporciona información sobre cómo completar los procedimientos de configuración inicial o reinstalación descritos en el documento Base de datos Oracle en Enterprise Linux x86_64 — Guía de instalación del sistema operativo y el hardware.
Configuración del almacenamiento de base de datos Configuración del almacenamiento de base de datos mediante el sistema de archivos ext3 Si dispone de un dispositivo de almacenamiento adicional, realice los pasos siguientes: 1 Inicie la sesión como root. 2 Introduzca el comando siguiente: cd /opt/oracle 3 Introduzca el comando siguiente: mkdir oradata recovery Mediante la utilidad fdisk, cree una partición en la que se almacenarán los archivos de la base de datos.
7 Introduzca el comando siguiente: chown -R oracle.
Por ejemplo, si los grupos de discos ASM1 y ASM2 son /dev/emcpowerc1 y /dev/emcpowerd1, el archivo permissions.ini se modificaría de la manera siguiente: [asm] asm1=/dev/emcpowerc1 asm2=/dev/emcpowerd1 Para añadir un grupo de discos ASM adicional (ASM3) con /dev/emcpowere1, añada otra entrada a la sesión: asm3=/dev/emcpowere1 2 Ejecute el comando siguiente para ejecutar la secuencia de comandos permissions.py: /dell-oracle-deployment/scripts/permissions.
4 Repita del paso 1 al paso 3 para los discos ASM adicionales que necesite crear. 5 Compruebe que los discos ASM se hayan creado y se hayan marcado para el uso de ASM. En la ventana de terminal, escriba lo siguiente y pulse : service oracleasm listdisks Los discos que ha creado en el paso 3 se enumeran en la ventana de terminal. Por ejemplo: ASM1 ASM2 Instalación de la base de datos Oracle 11g Realice los pasos siguientes para instalar Oracle 11g: 1 Inicie la sesión como root.
9 En el campo Path (Ruta) de la ventana Specify Home Details (Especificar detalles de la ubicación principal), asegúrese de que la ruta es: /opt/oracle/product/11.1.0/db_1 10 Haga clic en Next (Siguiente). 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í).
Instalación del patchset 11.1.0.7 de la base de datos Oracle 11g R1 Descargue y extraiga el software de instalación mediante los pasos siguientes: 1 Inicie la sesión como oracle en el primer nodo. 2 Cree una carpeta para los parches y las utilidades en /opt/oracle/patches. 3 Abra un explorador web y vaya a la página web My Oracle Support en metalink.oracle.com. 4 Inicie una sesión en su cuenta de Oracle Metalink. Busque el parche número 6890831 con Linux x86_64 como plataforma.
7 Escriba lo siguiente y pulse : export ORACLE_HOME= /opt/oracle/product/11.1.0/db_1 8 Inicie Oracle Universal Installer; para ello, escriba lo siguiente en la ventana de terminal y pulse : cd /opt/oracle/patches/Disk1/ ./runInstaller 9 Se muestra la pantalla de bienvenida. 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 Haga clic en Yes (Sí) para salir de Oracle Universal Installer. 19 En el primer nodo, abra una ventana de terminal. Inicie la sesión como oracle. Escriba lo siguiente y pulse : srvctl start nodeapps -n Configuración del proceso de escucha 1 Inicie la sesión como root. 2 Inicie el sistema X Window escribiendo: startx 3 Abra una ventana de terminal y escriba: xhost + 4 Inicie la sesión como oracle. 5 Escriba netca para iniciar el asistente para la configuración de red de Oracle.
5 En la ventana Database Templates (Plantillas de base de datos), haga clic en Custom Database (Base de datos personalizada) y, a continuación, en Next (Siguiente). 6 En la ventana Database Identification (Identificación de la base de datos), escriba el nombre de la base de datos que está creando en los campos Global Database Name (Nombre de base de datos global) y SID Prefix (Prefijo SID), y haga clic en Next (Siguiente).
16 En la ventana Confirmation (Confirmación), haga clic en OK (Aceptar) para crear la base de datos. NOTA: La creación de la base de datos semilla puede tardar más de una hora en completarse. Una vez finalizado el procedimiento de creación de la base de datos, se muestra la ventana Password Management (Administración de contraseñas). 17 Haga clic en Exit (Salir). 18 Escriba: export ORACLE_SID=dbname donde dbname es el nombre de identificación global que se ha definido para la base de datos en el DBCA.
4 En la ventana Database Templates (Plantillas de base de datos), haga clic en Custom Database (Base de datos personalizada) y, a continuación, en Next (Siguiente). 5 En el campo Global Database Name (Nombre de base de datos global) de la ventana Database Identification (Identificación de la base de datos), escriba un nombre de base de datos global, como por ejemplo oradb, y haga clic en Next (Siguiente). 6 En la ventana Management Options (Opciones de administración), haga clic en Next (Siguiente).
c Si utiliza el controlador de biblioteca ASM y no puede acceder a los discos candidatos, haga clic en Change Disk Discovery String (Cambiar cadena de detección de disco), escriba ORCL:* como cadena y seleccione ASM1. Se muestra una ventana en la que se indica que se está creando el grupo de discos. d Si utiliza el controlador de biblioteca ASM y no se indican los discos candidatos, haga clic en Change Disk Discover String (Cambiar cadena de detección de disco) y escriba ORCL:* como cadena.
20 En la ventana Initialization Parameters (Parámetros de inicialización), seleccione Typical (Típica) y haga clic en Next (Siguiente). 21 En la ventana Database Storage (Almacenamiento de base de datos), haga clic en Next (Siguiente). 22 En la ventana Creation Options (Opciones de creación), seleccione Create Database (Crear base de datos) y haga clic en Finish (Finalizar). 23 En la ventana Confirmation (Confirmación), haga clic en OK (Aceptar) para crear la base de datos.
Adición y eliminación de nodos En esta sección se describen los pasos necesarios para añadir un nodo a un clúster existente y para eliminar un nodo de un clúster. NOTA: El nodo nuevo debe tener la misma configuración de sistema operativo y de hardware que los nodos existentes. Para añadir un nodo a un clúster existente: • Añada el nodo al nivel de red. • Configure el almacenamiento compartido. • Añada el nodo a los niveles de software de clúster Oracle, de base de datos y de instancia de base de datos.
Adición de un nodo nuevo al nivel de red Para añadir un nodo nuevo al nivel de red: 1 Instale el sistema operativo Enterprise Linux en el nodo nuevo. Para obtener más información, consulte el documento Base de datos Oracle en Enterprise Linux x86_64 — Guía de instalación del sistema operativo y el hardware. 2 Configure las redes pública y privada en el nodo nuevo. Consulte el documento Base de datos Oracle en Enterprise Linux x86_64 — Guía de almacenamiento y redes.
5 Abra una ventana de terminal y realice los pasos siguientes en el nodo nuevo: a Escriba service oracleasm configure. b Escriba lo siguiente para todos los nodos: Default user to own the driver interface [ ]: oracle Default group to own the driver interface [ ]: dba Start Oracle ASM library driver on boot (y/n) [n]: y Fix permissions of Oracle ASM disks on boot (y/n) [y]: y c Asegúrese de que el nodo nuevo puede acceder a los discos ASM.
Adición de un nodo nuevo al nivel de software de clúster Oracle 1 Inicie la sesión como oracle en uno de los nodos existentes. 2 Desde el directorio /crs/oracle/product/11.1.0/crs/oui/bin del nodo existente, escriba ./addNode.sh para iniciar Oracle Universal Installer. 3 En la ventana Welcome (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 /opt/oracle/product/11.1.0/db_1/oui/bin del nodo existente, escriba ./addNode.sh para iniciar Oracle Universal Installer. 3 En la ventana Welcome (Bienvenida), haga clic en Next (Siguiente).
Reconfiguración del proceso de escucha En esta sección se describen los pasos necesarios para volver a configurar el proceso de escucha, que es necesario para la conexión remota de un cliente a una base de datos. NOTA: En los pasos que se indican a continuación se presupone que puede 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.
11 En la ventana Listener Configuration (Configuración del proceso de escucha)→ Select Protocols (Seleccionar protocolos), seleccione TCP y haga clic en Next (Siguiente). 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).
6 Escriba el nombre de usuario sys y la contraseña y, a continuación, haga clic en Next (Siguiente). Aparece la ventana List of Cluster Database Instances (Lista de instancias de base de datos del clúster), en la que se muestran las instancias asociadas a la base de datos RAC que ha seleccionado, así como el estado de cada instancia. 7 En la ventana List of Cluster Database Instances (Lista de instancias de base de datos del clúster), haga clic en Next (Siguiente).
Eliminación de un nodo del clúster Cuando realice los procedimientos de esta sección, asegúrese de seleccionar y eliminar el nodo correcto del clúster. Eliminación del nodo del nivel de instancia de base de datos 1 Inicie la sesión como oracle. 2 Desde uno de los nodos restantes, escriba: dbca 3 En la ventana de bienvenida, haga clic en Next (Siguiente). 4 En la ventana Operations (Operaciones), haga clic en Instance Management (Administración de instancias) y, a continuación, en Next (Siguiente).
8 Seleccione la instancia que desee eliminar y haga clic en Next (Siguiente). Esta instancia no puede ser la instancia local desde la que se está ejecutando el DBCA. Si selecciona la instancia local, el DBCA muestra un cuadro de diálogo de Error. En ese caso, haga clic en OK (Aceptar), seleccione otra instancia y haga clic en Finish (Finalizar). Si se han asignado servicios a esta instancia, se mostrará la ventana DBCA Services Management (Administración de servicios del DBCA).
6 En la ventana Listener Configuration (Configuración del proceso de escucha)→ Select Listener (Seleccionar proceso de escucha), seleccione LISTENER y haga clic en Next (Siguiente). Cuando aparezca el mensaje Are you sure you want to delete listener LISTENER? (¿Está seguro de que desea eliminar el proceso de escucha LISTENER?), haga clic en Yes (Sí). 7 En la ventana Listener Configuration (Configuración del proceso de escucha)→ Listener Deleted (Proceso de escucha eliminado), haga clic en Next (Siguiente).
Eliminación de un nodo del nivel de software de clúster Oracle 1 En el nodo que está eliminando, como usuario root, deshabilite CRS escribiendo el comando siguiente: /crs/oracle/product/11.1.0/crs/install/rootdelete. sh remote nosharedvar 2 En uno de los nodos restantes, como usuario root, escriba el comando siguiente: /crs/oracle/product/11.1.0/crs/install/rootdelete node.
Índice A D ajustes del reloj del sistema, 292 disco de votación, 295 almacenamiento de base de datos, 312 asistente para la configuración de bases de datos, 303 ASM, 306, 313, 326 controlador de biblioteca, 314 eliminar del nodo, 335 utilizar sin formato, 313 ayuda, 288 asistencia de Dell, 288 asistencia de Oracle, 289 B base de datos Oracle 10g instalar, 315 base de datos semilla, 319 ASM, 306, 321 OCFS2, 303 sistema de archivos ext3, 319 L LUN, 288 N nivel de instancia, 331 nodos configurar el alma
P S página web de asistencia de Dell, 288 secuencias de comandos de automatización de Dell, 291 página web de formación de Dell, 288 semilla, base de datos, 319 página web de Redhat, 291 software de clúster eliminar nodo, 336 instalar, 292 página web My Oracle Support, 289 soporte multimedia Oracle Clusterware, 292 página web de Oracle, 289 patchset 11.1.0.