centos4.7+rac+oracle10g + asm安装遇到问题 àì夳堔傛蜴生んèń 2022-09-27 14:26 150阅读 0赞 author:skate time:2010-12-23 -------------------- **centos4.7+rac+oracle10g + asm安装遇到问题** 1. 在ORACLE 10G在安装cluster时,第到61%的时候,就提示如下错误: WARNING: Error while copying directory /home/oracle/app/oracle/10R2/crs with exclude file list 'null' to nodes 'rac2'. \[PRKC-1002 : All the submitted commands did not execute successfully\](类似) **解决:** 这个错误可以忽略 原因: 在安装 Oracle 集群件、数据库以及随附 CD 期间,Oracle Universal Installer(OUI)将首先安装本地节点的软件 (运行该安装程序的本地节点,我在rac1上运行的安装程序)。然后,将该软件以远程方式复制到集群中的其余节点(即rac2). 在远程复制过程中,OUI将在每个远程节点上执行 UNIX“tar”命令,以提取进行了存档和复制的文件。如果执行安装的节点(即本地节点rac1)上的日期和时间大于其要进行复制的节点(远程节点rac2)上的日期和时间,那么OUI将在“tar”中引发一个错误,以指示其在试图提取带有时间戳的文件时失败。 Error while copying directory /u01/app/oracle/product/crs with exclude file list 'null' to nodes 'rac2'. \[PRKC-1002 :All the submitted commands did not execute successfully\] \--------------------------------------------- rac2: /bin/tar:./bin/lsnodes:time stamp 2010-09-13 09:21:34 is 735 s in the future /bin/tar:./bin/olsnodes:time stamp 2010-09-13 09:21:34 is 735 s in the future ...(more errors on this node) 请注意,尽管这看起来像OUI中一个严重的错误,但您完全可以将其看作是一个警告而忽略。“tar”命令 DOES确实提取了文件;然而, 当您在远程节点上执行文件列表时(使用ls -l),它们将缺少时间字段,直到服务器上的时间大于该文件的时间戳。 在启动以上任何一个所述安装之前,确保尽可能将集群的每个成员节点设置为相同的时间和日期,做好时间同步,但是我为了安装的顺利 一般让**本地安装节点比远程复制节点慢10分钟** \[root@rac1 ~\]\# date -s "Thu Dec 23 12:22:28 CST 2010" \[root@rac2 ~\]\# date -s "Thu Dec 23 12:32:28 CST 2010" 2. 当已经成功安装完clusterware后,再安装oracle software的过程中,会报如下的错误: You have chosen to configure Automatic Storage Management (ASM) on the following nodes: rac1 rac2 Though there is no ASM instance configured for the local node, the Oracle Universal Installer has detected the existence of an ASM instance on the following remote nodes: rac1 rac2 If you want to configure ASM on this node, you must extend the ASM cluster of instances to this node (using the Add Instance procedure), rather than choosing to configure a new ASM instance during the install. 这个错误的原因是第一次安装没有卸载干净,导致这次安装识别到已经安装的错误,解决方法是重新彻底卸载, 还要清空asm的磁盘头部信息,用如下命令: for example: dd if=/dev/zero of=/dev/<asm\_disk\_name> bs=1024k count=50 \# dd if=/dev/zero of=/dev/sdb bs=1024k count=200 3. 当遇到类似下面的错误时 Command = /u01/app/oracle/crs10g/bin/racgons has failed Execution Error : WARNING: rac1:6200 already configured. WARNING: rac2:6200 already configured. 可以用如下方式解决, 移除后retry \[oracle@rac1 bin\]$ racgons remove\_config rac1:6200 racgons: Existing key value on rac1 = 6200. racgons: rac1:6200 removed from OCR. \[oracle@rac1 bin\]$ racgons remove\_config rac2:6200 racgons: Existing key value on rac2 = 6200. racgons: rac2:6200 removed from OCR. 4. 添加网关 \[root@rac2 ~\]\# more /etc/sysconfig/network NETWORKING=yes HOSTNAME=rac2.aibo.com GATEWAY=192.168.2.1 \[root@rac2 ~\]\# more /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=none BROADCAST=192.168.2.255 HWADDR=00:0C:29:81:22:38 IPADDR=192.168.2.21 NETMASK=255.255.255.0 NETWORK=192.168.2.0 ONBOOT=yes TYPE=Ethernet GATEWAY=192.168.2.1 \[root@rac2 ~\]\# 说明:在安装时,需要和网关通信;所以在文件”/etc/sysconfig/network“和”/etc/sysconfig/network-scripts/ifcfg-eth0“里添加网关”GATEWAY=192.168.2.1“ 5. 修改hosts文件 \[root@rac2 ~\]\# more /etc/hosts \# Do not remove the following line, or various programs \# that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost \# Public 192.168.2.11 rac1.aibo.com rac1 192.168.2.21 rac2.aibo.com rac2 \#Private 10.10.0.11 rac1-priv.aibo.com rac1-priv 10.10.0.21 rac2-priv.aibo.com rac2-priv \#Virtual 192.168.2.80 rac1-vip.aibo.com rac1-vip 192.168.2.81 rac2-vip.aibo.com rac2-vip \[root@rac2 ~\]\# 在”/etc/hosts“文件里的第一行”127.0.0.1 localhost.localdomain localhost“是需要的,不要写错。 在hosts文件里,私有ip(private ip)需要公网地址,我一般用10.10.0.11/255这个网段 6. 必须的rpm包 \[root@rac2 ~\]\# ls /tmp/rpm/ compat-gcc-7.3-2.96.128.i386.rpm compat-gcc-c++-7.3-2.96.128.i386.rpm compat-libstdc++-7.3-2.96.118.i386.rpm compat-libstdc++-7.3-2.96.128.i386.rpm compat-libstdc++-devel-7.3-2.96.128.i386.rpm libstdc++5.0-3.3.3-62745cl.i386.rpm 7. oracle环境变量 \[oracle@rac2 ~\]$ more .bash\_profile \# .bash\_profile \# Get the aliases and functions if \[ -f ~/.bashrc \]; then . ~/.bashrc fi \# User specific environment and startup programs PATH=$PATH:$HOME/bin \# Oracle Settings TMP=/tmp; export TMP TMPDIR=$TMP; export TMPDIR ORACLE\_BASE=/u01/app/oracle; export ORACLE\_BASE ORACLE\_HOME=$ORACLE\_BASE/product/10.2.0/db\_1; export ORACLE\_HOME ORACLE\_SID=RAC2; export ORACLE\_SID ORACLE\_TERM=xterm; export ORACLE\_TERM ORA\_CRS\_HOME=/u01/crs/oracle/product/10.2.0/crs; export ORA\_CRS\_HOME PATH=/usr/sbin:$PATH; export PATH PATH=$ORACLE\_HOME/bin:$PATH; export PATH LD\_LIBRARY\_PATH=$ORACLE\_HOME/lib:/lib:/usr/lib; export LD\_LIBRARY\_PATH CLASSPATH=$ORACLE\_HOME/JRE:$ORACLE\_HOME/jlib:$ORACLE\_HOME/rdbms/jlib; export CLA SSPATH if \[ $USER = "oracle" \]; then if \[ $SHELL = "/bin/ksh" \]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi export PATH unset USERNAME \[oracle@rac2 ~\]$ 要把环境变量”ORA\_CRS\_HOME“也放入.bash\_profile文件里 **总结:** 安装 oracle rac for linux可以参考如下网址时,还有特别注意几点 1. 时间同步问题(可以安装节点别复制节点稍微慢一点) 2. public网卡加网关 3. 私有ip的选择 4. /etc/hosts文件内容的修改 5. 重复安装时,在彻底卸载软件外,还有用dd命令初始化asm磁盘 6. oracle的环境变量的设置 参考: [http://www.oracle-base.com/articles/10g/OracleDB10gR2RACInstallationOnCentos4UsingVMware.php][http_www.oracle-base.com_articles_10g_OracleDB10gR2RACInstallationOnCentos4UsingVMware.php] [http://blog.chinaunix.net/u3/94191/showart\_2242772.html][http_blog.chinaunix.net_u3_94191_showart_2242772.html] [http://space.itpub.net/21993926/viewspace-670961][http_space.itpub.net_21993926_viewspace-670961] \--------end-------- [http_www.oracle-base.com_articles_10g_OracleDB10gR2RACInstallationOnCentos4UsingVMware.php]: http://www.oracle-base.com/articles/10g/OracleDB10gR2RACInstallationOnCentos4UsingVMware.php [http_blog.chinaunix.net_u3_94191_showart_2242772.html]: http://blog.chinaunix.net/u3/94191/showart_2242772.html [http_space.itpub.net_21993926_viewspace-670961]: http://space.itpub.net/21993926/viewspace-670961
还没有评论,来说两句吧...