Oracle11gwithASM安装

1、

[root@asm_orcl~]#cat/etc/redhat-release

RedHatEnterpriseLinuxServerrelease5.5(Tikanga)

[root@asm_orcl~]#uname-a

Linuxasm_orcl2.6.18-194.el5#1SMPTueMar1621:52:43EDT2010i686i686i386GNU/Linux

2、

[root@asm_orcl~]#free-m

totalusedfreesharedbufferscached

Mem:20264571569027316

-/+buffers/cache:1131913

Swap:204702047

3、

[root@asm_orcl~]#fdisk-l

Disk/dev/sda:85.8GB,85899345920bytes

255heads,63sectors/track,10443cylinders

Units=cylindersof16065*512=8225280bytes

DeviceBootStartEndBlocksIdSystem

/dev/sda1*11310439183Linux

/dev/sda214262420972857+83Linux

/dev/sda3262528852096482+82Linuxswap/Solaris

/dev/sda4288610443607096355Extended

/dev/sda528864102977552183Linux

/dev/sda6410343461959898+83Linux

/dev/sda7434745901959898+83Linux

/dev/sda8459148341959898+83Linux

/dev/sda9483550781959898+83Linux

/dev/sda10507953221959898+83Linux

/dev/sda11532355661959898+83Linux

4、

[root@asm_orcl~]#df-m

Filesystem1M-blocksUsedAvailableUse%Mountedon

/dev/sda21984011808700963%/

/dev/sda199128312%/boot

tmpfs1014010140%/dev/shm

/dev/hdc296829680100%/media/RHEL_5.5i386DVD

/dev/sda5939715087702%/u01

5、

binutils-2.17.50.0.6-2.el5

compat-libstdc++-33-3.2.3-61

elfutils-libelf-0.125-3.el5

elfutils-libelf-devel-0.125

glibc-2.5-12

glibc-common-2.5-12

glibc-devel-2.5-12

gcc-4.1.1-52

gcc-c++-4.1.1-52

libaio-0.3.106

libaio-devel-0.3.106

libgcc-4.1.1-52

libstdc++-4.1.1

libstdc++-devel-4.1.1-52.e15

make-3.81-1.1

sysstat-7.0.0

unixODBC-2.2.11

unixODBC-devel-2.2.11

6、

vi/etc/sysctl.conf

kernel.shmall=2097152

kernel.shmmax=536870912

kernel.shmmni=4096

kernel.sem=25032000100128

fs.aio-max-nr=1048576

fs.file-max=6815744

net.ipv4.ip_local_port_range=900065500

net.core.rmem_default=1048576

net.core.rmem_max=4194304

net.core.wmem_default=262144

net.core.wmem_max=1048576

7、

vi/etc/profile

if[\$USER="oracle"];then

if[\$SHELL="/bin/ksh"];then

ulimit-p16384

ulimit-n65536

else

ulimit-u16384-n65536

fi

umask022

fi

xhost+

8、

vi/etc/pam.d/login

sessionrequired/lib/security/pam_limits.so

sessionrequiredpam_limits.so

9、

vi/etc/security/limits.conf

oraclesoftnproc2047

oraclehardnproc16384

oraclesoftnofile1024

oraclehardnofile65536

osasmsoftnproc2047

osasmhardnproc16384

osasmsoftnofile1024

osasmhardnofile65536

10、

groupaddoinstall

groupadddba

groupaddasmadmin

groupaddasmdba

useradd-goinstall-Gdba,asmdbaoracle

useradd-goinstall-Gdba,asmadmin,asmdbaosasm

echo"Helix3.14"|passwd--stdinoracle

echo"Helix3.14"|passwd--stdinosasm

11、

mkdir-p/u01/app/oracle

chown-Roracle:oinstall/u01

chmod775/u01

mkdir-p/u01/app/oracle/11.1/asm

chown-Rosasm:oinstall/u01/app/oracle/11.1/asm

chmod775/u01/app/oracle/11.1/asm

mkdir-p/u01/app/oracle/11.1/db

chown-Roracle:oinstall/u01/app/oracle/11.1/db

chmod775/u01/app/oracle/11.1/db

12、

vi/home/oracle/.bash_profile

exportORACLE_BASE=/u01/app/oracle

exportORACLE_HOME=/u01/app/oracle/11.1/db

exportORACLE_SID=orcl

exportPATH=$ORACLE_HOME/bin:.:$PATH:$HOME/sh

vi/home/osasm/.bash_profile

exportORACLE_BASE=/u01/app/oracle

exportORACLE_HOME=/u01/app/oracle/11.1/asm

exportORACLE_SID=+ASM

exportPATH=$ORACLE_HOME/bin:.:$PATH:$HOME/sh

13、

rpm-ivhoracleasm-2.6.18-194.el5-2.0.5-1.el5.i686.rpmoracleasmlib-2.0.4-1.el5.i386.rpmoracleasm-support-2.1.7-1.el5.i386.rpm

[root@asm_orclDesktop]#/etc/init.d/oracleasmconfigure

ConfiguringtheOracleASMlibrarydriver.

Thiswillconfiguretheon-bootpropertiesoftheOracleASMlibrary

driver.Thefollowingquestionswilldeterminewhetherthedriveris

loadedonbootandwhatpermissionsitwillhave.Thecurrentvalues

willbeshowninbrackets('[]').Hittingwithouttypingan

answerwillkeepthatcurrentvalue.Ctrl-Cwillabort.

Defaultusertoownthedriverinterface[]:osasm

Defaultgrouptoownthedriverinterface[]:oinstall

StartOracleASMlibrarydriveronboot(y/n)[n]:y

ScanforOracleASMdisksonboot(y/n)[y]:y

WritingOracleASMlibrarydriverconfiguration:done

InitializingtheOracleASMLibdriver:[OK]

ScanningthesystemforOracleASMLibdisks:[OK]

[root@asm_orclDesktop]#/etc/init.d/oracleasmcreatediskasm1/dev/sda6

Markingdisk"asm1"asanASMdisk:[OK]

[root@asm_orclDesktop]#/etc/init.d/oracleasmcreatediskasm2/dev/sda7

Markingdisk"asm2"asanASMdisk:[OK]

[root@asm_orclDesktop]#/etc/init.d/oracleasmcreatediskasm3/dev/sda8

Markingdisk"asm3"asanASMdisk:[OK]

[root@asm_orclDesktop]#/etc/init.d/oracleasmcreatediskasm4/dev/sda9

Markingdisk"asm4"asanASMdisk:[OK]

14、

root用户xhost+

su-osasm开始gridOUI安装过程,其中在选用户时按下图选择

Oracle 11g with ASM 安装_第1张图片

15、

su-osasm

exportORACLE_SID=+asm

vi/u01/app/oracle/11.1/asm/dbs/init+ASM.ora

*.instance_type='asm'

*.instance_name='+ASM'

*.diskstring=

*.diskgroups='DATA'

crsctlstatusresource-t

crsctlstartresourceora.cssd

sqlplus/nolog

connect/assysasm

startup....启动ASM实例

16、未完待续