We help IT Professionals succeed at work.
Get Started

Set up Oracle environment in Red Hat Linux

Kamal Agnihotri
on
673 Views
Last Modified: 2012-06-13
Hi Experts,

I am attempting to set up environment for oracle 11202 on Redhat Linux 6.2 (64 Bit). I have installed oracle 11202. I have created  a db_setenv.sh file . The contents of this file are:

export ORACLE_HOME=/home/jan/app/jan/product/11.2.0/dbhome_1
export ORACLE_BASE=/home/jan/app/jan
export ORACLE_SID=april
export PATH=$ORACLE_HOME/bin:$PATH
export CLASSPATH=$ORACLE_HOME/jlib
export LIBPATH=$ORACLE_HOME/lib:$LIBPATH
sqlplus /nolog


I execute the above file by giging the comand ./db_setenv.sh and I get the SQL prompt as below:

[jan@localhost scripts]$ ./db_setenv.sh

SQL*Plus: Release 11.2.0.1.0 Production on Fri Apr 20 05:13:42 2012

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

SQL> conn /as sysdba
Connected.
SQL>
SQL>
SQL>

From here I am inside Oracle and that is good. The help I need is to modify my db_setenv.sh file in such a way that when I type cd $ORACLE_HOME it should take me to

home/jan/app/jan/product/11.2.0/dbhome_1

and when I type $ORACLE_BASE it should take me to:
/home/jan/app/jan
Comment
Watch Question
Commented:
This problem has been solved!
Unlock 1 Answer and 1 Comment.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE