oracle11gLinux安装

1、版本

[root@OCP/]#cat/etc/redhat-release

RedHatEnterpriseLinuxServerrelease5.5(Tikanga)

[root@OCP/]#uname-a

LinuxOCP2.6.18-194.el5PAE#1SMPTueMar1622:00:21EDT2010i686i686i386GNU/Linux

2[root@OCP/]#df-m

Filesystem1M-blocksUsedAvailableUse%Mountedon

/dev/sda29917900540096%/

/dev/sda199128312%/boot

tmpfs2026020260%/dev/shm

/dev/sda5939715087702%/u01

/dev/sda6470313843264%/orcl01

/dev/sda7470313843264%/orcl02

/dev/sda9470313843264%/orcl04

/dev/sda8470313843264%/orcl03

3[root@OCP/]#free-m

totalusedfreesharedbufferscached

Mem:40504553595028316

-/+buffers/cache:1103940

Swap:204702047

4、检查下列包是否安装,若未安装则要先安装:

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

3、创建用户以及目录

[root@node1/]#groupaddoinstall

[root@node1/]#groupadddba

[root@node1/]#useradd-goinstall-Gdbaoracle

[root@node1/]#mkdir-p/u01/app/oracle/product/db

[root@node1/]#chown-Roracle:oinstall/u01

[root@node1/]#chmod-R775/u01

[root@node1/]#passwdoracle

4、用户oracle环境变量:

[root@node1/]#vi/home/oracle/.bash_profile

exportORACLE_BASE=/u01/app/oracle

exportORACLE_HOME=$ORACLE_BASE/product/db

exportORACLE_SID=orcl

exportORACLE_OWNER=oracle

exportORACLE_TERM=vt100

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

exportPATH=$ORACLE_HOME/bin:$ORACLE_HOME/Apache/Apache/bin:$PATH

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/lib

exportLD_LIBRARY_PATH

CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

exportCLASSPATH

CLASSPATH=$CLASSPATH:$ORACLE_HOME/network/jlib

exportCLASSPATH

[root@node1/]#source/home/oracle/.bash_profile

5、修改系统内核参数:

[root@node1opt]#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

[root@node1/]#sysctl-p

6、设定用户限制

#vi/etc/security/limits.conf

#ORACLESETTING

oraclesoftnproc2047

oraclehardnproc16384

oraclesoftnofile1024

oraclehardnofile65536

7、用户界面安全设置

[root@node1opt]#vi/etc/pam.d/login

sessionrequired/lib/security/pam_limits.so

sessionrequiredpam_limits.so

8vi/etc/profile

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

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

ulimit-p16384

ulimit-n65536

else

ulimit-u16384-n65536

fi

umask022

fi

9、root用户xhost+

su-oracle....开始OracleOUI安装过程