文档介绍:I'm calvin
专注技术,专注未来
单用户安装Oracle 11g 单机ASM
分类: oracle管理 2013-10-08 17:45 413人阅读评论(0) 收藏举报
oracle 11g 单节点 asm
一、安装准备
      环境:RedHat 64位  Oracle
      初始化安装环境(用脚本完成):     
#!/bin/bash
if [ ! $1 ] || [ ! $2 ]
then
echo "execute error,please input sid and oracle basic home path"
exit
fi
yum install -y binutils* compat-libstdc++* elfutils-libelf* elfutils-libelf-devel* elfutils-libelf-devel-static* gcc* gcc-c++* glibc* mon* glibc-devel* glibc-headers* kernel-headers* ksh* libaio* libaio-devel* * libgomp* libstdc++* libstdc++-devel* make* numactl-devel* sysstat* unixODBC* openmotif* compat-lib* compat-gcc*
/usr/sbin/groupadd -g 501 oinstall
/usr/sbin/groupadd -g 502 dba
/usr/sbin/groupadd -g 503 asmadmin
/usr/sbin/groupadd -g 504 asmdba
/usr/sbin/useradd -g oinstall -G dba,asmadmin,asmdba oracle
echo oracle | passwd oracle --stdin
mkdir -p $2/oracle/app/oraInventory
mkdir -p $2/oracle/app/grid
mkdir -p $2/oracle/app/oracle
chown -R oracle:oinstall $2/oracle/app/
chown -R oracle:oinstall $2/oracle/app/oraInventory
chown -R oracle:oinstall $2/oracle/app/grid
chown -R oracle:oinstall $2/oracle/app/oracle
chmod -R 775 $2/oracle/app/
chmod -R 775 $2/oracle/app/oraInventory
chmod -R 775 $2/oracle/app/oracle
chmod -R 775 $2/oracle/app/grid
cat > /home/oracle/.bash_grid_profile <<EOF
export PATH=$PATH:$HOME/bin
export TMP=/tmp
export