ORACLE11GR2 For Linux RAC安装笔记

操作系统开发包栏全都安装 公共,私有网卡全都在安装操作系统的时候进行ip地址的设置 开启telnet ftp 安装中不使用防火墙和selinux gateway地址要设置对 时间要矫正 私有网卡不可以用反线连接 rsh rlogin 要选装 环境 oracle 11.2.0.1.0 grid+database 64bit oracle enterprise server linux 5.4 64bit 设置到init 3 取消sendmail 设置root到中文 #################################### 安装中需要选择的栏 Desktop Environments GNOME Desktop Environment Applications Editors Graphical Internet Text-based Internet Development Development Libraries Development Tools Legacy Software Development Servers Server Configuration Tools Base System Administration Tools Base Java Legacy Software Support System Tools X Window System #################################### 必须选择的补丁 64 位 (x86_64) 安装 binutils-2.17.50.0.6 compat-libstdc++-33-3.2.3 compat-libstdc++-33-3.2.3(32 位) elfutils-libelf-0.125 elfutils-libelf-devel-0.125 elfutils-libelf-devel-static-0.125 gcc-4.1.2 gcc-c++-4.1.2 glibc-2.5-24 glibc-2.5-24(32 位) glibc-common-2.5 glibc-devel-2.5 glibc-devel-2.5(32 位) glibc-headers-2.5 ksh-20060214 libaio-0.3.106 libaio-0.3.106(32 位) libaio-devel-0.3.106 ----------- libaio-devel-0.3.106(32 位) ---------- libgcc-4.1.2 libgcc-4.1.2(32 位) libstdc++-4.1.2 libstdc++-4.1.2(32 位) libstdc++-devel 4.1.2 make-3.81 sysstat-7.0.2 ----------- unixODBC-2.2.11 ----------- unixODBC-2.2.11(32 位) ----------- unixODBC-devel-2.2.11 ----------- unixODBC-devel-2.2.11(32 位)----------- #################################### 192.168.0.5 racnode1 192.168.0.7 racnode1-vip 192.168.0.6 racnode2 192.168.0.8 racnode2-vip 192.168.5.5 racnode1-priv 192.168.5.6 racnode2-priv 192.168.0.4 racnode-cluster-scan #################################### 删除 ::1 localhost6.localdomain6 localhost6 确保 /etc/hosts 文件的环回地址中不包含节点名(racnode1 或 racnode2)。如果计算机名出现在环回地址条目中,如下所示: 127.0.0.1 racnode1 localhost.localdomain localhost 不配置防火墙选项 #################################### 集群时间同步服务 root下执行 /sbin/service ntpd stop chkconfig ntpd off mv /etc/ntp.conf /etc/ntp.conf.original rm /var/run/ntpd.pid 在安装后,要确认 ctssd 处于活动状态,请作为网格安装所有者 (grid) 输入以下命令: [grid@racnode1 ~]$ crsctl check ctss CRS-4701: The Cluster Time Synchronization Service is in Active mode. CRS-4702: Offset (in msec): 0 ######################################## iscsi设备的加载 [root@racnode1 rpm]# rpm -ivh iscsi-initiator-utils-6.2.0.871-0.10.el5.x86_64.rpm warning: iscsi-initiator-utils-6.2.0.871-0.10.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159 Preparing... ########################################### [100%] 1:iscsi-initiator-utils ########################################### [100%] [root@racnode1 rpm]# rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})n"| grep iscsi-initiator-utils iscsi-initiator-utils-6.2.0.871-0.10.el5 (x86_64) [root@racnode1 rpm]# [root@racnode1 rpm]# service iscsid start [ OK ]off network shutdown. Starting iSCSI daemon: [ OK ] [ OK ] [root@racnode1 rpm]# [root@racnode1 rpm]# chkconfig iscsid on [root@racnode1 rpm]# chkconfig iscsi on [root@racnode1 rpm]# iscsiadm -m discovery -t sendtargets -p 192.168.0.10 192.168.0.10:3260,1 iqn.2006-01.com.openfiler:asm.data [root@racnode1 rpm]# iscsiadm -m node -T iqn.2006-01.com.openfiler:asm.data -p 192.168.0.10 -l Logging in to [iface: default, target: iqn.2006-01.com.openfiler:asm.data, portal: 192.168.0.10,3260] Login to [iface: default, target: iqn.2006-01.com.openfiler:asm.data, portal: 192.168.0.10,3260]: successful iscsiadm -m node -T iqn.2006-01.com.openfiler:asm.asm1 -p 192.168.0.10 --op update -n node.startup -v automatic ######################################## 将以下行添加到 /etc/modprobe.conf: options sbp2 exclusive_login=0 alias scsi_hostadapter sbp2 ######################################## 安装存储控制卡驱动等 详细参考在 Oracle Enterprise Linux 和 iSCSI 上构建您自己的 Oracle RAC 集群.htm 最后确认在一个机器上使用fdisk划分出的分区后 第2台机器可以看到 # partprobe # fdisk -l 此时进行系统重新启动来验证 #################################### 为 Grid Infrastructure 创建组和用户 在本节中,我们首先在两个 Oracle RAC 节点上为 Grid Infrastructure 创建推荐的操作系统组和用户: groupadd -g 1000 oinstall groupadd -g 1200 asmadmin groupadd -g 1201 asmdba groupadd -g 1202 asmoper useradd -m -u 1100 -g oinstall -G asmadmin,asmdba,asmoper -d /home/grid -s /bin/bash -c "Grid Infrastructure Owner" grid [root@racnode1 ~]# id grid uid=1100(grid) gid=1000(oinstall) groups=1000(oinstall),1200(asmadmin),1201(asmdba),1202(asmoper) 设置 grid 帐户的口令: [root@racnode1 ~]# passwd grid Changing password for user grid. New UNIX password: xxxxxxxxxxx Retype new UNIX password: xxxxxxxxxxx passwd: all authentication tokens updated successfully. [root@racnode1 ~]# su - grid # --------------------------------------------------- # .bash_profile # --------------------------------------------------- # OS User: grid # Application: Oracle Grid Infrastructure # Version: Oracle 11g release 2 # --------------------------------------------------- # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi alias ls="ls -FA" # --------------------------------------------------- # ORACLE_SID # --------------------------------------------------- # Specifies the Oracle system identifier (SID) # for the Automatic Storage Management (ASM)instance # running on this node. # Each RAC node must have a unique ORACLE_SID. # (i.e. +ASM1, +ASM2,...) # --------------------------------------------------- ORACLE_SID=+ASM1; export ORACLE_SID # --------------------------------------------------- # JAVA_HOME # --------------------------------------------------- # Specifies the directory of the Java SDK and Runtime # Environment. # --------------------------------------------------- JAVA_HOME=/usr/local/java; export JAVA_HOME # --------------------------------------------------- # ORACLE_BASE # --------------------------------------------------- # Specifies the base of the Oracle directory structure # for Optimal Flexible Architecture (OFA) compliant # installations. The Oracle base directory for the # grid installation owner is the location where # diagnostic and administrative logs, and other logs # associated with Oracle ASM and Oracle Clusterware # are stored. # --------------------------------------------------- ORACLE_BASE=/u01/app/grid; export ORACLE_BASE # --------------------------------------------------- # ORACLE_HOME # --------------------------------------------------- # Specifies the directory containing the Oracle # Grid Infrastructure software. For grid # infrastructure for a cluster installations, the Grid # home must not be placed under one of the Oracle base # directories, or under Oracle home directories of # Oracle Database installation owners, or in the home # directory of an installation owner. During # installation, ownership of the path to the Grid # home is changed to root. This change causes # permission errors for other installations. # --------------------------------------------------- ORACLE_HOME=/u01/app/11.2.0/grid; export ORACLE_HOME # --------------------------------------------------- # ORACLE_PATH # --------------------------------------------------- # Specifies the search path for files used by Oracle # applications such as SQL*Plus. If the full path to # the file is not specified, or if the file is not # in the current directory, the Oracle application # uses ORACLE_PATH to locate the file. # This variable is used by SQL*Plus, Forms and Menu. # --------------------------------------------------- ORACLE_PATH=/u01/app/oracle/common/oracle/sql; export ORACLE_PATH # --------------------------------------------------- # SQLPATH # --------------------------------------------------- # Specifies the directory or list of directories that # SQL*Plus searches for a login.sql file. # --------------------------------------------------- # SQLPATH=/u01/app/common/oracle/sql; export SQLPATH # --------------------------------------------------- # ORACLE_TERM # --------------------------------------------------- # Defines a terminal definition. If not set, it # defaults to the value of your TERM environment # variable. Used by all character mode products. # --------------------------------------------------- ORACLE_TERM=xterm; export ORACLE_TERM # --------------------------------------------------- # NLS_DATE_FORMAT # --------------------------------------------------- # Specifies the default date format to use with the # TO_CHAR and TO_DATE functions. The default value of # this parameter is determined by NLS_TERRITORY. The # value of this parameter can be any valid date # format mask, and the value must be surrounded by # double quotation marks. For example: # # NLS_DATE_FORMAT = "MM/DD/YYYY" # # --------------------------------------------------- NLS_DATE_FORMAT="DD-MON-YYYY HH24:MI:SS"; export NLS_DATE_FORMAT # --------------------------------------------------- # TNS_ADMIN # --------------------------------------------------- # Specifies the directory containing the Oracle Net # Services configuration files like listener.ora, # tnsnames.ora, and sqlnet.ora. # --------------------------------------------------- TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN # --------------------------------------------------- # ORA_NLS11 # --------------------------------------------------- # Specifies the directory where the language, # territory, character set, and linguistic definition # files are stored. # --------------------------------------------------- ORA_NLS11=$ORACLE_HOME/nls/data; export ORA_NLS11 # --------------------------------------------------- # PATH # --------------------------------------------------- # Used by the shell to locate executable programs; # must include the $ORACLE_HOME/bin directory. # --------------------------------------------------- PATH=.:${JAVA_HOME}/bin:${PATH}:$HOME/bin:$ORACLE_HOME/bin PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin PATH=${PATH}:/u01/app/common/oracle/bin export PATH # --------------------------------------------------- # LD_LIBRARY_PATH # --------------------------------------------------- # Specifies the list of directories that the shared # library loader searches to locate shared object # libraries at runtime. # --------------------------------------------------- LD_LIBRARY_PATH=$ORACLE_HOME/lib LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/lib LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib export LD_LIBRARY_PATH # --------------------------------------------------- # CLASSPATH # --------------------------------------------------- # Specifies the directory or list of directories that # contain compiled Java classes. # --------------------------------------------------- CLASSPATH=$ORACLE_HOME/JRE CLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlib CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib CLASSPATH=${CLASSPATH}:$ORACLE_HOME/network/jlib export CLASSPATH # --------------------------------------------------- # THREADS_FLAG # --------------------------------------------------- # All the tools in the JDK use green threads as a # default. To specify that native threads should be # used, set the THREADS_FLAG environment variable to # "native". You can revert to the use of green # threads by setting THREADS_FLAG to the value # "green". # --------------------------------------------------- THREADS_FLAG=native; export THREADS_FLAG # --------------------------------------------------- # TEMP, TMP, and TMPDIR # --------------------------------------------------- # Specify the default directories for temporary # files; if set, tools that create temporary files # create them in one of these directories. # --------------------------------------------------- export TEMP=/tmp export TMPDIR=/tmp # --------------------------------------------------- # UMASK # --------------------------------------------------- # Set the default file mode creation mask # (umask) to 022 to ensure that the user performing # the Oracle software installation creates files # with 644 permissions. # --------------------------------------------------- umask 022 #################################### 为 Oracle 数据库软件创建组和用户 接下来,我们在两个 Oracle RAC 节点上为 Oracle 数据库软件创建推荐的操作系统组和用户: groupadd -g 1300 dba groupadd -g 1301 oper useradd -m -u 1101 -g oinstall -G dba,oper,asmdba -d /home/oracle -s /bin/bash -c "Oracle Software Owner" oracle [root@racnode1 ~]# id oracle uid=1101(oracle) gid=1000(oinstall) groups=1000(oinstall),1201(asmdba),1300(dba),1301(oper) 设置 oracle 帐户的口令: [root@racnode1 ~]# passwd oracle Changing password for user oracle. New UNIX password: xxxxxxxxxxx Retype new UNIX password: xxxxxxxxxxx passwd: all authentication tokens updated successfully. [root@racnode1 ~]# su - oracle # --------------------------------------------------- # .bash_profile # --------------------------------------------------- # OS User: oracle # Application: Oracle Database Software Owner # Version: Oracle 11g release 2 # --------------------------------------------------- # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi alias ls="ls -FA" # --------------------------------------------------- # ORACLE_SID # --------------------------------------------------- # Specifies the Oracle system identifier (SID) for # the Oracle instance running on this node. # Each RAC node must have a unique ORACLE_SID. # (i.e. racdb1, racdb2,...) # --------------------------------------------------- ORACLE_SID=racdb1; export ORACLE_SID # --------------------------------------------------- # ORACLE_UNQNAME # --------------------------------------------------- # In previous releases of Oracle Database, you were # required to set environment variables for # ORACLE_HOME and ORACLE_SID to start, stop, and # check the status of Enterprise Manager. With # Oracle Database 11g release 2 (11.2) and later, you # need to set the environment variables ORACLE_HOME # and ORACLE_UNQNAME to use Enterprise Manager. # Set ORACLE_UNQNAME equal to the database unique # name. # --------------------------------------------------- ORACLE_UNQNAME=racdb; export ORACLE_UNQNAME # --------------------------------------------------- # JAVA_HOME # --------------------------------------------------- # Specifies the directory of the Java SDK and Runtime # Environment. # --------------------------------------------------- JAVA_HOME=/usr/local/java; export JAVA_HOME # --------------------------------------------------- # ORACLE_BASE # --------------------------------------------------- # Specifies the base of the Oracle directory structure # for Optimal Flexible Architecture (OFA) compliant # database software installations. # --------------------------------------------------- ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE # --------------------------------------------------- # ORACLE_HOME # --------------------------------------------------- # Specifies the directory containing the Oracle # Database software. # --------------------------------------------------- ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1; export ORACLE_HOME # --------------------------------------------------- # ORACLE_PATH # --------------------------------------------------- # Specifies the search path for files used by Oracle # applications such as SQL*Plus. If the full path to # the file is not specified, or if the file is not # in the current directory, the Oracle application # uses ORACLE_PATH to locate the file. # This variable is used by SQL*Plus, Forms and Menu. # --------------------------------------------------- ORACLE_PATH=/u01/app/common/oracle/sql; export ORACLE_PATH # --------------------------------------------------- # SQLPATH # --------------------------------------------------- # Specifies the directory or list of directories that # SQL*Plus searches for a login.sql file. # --------------------------------------------------- # SQLPATH=/u01/app/common/oracle/sql; export SQLPATH # --------------------------------------------------- # ORACLE_TERM # --------------------------------------------------- # Defines a terminal definition. If not set, it # defaults to the value of your TERM environment # variable. Used by all character mode products. # --------------------------------------------------- ORACLE_TERM=xterm; export ORACLE_TERM # --------------------------------------------------- # NLS_DATE_FORMAT # --------------------------------------------------- # Specifies the default date format to use with the # TO_CHAR and TO_DATE functions. The default value of # this parameter is determined by NLS_TERRITORY. The # value of this parameter can be any valid date # format mask, and the value must be surrounded by # double quotation marks. For example: # # NLS_DATE_FORMAT = "MM/DD/YYYY" # # --------------------------------------------------- NLS_DATE_FORMAT="DD-MON-YYYY HH24:MI:SS"; export NLS_DATE_FORMAT # --------------------------------------------------- # TNS_ADMIN # --------------------------------------------------- # Specifies the directory containing the Oracle Net # Services configuration files like listener.ora, # tnsnames.ora, and sqlnet.ora. # --------------------------------------------------- TNS_ADMIN=$ORACLE_HOME/network/admin; export TNS_ADMIN # --------------------------------------------------- # ORA_NLS11 # --------------------------------------------------- # Specifies the directory where the language, # territory, character set, and linguistic definition # files are stored. # --------------------------------------------------- ORA_NLS11=$ORACLE_HOME/nls/data; export ORA_NLS11 # --------------------------------------------------- # PATH # --------------------------------------------------- # Used by the shell to locate executable programs; # must include the $ORACLE_HOME/bin directory. # --------------------------------------------------- PATH=.:${JAVA_HOME}/bin:${PATH}:$HOME/bin:$ORACLE_HOME/bin PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin PATH=${PATH}:/u01/app/common/oracle/bin export PATH # --------------------------------------------------- # LD_LIBRARY_PATH # --------------------------------------------------- # Specifies the list of directories that the shared # library loader searches to locate shared object # libraries at runtime. # --------------------------------------------------- LD_LIBRARY_PATH=$ORACLE_HOME/lib LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/lib LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib export LD_LIBRARY_PATH # --------------------------------------------------- # CLASSPATH # --------------------------------------------------- # Specifies the directory or list of directories that # contain compiled Java classes. # --------------------------------------------------- CLASSPATH=$ORACLE_HOME/JRE CLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlib CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib CLASSPATH=${CLASSPATH}:$ORACLE_HOME/network/jlib export CLASSPATH # --------------------------------------------------- # THREADS_FLAG # --------------------------------------------------- # All the tools in the JDK use green threads as a # default. To specify that native threads should be # used, set the THREADS_FLAG environment variable to # "native". You can revert to the use of green # threads by setting THREADS_FLAG to the value # "green". # --------------------------------------------------- THREADS_FLAG=native; export THREADS_FLAG # --------------------------------------------------- # TEMP, TMP, and TMPDIR # --------------------------------------------------- # Specify the default directories for temporary # files; if set, tools that create temporary files # create them in one of these directories. # --------------------------------------------------- export TEMP=/tmp export TMPDIR=/tmp # --------------------------------------------------- # UMASK # --------------------------------------------------- # Set the default file mode creation mask # (umask) to 022 to ensure that the user performing # the Oracle software installation creates files # with 644 permissions. # --------------------------------------------------- umask 022 要确定该用户是否存在,输入以下命令: # id nobody uid=99(nobody) gid=99(nobody) groups=99(nobody) #################################### 创建 Oracle 基目录路径 mkdir -p /u01/app/grid mkdir -p /u01/app/11.2.0/grid chown -R gridinstall /u01 mkdir -p /u01/app/oracle chown oracleinstall /u01/app/oracle chmod -R 775 /u01 #################################### 为 Oracle 软件安装用户设置资源限制 [root@racnode1 ~]# cat >> /etc/security/limits.conf <> /etc/pam.d/login <> /etc/profile <> /etc/sysctl.conf <> /etc/modprobe.conf echo "/sbin/modprobe hangcheck-timer" >> /etc/rc.local modprobe hangcheck-timer grep Hangcheck /var/log/messages | tail -2 #################################### 如果没有 SSH,安装程序会尝试使用 rsh 和 rcp 命令取代 ssh 和 scp chkconfig rsh on chkconfig rlogin on service xinetd reload Reloading configuration:[ OK ] 要使“oracle”UNIX 用户帐户在 RAC 节点中获得信任,在集群中的所有节点上创建 /etc/hosts.equiv 文件: # su - touch /etc/hosts.equiv chmod 600 /etc/hosts.equiv chown root.root /etc/hosts.equiv 现在,将所有 RAC 节点添加到集群中类似于以下示例的所有节点的 /etc/hosts.equiv 文件中: # cat /etc/hosts.equiv +racnode1 oracle +racnode2 oracle +racnode1-priv oracle +racnode2-priv oracle +racnode1 grid +racnode2 grid +racnode1-priv grid +racnode2-priv grid mv /usr/kerberos/bin/rsh /usr/kerberos/bin/rsh.original mv /usr/kerberos/bin/rcp /usr/kerberos/bin/rcp.original mv /usr/kerberos/bin/rlogin /usr/kerberos/bin/rlogin.original #################################### 使用标准 Linux I/O 的 ASM:此方法不使用 ASMLib。此方法使用标准 Linux I/O 系统调用在 ASM 管理的原始字符设备 上创建所有的 Oracle 数据库文件。您将需要为 ASM 使用的所有磁盘分区创建原始设备 编辑文件 /etc/sysconfig/rawdevices,如下所示: # raw device bindings # format: # # example:/dev/raw/raw1 /dev/sda1 # /dev/raw/raw2 8 5 /dev/raw/raw1 /dev/sdb1 /dev/raw/raw2 /dev/sdb2 ######################################## chown grid:asmadmin /dev/raw/raw1; chmod 660 /dev/raw/raw1 chown grid:asmadmin /dev/raw/raw2; chmod 660 /dev/raw/raw2 rc3.d #!/bin/sh PATH=/bin:/usr/bin:/sbin:/usr/sbin export PATH case "$1" in start) chown grid:asmadmin /dev/raw/raw1; chmod 660 /dev/raw/raw1 chown grid:asmadmin /dev/raw/raw2; chmod 660 /dev/raw/raw2 echo "start-----`date`" >> /root/chmod.log ;; stop) echo "stop######`date`" >> /root/chmod.log ;; *) echo "Usage: test1 {start|stop}" exit 1 esac exit 0 此时 建立在 /etc/rc3.d中 S88raws chmod 755 S88raws vi /etc/inittab 改成 3 dd if=/dev/zero of=/dev/raw/raw1 bs=819200 count=128 dd if=/dev/zero of=/dev/raw/raw2 bs=819200 count=128 #################################### 以 grid 用户身份解压缩 Oracle Grid Infrastructure 软件: mkdir -p /home/grid/software/oracle mv linux.x64_11gR2_grid.zip /home/grid/software/oracle cd /home/grid/software/oracle unzip linux.x64_11gR2_grid.zip 以 oracle 用户身份解压缩 Oracle Database 和 Oracle Examples 软件: mkdir -p /home/oracle/software/oracle mv linux.x64_11gR2_database_1of2.zip /home/oracle/software/oracle mv linux.x64_11gR2_database_2of2.zip /home/oracle/software/oracle mv linux.x64_11gR2_examples.zip /home/oracle/software/oracle cd /home/oracle/software/oracle unzip linux.x64_11gR2_database_1of2.zip unzip linux.x64_11gR2_database_2of2.zip unzip linux.x64_11gR2_examples.zip #################################### 验证有效性 要安装 cvuqdisk RPM,执行以下步骤: 找到 cvuqdisk RPM 程序包,位于 racnode1 节点中安装介质的 rpm 目录下: [racnode1]: /home/grid/software/oracle/grid/rpm/cvuqdisk-1.0.7-1.rpm 以 grid 用户帐户将 cvuqdisk 程序包从 racnode1 复制到 racnode2: [racnode2]: /home/grid/software/oracle/grid/rpm/cvuqdisk-1.0.7-1.rpm 以 root 用户身份分别登录到两个 Oracle RAC 节点: [grid@racnode1 rpm]$ su [grid@racnode2 rpm]$ su 设置环境变量 CVUQDISK_GRP,使其指向作为 cvuqdisk 的所有者所在的组(本文为 oinstall): [root@racnode1 rpm]# CVUQDISK_GRP=oinstall; export CVUQDISK_GRP [root@racnode2 rpm]# CVUQDISK_GRP=oinstall; export CVUQDISK_GRP 在保存 cvuqdisk RPM 的目录中,使用以下命令在两个 Oracle RAC 节点上安装 cvuqdisk 程序包: [root@racnode1 rpm]# rpm -iv cvuqdisk-1.0.7-1.rpm Preparing packages for installation... cvuqdisk-1.0.7-1 [root@racnode2 rpm]# rpm -iv cvuqdisk-1.0.7-1.rpm Preparing packages for installation... cvuqdisk-1.0.7-1 grid 用户在将要执行 Oracle 安装的节点 (racnode1) 上运行 grid@racnode1 ~]$ cd /home/grid/software/oracle/grid [grid@racnode1 grid]$ ./runcluvfy.sh stage -pre crsinst -n racnode1,racnode2 -fixup -verbose 在 racnode1 节点上以具有用户等效性配置的 grid 用户帐户运行以下命令: [grid@racnode1 ~]$ cd /home/grid/software/oracle/grid [grid@racnode1 grid]$ ./runcluvfy.sh stage -post hwos -n racnode1,racnode2 -verbose #################################### root@racnode1 ~]# mv /usr/bin/nslookup /usr/bin/nslookup.original 然后,新建一个名为 /usr/bin/nslookup 的 shell 脚本,在该脚本中用 24.154.1.34 替换主 DNS,用 racnode-cluster-scan 替换 SCAN 主机名,用 192.168.1.187 替换 SCAN IP 地址,如下所示: #!/bin/bash HOSTNAME=${1} if [[ $HOSTNAME = "racnode-cluster-scan" ]]; then echo "Server: 24.154.1.34" echo "Address: 24.154.1.34#53" echo "Non-authoritative answer:" echo "Name: racnode-cluster-scan" echo "Address: 192.168.0.4" else /usr/bin/nslookup.original $HOSTNAME fi 最后,将新建的 nslookup shell 脚本更改为可执行脚本: [root@racnode1 ~]# chmod 755 /usr/bin/nslookup 记住要在两个 Oracle RAC 节点上执行这些操作。 现在,在 Oracle Grid Infrastructure 的安装过程中,当 CVU 尝试验证您的 SCAN 时,它就会成功通过: [grid@racnode1 ~]$ cluvfy comp scan -verbose #################################### 为集群安装 Oracle Grid Infrastructure 仅在集群的一个 Oracle RAC 节点 (racnode1) 上执行以下安装过程 余下图形部分参考 先能做enable的都做 srvctl enable oc4j srvctl enable nodeapps -v 然后用root执行 /u01/app/11.2.0/grid/bin/crsctl stop cluster -all /u01/app/11.2.0/grid/bin/crsctl start cluster -all[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9907339/viewspace-1046824/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/9907339/viewspace-1046824/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值