Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Scheduled batch process fail to connect to Oracle

Re: Scheduled batch process fail to connect to Oracle

From: Frank van Bortel <fvanbortel_at_netscape.net>
Date: Wed, 22 Dec 2004 15:57:05 +0100
Message-ID: <cqc1v8$3of$3@news3.zwoll1.ov.home.nl>


Vladimir Uzlaner wrote:
> 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

Generally, a problem with missing environment variables. Too long ago I worked with MKS (v1, I believe, over 15 years back?) to give you a specific answer

-- 
Regards,
Frank van Bortel
Received on Wed Dec 22 2004 - 08:57:05 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US