Solved

Cant connect to sqlplus on oracle 10g2

Posted on 2007-12-04
7
1,080 Views
Last Modified: 2013-12-18
Hello,

I have installed oracle 10g2 on Linux Red Hat enterprise 5 but when i try to get to sqlplus i get the following error:

bash: sqlplus: command not found

It looks as if sqlplus aint installed but i did a custom installation and i chose it from the list. For any further info concerning the installation ask me and i ll post it.

Thanx in advance for your help.
0
Comment
Question by:stavrama
  • 4
  • 2
7 Comments
 
LVL 142

Assisted Solution

by:Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3] earned 50 total points
ID: 20401573
check out, is the oracle folder where sqlplus is in, in the path?

try to go to the folder of ORACLE_HOME, under the bin folder you should find it.
0
 
LVL 27

Expert Comment

by:sujith80
ID: 20401615
Have you set your environment?
Try $ORACLE_HOME/bin/sqlplus
0
 
LVL 2

Author Comment

by:stavrama
ID: 20401663
There is no such file or directory...
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 27

Expert Comment

by:sujith80
ID: 20401686
Can you change to $ORACLE_HOME/bin?
0
 
LVL 2

Author Comment

by:stavrama
ID: 20401788
Sorry but i dont understand what you are asking.  Under the bin folder i dont have any orcale_home folder. The only sqlplus folder i have is on the directory in which orcale10g2 was installed. The directory is the following:

u01/app/oracle/oracle/product/10.2.0/db_1

Furthermore i have followed the instructions from meta link about the things i need to do before the installation of 10g2 and one of those, was to set in the home/oracle/.bash.profile the follwoing lines:

export ORACLE_BASE=/u01/app/oracle
export ORACLE_SID=orcl
unset  ORACLE_HOME

Do i need to delete the last line and add there the oracle_home directory? If yes what this will be? The place where sqlplus folder is?
0
 
LVL 27

Accepted Solution

by:
sujith80 earned 75 total points
ID: 20401951
You should not unser your ORACLE_HOME in bash.profile.

ORACLE_HOME Should point to: /u01/app/oracle/oracle/product/10.2.0/db_1

Include this in bash profile :
export ORACLE_HOME=/u01/app/oracle/oracle/product/10.2.0/db_1

Login again OR run bash profile again and try:
$ORACLE_HOME/bin/sqlplus
0
 
LVL 27

Expert Comment

by:sujith80
ID: 20402012
The first line should read as:
You should not unset your ORACLE_HOME in bash.profile

And as instructed in the first post from angelIII:you should include $ORACLE_HOME/bin in your PATH, to have the executable sqlplus in your bin path.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to take different types of Oracle backups using RMAN.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now