- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Running sqlplus from a unix shell script, how do I...
Operating System - HP-UX
1747988
Members
4749
Online
108756
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2002 02:16 PM
тАО04-29-2002 02:16 PM
Good afternoon all,
Currently we have a number of unix shell scripts that run sqlplus (see attached). In each of these scripts (see attached ${BASEDIR}/etc/rms_env) we source in and environment file which contains all the Oracle passwords. Well this is not good because the developers can break out of the script and low and behold the passwords are a part of their environment. Does anyone have a way to get around this, having the passwords for Oracle in the developers enviornment after the script is run? Should I create a subshell, or ? to remove the environment variables that contain the oracle passwords? Is there a better way to handle this?
Thankyou for your help.
Currently we have a number of unix shell scripts that run sqlplus (see attached). In each of these scripts (see attached ${BASEDIR}/etc/rms_env) we source in and environment file which contains all the Oracle passwords. Well this is not good because the developers can break out of the script and low and behold the passwords are a part of their environment. Does anyone have a way to get around this, having the passwords for Oracle in the developers enviornment after the script is run? Should I create a subshell, or ? to remove the environment variables that contain the oracle passwords? Is there a better way to handle this?
Thankyou for your help.
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-29-2002 02:34 PM
тАО04-29-2002 02:34 PM
Solution
perl is your answer:
http://www.linuxjournal.com/article.php?sid=3958
http://www.cri.univ-rennes1.fr/documentations/DBDOracle.html
live free or die
harry
http://www.linuxjournal.com/article.php?sid=3958
http://www.cri.univ-rennes1.fr/documentations/DBDOracle.html
live free or die
harry
Live Free or Die
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2002 02:21 AM
тАО05-01-2002 02:21 AM
Re: Running sqlplus from a unix shell script, how do I handle passwords?
You could pass the passwords to the script when the script is called ie as $1.
Better to regret something you have done, than something you havn't
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2002 03:19 AM
тАО05-01-2002 03:19 AM
Re: Running sqlplus from a unix shell script, how do I handle passwords?
If this is a single purpose account (batch, etc.) then you could make the account "externally authenticated" inside Oracle and you simply supply "/" for username and password to SQLPLUS.
Then you simply would control access to the UNIX account that is externally trusted and this will remove the need for passwords.
Then you simply would control access to the UNIX account that is externally trusted and this will remove the need for passwords.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP