Solved

Connect to Oracle database

Posted on 2015-02-23
2
407 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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
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.  …
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now