sqlplus: command not found


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu sqlplus: command not found
# 1  
Old 04-13-2011
sqlplus: command not found

I installed Oracle 10.2.1.0 in Ubuntu 10.10..my installation was well,i could even open isqlplus( http://ubuntu.ubuntu-domain:5560/isqlplus/workspace.uix ) and execute some queries..But,back in terminal when i try to login to sqlplus i am getting error

Quote:

oracle@ubuntu:~$ sqlplus / as sysdba
sqlplus: command not found
oracle@ubuntu:~$ export ORACLE_HOME=/opt/oracle/oracle/product/10.2.0
oracle@ubuntu:~$ export PATH=$PATH:$/opt/oracle/oracle/product/10.2.0/db_2/bin
oracle@ubuntu:~$ sqlplus / as sysdba
sqlplus: command not found


sqlplus: command not found-snapshot5jpeg
# 2  
Old 04-13-2011
First, your ORACLE_HOME doesn't seem to be set correctly:

Code:
ORACLE_HOME=/opt/oracle/oracle/product/10.2.0/db_2

Set the PATH like this:

Code:
export PATH=$PATH:$ORACLE_HOME/bin

After setting the above variables,
post the output of:

Code:
type sqlplus

# 3  
Old 04-13-2011
hey,here are the results:

Quote:

oracle@ubuntu:~$ export ORACLE_SID=orcl
oracle@ubuntu:~$ export PATH=$PATH:/opt/oracle/oracle/product/10.2.0/db_2/bin
oracle@ubuntu:~$ export ORACLE_HOME=/opt/oracle/oracle/product/10.2.0/db_2
oracle@ubuntu:~$ sqlplus

SQL*Plus: Release 10.2.0.1.0 - Production on Wed Apr 13 15:06:03 2011

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

Enter user-name: scott
Enter password:
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory


Enter user-name:

# 4  
Old 04-13-2011
So you don't get sqlplus not found any more.
Please post the output of the following command:

Code:
pgrep -lf smon

# 5  
Old 04-13-2011
I am getting nothing when i tried the below in the terminal

Quote:
oracle@ubuntu:~$ pgrep -lf smon
oracle@ubuntu:~$

# 6  
Old 04-13-2011
So your Oracle instance is not started.
Try:

Code:
sqlplus / as sysdba
startup

# 7  
Old 04-13-2011
But u see,i have to set the environment variable every time i log in to my oracle user and try to run sqlplus..Why is it like that?

Quote:

oracle@ubuntu:~$ sqlplus / as sysdba
sqlplus: command not found
oracle@ubuntu:~$ export ORACLE_SID=orcl
oracle@ubuntu:~$ export ORACLE_HOME=/opt/oracle/oracle/product/10.2.0/db_2
oracle@ubuntu:~$ export PATH=$PATH:/opt/oracle/oracle/product/10.2.0/db_2/bin
oracle@ubuntu:~$ sqlplus

SQL*Plus: Release 10.2.0.1.0 - Production on Wed Apr 13 18:29:03 2011

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

Enter user-name: scott
Enter password:
ERROR:
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
Linux Error: 2: No such file or directory

In windows,just install the software and run it..I installed Oracle in my pc on windows not less than 10 times.I didn't face any problem whatsoever,back in Ubuntu why is it like that?
There is no setting of environment variables and stuff like that in Windows
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Problem on SQLplus command ""bash: sqlplus: command not found""

Hi all, i face an error related to my server ""it's running server"" when i use sqlplus command $ sqlplus bash: sqlplus: command not found the data base is up and running i just need to access the sqlplus to import the dump file as a daily backup. i already check the directory... (4 Replies)
Discussion started by: clerck
4 Replies

2. UNIX for Dummies Questions & Answers

Unable to configure Oracle sqlplus V12 properly. Need Help. Resources could'nt be found elsewhere .

I installed Oracle sqlplus on My Ubuntu 14.04 64bit version as per the instructions on: help.ubuntu page (Unable to post the URL as i'm new user here). I'm totally new to SQL and now i'm learning queries in my college. I installed 64bit version of sqplus and run it executing the command:... (14 Replies)
Discussion started by: arjunmayilvagan
14 Replies

3. Shell Programming and Scripting

Sqlplus error - sqlplus -s <login/password@dbname> : No such file or directory

i am using bash shell Whenever i declare an array, and then using sqlplus, i am getting sqlplus error and return code 127. IFS="," declare -a Arr=($Variable1); SQLPLUS=sqlplus -s "${DBUSER}"/"${DBPASS}"@"${DBASE} echo "set head off ; " > ${SQLCMD} echo "set PAGESIZE 0 ;" >> ${SQLCMD}... (6 Replies)
Discussion started by: arghadeep adity
6 Replies

4. Shell Programming and Scripting

Can any one explain this sqlplus command?

Hi , i am new to unix i need a small clarification regarding this sqlplus -s $USER_NAME/$PASSWD@$ORA_SID<< EOF >> SQL_CONN_LOG.log In the above command what is the meaning of <<EOF>> Thanks, krishna. (2 Replies)
Discussion started by: rams_krishna
2 Replies

5. UNIX for Dummies Questions & Answers

SQLPLUS not found

hi, I am new to unix and trying to connect to oracle from unix. I typed the below command and the error is sqlplus not found $ sqlplus -ksh: sqlplus: not found can someone please tell me what is missing? I see that oracle is available on this unix box in the path /opt/oracle as... (7 Replies)
Discussion started by: Vijay81
7 Replies

6. Shell Programming and Scripting

sqlplus: not found

Hi All , At the end I have to post my problem thinking I'll be able to get a clue. I have done a shell script to access a table in our database to extract some logs . Script is working when executed manually ,but when I set it up in cronjob it is not working. I know thins should be a... (2 Replies)
Discussion started by: Davinzy
2 Replies

7. Shell Programming and Scripting

sqlplus : not found

Hi, Below is my script: #!/bin/sh sqlplus uname/pwd@instance <<EOF set wrap off set feedback off set pagesize 0 set verify off set trimspool on set linesize 5000 spool /arboru02/FX/scripts/customer_profile_def.txt select... (1 Reply)
Discussion started by: ss_ss
1 Replies

8. HP-UX

sqlplus: command not found

hi, i need bash shell script run on the crontab(Unix tru64). i have write my shell. it's using sqlplus command and connect to oracle db. execute cron job when i have error messege: "sqlplus: command not found" have you any suggestion? (4 Replies)
Discussion started by: Tlg13team
4 Replies

9. Shell Programming and Scripting

how can i check in csh if command found or not found ?

hello all im trying to use in sun Solaris the information received from the top command now i several machines that dont have install the top program so when im running the script im geting error saying after im running this code : set MemoryInfo = `top | grep Memory` if (... (2 Replies)
Discussion started by: umen
2 Replies

10. Shell Programming and Scripting

Use sqlplus command

Can someone tell me how to execute sqlplus command. I`m Executing: sqlplus user/pasw @/report/output/new/PlatformOut_Cdrs.sql the error is: SQL*Plus: Release 9.2.0.5.0 - Production on Wed Aug 9 15:37:44 2006 Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. ERROR:... (3 Replies)
Discussion started by: Nel
3 Replies
Login or Register to Ask a Question