Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Oracle SQLPlus Command Line - Is There a Way to Encrypt the Password?

Status
Not open for further replies.

ihda

MIS
Apr 6, 2001
46
US
In Oracle 9i is there way to encrypt the command line password?

Thank you.
 
If you mean to be able to invoke sqlplus without having to type the password in the command line, then there are several ways:

1) OS authentication:
Specify EXTERNALLY option to create an external user. Such a user must be authenticated by an external service (such as an operating system or a third-party service). In this case, Oracle to relies on the login authentication of the operating system to ensure that a specific operating system user has access to a specific database user.
And invoke oracle utilities like this:
Code:
$ sqlplus /
$ sqlldr / control=...
$ exp / file=...
$ imp / file=...

2) In unix you can code something like this:

Code:
sqlplus <<EOF
MyUserid
myPasswd
@MyScript
EOF

3) Simply type the user id and sqlplus will prompt for password.



----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top