开始测试Oracle 11g rac,本本的性能有限,因此装个单节点rac。步骤如下:
网卡绑定
修改/etc/modprobe.conf 和/etc/sysconfig/network-scripts下的ifcfg-bond* ifcfg-eth*
这里不再多说
配置Xmanager连接
vi /usr/share/gdm/defaults.conf
将[xdmcp]下的Enable=false 改成 Enable=true
AllowRemoteRoot=false 改成 AllowRemoteRoot=true
使之生效:
gdm-restart
检查系统中是否安装了需要的包需要安装的包的清单:
binutils-2.15.92.0.2
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (32 bit)
elfutils-libelf-0.97
elfutils-libelf-devel-0.97
expat-1.95.7
gcc-3.4.6
gcc-c++-3.4.6
glibc-2.3.4-2.41
glibc-2.3.4-2.41 (32 bit)
glibc-common-2.3.4
glibc-devel-2.3.4
glibc-headers-2.3.4
libaio-0.3.105
libaio-0.3.105 (32 bit)
libaio-devel-0.3.105
libaio-devel-0.3.105 (32 bit)
libgcc-3.4.6
libgcc-3.4.6 (32-bit)
libstdc++-3.4.6
libstdc++-3.4.6 (32 bit)
libstdc++-devel 3.4.6
make-3.80
pdksh-5.2.14
sysstat-5.0.5
unixODBC-2.2.11
unixODBC-2.2.11 (32 bit)
unixODBC-devel-2.2.11
unixODBC-devel-2.2.11 (32 bit)
rpm -q –qf ‘%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n’binutils \
compat-libstdc++-33 \
elfutils-libelf \
elfutils-libelf-devel \
gcc \
gcc-c++ \
glibc \
glibc-common \
glibc-devel \
glibc-headers \
ksh \
libaio \
libaio-devel \
libgcc \
libstdc++ \
libstdc++-devel \
make \
sysstat \
unixODBC \
unixODBC-devel
创建用户
新建几个用户组
groupadd -g 1000 oinstall
groupadd -g 1020 asmadmin
groupadd -g 1021 asmdba
groupadd -g 1031 dba
groupadd -g 1022 asmoper
创建用户
useradd -u 1100 -g oinstall -G asmadmin,asmdba grid
useradd -u 1101 -g oinstall -G dba,asmdba oracle
passwd oracle
passwd grid
修改环境变量cat>>/home/grid/.bashrc<<EOF if [ -t 0 ]; then stty intr ^C fi export ORACLE_BASE=/opt/app/oracle export ORACLE_HOME=/opt/app/11.2.0/grid export ORACLE_SID=+ASM1 export PATH=\$ORACLE_HOME/bin:\$PATH umask 022 EOF
cat>>/home/oracle/.bashrc<<EOF if [ -t 0 ]; then stty intr ^C fi export ORACLE_BASE=/opt/app/oracle export ORACLE_HOME=/opt/app/oracle/product/11.2.0/db_1 export ORACLE_SID=oradb1 export PATH=\$ORACLE_HOME/bin:\$PATH umask 022 EOF
cat>>/root/.bashrc<<EOF export PATH=/opt/app/11.2.0/grid/bin:/opt/app/oracle/product/11.2.0/db_1/bin:\$PATH EOF
,