Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

hide db password in shell scripts.

lm422407shFeb 13 2014 — edited Feb 21 2014

I am connecting the database DB1 from server A  to B  thro tns in shell script  as we have some restriction on server A which our database server.

eg:

Sqlplus batchuser1/********@db1.

As of now we have hardcoded the password in .profile of the OS user and Value is populated in shell script using some variable in script.

I  want to avoid hardcoding since I can see the password when i take the log of this script execution. Password should not visible and at the same time i need to connect from server B thro TNS .

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 21 2014
Added on Feb 13 2014
14 comments
16,764 views