oracle10gRAC安装手册

上传人:沈*** 文档编号:147364297 上传时间:2022-09-02 格式:DOC 页数:37 大小:224.50KB
返回 下载 相关 举报
oracle10gRAC安装手册_第1页
第1页 / 共37页
oracle10gRAC安装手册_第2页
第2页 / 共37页
oracle10gRAC安装手册_第3页
第3页 / 共37页
点击查看更多>>
资源描述
oracle 10g RAC 数据库安装手册作者:版本:1.0时间:2013.5 在 Enterprise Linux 上安装 Oracle RAC 10g1. 硬件要求和概述2. 配置 Enterprise Linux3. 配置 Oracle 自动存储管理 (ASM)4. 配置 Oracle 集群文件系统 (OCFS2)5. 安装 Oracle 集群件6. 安装 Oracle 数据库 10g 第 2 版7. 探索 RAC 数据库环境8. 测试透明应用程序故障切换 (TAF)9. 数据库备份与恢复10. 探索 Oracle 企业管理器 (OEM) 数据库控制台11. 常见问题1. 硬件要求和概述64 位处理器支持 64 位客户操作系统: AMD Athlon 64 修订版 D 或更高版本 AMD Opteron 修订版 E 或更高版本 AMD Turion 64 修订版 E 或更高版本 AMD Sempron 64-bit-capable 修订版 D 或更新的 Intel EM64T VT-capable 处理器 主机操作系统环境概况:主机名操作系统处理器内存磁盘网卡RAC01Centos 5.3或red hat linux enterprise 4 X3550M2 Intel Xeon 5520 2.26GHz16GB DDR3 FSB1066146GB 2.5SAS*24*1000M网卡RAC02Centos 5.3或red hat linux enterprise 4 X3550M2 Intel Xeon 5520 2.26GHz16GB DDR3 FSB1066146GB 2.5SAS*24*1000M网卡磁盘布局概况:客户操作系统上的虚拟磁盘虚拟设备节点大小 (MB)描述/dev/sda1/dev/sda2/dev/sda3SCSI 0:020480“/”挂载点交换空间 Oracle 二进制文件 /dev/sdbSCSI 1:01024OCFS2 磁盘/dev/sdcSCSI 1:1409600ASM 磁盘组 1/dev/sdeSCSI 1:320480ASM 闪回恢复区(要配置共享存储,客户 OS 不能与共享存储共享同一个 SCSI 总线。指定客户 OS 使用 SCSI0,共享磁盘使用 SCSI1。)RAC 数据库环境概况:主机名ASM 实例名RAC 实例名 数据库名数据库文件存储OCR 与表决磁盘 (Voting Disk)rac1+ASM1kiiik1kiiikASMOCFS2rac2+ASM2kiiik2kiiikASMOCFS2您将在每个节点上安装 Oracle 主目录供冗余使用。每个节点上的 ASM 和 Oracle RAC 实例共享同一个 Oracle 主目录。 操作系统配置 需关闭防火墙和selinux,时区选择北京. 并且以rac1 为基准建立ntp服务. 主 192.168.40.21 vi /etc/ntp.confrestrict nomodify 启动ntpchkconfig -level 35 ntpd on备 192.168.40.22vi /etc/ntp.confserver 192.168.40.21备添加syndate.sh #! /bin/bashntpdate 192.168.40.21加入到crontab中即可.*/5 * * * * /home/oracle/db_check/syndate.sh 1/dev/null 2&1创建 oracle 用户。 以 root 用户身份执行# groupadd oinstall# groupadd dba# mkdir /u01# mkdir -p /export/home/oracle /ocfs# useradd -d /export/home/oracle -g oinstall -G dba -s /bin/bash oracle# chown oracle:dba /export/home/oracle /u01# passwd oracleNew Password:Re-enter new Password:passwd: password successfully changed for oracle创建 oracle 用户环境文件。 vi /export/home/oracle/.bash_profile export PS1=/bin/hostname -s- export EDITOR=viexport ORACLE_SID=kiiik1 注:节点2 选择kiiik2export ORACLE_BASE=/u01/app/oracleexport ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1export ORA_CRS_HOME=$ORACLE_BASE/product/10.2.0/crs_1export LD_LIBRARY_PATH=$ORACLE_HOME/libexport PATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/binumask 022创建文件系统目录结构。以 oracle 用户身份执行 rac1-mkdir -p $ORACLE_BASE/admin mkdir -p $ORACLE_HOMEmkdir -p $ORA_CRS_HOMEmkdir -p /u01/oradata/kiiik提高 Oracle 用户的 shell 限制。使用文本编辑器将下面列出的行添加到 /etc/security/limits.conf、/etc/pam.d/login 和 /etc/profile。其他信息可以从文档中获得。 /etc/security/limits.conf oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536/etc/pam.d/login session required /lib/security/pam_limits.so/etc/profile if $USER = oracle ; thenif $SHELL = /bin/ksh ; thenulimit -p 16384ulimit -n 65536elseulimit -u 16384 -n 65536fifi安装 Enterprise Linux 软件程序包。安装 Oracle 软件需要以下附加程序包。如果您已经安装了 64 位版本的 Enterprise Linux,则安装程序应该已安装了这些程序包。 libaio-0.3.105-2.i386.rpm openmotif21-2.1.30-11.RHEL4.6.i386.rpm从 ISO CD 解压缩这些程序包,并以 root 用户身份执行下面的命令。 # lslibaio-0.3.105-2.i386.rpm openmotif21-2.1.30-11.RHEL4.6.i386.rpm# rpm -Uvh *.rpmwarning: libaio-0.3.105-2.i386.rpm: V3 DSA signature: NOKEY, key ID b38a8516Preparing. # 100% 1:openmotif21 # 50% 2:libaio # 100%配置内核参数。使用文本编辑器将下面列出的行添加到 /etc/sysctl.conf。要使更改立即生效,请执行 /sbin/sysctl p。 # more /etc/sysctl.confkernel.shmall = 2097152kernel.shmmax = 2147483648kernel.shmmni = 4096kernel.sem = 250 32000 100 128fs.file-max = 65536net.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default = 1048576net.core.rmem_max = 1048576net.core.wmem_default = 262144net.core.wmem_max = 262144修改 /etc/hosts 文件。 # more /etc/hosts127.0.0.1 localhost localhost#public 192.168.40.11 rac01 rac1192.168.40.12 rac02 rac2#virtual192.168.40.221 vip01 vip1192.168.40.222 vip02 vip2#private10.0.50.211 node0110.0.50.212 node02配置 hangcheck timer 内核模块。hangcheck timer 内核模块可监控系统的运行情况,并重新启动出现故障的 RAC 节点。它使用两个参数,即 hangcheck_tick(定义系统检查频率)和 hangcheck_margin(定义在重置 RAC 节点前的最大挂起延时)来确定节点是否出现故障。 在 /etc/modprobe.conf 中添加以下行,以设置 hangcheck 内核模块参数。 /etc/modprobe.confoptions hangcheck-timer hangcheck_tick=30 hangcheck_margin=180要立即加载模块,执行“modprobe -v hangcheck-timer”。 为 OCFS2 和 Oracle ASM 创建磁盘分区。为 OCFS2 (/dev/sdb) 和 Oracle ASM(/dev/sdc、/dev/sdd、/dev/sde)准备一组原始磁盘。 在 rac1 上,以 root 用户身份执行# fdisk /dev/sdbCommand (m for help): nCommand action e extended p primary partition (1-4)pPartition number (1-4): 1First cylinder (1-512, default 1):Using default value 1Last cylinder or +size or +sizeM or +sizeK (1-512, default 512):Using default value 512Command (m for help): wThe partition table has been altered!Calling ioctl() to re-read partition table.Syncing disks.# fdisk /dev/sdcCommand (m for help): nCommand action e extended p primary partition (1-4)pPartition number (1-4): 1First cylinder (1-391, default 1):Using default value 1Last cylinder or +size or +sizeM or +sizeK (1-391, default 391):Using default value 391Command (m for help): wThe partition table has been altered!Calling ioctl() to re-read partition table.Syncing disks.# fdisk /dev/sddCommand (m for help): nCommand action e extended p primary partition (1-4)pPartition number (1-4): 1First cylinder (1-391, default 1):Using default value 1Last cylinder or +size or +sizeM or +sizeK (1-391, default 391):Using default value 391Command (m for help): wThe partition table has been altered!Calling ioctl() to re-read partition table.Syncing disks.# fdisk /dev/sdeCommand (m for help): nCommand action e extended p primary partition (1-4)pPartition number (1-4): 1First cylinder (1-261, default 1):Using default value 1Last cylinder or +size or +sizeM or +sizeK (1-261, default 261):Using default value 261Command (m for help): wThe partition table has been altered!Calling ioctl() to re-read partition table.Syncing disks.# fdisk -lDisk /dev/sda: 21.4 GB, 21474836480 bytes255 heads, 63 sectors/track, 2610 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System/dev/sda1 * 1 910 7309543+ 83 Linux/dev/sda2 911 1170 2088450 82 Linux swap/dev/sda3 1171 2610 11566800 83 LinuxDisk /dev/sdb: 536 MB, 536870912 bytes64 heads, 32 sectors/track, 512 cylindersUnits = cylinders of 2048 * 512 = 1048576 bytes Device Boot Start End Blocks Id System/dev/sdb1 1 512 524272 83 LinuxDisk /dev/sdc: 3221 MB, 3221225472 bytes255 heads, 63 sectors/track, 391 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System/dev/sdc1 1 391 3140676 83 LinuxDisk /dev/sdd: 3221 MB, 3221225472 bytes255 heads, 63 sectors/track, 391 cylindersUnits = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System/dev/sdd1 1 391 3140676 83 Linux Device Boot Start End Blocks Id System/dev/sde1 1 261 2096451 83 Linux安装 oracleasmlib 程序包。 从 OTN 下载 ASM 库,并以 root 用户身份安装 ASM RPM。 # rpm -Uvh oracleasmlib-2.0.2-1.i386.rpmPreparing. # 100% 1:oracleasmlib # 100%在这个阶段,您应该已经安装了以下 ASM 程序包。 rootrac1 swdl# rpm -qa | grep oracleasmoracleasm-support-2.0.3-2oracleasm-2.6.9-42.0.0.0.1.ELsmp-2.0.3-2oracleasmlib-2.0.2-1为 ASM 磁盘映射原始设备。仅当您打算使用标准 Linux I/O 创建 ASM 磁盘时,才需要原始设备映射。创建 ASM 磁盘的另一个方法是使用 Oracle 提供的 ASM 库驱动程序。稍后,您将使用 ASM 库驱动程序配置 ASM 磁盘。 执行以下任务,将原始设备映射到先前创建的共享分区。每次引导集群节点时,原始设备都必须与块设备绑定。 将以下行添加到 /etc/sysconfig/rawdevices 中。/etc/sysconfig/rawdevices /dev/raw/raw1 /dev/sdc1/dev/raw/raw2 /dev/sdd1/dev/raw/raw3 /dev/sde1要使映射立即生效,以 root 用户身份执行以下命令: # /sbin/service rawdevices restartAssigning devices: /dev/raw/raw1 - /dev/sdc1/dev/raw/raw1: bound to major 8, minor 33 /dev/raw/raw2 - /dev/sdd1/dev/raw/raw2: bound to major 8, minor 49 /dev/raw/raw3 - /dev/sde1/dev/raw/raw3: bound to major 8, minor 65done# chown oracle:dba /dev/raw/raw1-3# chmod 660 /dev/raw/raw1-3# ls -lat /dev/raw/raw*crw-rw- 1 oracle dba 162, 3 Nov 4 07:04 /dev/raw/raw3crw-rw- 1 oracle dba 162, 2 Nov 4 07:04 /dev/raw/raw2crw-rw- 1 oracle dba 162, 1 Nov 4 07:04 /dev/raw/raw1以 oracle 用户身份执行 rac1- ln -sf /dev/raw/raw1 /u01/oradata/kiiik/asmdisk1rac1- ln -sf /dev/raw/raw2 /u01/oradata/kiiik/asmdisk2rac1- ln -sf /dev/raw/raw3 /u01/oradata/kiiik/asmdisk3修改 /etc/udev/permissions.d/50-udev.permissions。原始设备在 引导时会重新映射。默认情况下,在引导时原始设备的拥有者将更改为 root 用户。如果拥有者不是 oracle 用户,则 ASM 在访问共享分区时会出现问题。在 /etc/udev/permissions.d/50-udev.permissions 中为原始行“raw/*:root:disk:0660”添加注释,然后添加一个新行“raw/*:oracle:dba:0660”。/etc/udev/permissions.d/50-udev.permissions # raw devicesram*:root:disk:0660#raw/*:root:disk:0660raw/*:oracle:dba:0660使用 SSH 建立用户等效性。在集群就绪服务 (CRS) 和 RAC 安装过程中,Oracle Universal Installer (OUI) 必须能够以 oracle 的身份将软件复制到所有 RAC 节点,而不提示输入口令。在 Oracle 10g 中,可以使用 ssh 代替 rsh 完成此操作。 要建立用户等效性,请在两个节点上以 oracle 用户身份生成用户的公钥和私钥。打开 rac1 的电源,在这两个节点上执行以下任务。在 rac1 上执行 rac1- mkdir /.sshrac1- chmod 700 /.sshrac1- ssh-keygen -t rsaGenerating public/private rsa key pair.Enter file in which to save the key (/export/home/oracle/.ssh/id_rsa):Enter passphrase (empty for no passphrase):Enter same passphrase again:Your identification has been saved in /export/home/oracle/.ssh/id_rsa.Your public key has been saved in /export/home/oracle/.ssh/id_rsa.pub.The key fingerprint is:87:54:4f:92:ba:ed:7b:51:5d:1d:59:5b:f9:44:da:b6 oraclerac1- ssh-keygen -t dsaGenerating public/private dsa key pair.Enter file in which to save the key (/export/home/oracle/.ssh/id_dsa):Enter passphrase (empty for no passphrase):Enter same passphrase again:Your identification has been saved in /export/home/oracle/.ssh/id_dsa.Your public key has been saved in /export/home/oracle/.ssh/id_dsa.pub.The key fingerprint is:31:76:96:e6:fc:b7:25:04:fd:70:42:04:1f:fc:9a:26 oracle在 rac2 上执行 rac2- mkdir /.sshrac2- chmod 700 /.sshrac2- ssh-keygen -t rsaGenerating public/private rsa key pair.Enter file in which to save the key (/export/home/oracle/.ssh/id_rsa):Enter passphrase (empty for no passphrase):Enter same passphrase again:Your identification has been saved in /export/home/oracle/.ssh/id_rsa.Your public key has been saved in /export/home/oracle/.ssh/id_rsa.pub.The key fingerprint is:29:5a:35:ac:0a:03:2c:38:22:3c:95:5d:68:aa:56:66 oraclerac2- ssh-keygen -t dsaGenerating public/private dsa key pair.Enter file in which to save the key (/export/home/oracle/.ssh/id_dsa):Enter passphrase (empty for no passphrase):Enter same passphrase again:Your identification has been saved in /export/home/oracle/.ssh/id_dsa.Your public key has been saved in /export/home/oracle/.ssh/id_dsa.pub.The key fingerprint is:4c:b2:5a:8d:56:0f:dc:7b:bc:e0:cd:3b:8e:b9:5c:7c oracle在 rac1 上执行 rac1- cat /.ssh/id_rsa.pub /.ssh/authorized_keysrac1- cat /.ssh/id_dsa.pub /.ssh/authorized_keysrac1- ssh rac2 cat /.ssh/id_rsa.pub /.ssh/authorized_keysThe authenticity of host rac2 (192.168.2.132) cant be established.RSA key fingerprint is 63:d3:52:d4:4d:e2:cb:ac:8d:4a:66:9f:f1:ab:28:1f.Are you sure you want to continue connecting (yes/no)? yesWarning: Permanently added rac2,192.168.2.132 (RSA) to the list of known hosts.oraclerac2s password:rac1- ssh rac2 cat /.ssh/id_dsa.pub /.ssh/authorized_keysoraclerac2s password:rac1- scp /.ssh/authorized_keys rac2:/.ssh/authorized_keysoraclerac2s password:authorized_keys 100% 1716 1.7KB/s 00:00在每个节点上测试连接。验证当您再次运行以下命令时,系统是否不提示您输入口令。 ssh rac1 datessh rac2 datessh rac01 datessh rac02 datessh node01 datessh node02 date5. 配置 Oracle 自动存储管理 (ASM)Oracle ASM 与 Oracle 数据库紧密集成在一起,并与 Oracle 的数据管理工具套件配合工作。它可以简化数据库存储管理,并提供原始磁盘 I/O 的性能。 配置 ASMLib。以 root 用户身份在两个节点上配置 ASMLib。 # /etc/init.d/oracleasm configureConfiguring the Oracle ASM library driver.This will configure the on-boot properties of the Oracle ASM librarydriver. The following questions will determine whether the driver isloaded on boot and what permissions it will have. The current valueswill be shown in brackets (). Hitting without typing ananswer will keep that current value. Ctrl-C will abort.Default user to own the driver interface : oracleDefault group to own the driver interface : dbaStart Oracle ASM library driver on boot (y/n) n: yFix permissions of Oracle ASM disks on boot (y/n) y: yWriting Oracle ASM library driver configuration: OK Loading module oracleasm: OK Mounting ASMlib driver filesystem: OK Scanning system for ASM disks: OK 创建 ASM 磁盘。以 root 用户身份在任何一个节点上创建 ASM 磁盘。 # /etc/init.d/oracleasm createdisk VOL1 /dev/sdc1Marking disk /dev/sdc1 as an ASM disk: OK # /etc/init.d/oracleasm createdisk VOL2 /dev/sdd1Marking disk /dev/sdd1 as an ASM disk: OK # /etc/init.d/oracleasm createdisk VOL3 /dev/sde1Marking disk /dev/sde1 as an ASM disk: OK Verify that the ASM disks are visible from every node. # /etc/init.d/oracleasm scandisksScanning system for ASM disks: OK # /etc/init.d/oracleasm listdisksVOL1VOL26. 配置 Oracle 集群文件系统 (OCFS2)OCFS2 是 Oracle 开发的一个通用集群文件系统,与 Enterprise Linux 内核集成在一起。它允许所有节点在集群文件系统上同时共享文件,因而消除了管理原始设备的需求。这里,您将在 OCFS2 文件系统中寄宿 OCR 和表决磁盘。您可以从 OCFS2 用户指南获取有关 OCFS2 的其他信息。 在 Enterprise Linux 安装期间,您应该已经安装了 OCFS2 RPM。验证 RPM 是否已经安装在两个节点上。 rac1- rpm -qa | grep ocfsocfs2-tools-1.2.2-2ocfs2console-1.2.2-2ocfs2-2.6.9-42.0.0.0.1.ELsmp-1.2.3-2创建 OCFS2 配置文件。 在 rac1 上,以 root 用户身份执行# ocfs2console1. OCFS2 控制台:选择 Cluster,然后选择 Configure Nodes。2. “集群堆栈已经启动”:单击 Close。3. 节点配置:单击 Add。4. 新增节点:添加以下节点,然后单击 Apply。 o 名称:rac1o IP 地址: 192.168.2.131o IP 端口: 7777o 名称:rac2o IP 地址: 192.168.2.132o IP 端口: 77775. 验证生成的配置文件。 6. # more /etc/ocfs2/cluster.conf7. node:8. ip_port = 77779. ip_address = 192.168.2.13110. number = 011. name = rac112. cluster = ocfs213.14. node:15. ip_port = 777716. ip_address = 192.168.2.13217. number = 118. name = rac219. cluster = ocfs220.21. cluster:22. node_count = 223. name = ocfs224. 将配置文件传播到 rac2。您可以在 rac2 上重新运行上述步骤以生成配置文件,或者在 rac1 的 OCFS2 控制台上选择 Cluster 和 Propagate Configuration 以将配置文件传播到 rac2。 配置 O2CB 驱动程序。O2CB 是一组集群服务,负责管理节点与集群文件系统之间的通信。下面是对各个服务的说明: NM:用于跟踪 cluster.conf 中的所有节点的节点管理器 HB:当节点加入或离开集群时向上/向下发出通知的心跳服务 TCP:处理节点之间的通信 DLM:用于跟踪所有锁、这些锁的所有者以及状态的分布式锁管理器 CONFIGFS:在 /config 中挂载的用户空间驱动的配置文件系统 DLMFS:用户空间与内核空间 DLM 的接口在两个节点上执行下面的过程,将 O2CB 配置为在引导时启动。当系统提示您指定心跳死亡阈值时,您必须指定一个大于 7 的值,以防止节点由于较慢的 IDE 磁盘驱动器而崩溃。心跳死亡阈值是一个用于计算隔离时间的变量。 Fence time (seconds) = (heartbeat dead threshold -1) * 2在我们的环境中,120 秒的隔离时间很合适。两个节点上的心跳死亡阈值应该完全相同。 以 root 用户身份执行 # /etc/init.d/o2cb unloadStopping O2CB cluster ocfs2: OKUnmounting ocfs2_dlmfs filesystem: OKUnloading module ocfs2_dlmfs: OKUnmounting configfs filesystem: OKUnloading module configfs: OK# /etc/init.d/o2cb configureConfiguring the O2CB driver.This will configure the on-boot properties of the O2CB driver.The following questions will determine whether the driver is loaded onboot. The current values will be shown in brackets (). Hitting without typing an answer will keep that current value. Ctrl-Cwill abort.Load O2CB driver on boot (y/n) y: yCluster to start on boot (Enter none to clear) ocfs2:Specify heartbeat dead threshold (=7) 7: 61Writing O2CB configuration: OKLoading module configfs: OKMounting configfs filesystem at /config: OKLoading module ocfs2_nodemanager: OKLoading module ocfs2_dlm: OKLoading module ocfs2_dlmfs: OKMounting ocfs2_dlmfs filesystem at /dlm: OKStarting O2CB cluster ocfs2: OK格式化文件系统。在格式化和挂载文件系统之前,应验证 O2CB 在两个节点上均联机;O2CB 心跳当前没有活动,因为文件系统未挂载。 # /etc/init.d/o2cb statusModule configfs: LoadedFilesystem configfs: MountedModule ocfs2_nodemanager: LoadedModule ocfs2_dlm: LoadedModule ocfs2_dlmfs: LoadedFilesystem ocfs2_dlmfs: MountedChecking O2CB cluster ocfs2: OnlineChecking O2CB heartbeat: Not active您只需在一个节点上格式化文件系统。在 rac1 上,以 root 用户身份执行# ocfs2console1. OCFS2 控制台:选择 Tasks、Format。2. 格式: o 可用设备:/dev/sdb1o 卷标:oracleo 集群大小:Autoo 节点插槽数量: 4o 块大小:Auto3. OCFS2 控制台:按 CTRL-Q 退出。挂载文件系统。要挂载文件系统,在两个节点上执行以下命令。 # mount -t ocfs2 -o datavolume,nointr /dev/sdb1 /ocfs要在引导时挂载文件系统,在两个节点的 /etc/fstab 中添加以下行。 /etc/fstab/dev/sdb1 /ocfs ocfs2 _netdev,datavolume,nointr 0 0创建 Oracle 集群件目录。在 OCR 和表决磁盘将驻留的 OCFS2 文件系统中创建目录。 在 rac1 上执行 # mkdir /ocfs/clusterware# chown -R oracle:dba /ocfs 现在,您已经完成了 OCFS2 的设置。验证您可以在两个节点的共享集群文件系统上读写文件。 7. 安装 Oracle 集群件下载后,在 rac1 上以 oracle 用户身份执行rac1- /u01/staging/clusterware/runInstaller1. 欢迎页面:单击 Next。2. 指定 Inventory 目录和证书: o 输入 inventory 目录的完整路径:/u01/app/oracle/oraInventory。o 指定操作系统组名:oinstall。3. 指定 Home 详细内容: o 名称:OraCrs10g_homeo /u01/app/oracle/product/10.2.0/crs_14. 特定于产品的必要条件检查: o 忽略有关物理内存要求的警告。5. 指定集群配置:单击 Add。 o 公共节点名称:o 专用节点名称:rac2-o 虚拟主机名称:rac2-6. 指定网络接口用法: o 接口名称:eth0o 子网: 192.168.2.0o 接口类型:Publico 接口名称:eth1o 子网: 10.10.10.0o 接口类型:Private7. 指定 Oracle 集群注册表 (OCR) 位置:选择 External Redundancy。为了简单起见,这里将不镜像 OCR。在生产环境中,您可能会考虑复用 OCR 以实现更高的冗余。 o 指定 OCR 位置:/ocfs/clusterware/ocr8. 指定表决磁盘位置:选择 External Redundancy。同样,为了简单起见,我们选择不镜像表决磁盘。 o 表决磁盘位置:/ocfs/clusterware/votingdisk9. 摘要:单击 Install。10. 执行配置脚本:以 root 用户身份按顺序执行以下脚本(一次执行一个)。在当前脚本完成后,再继续执行下一个脚本。 o 在 rac1 上执行 /u01/app/oracle/oraInventory/orainstRoot.sh。o 在 rac2 上执行 /u01/app/oracle/oraInventory/orainstRoot.sh。o 在 rac1 上执行 /u01/app/oracle/product/10.2.0/crs_1/root.sh。o 在 rac2 上执行 /u01/app/oracle/product/10.2.0/crs_1/root.sh。rac2 上的 root.sh 脚本会自动调用 VIPCA,但会因为“The given interface(s), eth0 is not public.Public interfaces should be used to configure virtual IPs.”错误而失败。如果您的公共接口使用不可路由的 IP 地址 (192.168.x.x),则 Oracle 集群验证实用程序 (CVU) 将无法找到合适的公共接口。一种解决方法是手动运行 VIPCA。11. 以 root 用户身份在第二个节点上手动调用 VIPCA。# /u01/app/oracle/product/10.2.0/crs_1/bin/vipca12. 欢迎页面:单击 Next。13. 网络接口:选择 eth0。14. 集群节点的虚拟 IP: o 节点名称:rac1o IP 别名:rac1-vipo IP 地址: 192.168.2.31o 子网掩码: 255.255.255.0o 节点名称:rac2o IP 别名:rac2-vipo IP 地址: 192.168.2.32o 子网掩码: 255.255.255.015. 摘要:单击 Finish。 16. 配置助手
展开阅读全文
相关资源
相关搜索

最新文档


当前位置:首页 > 管理文书 > 施工组织


copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!