LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-28-2010, 01:28 AM   #1
achilies
LQ Newbie
 
Registered: Nov 2009
Location: Hyderabad, India
Posts: 10

Rep: Reputation: 0
problem in getting sql prompt in oracle


Hi,
I'm using rhel5 server edition. Previously i've mysql database & i didnt removed. Directly i installed oracle10g on rhel5. After completion of installation i didnt got any sql prompt in graphical. Even in terminal i tried with whereis sqlplus, i was getting the error command is not found. only i was getting sqlite3 command. How can i work with oracle. Please guide me.

Thanks in advance...

Last edited by achilies; 04-28-2010 at 01:55 AM.
 
Old 04-28-2010, 09:56 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,187

Rep: Reputation: 6476Reputation: 6476Reputation: 6476Reputation: 6476Reputation: 6476Reputation: 6476Reputation: 6476Reputation: 6476Reputation: 6476Reputation: 6476Reputation: 6476
Quote:
Originally Posted by achilies View Post
Hi,
I'm using rhel5 server edition. Previously i've mysql database & i didnt removed. Directly i installed oracle10g on rhel5. After completion of installation i didnt got any sql prompt in graphical. Even in terminal i tried with whereis sqlplus, i was getting the error command is not found. only i was getting sqlite3 command. How can i work with oracle. Please guide me.

Thanks in advance...
Ok...we will "guide you" to contact Oracle, since you're paying for support. There's not enough information in your post to even speculate as to why it's not working.
 
Old 04-28-2010, 10:28 AM   #3
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Please post more information - you cannot be "guided" if you don't even provide basic information.

If you're unable to get to sqlplus in the command prompt; more than likely you haven't configured your environment variables correctly

Please post the output of

Code:
#env
and

Code:
#more /home/myuser/.bash_profile
For the second output; ensure that you are logged in as the oracle user.
 
Old 04-28-2010, 01:20 PM   #4
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,373

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by achilies View Post
Hi,
I'm using rhel5 server edition. Previously i've mysql database & i didnt removed. Directly i installed oracle10g on rhel5. After completion of installation i didnt got any sql prompt in graphical. Even in terminal i tried with whereis sqlplus, i was getting the error command is not found. only i was getting sqlite3 command. How can i work with oracle. Please guide me.

Thanks in advance...
Hi , as you told You didnt remove mysql and directly install Oracle 10g . It will not create any problem if both DB exist .

Here is my guide for perfect installation of Oracle and use . Make a look at it and reply if any problem ..

 
Old 04-29-2010, 12:09 AM   #5
achilies
LQ Newbie
 
Registered: Nov 2009
Location: Hyderabad, India
Posts: 10

Original Poster
Rep: Reputation: 0
hi alli yas
this is the out put of your given commands

#env
SSH_AGENT_PID=2685
HOSTNAME=seas3.7seastech.com
TERM=xterm
SHELL=/bin/bash
DESKTOP_STARTUP_ID=
HISTSIZE=1000
KDE_NO_IPV6=1
GTK_RC_FILES=/etc/gtk/gtkrc:/home/ev3/.gtkrc-1.2-gnome2
WINDOWID=48234577
USER=oracle
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36i=40;33:so=00;35:bd=40;33;01:cd=40;33;01r=01;05;37;41:mi= 01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00 ;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz =00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;3 5:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
SSH_AUTH_SOCK=/tmp/ssh-MszUXF2621/agent.2621
GNOME_KEYRING_SOCKET=/tmp/keyring-fuVYrK/socket
KDEDIR=/usr
USERNAME=ev3
SESSION_MANAGER=local/seas3.7seastech.com:/tmp/.ICE-unix/2621
PATH=/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/opt/real/RealPlayer:/home/ev3/bin:/opt/real/RealPlayer:/opt/real/RealPlayer
DESKTOP_SESSION=default
MAIL=/var/spool/mail/ev3
GDM_XSERVER_LOCATION=local
PWD=/home/oracle
INPUTRC=/etc/inputrc
XMODIFIERS=@im=none
LANG=en_US.UTF-8
KDE_IS_PRELINKED=1
GDMSESSION=default
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SHLVL=3
HOME=/home/oracle
GNOME_DESKTOP_SESSION_ID=Default
LOGNAME=oracle
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-uPrDwuyhMZ,guid=04f8d74b55fc58a5a6c29408a8adaf00
LESSOPEN=|/usr/bin/lesspipe.sh %s
DISPLAY=:0.0
G_BROKEN_FILENAMES=1
XAUTHORITY=/home/oracle/.xauthXRX8RJ
COLORTERM=gnome-terminal
OLDPWD=/home/ev3
_=/usr/bin/env


#more /home/oracle/.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_BASE=/opt/oracle
ORACLE_HOME=$ORACLE_BASE/102
ORACLE_SID=ORCL
LD_LIBRARY_PATH=$ORACLE_HOME/lib
PATH=$PATH:$ORACLE_HOME/bin

export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH
 
Old 04-30-2010, 01:32 AM   #6
alli_yas
Member
 
Registered: Apr 2010
Location: Johannesburg
Distribution: Fedora 14, RHEL 5.5, CentOS 5.5, Ubuntu 10.04
Posts: 559

Rep: Reputation: 92
Your PATH variable doesn't match what you're doing in your bash profile.

Code:
PATH=$PATH:$ORACLE_HOME/bin
The above is correct - however looking at your PATH when you did the env command; the binary directory for your Oracle install is not in here. Thus if you tried to access the sqlplus CLI you'd have to be in $ORACLE_HOME/bin.

What exactly are your issues apart from this?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Oracle/SQL book icecubeflower Linux - Newbie 5 08-03-2009 09:59 PM
login as oracle user but prompt show [root@ablnx oracle] how come? sathyguy Linux - Newbie 12 08-23-2008 02:52 AM
Sql + Oracle Select If ???? smaida Programming 11 12-15-2004 08:13 PM
Oracle SQL+ darkRoom Programming 2 05-20-2004 09:01 PM
SQL and Oracle Rutnut Linux - General 3 04-07-2002 12:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration