####Installing Oracle ASM On Linux VM ################### ####software requirements######## VMware Workstation 10.0.0 Oracle Enterprise Linux 64-bit Oracle Database Grid Infrastructure 11g R2 for Linux x86-64 Oracle Database 11g Release 2 (11.2.0.3) for Linux x86-64 ####hardware requirements######### at least 50G Storage at least 2G RAM at least 4 core CPU ####Linux setting########### ##Step 1 vi /etc/hosts ##Step 2 Packages ##Step 3 groupadd asmadmin groupadd asmdba groupadd asmoper groupadd oinstall groupadd dba groupadd oper ##Step 4 useradd -g oinstall -G asmadmin,asmdba,asmoper,dba -m grid usermod -g oinstall -G dba,oper,asmadmin,asmdba -m oracle ##Step 5 (not nessery) shared_pool_size= 128M large_pool= 12m db_cache_size= 64m ##Step 6 /sbin/service iptables status ##off kardane selinux,firewall /sbin/service iptables stop chkconfig iptables off ##Step 7 vi /etc/selinux/config ##Step 8 (not nessery) vi /etc/sysctl.conf /* kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 fs.file-max = 6815744 fs.aio-max-nr = 1048576 net.ipv4.ip_local_port_range = 1500 65500 net.core.rmem_default = 1048576 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048576 */ sysctl -p ##Step 9 (only values grid) /etc/security/limits.conf oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 ## nessery grid soft nproc 2047 grid hard nproc 16384 grid soft nofile 1024 grid hard nofile 65536 ##Step 10 vi /etc/pam.d/login session required pam_limits.so ##Step 11 mkdir -p /u01/app/grid chown -R grid:oinstall /u01/ chmod -R 775 /u01/ mkdir -p /u02/app/oracle chown -R oracle:oinstall /u02/ chmod -R 775 /u02/ ##Step 12 passwd grid su - grid vi .bash_profile export ORACLE_SID=+ASM; export ORACLE_BASE=/u01/app/grid; export ORACLE_HOME=/u01/app/grid/product/11.2.0/grid; export PATH=$ORACLE_HOME/bin:$PATH; export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$LD_LIBRARY_PATH; . .bash_profile exit ##Step 13 passwd oracle su - oracle vi .bash_profile PATH=$PATH:$HOME/bin export PATH export ORACLE_BASE=/u02/app/oracle export ORACLE_HOME=/u02/app/oracle/product/11.2.0/db_1 export PATH=$ORACLE_HOME/bin:$PATH export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib # export NLS_LANG=AMERICAN_AMERICA.UTF8 export ORACLE_SID=orcl export DB_UNQNAME=orcl export ORACLE_UNQNAME=orcl ##Step 14 shutdown -h now