Solved

Connect to Oracle database

Posted on 2015-02-23
2
412 Views
Last Modified: 2015-03-04
Hi,

I am using sqlplus user/pass to connect to DB.
Is there a way to hide the username/password and connect to db and perform actions like wallet ?

Please share few other options on it.

Thanks
0
Comment
Question by:magento
2 Comments
 
LVL 13

Assisted Solution

by:Mark Bullock
Mark Bullock earned 250 total points
ID: 40627379
You can use Oracle Wallet Manager on your client.
Launch it with the command owm.

Here's a tutorial which walks you through the entire process.
http://askdba.org/weblog/2009/09/using-oracle-wallet-to-execute-shell-scriptcron-without-hard-coded-oracle-database-password/

Details on how to configure it are here:
http://docs.oracle.com/cd/B28359_01/network.111/b28530/asowalet.htm#i1009041
0
 
LVL 34

Accepted Solution

by:
johnsone earned 250 total points
ID: 40627908
What are you trying to hide them from?  Are you just looking to get them off the command line so they cannot be seen with a ps command (for instance)?

Hiding them on the command line is pretty simple.  Just don't enter them.  SQL*Plus will prompt for then, or you can use  /NOLOG as a parameter and it will not prompt.  If you use /NOLOG, just use the connect command to connect.

You can also use OS authentication.  Where no username and password is supplied.  It is passed through from the host OS.  Again, good for hiding the command line, but if a client machine is compromised, the database can be accessed.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
Via a live example, show how to take different types of Oracle backups using RMAN.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question