- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Connect to remote database from HPUX without c...
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
тАО09-21-2007 04:13 AM
тАО09-21-2007 04:13 AM
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2007 04:28 AM
тАО09-21-2007 04:28 AM
Re: Connect to remote database from HPUX without cleartext
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2007 04:47 AM
тАО09-21-2007 04:47 AM
Re: Connect to remote database from HPUX without cleartext
how about with vpn software?
could use ssh port forwarding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2007 06:52 AM
тАО09-21-2007 06:52 AM
Re: Connect to remote database from HPUX without cleartext
# export TWO_TASK="
# sqlplus /nolog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2007 06:56 AM
тАО09-21-2007 06:56 AM
Re: Connect to remote database from HPUX without cleartext
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2007 07:08 AM
тАО09-21-2007 07:08 AM
Re: Connect to remote database from HPUX without cleartext
I've heard from others (can't remember where, maybe here) that what I'm saying is correct.
So just fire up a sniffer and watch the traffic from your computer to the destination; unless anything new has happened from several revs back which makes me mistaken, or I just missed it totally back when I checked for the same issue - I don't think you're going see a password in clear text. But seriously, don't rely just on my word, check for yourself and make sure.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2007 10:18 AM
тАО09-21-2007 10:18 AM
Re: Connect to remote database from HPUX without cleartext
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2007 10:57 AM
тАО09-21-2007 10:57 AM
Re: Connect to remote database from HPUX without cleartext
Actually your question has nothing to do with a connection being remote or not, it's just that you're using sqlplus and passing the username/password on the command line. Local database, remote database, the problem is the same. To either or a local or remote database, the Unix box originating the sqlplus command can see the username/password from "ps" if you pass it on the command line.
The solution is actually quite simple. You just need to the "/nolog" switch from sqlplus and then issue the connect command from inside of sqlplus.
$ sqlplus /nolog
then from inside sqlplus...
> connect username/password
or
> connect username/password@urdbname
If you need it in a script:
sqlplus /nolog << SCRIPTEOF
SCRIPTEOF
Where
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-21-2007 11:25 AM
тАО09-21-2007 11:25 AM
SolutionMy earlier post talked about supplying the /nolog token on the SQL*Plus cmd line and thereafter connecting to the desired user by supplying the password. Infact the procedure can be scripted using the shell's "here document" utility i.e.
sqlplus /nolog <
select * from dual;
exit
EOF
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-24-2007 02:48 AM
тАО09-24-2007 02:48 AM
Re: Connect to remote database from HPUX without cleartext
That's what we ended up doing. We were hoping for other alternatives, but based on current environment we'll go that route.
Thanks everyone!