as 5安裝11g

安佰勝發表於2011-11-04


安裝Oracle11g

=============


--as 5依賴包

binutils-2.17.50.0.6-12.el5 (s390x)
compat-libstdc++-33-3.2.3-61 (s390)
compat-libstdc++-33-3.2.3-61 (s390x)
gcc-4.1.2-46.el5 (s390x)
gcc-c++-4.1.2-46.el5 (s390x)
glibc-2.5-42(s390)
glibc-2.5-42 (s390x)
glibc-devel-2.5-42 (s390)
glibc-devel-2.5-42 (s390x)
ksh
libaio-0.3.106-3.2 (s390)
libaio-0.3.106-3.2 (s390x)
libaio-devel-0.3.106-3.2 (s390)
libaio-devel-0.3.106-3.2 (s390x)
libgcc-4.1.2-46.el5 (s390)
libgcc-4.1.2-46.el5 (s390x)
libstdc++-4.1.2-46.el5 (s390)
libstdc++-4.1.2-46.el5 (s390x)
libstdc++-devel-4.1.2-46.el5 (s390x)
make-3.81
sysstat-7.0.2-3.el5 (s390x)


--修改系統核心引數

vi /etc/sysctl.conf

kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 262144

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     /lib/security/pam_limits.so
session    required     pam_limits.so


vi /etc/selinux/config

SELINUX=disabled
SELINUXTYPE=targeted

 

--建立oracle的使用者組和使用者

groupadd oinstall
groupadd dba
groupadd oper
groupadd asmadmin
useradd -g oinstall -G dba,oper,asmadmin oracle

passwd oracle


su - oracle
vi .bash_profile

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
 . ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin

export PATH
TMP=/tmp;       export TMP
TMPDIR=$TMP;    export TMPDIR
ORACLE_HOSTNAME=db11; export ORACLE_HOSTNAME
ORACLE_BASE=/opt/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1; export ORACLE_HOME
ORACLE_SID=db11; export ORACLE_SID    
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
LANG=C export LANG
if [[ $USER = "oracle" ]]; then
   if [[ $SHEEL = "/bin/ksh" ]]; then
      ulimit -p 16384
      ulimit -u 65536
   else
      ulimit -u 16384 -n 65536
   fi
fi


---------------


dbca
netca


使用命令報錯:
error while loading shared libraries: /opt/app/oracle/product/11.1.0/db_1/lib/libclntsh.so.11.1:

處理:
chmod 777 /var/tmp/.oracle
chcon -t textrel_shlib_t /opt/app/oracle/product/11.1.0/db_1/lib/libclntsh.so.11.1

 

靜默安裝

./runInstaller -silent -debug -force
FROM_LOCATION=/opt/app/tmp/database/stage/products.xml
oracle.install.option=INSTALL_DB_SWONLY
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/opt/app/oraInventory
ORACLE_HOME=/opt/app/oracle/product/11.2.2/dbhome_1
ORACLE_HOME_NAME="OracleHome"
ORACLE_BASE=/opt/app/oracle
oracle.install.db.InstallEdition=EE
oracle.install.db.isCustomInstall=false
oracle.install.db.DBA_GROUP=dba
oracle.install.db.OPER_GROUP=dba
DECLINE_SECURITY_UPDATES=true
MYORACLESUPPORT_USERNAME=xxx
MYORACLESUPPORT_PASSWORD=xxx
-ignoreInternalDriverError


 

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/13177610/viewspace-710214/,如需轉載,請註明出處,否則將追究法律責任。

相關文章