|
Size: 2117
Comment:
|
Size: 4324
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 2: | Line 2: |
| <<TableOfContents()>> | |
| Line 3: | Line 4: |
| = Install Oracle in silent mode 11G Release 2 (11.2.0.4) on OEL6.6 == | = Install Oracle in silent mode 11G Release 2 (11.2.0.4) on OEL6.6 = |
| Line 13: | Line 14: |
| useradd -m -u 1100 -g oinstall -G asmadmin,asmdba,asmoper -d /home/grid -s /bin/bash grid | |
| Line 19: | Line 21: |
| kernel.shmmax = 4294967295 kernel.shmall = 2097152 |
kernel.shmmax = 68719476736 kernel.shmall = 4294967296 |
| Line 48: | Line 50: |
| # login with oracle user! | |
| Line 51: | Line 54: |
| export PS1='\u@\h \w \$ ' | |
| Line 54: | Line 58: |
| export ORACLE_BASE=/ora01/app/oracle | export ORACLE_BASE=/u01/app/oracle |
| Line 97: | Line 101: |
| yum install unixODBC unixODBC-devel sysstat | yum install elfutils-libelf-devel libaio-devel unixODBC unixODBC-devel -y |
| Line 99: | Line 103: |
== create directorys == {{{ mkdir -p /u01/app/grid mkdir -p /u01/app/11.2.0/grid chown -R grid:oinstall /u01 mkdir -pv /u01/app/oracle/product/11.2.0/db_1 chown oracle:oinstall /u01/app/oracle chmod -R 775 /u01 }}} == install database software == {{{ su - oracle cd /home/oracle -> unzip software 11.2.0.4 unizp p13390677_112040_Linux-x86-64_1of7.zip unzip p13390677_112040_Linux-x86-64_2of7.zip }}} == db_install.rsp == {{{ }}} * ./runInstaller -silent -responseFile ~/db_install.rsp = dbca_silent.rsp = {{{ --global database name GDBNAME = "gowms" --instance database name SID = "gowms" --template name used to create database TEMPLATENAME = "General_Purpose.dbc" --password for user sys SYSPASSWORD = "oracle" --password for user system SYSTEMPASSWORD = "oracle" --creates database console EMCONFIGURATION = "LOCAL" --password for sysman user SYSMANPASSWORD = "oracle" --password for dbsnmp user DBSNMPPASSWORD = "oracle" --storage used to create database --FS - it means OS data files STORAGETYPE=FS --default directory for oracle database datafiles DATAFILEDESTINATION=/u01/app/oracle/oradata --default directory for flashback dataa RECOVERYAREADESTINATION=/u01/app/oracle/flash_recovery_area STORAGETYPE=FS --database character set CHARACTERSET = "AL32UTF8" --national database character set NATIONALCHARACTERSET= "AL16UTF16" --listener name to register database to LISTENERS = "LISTENER" --force to install sample schemas on the database SAMPLESCHEMA=TRUE --specify database type --has influence on some instance parameters DATABASETYPE = "OLTP" --force to use autmatic mamory management AUTOMATICMEMORYMANAGEMENT = "TRUE" --defines size of memory used by the database }}} * dbca -silent -responseFile ~/db_install.rsp == edit /etc/oratab == gowms:/u01/app/oracle/product/11.2.0/db_1:Y == References == http://dbaora.com/install-oracle-in-silent-mode-11g-release-2-11-2/ |
Contents
Install Oracle in silent mode 11G Release 2 (11.2.0.4) on OEL6.6
groupadd -g 1000 oinstall groupadd -g 1200 asmadmin groupadd -g 1201 asmdba groupadd -g 1202 asmoper groupadd -g 1300 dba groupadd -g 1301 oper useradd -m -u 1101 -g oinstall -G dba,oper,asmdba -d /home/oracle -s /bin/bash oracle useradd -m -u 1100 -g oinstall -G asmadmin,asmdba,asmoper -d /home/grid -s /bin/bash grid
add kernel parameters
cat >> /etc/sysctl.conf <<EOF kernel.shmmax = 68719476736 kernel.shmall = 4294967296 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 fs.file-max = 6815744 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 fs.aio-max-nr=1048576 EOF
cat >> /etc/security/limits.conf <<EOF oracle soft nproc 131072 oracle hard nproc 131072 oracle soft nofile 131072 oracle hard nofile 131072 oracle soft core unlimited oracle hard core unlimited oracle soft memlock 50000000 oracle hard memlock 50000000 EOF
Oracle Settings
# login with oracle user!
cat > /home/oracle/.bash_profile <<"EOF" export TMP=/tmp export PS1='\u@\h \w \$ ' export ORACLE_HOSTNAME=gowms export ORACLE_UNQNAME=gowms export ORACLE_BASE=/u01/app/oracle export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1 export ORACLE_SID=gowms PATH=/usr/sbin:$PATH:$ORACLE_HOME/bin export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; alias cdob='cd $ORACLE_BASE' alias cdoh='cd $ORACLE_HOME' alias tns='cd $ORACLE_HOME/network/admin' alias envo='env | grep ORACLE' umask 022 EOF
install missing packages
rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE}(%{ARCH})\n' binutils \
compat-libstdc++-33 \
elfutils-libelf \
elfutils-libelf-devel \
gcc \
gcc-c++ \
glibc \
glibc-common \
glibc-devel \
glibc-headers \
ksh \
libaio \
libaio-devel \
libgcc \
libstdc++ \
libstdc++-devel \
make \
sysstat \
unixODBC \
unixODBC-devel- install missing...
yum install elfutils-libelf-devel libaio-devel unixODBC unixODBC-devel -y
create directorys
mkdir -p /u01/app/grid mkdir -p /u01/app/11.2.0/grid chown -R grid:oinstall /u01 mkdir -pv /u01/app/oracle/product/11.2.0/db_1 chown oracle:oinstall /u01/app/oracle chmod -R 775 /u01
install database software
su - oracle cd /home/oracle -> unzip software 11.2.0.4 unizp p13390677_112040_Linux-x86-64_1of7.zip unzip p13390677_112040_Linux-x86-64_2of7.zip
db_install.rsp
- ./runInstaller -silent -responseFile ~/db_install.rsp
dbca_silent.rsp
--global database name GDBNAME = "gowms" --instance database name SID = "gowms" --template name used to create database TEMPLATENAME = "General_Purpose.dbc" --password for user sys SYSPASSWORD = "oracle" --password for user system SYSTEMPASSWORD = "oracle" --creates database console EMCONFIGURATION = "LOCAL" --password for sysman user SYSMANPASSWORD = "oracle" --password for dbsnmp user DBSNMPPASSWORD = "oracle" --storage used to create database --FS - it means OS data files STORAGETYPE=FS --default directory for oracle database datafiles DATAFILEDESTINATION=/u01/app/oracle/oradata --default directory for flashback dataa RECOVERYAREADESTINATION=/u01/app/oracle/flash_recovery_area STORAGETYPE=FS --database character set CHARACTERSET = "AL32UTF8" --national database character set NATIONALCHARACTERSET= "AL16UTF16" --listener name to register database to LISTENERS = "LISTENER" --force to install sample schemas on the database SAMPLESCHEMA=TRUE --specify database type --has influence on some instance parameters DATABASETYPE = "OLTP" --force to use autmatic mamory management AUTOMATICMEMORYMANAGEMENT = "TRUE" --defines size of memory used by the database
- dbca -silent -responseFile ~/db_install.rsp
edit /etc/oratab
gowms:/u01/app/oracle/product/11.2.0/db_1:Y
References
http://dbaora.com/install-oracle-in-silent-mode-11g-release-2-11-2/
