確定以下安裝包是否安裝,沒有的話就在第一張光盤里找.
binutils-2.17.50.0.6-5.el5.i386.rpm
compat-libstdc++-33-3.2.3-61.i386.rpm
elfutils-libelf-0.125-3.el5.i386.rpm
elfutils-libelf-devel-0.125-3.el5.i386.rpm
gcc-4.1.2-14.el5.i386.rpm
gcc-c++-4.1.2-14.el5.i386.rpm
glibc-2.5-18.i386.rpm
glibc-common-2.5-18.i386.rpm
glibc-devel-2.5-18.i386.rpm
glibc-headers-2.5-18.i386.rpm
libaio-0.3.106-3.2.i386.rpm
libaio-devel-0.3.106-3.2.i386.rpm
libgcc-4.1.2-14.el5.i386.rpm
libstdc++-4.1.2-14.el5.i386.rpm
libstdc++-devel-4.1.2-14.el5.i386.rpm
make-3.81-1.1.i386.rpm
numactl-devel-0.9.8-2.el5.i386.rpm
sysstat-7.0.0-3.el5.i386.rpm
unixODBC-2.2.11-7.1.i386.rpm
unixODBC-devel-2.2.11-7.1.i386.rpm
vi /etc/oraInst.loc
inventory_loc=/u01/app/oraInventory
inst_group=oinstall
/usr/sbin/groupadd oinstall
/usr/sbin/groupadd dba
/usr/sbin/useradd -g oinstall -G dba oracle
passwd oracle
vi /etc/sysctl.conf
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 4294967295
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
/sbin/sysctl –p
Vi /etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
vi /etc/pam.d/login
session required pam_limits.so
vi /etc/profile
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
vi /etc/csh.login
if ( $USER == "oracle" ) then
limit maxproc 16384
limit descriptors 65536
endif
mkdir -p /u01/app/oracle/product/11.1.0/db_1
chown -R oracle:oinstall /u01/app/
chmod -R 775 /u01/app/
vi .bash_profile
export nls_lang=AMERICAN_AMERICA.ZHS16GBK
export ORACLE_HOSTNAME=testh.localdomain
export ORA_NLS10=$ORACLE_HOME/nls/data
export TMP=/tmp
export TMPDIR=$TMP
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1
export ORACLE_SID=orahao
export ORACLE_TERM=xterm
export PATH=$PATH:$ORACLE_HOME/bin:/sbin:/usr/sbin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
vi /etc/selinux/config
SELINUX=disabled
執行./runInstaller 安裝數據庫
ASM:http://www.oracle.com/technology/software/tech/linux/asmlib/index.html
Install: http://www.oracle-base.com/
Oracle database online documentation 11g release 1(11.1)
http://www.oracle.com/pls/db111/portal.portal_db?selected=11&frame=
# uname -r
2.6.18-53.el5xen
oracleasm-2.6.18-53.el5xen-2.0.4-1.el5.i686.rpm
oracleasmlib-2.0.4-1.el5.i386.rpm
oracleasm-support-2.1.3-1.el5.i386.rpm
# /etc/init.d/oracleasm configure
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. The following questions will determine whether the driver is
loaded on boot and what permissions it will have. The current values
will be shown in brackets ('[]'). Hitting without typing an
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: oracle
Default group to own the driver interface []: oinstall
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
使用rawdevice不需以下這步:
# /etc/init.d/oracleasm createdisk VOL1 /dev/sda3
Marking disk "VOL1" as an ASM disk: [ OK ]
# /etc/init.d/oracleasm listdisks
VOL1
ORA-29701: unable to connect to Cluster Manager
对上面的错误以root用户运行$ORACLE_HOME/bin下的localconfig添加CSS服务即可解决
# /u01/app/oracle/product/11.1.0/db_1/bin/localconfig add
/etc/oracle does not exist. Creating it now.
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
Operation successful.
Configuration for local CSS has been initialized
Cleaning up Network socket directories
Setting up Network socket directories
Adding to inittab
Startup will be queued to init within 30 seconds.
Checking the status of new Oracle init process...
Expecting the CRS daemons to be up within 600 seconds.
Cluster Synchronization Services is active on these nodes.
testh
Cluster Synchronization Services is active on all the nodes.
Oracle CSS service is installed and running under init(1M)
使用DBCA配置ASM,并創建DB.
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/13023909/viewspace-625611/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/13023909/viewspace-625611/