- 浏览: 5162028 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
silence19841230:
先拿走看看
SpringBoot2.0开发WebSocket应用完整示例 -
wallimn:
masuweng 写道发下源码下载地址吧!三个相关文件打了个包 ...
SpringBoot2.0开发WebSocket应用完整示例 -
masuweng:
发下源码下载地址吧!
SpringBoot2.0开发WebSocket应用完整示例 -
masuweng:
SpringBoot2.0开发WebSocket应用完整示例 -
wallimn:
水淼火 写道你好,我使用以后,图标不显示,应该怎么引用呢,谢谢 ...
前端框架iviewui使用示例之菜单+多Tab页布局
安装虚拟机,我使用的是VMware-server-2.0.2-203138.exe
B/S方式管理,有点不如WorkStation用着方便。
硬件配置:
网卡1:bridge模式
网卡2:host-only
硬盘1:本地20G,预先分配空间,Indepentant,位置SCSI 0:0
硬盘2:共享,200M,预先分配空间,Indepentant,位置SCSI 1:0,用于安装OCR
硬盘3:共享,200M,预先分配空间,Indepentant,位置SCSI 1:1,用于安装Voting Disk
硬盘4:共享,4G,预先分配空间,Indepentant,位置SCSI 1:2,
硬盘5:共享,4G,预先分配空间,Indepentant,位置SCSI 1:3,用于安装Oracle数据库
硬盘6:共享,2G,预先分配空间,Indepentant,位置SCSI 1:4,
硬盘7:共享,2G,预先分配空间,Indepentant,位置SCSI 1:5,用于做闪回空间,如果磁盘空间有限可以不创建。
装Linux,我使用的AS4,
创建dba,oinstall组
创建oracle用户
修改环境变量
[oracle@rac1 ~]$ vi ~/.bash_profile
export EDITOR=vi
export ORACLE_SID=prod1
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORA_CRS_HOME=/u01/crs
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
PATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:$PATH
修改内核参数:
sysctl.conf
kernel.shmall=2097152
kernel.shmmax=536970912
kernel.shmmni=4096
kernel.sem=250 32000 100 128
fs.file-max=65536
net.ipv4.ip_local_port_range=1024 65000
net.core.rmem_default=262144
net.core.wmem_default=262144
net.core.rmem_max=262144
net.core.wmem_max=262144
# /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16484
oracle soft nofile 1024
oracle hard nofile 65536
分区,/dev/sdb等,200M/200M/4G/4G/2G/2G
fdisk /dev/sdb
每个只分一个区,主分区,不要格式化
安装ASM软件
[root@rac1 sysconfig]# rpm -ivh oracleasm*
[root@rac1 sysconfig]# vi /etc/sysconfig/rawdevices
增加设置映射
/dev/raw/raw1 /dev/sdb1
/dev/raw/raw2 /dev/sdc1
/dev/raw/raw3 /dev/sdd1
/dev/raw/raw4 /dev/sde1
/dev/raw/raw5 /dev/sdf1
/dev/raw/raw6 /dev/sdg1
重启服务
service rawdevices restart
查看结果:
[root@rac1 sysconfig]# ls -l /dev/raw
total 0
crw-rw---- 1 root disk 162, 1 Jan 12 14:47 raw1
crw-rw---- 1 root disk 162, 2 Jan 12 14:47 raw2
crw-rw---- 1 root disk 162, 3 Jan 12 14:47 raw3
crw-rw---- 1 root disk 162, 4 Jan 12 14:47 raw4
crw-rw---- 1 root disk 162, 5 Jan 12 14:47 raw5
crw-rw---- 1 root disk 162, 6 Jan 12 14:47 raw6
修改所有权
[root@rac1 sysconfig]# vi /etc/udev/permissions.d/50-udev.permissions
修改raw的所有权信息
raw/*:oracle:dba:0660
保存后,重启服务,再用ls检查
[root@rac1 sysconfig]# service rawdevices restart
[root@rac1 sysconfig]# ls -l /dev/raw
total 0
crw-rw---- 1 oracle dba 162, 1 Jan 12 14:58 raw1
crw-rw---- 1 oracle dba 162, 2 Jan 12 14:58 raw2
crw-rw---- 1 oracle dba 162, 3 Jan 12 14:58 raw3
crw-rw---- 1 oracle dba 162, 4 Jan 12 14:58 raw4
crw-rw---- 1 oracle dba 162, 5 Jan 12 14:58 raw5
crw-rw---- 1 oracle dba 162, 6 Jan 12 14:58 raw6
设置网卡
[root@rac1 ~]$ vi /etc/sysconfig/network-scripts/ifcfg-eth0
设置IP为:21.156.173.240,掩码:255.255.255.0
[root@rac1 ~]$ vi /etc/sysconfig/network-scripts/ifcfg-eth1
设置IP为:10.1.1.1,掩码:255.255.255.0
重启网卡
[root@rac1 ~]service network restart
修改hosts文件
[oracle@rac1 ~]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 www.wallomn.com localhost
21.156.173.240 rac1
21.156.173.241 rac1-vip
10.1.1.1 rac1-prv
21.156.173.242 rac2
21.156.173.243 rac2-vip
10.1.1.2 rac2-prv
注:其中21.156.173.241 rac1-vip,是安装好cluster后,起作用的IP,好像叫飘移IP
找开虚拟机目录,打开rac1.vmx,添加以下内容,不然后复制虚拟机文件后,无法启动。
disk.locking="false"
diskLib.dataCacheMaxSize="0"
diskLib.dataCacheMaxReadAheadSize="0"
diskLib.dataCacheMinReadAheadSize="0"
diskLib.dataCachePageSize="4096"
diskLib.maxUnsyncedWrites="0"
scsi1:1.deviceType="disk"
scsi1:2.deviceType="disk"
scsi1:3.deviceType="disk"
scsi1:4.deviceType="disk"
scsi1:5.deviceType="disk"
scsi1:6.deviceType="disk"
用拷贝的虚拟机文件的方式,生成rac2节点,启动时告诉VMWare是拷贝的。
然后Linux会提示些东西,选择"do nothing"。
rac2顺利启动后,首先修改网上配置。
[root@rac2 network-scripts]vi /etc/sysconfig/network-scripts/ifcfg-eth0
修改IP为21.156.173.242
[root@rac2 network-scripts]vi /etc/sysconfig/network-scripts/ifcfg-eth1
修改IP为10.1.1.2
重启网卡
[root@rac2 network-scripts]service network restart
建立ssh互信关系
首先确保两个机器能够ping通。
在rac1上执行下面操作
[oracle@rac1 ~]$ mkdir ~/.ssh
[oracle@rac1 ~]$ chmod 700 ~/.ssh
[oracle@rac1 ~]$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/oracle/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/oracle/.ssh/id_rsa.
Your public key has been saved in /home/oracle/.ssh/id_rsa.pub.
The key fingerprint is:
1c:f4:bb:9f:eb:09:4b:f4:57:ac:e9:11:af:32:9f:8f oracle@rac1
[oracle@rac1 ~]$ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/oracle/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/oracle/.ssh/id_dsa.
Your public key has been saved in /home/oracle/.ssh/id_dsa.pub.
The key fingerprint is:
14:55:6e:8c:a3:82:26:fe:11:c6:58:b1:d5:8f:16:f7 oracle@rac1
上述操作在rac2上同样进行一次。
回到rac1,操作中,要输入rac2的oracle用户的密码
[oracle@rac1 ~]$ ssh rac2 cat ~/.ssh/id_rsa.pub>>~/.ssh/authorized_keys
The authenticity of host 'rac2 (21.156.173.242)' can't be established.
RSA key fingerprint is c6:e3:d1:23:49:1a:a4:ff:53:59:1e:48:3a:51:a1:6f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac2,21.156.173.242' (RSA) to the list of known hosts.
oracle@rac2's password:
[oracle@rac1 ~]$ ssh rac2 cat ~/.ssh/id_dsa.pub>>~/.ssh/authorized_keys
oracle@rac2's password:
上传文件到rac2,看到提示信息表明成功
[oracle@rac1 .ssh]$ scp ~/.ssh/authorized_keys rac2:~/.ssh/authorized_keys
oracle@rac2's password:
authorized_keys 100% 3199 3.1KB/s 00:00
两个机器互相测试一下
[oracle@rac2 .ssh]$ ssh rac1 date
The authenticity of host 'rac1 (21.156.173.240)' can't be established.
RSA key fingerprint is c6:e3:d1:23:49:1a:a4:ff:53:59:1e:48:3a:51:a1:6f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac1,21.156.173.240' (RSA) to the list of known hosts.
Thu Jan 12 20:43:44 EST 2012
[oracle@rac2 .ssh]$ ssh rac1-prv date
The authenticity of host 'rac1-prv (10.1.1.1)' can't be established.
RSA key fingerprint is c6:e3:d1:23:49:1a:a4:ff:53:59:1e:48:3a:51:a1:6f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac1-prv,10.1.1.1' (RSA) to the list of known hosts.
Thu Jan 12 20:43:54 EST 2012
[oracle@rac1 .ssh]$ ssh rac2 date
[oracle@rac1 .ssh]$ ssh rac2-prv date
如果正确显示信息,说明设置正确
时间同步
rac1做服务器。
[root@rac1 ~]# service xinetd start
设置开机望到时间服务
[root@rac1 ~]# chkconfig time on
[root@rac1 ~]# service ntpd start
[root@rac1 ~]# chkconfig ntpd on
[root@rac1 ~]# chkconfig xinetd on
编辑任务表,设置定时同步
[root@rac2 etc]# crontab -e
0-59/1 * * * * /user/bin/rdate -s 10.1.1.1 >/dev/null 2>&1
0-59/1 * * * * /user/sbin/ntpdate 10.1.1.1 >/dev/null 2>&1
配置asm,两个节点都执行
[root@rac1 ~]# /etc/init.d/oracleasm configure
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface [oracle]: oracle
Default group to own the driver interface [dba]: dba
Start Oracle ASM library driver on boot (y/n) [y]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
配置ASM,仅rac1需要执行,rac2不需要。
[root@rac1 ~]# /etc/init.d/oracleasm createdisk VOL1 /dev/sdd1
Marking disk "VOL1" as an ASM disk: [ OK ]
[root@rac1 ~]# /etc/init.d/oracleasm createdisk VOL2 /dev/sde1
Marking disk "VOL2" as an ASM disk: [ OK ]
[root@rac1 ~]# /etc/init.d/oracleasm createdisk VOL3 /dev/sdf1
Marking disk "VOL3" as an ASM disk: [ OK ]
[root@rac1 ~]# /etc/init.d/oracleasm createdisk VOL4 /dev/sdg1
Marking disk "VOL4" as an ASM disk: [ OK ]
[root@rac1 ~]# /etc/init.d/oracleasm listdisks
VOL1
VOL2
VOL3
VOL4
rac2节点执行配置,
[root@rac2 ~]# /etc/init.d/oracleasm configure
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface [oracle]: oracle
Default group to own the driver interface [dba]: dba
Start Oracle ASM library driver on boot (y/n) [y]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
查看一下asm配置,应该同样看到rac1的配置,因为存储是共享的。
[root@rac2 ~]# /etc/init.d/oracleasm listdisks
也可以使用下面的命令
[root@rac2 ~]# service oracleasm listdisks
VOL1
VOL2
VOL3
VOL4
在Linux系统上准备好cluster软件,然后检查一下安装环境,如无特别说明,都是基于Oracle用户的。
[oracle@rac1 cluvfy]$ ./runcluvfy.sh stage -pre crsinst -n rac1,rac2 -verbose
有一堆提示,这里不写了,反正注意下一ERROR、failed字样就是了。有些可以忽略,是Oracle的BUG。
启动安装(在图形界面里进行,如不行先执行一下xhost +)
[oracle@rac1 cluvfy]$ pwd
/share/clusterware/cluvfy
执行安装
./runInstaller
将软件安装到目录
/u01/crs
添加上rac2节点
设置eth0为public,eth1为private(如果ssh没有配好,到这一步之前会有错)
设置OCR Configure冗余方式为:External Redundancy,位置设置为:/dev/raw/raw2(前面配置的裸设备)
设置Voting Disk Configure冗余方式为:External Redunancy,位置设置为:/dev/raw/raw1(前面配置的裸设备)
执行两个脚本,脚本1:orainstRoot.sh
[root@rac1 /]# /u01/app/oracle/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oracle/oraInventory to 770.
Changing groupname of /u01/app/oracle/oraInventory to oinstall.
The execution of the script is complete
脚本2:root.sh,执行时间有点长,耐心。
[root@rac1 /]# /u01/crs/root.sh
WARNING: directory '/u01' is not owned by root
Checking to see if Oracle CRS stack is already configured
/etc/oracle does not exist. Creating it now.
Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/u01' is not owned by root
assigning default hostname rac1 for node 1.
assigning default hostname rac2 for node 2.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node <nodenumber>: <nodename> <private interconnect name> <hostname>
node 1: rac1 rac1-prv rac1
node 2: rac2 rac2-prv rac2
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Now formatting voting device: /dev/raw/raw1
Format of 1 voting devices complete.
Startup will be queued to init within 90 seconds.
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
rac1
CSS is inactive on these nodes.
rac2
Local node checking complete.
Run root.sh on remaining nodes to start CRS daemons.
再在rac2节点上执行上面两个脚本
如果报内网IP不是public错误,以root身份执行脚本/u01/crs/bin/vipca,设置一下。
执行完毕后,在rac1上,切换回oracle用户,执行命令检查一下。
[oracle@rac1 u01]$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip application ONLINE OFFLINE
ora.rac2.gsd application ONLINE ONLINE rac2
ora.rac2.ons application ONLINE ONLINE rac2
ora.rac2.vip application ONLINE OFFLINE
两个东西没有online,检查了一下屏幕提示的安装日志,说我没有配默认网关,哎,这也要管。
配上网关,重启了一下network,就好了。如果再不行,就重启一下Linux。
在图形界面安装Oracle软件
[root@rac1 u01]# xhost +
我的Oracle安装文件,放在/u01/orasoft目录中,执行安装脚本
[oracle@rac1 u01]$ /u01/orasoft/runInstaller
Cluster Install界面上,两个节点:rac1、rac2都选上。
仅安装软件,先不安装数据库。
然后执行root.sh脚本,以root用户的身份执行。两个节点上都执行。
[root@rac1 db_1]# pwd
/u01/app/oracle/product/10.2.0/db_1
[root@rac1 db_1]# ./root.sh
Running Oracle10 root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/10.2.0/db_1
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
两个节点都运行完毕后,点击图形界面的OK按钮。
然后使用netca建立监听。建立cluster configuration,选两个节点,其它默认。
建完后,监听会自动启动。
查看一下监听的状态
[oracle@rac1 ~]$ lsnrctl status
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 13-JAN-2012 15:37:29
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER_RAC1
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 13-JAN-2012 15:29:42
Uptime 0 days 0 hr. 7 min. 47 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener_rac1.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=21.156.173.241)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=21.156.173.240)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
也可以检查一下配置文件
[oracle@rac1 admin]$ pwd
/u01/app/oracle/product/10.2.0/db_1/network/admin
[oracle@rac1 admin]$ cat listener.ora
# listener.ora.rac1 Network Configuration File: /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora.rac1
# Generated by Oracle configuration tools.
LISTENER_RAC1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac1-vip)(PORT = 1521)(IP = FIRST))
(ADDRESS = (PROTOCOL = TCP)(HOST = 21.156.173.240)(PORT = 1521)(IP = FIRST))
)
)
SID_LIST_LISTENER_RAC1 =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
)
)
然后就是建库了。使用dbca就可以了,可建单实例的,也可建集群的库。我们当然选择集群了。
一定记得两个节点rac1、rac2都选上。
库类型选通用(general)
全局数据库名、SID名:prod(前面设置环境变量的时候,两个节点的实例名一个为prod1,一个为prod2)
存储机制选ASM(Cluster File System好像不太容易成功)
ASM实例使用pfile方式,
创建磁盘组,DG1,冗余方式选择Normal(需要两块盘),选/dev/raw/raw3、/dev/raw/raw4
创建磁盘组,RECOVERY,冗余方式选择Normal(需要两块盘),选/dev/raw/raw5、/dev/raw/raw6
Database Area就选刚创建的+DG1
启动flash recovery,放在RECOVERY磁盘组上。
其它的选默认就可以了。当然,如果你愿意,也可以选一下字符集等参数。
测试一下集群的效果
用宿主机建立两个本地服务名,检测一下数据的效果。
SQL> conn system/oracle@rac2
已连接。
SQL> create table scott.test_rac as (select * from scott.dept);
表已创建。
SQL> conn system/oracle@rac1
已连接。
SQL> select count(*) from scott.test_rac;
COUNT(*)
----------
4
B/S方式管理,有点不如WorkStation用着方便。
硬件配置:
网卡1:bridge模式
网卡2:host-only
硬盘1:本地20G,预先分配空间,Indepentant,位置SCSI 0:0
硬盘2:共享,200M,预先分配空间,Indepentant,位置SCSI 1:0,用于安装OCR
硬盘3:共享,200M,预先分配空间,Indepentant,位置SCSI 1:1,用于安装Voting Disk
硬盘4:共享,4G,预先分配空间,Indepentant,位置SCSI 1:2,
硬盘5:共享,4G,预先分配空间,Indepentant,位置SCSI 1:3,用于安装Oracle数据库
硬盘6:共享,2G,预先分配空间,Indepentant,位置SCSI 1:4,
硬盘7:共享,2G,预先分配空间,Indepentant,位置SCSI 1:5,用于做闪回空间,如果磁盘空间有限可以不创建。
装Linux,我使用的AS4,
创建dba,oinstall组
创建oracle用户
修改环境变量
[oracle@rac1 ~]$ vi ~/.bash_profile
export EDITOR=vi
export ORACLE_SID=prod1
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORA_CRS_HOME=/u01/crs
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
PATH=$ORACLE_HOME/bin:$ORA_CRS_HOME/bin:$PATH
修改内核参数:
sysctl.conf
kernel.shmall=2097152
kernel.shmmax=536970912
kernel.shmmni=4096
kernel.sem=250 32000 100 128
fs.file-max=65536
net.ipv4.ip_local_port_range=1024 65000
net.core.rmem_default=262144
net.core.wmem_default=262144
net.core.rmem_max=262144
net.core.wmem_max=262144
# /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16484
oracle soft nofile 1024
oracle hard nofile 65536
分区,/dev/sdb等,200M/200M/4G/4G/2G/2G
fdisk /dev/sdb
每个只分一个区,主分区,不要格式化
安装ASM软件
[root@rac1 sysconfig]# rpm -ivh oracleasm*
[root@rac1 sysconfig]# vi /etc/sysconfig/rawdevices
增加设置映射
/dev/raw/raw1 /dev/sdb1
/dev/raw/raw2 /dev/sdc1
/dev/raw/raw3 /dev/sdd1
/dev/raw/raw4 /dev/sde1
/dev/raw/raw5 /dev/sdf1
/dev/raw/raw6 /dev/sdg1
重启服务
service rawdevices restart
查看结果:
[root@rac1 sysconfig]# ls -l /dev/raw
total 0
crw-rw---- 1 root disk 162, 1 Jan 12 14:47 raw1
crw-rw---- 1 root disk 162, 2 Jan 12 14:47 raw2
crw-rw---- 1 root disk 162, 3 Jan 12 14:47 raw3
crw-rw---- 1 root disk 162, 4 Jan 12 14:47 raw4
crw-rw---- 1 root disk 162, 5 Jan 12 14:47 raw5
crw-rw---- 1 root disk 162, 6 Jan 12 14:47 raw6
修改所有权
[root@rac1 sysconfig]# vi /etc/udev/permissions.d/50-udev.permissions
修改raw的所有权信息
raw/*:oracle:dba:0660
保存后,重启服务,再用ls检查
[root@rac1 sysconfig]# service rawdevices restart
[root@rac1 sysconfig]# ls -l /dev/raw
total 0
crw-rw---- 1 oracle dba 162, 1 Jan 12 14:58 raw1
crw-rw---- 1 oracle dba 162, 2 Jan 12 14:58 raw2
crw-rw---- 1 oracle dba 162, 3 Jan 12 14:58 raw3
crw-rw---- 1 oracle dba 162, 4 Jan 12 14:58 raw4
crw-rw---- 1 oracle dba 162, 5 Jan 12 14:58 raw5
crw-rw---- 1 oracle dba 162, 6 Jan 12 14:58 raw6
设置网卡
[root@rac1 ~]$ vi /etc/sysconfig/network-scripts/ifcfg-eth0
设置IP为:21.156.173.240,掩码:255.255.255.0
[root@rac1 ~]$ vi /etc/sysconfig/network-scripts/ifcfg-eth1
设置IP为:10.1.1.1,掩码:255.255.255.0
重启网卡
[root@rac1 ~]service network restart
修改hosts文件
[oracle@rac1 ~]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 www.wallomn.com localhost
21.156.173.240 rac1
21.156.173.241 rac1-vip
10.1.1.1 rac1-prv
21.156.173.242 rac2
21.156.173.243 rac2-vip
10.1.1.2 rac2-prv
注:其中21.156.173.241 rac1-vip,是安装好cluster后,起作用的IP,好像叫飘移IP
找开虚拟机目录,打开rac1.vmx,添加以下内容,不然后复制虚拟机文件后,无法启动。
disk.locking="false"
diskLib.dataCacheMaxSize="0"
diskLib.dataCacheMaxReadAheadSize="0"
diskLib.dataCacheMinReadAheadSize="0"
diskLib.dataCachePageSize="4096"
diskLib.maxUnsyncedWrites="0"
scsi1:1.deviceType="disk"
scsi1:2.deviceType="disk"
scsi1:3.deviceType="disk"
scsi1:4.deviceType="disk"
scsi1:5.deviceType="disk"
scsi1:6.deviceType="disk"
用拷贝的虚拟机文件的方式,生成rac2节点,启动时告诉VMWare是拷贝的。
然后Linux会提示些东西,选择"do nothing"。
rac2顺利启动后,首先修改网上配置。
[root@rac2 network-scripts]vi /etc/sysconfig/network-scripts/ifcfg-eth0
修改IP为21.156.173.242
[root@rac2 network-scripts]vi /etc/sysconfig/network-scripts/ifcfg-eth1
修改IP为10.1.1.2
重启网卡
[root@rac2 network-scripts]service network restart
建立ssh互信关系
首先确保两个机器能够ping通。
在rac1上执行下面操作
[oracle@rac1 ~]$ mkdir ~/.ssh
[oracle@rac1 ~]$ chmod 700 ~/.ssh
[oracle@rac1 ~]$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/oracle/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/oracle/.ssh/id_rsa.
Your public key has been saved in /home/oracle/.ssh/id_rsa.pub.
The key fingerprint is:
1c:f4:bb:9f:eb:09:4b:f4:57:ac:e9:11:af:32:9f:8f oracle@rac1
[oracle@rac1 ~]$ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/oracle/.ssh/id_dsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/oracle/.ssh/id_dsa.
Your public key has been saved in /home/oracle/.ssh/id_dsa.pub.
The key fingerprint is:
14:55:6e:8c:a3:82:26:fe:11:c6:58:b1:d5:8f:16:f7 oracle@rac1
上述操作在rac2上同样进行一次。
回到rac1,操作中,要输入rac2的oracle用户的密码
[oracle@rac1 ~]$ ssh rac2 cat ~/.ssh/id_rsa.pub>>~/.ssh/authorized_keys
The authenticity of host 'rac2 (21.156.173.242)' can't be established.
RSA key fingerprint is c6:e3:d1:23:49:1a:a4:ff:53:59:1e:48:3a:51:a1:6f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac2,21.156.173.242' (RSA) to the list of known hosts.
oracle@rac2's password:
[oracle@rac1 ~]$ ssh rac2 cat ~/.ssh/id_dsa.pub>>~/.ssh/authorized_keys
oracle@rac2's password:
上传文件到rac2,看到提示信息表明成功
[oracle@rac1 .ssh]$ scp ~/.ssh/authorized_keys rac2:~/.ssh/authorized_keys
oracle@rac2's password:
authorized_keys 100% 3199 3.1KB/s 00:00
两个机器互相测试一下
[oracle@rac2 .ssh]$ ssh rac1 date
The authenticity of host 'rac1 (21.156.173.240)' can't be established.
RSA key fingerprint is c6:e3:d1:23:49:1a:a4:ff:53:59:1e:48:3a:51:a1:6f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac1,21.156.173.240' (RSA) to the list of known hosts.
Thu Jan 12 20:43:44 EST 2012
[oracle@rac2 .ssh]$ ssh rac1-prv date
The authenticity of host 'rac1-prv (10.1.1.1)' can't be established.
RSA key fingerprint is c6:e3:d1:23:49:1a:a4:ff:53:59:1e:48:3a:51:a1:6f.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'rac1-prv,10.1.1.1' (RSA) to the list of known hosts.
Thu Jan 12 20:43:54 EST 2012
[oracle@rac1 .ssh]$ ssh rac2 date
[oracle@rac1 .ssh]$ ssh rac2-prv date
如果正确显示信息,说明设置正确
时间同步
rac1做服务器。
[root@rac1 ~]# service xinetd start
设置开机望到时间服务
[root@rac1 ~]# chkconfig time on
[root@rac1 ~]# service ntpd start
[root@rac1 ~]# chkconfig ntpd on
[root@rac1 ~]# chkconfig xinetd on
编辑任务表,设置定时同步
[root@rac2 etc]# crontab -e
0-59/1 * * * * /user/bin/rdate -s 10.1.1.1 >/dev/null 2>&1
0-59/1 * * * * /user/sbin/ntpdate 10.1.1.1 >/dev/null 2>&1
配置asm,两个节点都执行
[root@rac1 ~]# /etc/init.d/oracleasm configure
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface [oracle]: oracle
Default group to own the driver interface [dba]: dba
Start Oracle ASM library driver on boot (y/n) [y]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
配置ASM,仅rac1需要执行,rac2不需要。
[root@rac1 ~]# /etc/init.d/oracleasm createdisk VOL1 /dev/sdd1
Marking disk "VOL1" as an ASM disk: [ OK ]
[root@rac1 ~]# /etc/init.d/oracleasm createdisk VOL2 /dev/sde1
Marking disk "VOL2" as an ASM disk: [ OK ]
[root@rac1 ~]# /etc/init.d/oracleasm createdisk VOL3 /dev/sdf1
Marking disk "VOL3" as an ASM disk: [ OK ]
[root@rac1 ~]# /etc/init.d/oracleasm createdisk VOL4 /dev/sdg1
Marking disk "VOL4" as an ASM disk: [ OK ]
[root@rac1 ~]# /etc/init.d/oracleasm listdisks
VOL1
VOL2
VOL3
VOL4
rac2节点执行配置,
[root@rac2 ~]# /etc/init.d/oracleasm configure
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface [oracle]: oracle
Default group to own the driver interface [dba]: dba
Start Oracle ASM library driver on boot (y/n) [y]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
查看一下asm配置,应该同样看到rac1的配置,因为存储是共享的。
[root@rac2 ~]# /etc/init.d/oracleasm listdisks
也可以使用下面的命令
[root@rac2 ~]# service oracleasm listdisks
VOL1
VOL2
VOL3
VOL4
在Linux系统上准备好cluster软件,然后检查一下安装环境,如无特别说明,都是基于Oracle用户的。
[oracle@rac1 cluvfy]$ ./runcluvfy.sh stage -pre crsinst -n rac1,rac2 -verbose
有一堆提示,这里不写了,反正注意下一ERROR、failed字样就是了。有些可以忽略,是Oracle的BUG。
启动安装(在图形界面里进行,如不行先执行一下xhost +)
[oracle@rac1 cluvfy]$ pwd
/share/clusterware/cluvfy
执行安装
./runInstaller
将软件安装到目录
/u01/crs
添加上rac2节点
设置eth0为public,eth1为private(如果ssh没有配好,到这一步之前会有错)
设置OCR Configure冗余方式为:External Redundancy,位置设置为:/dev/raw/raw2(前面配置的裸设备)
设置Voting Disk Configure冗余方式为:External Redunancy,位置设置为:/dev/raw/raw1(前面配置的裸设备)
执行两个脚本,脚本1:orainstRoot.sh
[root@rac1 /]# /u01/app/oracle/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oracle/oraInventory to 770.
Changing groupname of /u01/app/oracle/oraInventory to oinstall.
The execution of the script is complete
脚本2:root.sh,执行时间有点长,耐心。
[root@rac1 /]# /u01/crs/root.sh
WARNING: directory '/u01' is not owned by root
Checking to see if Oracle CRS stack is already configured
/etc/oracle does not exist. Creating it now.
Setting the permissions on OCR backup directory
Setting up NS directories
Oracle Cluster Registry configuration upgraded successfully
WARNING: directory '/u01' is not owned by root
assigning default hostname rac1 for node 1.
assigning default hostname rac2 for node 2.
Successfully accumulated necessary OCR keys.
Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897.
node <nodenumber>: <nodename> <private interconnect name> <hostname>
node 1: rac1 rac1-prv rac1
node 2: rac2 rac2-prv rac2
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Now formatting voting device: /dev/raw/raw1
Format of 1 voting devices complete.
Startup will be queued to init within 90 seconds.
Adding daemons to inittab
Expecting the CRS daemons to be up within 600 seconds.
CSS is active on these nodes.
rac1
CSS is inactive on these nodes.
rac2
Local node checking complete.
Run root.sh on remaining nodes to start CRS daemons.
再在rac2节点上执行上面两个脚本
如果报内网IP不是public错误,以root身份执行脚本/u01/crs/bin/vipca,设置一下。
执行完毕后,在rac1上,切换回oracle用户,执行命令检查一下。
[oracle@rac1 u01]$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip application ONLINE OFFLINE
ora.rac2.gsd application ONLINE ONLINE rac2
ora.rac2.ons application ONLINE ONLINE rac2
ora.rac2.vip application ONLINE OFFLINE
两个东西没有online,检查了一下屏幕提示的安装日志,说我没有配默认网关,哎,这也要管。
配上网关,重启了一下network,就好了。如果再不行,就重启一下Linux。
在图形界面安装Oracle软件
[root@rac1 u01]# xhost +
我的Oracle安装文件,放在/u01/orasoft目录中,执行安装脚本
[oracle@rac1 u01]$ /u01/orasoft/runInstaller
Cluster Install界面上,两个节点:rac1、rac2都选上。
仅安装软件,先不安装数据库。
然后执行root.sh脚本,以root用户的身份执行。两个节点上都执行。
[root@rac1 db_1]# pwd
/u01/app/oracle/product/10.2.0/db_1
[root@rac1 db_1]# ./root.sh
Running Oracle10 root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/10.2.0/db_1
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.
两个节点都运行完毕后,点击图形界面的OK按钮。
然后使用netca建立监听。建立cluster configuration,选两个节点,其它默认。
建完后,监听会自动启动。
查看一下监听的状态
[oracle@rac1 ~]$ lsnrctl status
LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 13-JAN-2012 15:37:29
Copyright (c) 1991, 2005, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias LISTENER_RAC1
Version TNSLSNR for Linux: Version 10.2.0.1.0 - Production
Start Date 13-JAN-2012 15:29:42
Uptime 0 days 0 hr. 7 min. 47 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/10.2.0/db_1/network/log/listener_rac1.log
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=21.156.173.241)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=21.156.173.240)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
也可以检查一下配置文件
[oracle@rac1 admin]$ pwd
/u01/app/oracle/product/10.2.0/db_1/network/admin
[oracle@rac1 admin]$ cat listener.ora
# listener.ora.rac1 Network Configuration File: /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora.rac1
# Generated by Oracle configuration tools.
LISTENER_RAC1 =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = rac1-vip)(PORT = 1521)(IP = FIRST))
(ADDRESS = (PROTOCOL = TCP)(HOST = 21.156.173.240)(PORT = 1521)(IP = FIRST))
)
)
SID_LIST_LISTENER_RAC1 =
(SID_LIST =
(SID_DESC =
(SID_NAME = PLSExtProc)
(ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)
(PROGRAM = extproc)
)
)
然后就是建库了。使用dbca就可以了,可建单实例的,也可建集群的库。我们当然选择集群了。
一定记得两个节点rac1、rac2都选上。
库类型选通用(general)
全局数据库名、SID名:prod(前面设置环境变量的时候,两个节点的实例名一个为prod1,一个为prod2)
存储机制选ASM(Cluster File System好像不太容易成功)
ASM实例使用pfile方式,
创建磁盘组,DG1,冗余方式选择Normal(需要两块盘),选/dev/raw/raw3、/dev/raw/raw4
创建磁盘组,RECOVERY,冗余方式选择Normal(需要两块盘),选/dev/raw/raw5、/dev/raw/raw6
Database Area就选刚创建的+DG1
启动flash recovery,放在RECOVERY磁盘组上。
其它的选默认就可以了。当然,如果你愿意,也可以选一下字符集等参数。
测试一下集群的效果
用宿主机建立两个本地服务名,检测一下数据的效果。
SQL> conn system/oracle@rac2
已连接。
SQL> create table scott.test_rac as (select * from scott.dept);
表已创建。
SQL> conn system/oracle@rac1
已连接。
SQL> select count(*) from scott.test_rac;
COUNT(*)
----------
4
发表评论
-
Oracle连接故障的排除
2024-09-09 22:33 453Oracle版本为11G,操作系统为Windows Ser ... -
Oracle数据库相关系统突然提示“SQLException:违反协议”
2024-02-19 15:50 1122SQLException:违反协议这个异常可能由很多的 ... -
CentOS在Docker中安装Oracle
2024-02-06 12:13 11621.拉取Oracle镜像,并检 ... -
Windows Server安装oracle数据库一直停在82%
2023-02-04 12:01 583网上有个说法:服务器超过一定数量的CPU后,将不能正常安装 ... -
ORA-04030错误处理
2023-02-04 11:52 2633【错误描述】 错误信息如下: ORA-04030:在尝 ... -
ORA-04030错误处理
2023-02-04 11:45 403【错误描述】 错误信息如下: ORA-04030:在尝 ... -
CentOS7.3防火墙配置
2019-07-23 21:16 11251.查看firewall服务状态 systemctl stat ... -
Linux安装MySQL数据库
2019-06-10 22:27 17791.进入安装包所在目录,解压: tar zxvf mysql- ... -
确定MySQL在Linux系统中配置文件的位置
2019-04-14 19:30 27661.通过which mysql命令来查看mysql的安装位置。 ... -
mysql set names 命令和 mysql 字符编码问题
2019-04-12 00:34 1145转自:https://www.cnblogs.com/digd ... -
Linux操作个人总结(持续完善中)
2019-04-09 23:39 9221.查找指定进程并Kill kill -9 `ps -ef|g ... -
MYSQL中取当前周/月/季/年的第一天与最后一天
2018-11-17 23:16 2202转自:https://blog.csdn.net/ ... -
Oracle删除大量数据的实践
2016-11-07 18:03 5820一、引言 从来没有 ... -
crontab执行脚本出错
2016-06-29 01:03 2985最近经常碰到关于crontab不能执行的,初步总结了有以下几个 ... -
一个简单的Shell脚本
2016-06-08 17:52 1586最近新学linux的shell编程。试着写了一个遍历资源目 ... -
Linux Shell编程入门
2016-05-12 16:43 1243转自:http://www.cnblogs.com ... -
常用awk命令
2016-05-04 22:29 1916转自:http://www.cnblogs.com/repos ... -
Oracle 数据库简明教程 V0.1
2016-03-23 21:01 2053供初学者入门学习使用,以开发者常见、常用的知识为主,基本上 ... -
Oracle拆分字符串函数
2016-03-23 10:58 3358create or replace type string ... -
Oracle数据库远程连接无响应
2016-03-21 10:20 4301故障现象: 服务器本机使用sqlplus / as s ...
相关推荐
### 手把手教你用VMware在Linux下安装Oracle 10g RAC #### 一、准备工作 在开始安装Oracle 10g RAC之前,需要确保已经做好充分的准备工作。...希望这份指南能帮助你在Linux环境下成功安装和配置Oracle 10g RAC集群。
这些补丁对于Oracle 10g RAC的成功安装至关重要。 #### 3. 安装准备工作 在进行Oracle 10g RAC的实际安装之前,还需要进行一系列的准备步骤,以确保安装过程的顺利进行: - **检查/etc/oraInst.loc文件**:该文件...
在本文中,我们将深入探讨如何在Virtual Box环境下安装Oracle 11g RAC,这是一个高可用性数据库解决方案,用于在多台服务器上分布式部署Oracle数据库。我们选择Oracle Linux 6.7作为操作系统,因为它是Oracle官方...
总之,要在Red Hat 4上成功安装Oracle 10g RAC,你需要对操作系统、Oracle软件、网络和存储有深入的理解,同时遵循严格的步骤和最佳实践。这是一项挑战性的任务,但一旦完成,将为你的企业带来高性能、高可用的...
### Oracle 10g RAC 安装...通过以上步骤,可以成功地在 Oracle 10g RAC 环境中安装和配置数据库集群,从而实现高可用性和高性能的目标。在整个过程中,需要注意文档和官方指南,以便及时解决可能出现的问题和挑战。
### Oracle 10G RAC 安装与配置详尽指南 #### 一、Oracle 10G RAC ...通过以上步骤,您将能够在 VMware Server 上成功安装和配置 Oracle RAC 10g 第 2 版,为您的应用程序提供一个稳定、高效且高度可用的数据库平台。
正确配置网络对于Oracle 10g RAC的成功安装至关重要。 - **网络Ping测试**:验证节点间的网络连通性。 - **网络适配器配置**:配置私有和公共网络接口,确保它们在正确的子网上。 - **网络适配器命名和绑定顺序**:...
以上内容涵盖了ORACLE 10G RAC for AIX安装部署的主要步骤和关键知识点,实际操作时还需要根据具体环境和需求进行调整和优化。在实施过程中,对硬件、网络和软件的全面理解,以及对故障恢复策略的规划,都是确保RAC...
根据提供的文件内容,这是一份关于在AIX7.1操作系统下安装Oracle 11g RAC(Real Application Clusters)数据库,并包含补丁安装过程的详细指南。以下是从标题、描述、标签以及部分内容中提炼的知识点: ### Oracle ...
本文档旨在提供一个详细的安装指南,帮助用户在 Canaima Linux 上成功安装 Oracle 11g RAC。本文档中的知识点涵盖了虚拟机的创建、Canaima Linux 的安装、基础包的安装、Oracle RAC 相关包的安装等多方面的内容。
通过以上步骤,您应该能够在VMware环境下成功安装并配置Oracle 10g RAC。尽管整个过程较为复杂,但随着经验的积累,未来再次部署同类环境时将会更加得心应手。希望本指南能帮助您顺利完成Oracle 10g RAC的安装配置...
综上所述,《ORACLE 10G RAC 参考手册》涵盖了 RAC 部署和管理的各个方面,从规划阶段到安装配置,再到后期维护和扩展,提供了全面的技术指导和支持。通过遵循这些步骤和建议,可以有效地构建和维护一个稳定、高性能...
这个安装参考手册是为那些希望部署Oracle 11g RAC环境的IT专业人员准备的。下面将详细介绍RAC的原理、安装步骤及相关知识点。 1. **RAC原理**: - **集群概念**:RAC是一种集群数据库技术,将多个服务器节点连接在...
在IT行业中,Oracle数据库系统是企业级数据存储和管理的重要工具,而RAC(Real...学习和掌握这些内容,将有助于你成功地在Linux AS5环境中搭建并管理一个可靠的Oracle 10g RAC集群,从而提升数据库系统的稳定性和性能。
本指南将详细阐述Oracle 10g RAC的安装过程,帮助你成功搭建这一强大的数据库集群。 一、Oracle 10g RAC基础概念 1. **Real Application Clusters (RAC)**:RAC是Oracle数据库的一项特性,允许在一个物理数据库上...
通过上述步骤,你应该能够在VMware环境下成功安装并配置Oracle 10g RAC。虽然整个过程比较复杂且耗时较长,但是掌握这一技能将对你的职业生涯大有裨益。希望这篇文章对你有所帮助,祝你在IT旅程中取得更大的成就!
### Oracle 10g RAC for Redhat 5.5 安装与配置知识点 #### 环境准备与磁盘共享配置 在部署Oracle 10g Real Application Clusters (RAC)于Redhat 5.5环境之前,确保环境能够支持RAC的运行需求。文档中提到的关键...