Solved

Connect to Oracle database

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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 video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.

911 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

24 Experts available now in Live!

Get 1:1 Help Now