Oracle RAC安装过程中碰到问题及解决方法

这一篇主要讨论整个RAC安装过程中碰到的问题以及是如何解决的。

错误一:

配置共享磁盘的问题。如果共享磁盘本身有内容,可能会导致在安装完CLUSTERWARE后,执行root.sh时出错,错误信息为:

1
Failed to upgrade Oracle Cluster Registry configuration

这时可以利用dd命令来清除ocr和voting disk的共享磁盘。类似命令为:

1
dd if=/dev/zero of=/dev/rdsk/c2t0d2s3 bs=1073741824 count=1

其中of指定需要清除的共享磁盘设备,而bs指定该设备的空间大小。
清除之后,再次运行root.sh,则问题消失。

让虚拟机支持安装64位操作系统的处理方法

尝试虚拟的操作系统是CentOS-5.4-x86_64,因此在系统选项中选择了Other Linux 64bit,尝试系统后系统报错:

This CPU is VT-capable, but VT is not enabled (check your BIOS settings).
You have configured this virtual machine as a 64-bit guest operating system. However, this host’s CPU is not capable of running 64-bit virtual machines or this virtual machine has 64-bit support disabled.
For more detailed information, see http://www.vmware.com/info?id=152

使用rlwrap调用sqlplus中历史命令

当在Linux Shell中运行SQL*Plus的时候,并不提供浏览历史命令行的功能。为了在Linux中达到“使用向上,向下键来跳回之前已经执行过的SQL语句”的目的,可以安装 rlwrap。

rlwrap最新的版本rlwrap-0.37.tar.gz,

RAC启动与停止的先后顺序小结

RAC启动与停止的先后顺序小结

停止RAC:

            emctl stop dbconsole
            srvctl stop instance -d rac -i rac1  
            srvctl stop instance -d rac -i rac2
            srvctl stop asm -n rac1
            srvctl stop asm -n rac2
            srvctl stop nodeapps -n rac1
            srvctl stop nodeapps -n rac2

Fork me on GitHub