configure yum repository from dvd or web
[root@nepal55 Packages]# yum install oracle-rdbms-server-11gR2-preinstall-1.0-7.el6.x86_64.rpm
mkdir -p /u01/app/oracle/product/11.2.0/db_1
chown -R oracle:oinstall /u01
setenforce 0
chmod -R 775 /u01
Install below rpm for GUI dependencies:-
yum install xorg-x11-xauth
yum install xorg-x11-utils
OR
yum install xclock (this will auto install xorg...and clock after installing type #xclock And youll see a clock)
download disk1 and disk2 of 11GR2 and unzip in same location
[root@nepal55 oracledb]# unzip linux.x64_11gR2_database_1of2.zip
[root@nepal55 oracledb]# unzip linux.x64_11gR2_database_2of2.zip
[root@nepal55 oracledb]# ls
database linux.x64_11gR2_database_1of2.zip linux.x64_11gR2_database_2of2.zip
Now edit the oracle user .bash_profile file like this :-
# cat .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
# Oracle Settings#################################below settings are added
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
ORACLE_HOSTNAME=nepal55.comorcl; export ORACLE_HOSTNAME
ORACLE_UNQNAME=DB11G; export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1; export ORACLE_HOME
ORACLE_SID=orcl; export ORACLE_SID
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/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH export PATH
-----------------------------------------------------------------------------------------------------------






No comments:
Post a Comment