HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Need to learn how to pass user/pass as arguments.
Operating System - HP-UX
1828349
Members
3070
Online
109976
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
Forums
Discussions
Discussions
Discussions
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
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
10-08-2009 08:17 AM
10-08-2009 08:17 AM
Re: Need to learn how to pass user/pass as arguments.
Snippet from part 3:
echo "Loading..... " $file
sqlplus -s $ORACLE_USER_ID/$ORACLE_PASSWORD < execute loadnpsg('$file');
So you are saying I should add the Oracle user id and oracle password in this section instead of it looking for them? So it would look like this:
echo "Loading..... " $file
sqlplus -s username/password < execute loadnpsg('$file');
Also for the sudo part you are saying to use #sudo programtoexecute.sh ??
Thanks
echo "Loading..... " $file
sqlplus -s $ORACLE_USER_ID/$ORACLE_PASSWORD <
So you are saying I should add the Oracle user id and oracle password in this section instead of it looking for them? So it would look like this:
echo "Loading..... " $file
sqlplus -s username/password <
Also for the sudo part you are saying to use #sudo programtoexecute.sh ??
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2009 11:39 PM
10-11-2009 11:39 PM
Re: Need to learn how to pass user/pass as arguments.
sorry for the late answer, the notification didn't work for some reason.
>"Snippet from part 3:
echo "Loading..... " $file
sqlplus -s $ORACLE_USER_ID/$ORACLE_PASSWORD < execute loadnpsg('$file');"
ok, this an interactive script.
>" The reason for the potential switch is >that I am trying to find a possible way to >cron this process nightly."
If you want to have run it from cron you should burn in the username/password and leave interactivity.
"echo "Loading..... " $file
sqlplus -s username/password < execute loadnpsg('$file');"
It is right. Not the sudo way, but you should skip interactivity. In our environment sqlplus don't prompt for the password, but I don't really know it how it was done.
>"Snippet from part 3:
echo "Loading..... " $file
sqlplus -s $ORACLE_USER_ID/$ORACLE_PASSWORD <
ok, this an interactive script.
>" The reason for the potential switch is >that I am trying to find a possible way to >cron this process nightly."
If you want to have run it from cron you should burn in the username/password and leave interactivity.
"echo "Loading..... " $file
sqlplus -s username/password <
It is right. Not the sudo way, but you should skip interactivity. In our environment sqlplus don't prompt for the password, but I don't really know it how it was done.
****
Unix operates with beer.
Unix operates with beer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2009 08:35 AM
10-13-2009 08:35 AM
Re: Need to learn how to pass user/pass as arguments.
Got it!
Thanks for all the help.
Thanks for all the help.
- « Previous
-
- 1
- 2
- Next »
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.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP