The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > HP-UX
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
sqlplus call JohnZ1385 UNIX for Dummies Questions & Answers 1 4 Weeks Ago 07:48 AM
Call sqlplus in the shell script beaniebear Shell Programming and Scripting 3 05-13-2008 06:30 AM
how to differentiate system call from library call muru UNIX for Advanced & Expert Users 2 07-19-2007 08:20 PM
Sqlplus LiquidChild Shell Programming and Scripting 9 06-01-2007 08:22 AM
Sqlplus antkiu Shell Programming and Scripting 4 09-13-2006 09:36 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-02-2008
theodore's Avatar
Registered User
 

Join Date: Apr 2008
Posts: 5
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Red face how can i call sqlplus?

i am new working with hp-ux but i had to because of my job.
so i want to execute some sql scripts but
when i call sqlplus to run them it responds
/sbin/sh: sqlplus not found.
i have oracle 8.1.7 installed.
what should i do
sorry if this sounds too easy but i am now learning.
The same appears for gunzip. Is it missing or i don't have the right shell???
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-02-2008
vbe vbe is offline
Registered User
 

Join Date: Sep 2005
Posts: 292
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
start by :
which sqlplus

Does it find it?
If not you would have to set your path to include the directory where it lies, most certainly /opt/oracle/product/8.1.7/bin but as this depend on how it is installed you will have to check...
Reply With Quote
  #3 (permalink)  
Old 04-02-2008
theodore's Avatar
Registered User
 

Join Date: Apr 2008
Posts: 5
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
sqlplus

at which sqlplus it says
no sqlplus in /usr/sbin /opt/java1.4/bin /usr/dt/bin /usr/bin / /usr/local/bin /
var/opt /usr/css/bin /usr/ucb /etc /bin /opt/bin .

so i suppose i haven't set my path to include the directory where it lies.
the path installed is /usr/oracle/u01/8.1.7/bin
what do i have to write to set my path to include this directory?
thank you vbe
Reply With Quote
  #4 (permalink)  
Old 04-03-2008
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,626
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Quote:
Originally Posted by theodore View Post
at which sqlplus it says
no sqlplus in /usr/sbin /opt/java1.4/bin /usr/dt/bin /usr/bin / /usr/local/bin /
var/opt /usr/css/bin /usr/ucb /etc /bin /opt/bin .

so i suppose i haven't set my path to include the directory where it lies.
the path installed is /usr/oracle/u01/8.1.7/bin
what do i have to write to set my path to include this directory?
thank you vbe
You need to set ORACLE_HOME, ORACLE_SID explicitly. Do this
In sh/ksh
Code:
set ORACLE_HOME=/usr/oracle/u01/8.1.7
set PATH=${ORACLE_HOME}/bin;${PATH}
Reply With Quote
  #5 (permalink)  
Old 04-03-2008
theodore's Avatar
Registered User
 

Join Date: Apr 2008
Posts: 5
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
sqlplus

Quote:
Originally Posted by vino View Post
You need to set ORACLE_HOME, ORACLE_SID explicitly. Do this
In sh/ksh
Code:
set ORACLE_HOME=/usr/oracle/u01/8.1.7
set PATH=${ORACLE_HOME}/bin;${PATH}
hi vino, thanks for your answer.
after the second command set PATH=....
i get ksh: /usr/sbin:/opt/java1.4/bin:/usr/dt/bin:/usr/bin:/:/usr/local/bin:/var/opt:/
usr/css/bin:/usr/ucb:/etc:/bin:/opt/bin:: not found
am i doing something wrong???
Reply With Quote
Google UNIX.COM
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 06:26 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102