You are on page 1of 2

We have to install packages that are in Linux CD1 : -

========================================
Red Hat Enterprise Linux 4.0 and Asianux 2.0:
binutils-2.15.92.0.2-13.EL4-- N
compat-db-4.1.25-9
compat-libstdc++-296-2.96-132.7.2
control-center-2.8.0-12 -n
gcc-3.4.3-22.1.EL4 -n
gcc-c++-3.4.3-22.1.EL44-n
glibc-2.3.4-2.9-n
glibc-common-2.3.4-2.9
gnome-libs-1.4.1.2.90-44.1
libstdc++-3.4.3-22.1
libstdc++-devel-3.4.3-22.1
make-3.80-5
pdksh-5.2.14-30
sysstat-5.0.5-1
xscreensaver-4.18-5.rhel4.2
setarch-1.6-1
2. After installing we have to set envirmental variable :-(http://techxploration
.blogspot.in/2012/01/resolving-sp2-0750-you-may-need-to-set.html)
================================================================================
=====================================
1) Find out the path to sqlplus
bash-3.2$ which sqlplus
/u01/app/oracle/product/11.2.0/xe/bin/sqlplus
2) Set your Oracle_HOME (upto xe directory)
bash-3.2$ export ORACLE_HOME=/home/rocky/oracle/product/10.2.0/db_1/
3) Set the path to the directory where sqlplus is located to your PATH variable:
bash-3.2$ export PATH=/u01/app/oracle/product/11.2.0/xe/bin:$PATH

You should now be able to use sqlplus.
4) Now you need to edit you bash_profile so all these takes effect everytime you
log in.

bash-3.2$ cd ~/
bash-3.2$ vi .bash_profile
(in vi editor -- to write something press - i , write something in place ~~after
completing type - press Esc, then type :wq , then enter, to execute type --> $
. .batchname)
5) In the .bash_profile you will need to add those export lines so every time yo
u log in the same settings take effect.
bash-3.2$ vi .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
ORACLE_SID=XE
export ORACLE_SID
ORACLE_HOME=/u01/app/oracle/product/11.2.0/xe
export ORACLE_HOME
PATH=$ORACLE_HOME/bin:$PATH
export PATH
unset USERNAME
6) Run the following:
bash-3.2$ . .bash_profile

After following these 6 steps you should be able to connect to sqlplus any time.

3. AFTER CONNECTING ,IF EROR :-
===============================
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory
TO SOLVE IT :-
======
[oracle@ ~]$ export ORACLE_SID=orcl
[oracle@ ~]$ sqlplus sys as sysdba
SQL*Plus: Release 11.2.0.2.0 Production on Fri Apr 29 10:29:11 2011
Copyright (c) 1982, 2010, Oracle. All rights reserved.
Enter password:
Connected to an idle instance.
FIRST : SHUTDOWN IMMEDIATE
THEN STARTUP
---NOW CONNECT-------

You might also like