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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to run multiple user connections

Status
Not open for further replies.

Ron06

Technical User
Sep 27, 2007
11
US
I have different schema like user,hr,payroll in sh script. Right now I'm using connect user/user are hardcord in script. I'm looking how to use variable for each user in sh script instead of specifying indidual connection for each user when running scripts releated to each schema user.

Thanks in advance
 
There is nothing to stop you putting the username and password into shell variables. You can then connect using something like (in ksh):

export username=SCOTT
export password=TIGER

sqlplus $username/$password@database

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top