Title: RE: never mind -- Re: ??? Again: run unix script on NT

Look in ORACLE_HOME\bin for the correct name of the SQL*Plus executable. Be sure to use the line command version (the one WITHOUT a W at the end of the file name.) Depending on the version of Oracle, it could be SQLPLUS, or PLUS80, or something else. Also does uwin know to use your path to find files, or do you need to "cd" to the right directory?

> -----Original Message-----
> From: Leslie Lu [mailto:[EMAIL PROTECTED]]
>
> --- Leslie Lu <[EMAIL PROTECTED]> wrote:
> > Thank you for all those who answered my question.
> >
> > I just installed uwin.  I'm running a script
> > upgrade_db.ksh.  In the script, there is someting
> > like:
> >
> > function check_login {
> >  
> > ####################################################
> >    # Login to the database using the variables
> > provided
> >  
> > ####################################################
> >    BAD_LOGIN=`sqlplus -s ${SQLUSER}/${PW}@${DB}
> > <<-EOF
> > | grep ERROR
> >         exit
> >         EOF
> > `
> > .................
> > }
> >
> > I run this in uwin window, and got this:
> > upgrade_db.ksh[285]: check_login: line 7: sqlplus:
> > not
> > found 
> >
> > I need to run sqlplus inside the script and uwin
> > doesn't recognize this.  (I do have Oracle server
> > installed on NT).  Any idea???


Reply via email to