- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Connecting oracle database from hpux machine
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
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
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
тАО08-16-2005 09:23 AM
тАО08-16-2005 09:23 AM
I want to connet to oracle database server running on hpux.
I have tnsnames.ora file and my account has already been created on the database servers.
I need to connect from one of the hpux box (i believe this box should be running oracle client sqlplus)
Can someone let me know the steps to configure and setup so that i get run sql commands.
Thanks,
Shiv
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2005 09:35 AM
тАО08-16-2005 09:35 AM
Re: Connecting oracle database from hpux machine
If successful then you will get the SQL> prompt.
Very important about environment settings for oracle. ORACLE_HOME, ORACLE_BASE, ORACLE_SID, LD_LIB_PATH, etc. Just to name a few...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2005 09:36 AM
тАО08-16-2005 09:36 AM
SolutionIf you get a positive result - you can just run "sqlplus username/password@[instance_name" to connect to the database.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2005 09:47 AM
тАО08-16-2005 09:47 AM
Re: Connecting oracle database from hpux machine
"sqlplus username/password@[instance_name]"
where [instance_name] would be the name given in the tnsnames.ora file.
Ex:
sqlplus user/password@TESTDB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2005 11:56 AM
тАО08-16-2005 11:56 AM
Re: Connecting oracle database from hpux machine
Can you do a 'tnsping
Then you can connect with the command 'sqlplus' or 'sqlplus /nolog' and login with the mentioned accounts.
Check first your environment variables, but the tnsping will fail as well if they are missing in the first place.
best regards,
Kurt
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2005 01:53 PM
тАО08-16-2005 01:53 PM
Re: Connecting oracle database from hpux machine
Create a user called oradb in the database sever. add the following parameters in the /home/oradb/.profile.
umask 022
export umask
#######below parameters are for9i ########
ORACLE_BASE=/ORACLEdb/app/oracle
ORACLE_HOME=/ORACLEdb/app/oracle/product/9.2.0
ORACLE_DOC=$ORACLE_HOME/doc
ORACLE_SID=ORACLE
CLASSPATH=$ORACLE_HOME/jlib/product_jar_file
LD_LIBRARY_PATH=$ORACLE_HOME/lib
SHLIB_PATH=$ORACLE_HOME/lib32
ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data
PATH=$ORACLE_HOME/bin:/usr/ccs/bin:/usr/bin:/etc:/usr/bin/X11:/usr/local/bin:/opt/perl/bin:/opt/unzip/bin:/usr/sbin
export ORACLE_BASE ORACLE_DOC ORACLE_SID CLASSPATH LD_LIBRARY_PATH SHLIB_PATH ORA_NLS33 PATH ORACLE_HOME
####### above parameters are for9i ########
ALERT=/ORACLEdb/app/oracle/admin/bdump
export ALERT
Here after if you login with oradb user all the oracle parameters will be set.
The you can connect to oracle as follows.
dbserver:oradb-/home/oradb>
dbserver:oradb-/home/oradb>sqlplus /nolog
SQL*Plus: Release 8.1.7.0.0 - Production on Wed Aug 17 07:19:55 2005
(c) Copyright 2000 Oracle Corporation. All rights reserved.
SQL> connect / as sysdba
Connected.
SQL>
here in the sql prompt you can type your queries and get information.
Hope this helps.
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-16-2005 01:56 PM
тАО08-16-2005 01:56 PM
Re: Connecting oracle database from hpux machine
Once you are able to do the above things in the database server, remotely you can take a telnet session of this database server and do your work any time.
Incase you need any more info pls reply.
Regards,
Syam
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-17-2005 03:45 AM
тАО08-17-2005 03:45 AM
Re: Connecting oracle database from hpux machine
if you are root or know root pwd on server;
#su - oracle
(so you are in oracle home dir)
so run the command;
$sqlplus /nolog
you have to see prompt SQL>
then run;
SQL>connect / as sysdba
Finally you have to see like;
Connected.
if you are not root flow the other replies
as above
Good Luck,