Sei sulla pagina 1di 2

Installing Oracle 11.

2 on Linux with silent mode


Oracle Installation Prerequisites
Perform either the Automatic Setup or the Manual Setup to complete the basic prerequisites. The Additional Setup is required
for all installations.

Automatic Setup
If you plan to use the oracle-validated package to perform all your prerequisite setup, follow the instructions at http://publicyum.oracle.com to setup the yum repository for OL, then perform the following command.
# yum install oracle-validated
All necessary prerequisites will be performed automatically.
It is probably worth doing a full update as well, but this is not strictly speaking necessary.
# yum update

Create Oracle user account


groupadd dba
groupadd oinstall
groupadd asmdba
groupadd asmadmin
useradd -g oinstall -G dba,asmdba,asmadmin oracle
Create Software installation folders

/u01/app/oracle > for $ORACLE_BASE for Oracle Database instance


/u01/app/oracle/product/11.2.0 > for $ORACLE_HOME

mkdir
chown
chown
chmod

-p /u01/app/oracle/product/11.2.0
-R oracle:oinstall /u01/app
R /u01/app/oracle
775 /u01/app

Setting Oracle Enviroment


TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_HOSTNAME=primary.bulldba.com; export ORACLE_HOSTNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
ORACLE_SID=DB11G; 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
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
Fi

Install Oracle database software with silent mode


$ ./runInstaller -ignoreSysPrereqs -force -silent -responseFile
/home/oracle/db_install.rsp
Here is a partial listing of an Oracle Database 11grelease 2 response file:
oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v
11_2_0
oracle.install.option=INSTALL_DB_SWONLY
ORACLE_HOSTNAME=primary.bulldba.com
UNIX_GROUP_NAME=oinstall
INVENTORY_LOCATION=/u01/app/oinventory
SELECTED_LANGUAGES=en
ORACLE_BASE=/u01/app/oracle/
oracle.install.db.InstallEdition=EE
oracle.install.db.EEOptionsSelection=false
oracle.install.db.optionalComponents=oracle.rdbms.partitioning:11.2.0.3.0,oracle.orao
lap:11.2.0.3.0,oracle.rdbms.dm:11.2.0.3.0,oracle.rdbms.dv:11.2.0.3.0,oracle.rdbms.lba
c:11.2.0.3.0,oracle.rdbms.rat:11.2.0.3.0
oracle.install.db.DBA_GROUP=dba
oracle.install.db.config.starterdb.characterSet=AL32UTF8
oracle.install.db.config.starterdb.memoryOption=true
oracle.install.db.config.starterdb.memoryLimit=512
oracle.install.db.config.starterdb.installExampleSchemas=false
oracle.install.db.config.starterdb.enableSecuritySettings=true
oracle.install.db.config.starterdb.password.ALL=oracle!
oracle.install.db.config.starterdb.storageType=ASM_STORAGE
oracle.install.db.config.asm.ASMSNMPPassword=oracle!
SECURITY_UPDATES_VIA_MYORACLESUPPORT=false
DECLINE_SECURITY_UPDATES=true
Then run following two scripts as root user
[oracle@primary db_1]$ The installation of Oracle Database 11g was successful.
Please check '/u01/app/oinventory/logs/silentInstall2013-05-24_01-22-02PM.log' for
more details.
As a root user, execute the following script(s):

1. /u01/app/oinventory/orainstRoot.sh
2. /u01/app/oracle/product/11.2.0/db_1/root.sh
the software binary install succeed, try to login :
[oracle@primary db_1]$ sqlplus /nolog
SQL*Plus: Release 11.2.0.3.0 Production on Fri May 24 13:52:42 2013
Copyright (c) 1982, 2011, Oracle.
SQL>

All rights reserved.

Potrebbero piacerti anche