PDA

View Full Version : Scheduled batch process fail to connect to Oracle


Vladimir Uzlaner
12-21-2004, 12:22 PM
Hello!

We have a batch process developed in MKS korn shell, where we connect
to Oracle using:

....
SQL_CODE=`plus33 -s /@$ENVIRON<< SQLBLOCK
....
/
EXIT
SQLBLOCK`
....

In this case Oracle take the integral user login. And it is working
properly if we run script from the shell environment, but it fail to
connect to Oracle if we trying to run scheduled batch process.

Suppose user login is user/password. Then MKS connect to Oracle using
OPS$USER/password login. I think problem is in '$' sign, because for
Korn shell it is special character. And if we put:

....
SQL_CODE=`plus33 -s 'OPS$USER/password'@$ENVIRON<< SQLBLOCK
....
/
EXIT
SQLBLOCK`
....

It is working, but without quotes:
SQL_CODE=`plus33 -s OPS$USER/password@$ENVIRON it is fail again.

Please, advise anybody how to resolve this problem.

TIA.

Vladimir Uzlaner


MyLounge.com Site Map
Forum: Cars, Cell Phone, Database, Games, Home Improvement, IT, Music, School, Sports, Web Design, Web Server, Weight Loss

The MyLounge.com forum is intended for informational use only and should not be relied upon and is not a substitute for any advice. The information contained on MyLounge.com are opinions and suggestions of members and is not a representation of the opinions of MyLounge.com. MyLounge.com does not warrant or vouch for the accuracy, completeness or usefulness of any postings or the qualifications of any person responding. Please consult a expert or seek the services of an attorney in your area for more accuracy on your specific situation. Please note that our forums also serve as mirrors to Usenet newsgroups. Many posts you see on our forums are made by newsgroup users who may not be members of MyLounge.com Term of Service