- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to get sql prompt in HP UX
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2009 02:01 AM
тАО06-22-2009 02:01 AM
i want to access my database(oracle 9.2)through sql prompt,i tried this one
Login by oracle user(ie orasid)
change directory to ....
/oracle/
$./sqlplus
it gives error message.
error 6 : initilizing SQL*PLUS
sp2-750 you may need to set ORACLE_HOME To your oracle software directory.
Now ,question is .. how to set ORACLE_HOME in oracle software directory to obtain sql prompt
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2009 02:03 AM
тАО06-22-2009 02:03 AM
Re: How to get sql prompt in HP UX
Make the below suitable entries in oracle user .profile file.
export ORACLE_BASE=/oracle/app/oracle
export ORACLE_DOC=$ORACLE_BASE/doc
export ORACLE_HOME=$ORACLE_BASE/product/9.2.0
export ORACLE_SID=CMCT1
export PATH=$ORACLE_HOME/bin:/usr/bin:/etc:/usr/bin/X11:/usr/local/bin:$PATH
Regards,
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2009 02:35 AM
тАО06-22-2009 02:35 AM
Re: How to get sql prompt in HP UX
You need to set your .profile for ORACLE,
if you have any other box is having ORACLE just copy the .profile into this box.
I did the same thing onec
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2009 10:11 PM
тАО06-22-2009 10:11 PM
Re: How to get sql prompt in HP UX
Example assumes /home/root exists.
set +u
JAVA_HOME=/opt/java1.4;export JAVA_HOME
PATH=/usr/sbin:$PATH:/sbin:/home/root
PATH=$JAVA_HOME/bin:$PATH:/tmp/sapinst_instdir/ECC50/SYSTEM/ABAP/ORA/UC/DB
export PATH
ORACLE_HOME=/oracle/GMD/920_64;export ORACLE_HOME
ORACLE_SID=GMD;export ORACLE_SID
LD_LIBRARY_PATH=$ORACLE_HOME/lib64:/usr/lib:$ORACLE_HOME/rdbms/lib:$ORACLE_HOME/network/lib
export LD_LIBRARY_PATH
SHLIB_PATH=$ORACLE_HOME/lib:/usr/sap/GMD/SYS/exe/run:/oracle/GMD/920_64/lib:$ORACLE_HOME/network/lib:$ORACLE_HOME/precomp/lib:/sapmnt/GMD/exe
export SHLIB_PATH
i think almost all the things are define in this .profile file, but even now i cant access my sql prompt plz help me ,i am very much new to HPUX
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2009 11:26 PM
тАО06-22-2009 11:26 PM
SolutionOnce you loged in execute the below steps.
$
$export ORACLE_HOME=/oracle/GMD/920_64
$export PATH=$PATH:$ORACLE_HOME/bin
$export ORACLE_SID=GMD
$sqlplus
If the things are working then please add the above export lines in your profile.
Regards,
Aneesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2009 01:07 AM
тАО06-23-2009 01:07 AM
Re: How to get sql prompt in HP UX
. oraenv
allow you to setup teh correct Oracle environment. It should be in your patch definition, otherwise type the complete command path:
. /xxx/xxx/oraenv
HTH,
Art
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-05-2009 09:38 PM
тАО07-05-2009 09:38 PM
Re: How to get sql prompt in HP UX
Thanks...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-21-2009 11:40 PM
тАО07-21-2009 11:40 PM
Re: How to get sql prompt in HP UX
can u plz provide me the solution to this problem.
Because i am getting the same error as well.
thanks in advance
regards
Sagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2009 12:07 AM
тАО07-22-2009 12:07 AM
Re: How to get sql prompt in HP UX
Solution already provided by Aneesh,ie for sql prompt u have to set parameter in .profile file,this will permanent effect. but for testing if u want to make changes then just try on $prompt. ie considering the standard installtion...the parameter will be..
$export ORACLE_HOME=/oracle/SID/920_64
$export PATH=$PATH:$ORACLE_HOME/bin
$export ORACLE_SID=SID
$sqlplus "/ as sysdba" (for oracle 9i)
or
if orable 10g is uses... then
sqlplus /nolog
conn / as sydba
this will solve u r problem hopefully, unless if u have any gmail id then plz provide
Njoy..!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-22-2009 01:10 AM
тАО07-22-2009 01:10 AM
Re: How to get sql prompt in HP UX
thanks for your reply.
I have thses parameters in .profile of oracle user
# This is the default standard profile provided to a user.
# They are expected to edit it to meet their own needs.
SHLIB_PATH=/opt/oracle/product/9.2.0/lib
PATH=/usr/bin::/opt/sfw/bin:/opt/sfw/gcc-3/bin:/opt/OV/bin:/opt/OV/bin/OpC:/usr/
sfw/bin:/u01/oracle/product/9.2.0/bin
NLS_LANG=american_america.WE8ISO8859P1
ORACLE_BASE=/u01/oracle
EDITOR=vi
LOGNAME=oracle
MAIL=/usr/mail/oracle
HOSTNAME=P360XCFYAP
ORACLE_SID=openview
SHELL=/bin/ksh
ORACLE_TERM=hp
HOME=/export/home/oracle
TERM=xterm
ORACLE_HOME=/u01/oracle/product/9.2.0
PWD=/export/home/oracle
TZ=Asia/Calcutta
but still when i am trying to use sqlplus it throws the same error.
$ sqlplus
Error 6 initializing SQL*Plus
Message file sp1
SP2-0750: You may need to set ORACLE_HOME to your Oracle software directory
do i need to modify the .profile file of solris root user. If yes then how to do it.I m stuck here since morning. your help will be very much appreciate.
my gmail id is sagarpat24@gmail.com and my office id is sagar.a.patil@relianceada.com