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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: connecting to sqlplus within a shell script

RE: connecting to sqlplus within a shell script

From: Kempf, Reed <rkempf_at_rightnow.com>
Date: Wed, 18 Jul 2001 12:20:55 -0700
Message-ID: <F001.0034DE62.20010718123556@fatcity.com>

I have an stty erase ^H in my login.sql file which may be causing the problem... hmmmm

thanks for all of your responses

Reed

-----Original Message-----
Sent: Wednesday, July 18, 2001 1:08 PM
To: Multiple recipients of list ORACLE-L

Everytime I have seen this message it was because there was a

    . $HOME/.profile

to ensure that the environment was correct and because the script was run from a cron.
By the way, there was

     stty erase ^H
in .profile.

    . $HOME/.profile 2>/dev/null

fudged the problem.

HTH, Stephane Faroult
Oriole Corporation
Voice: +44 (0) 7050-696-269
Fax: +44 (0) 7050-696-449
Performance Tools & Free Scripts



http://www.oriole.com, designed by Oracle DBAs for Oracle DBAs

Steve Sapovits wrote:
>
> SQL*Plus is probably performing terminal specific ioctl settings;
> e.g., setting it in something other than line mode so it can update
> the screen more efficiently, etc.
>
> For scripting SQL, I'd recommend making a move to Perl/DBI. It rocks!
>
> ----
> Steve Sapovits
> Global Sports Interactive
> Work Email: sapovitss_at_globalsports.com
> Home Email: steves_at_delanet.com
> Work Phone: 610-491-7087
> Cell: 610-574-7706
> Pager: 877-239-4003
>
> > -----Original Message-----
> > From: Kempf, Reed [SMTP:rkempf_at_rightnow.com]
> > Sent: Wednesday, July 18, 2001 1:41 PM
> > To: Multiple recipients of list ORACLE-L
> > Subject: connecting to sqlplus within a shell script
> >
> > I use a lot of shell scripts (korn mainly) which use connections to
> > sqlplus
> > and always seem to get this error message when the script logs into
> > sqlplus:
> > stty: standard input: Inappropriate ioctl for device
> >
> > Here is my connection procedure within the script: sqlplus -s
> > sitemon/sitemon << END
> >
> > To my knowledge it does not appear to cause any problems with my shell
> > script or output but would really like to know why I am getting it and
if
> > there is any recommendations for fixing the problem.
> >
> > OS: Red Hat Linux 6.2
> > ORACLE: 8.1.7 standard edition
> > shell: korn
> >
> > Any help would be appreciated
> >
> > thanks
> >
> > Reed
> >
> > --

>

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Stephane Faroult
  INET: sfaroult_at_oriole.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Kempf, Reed
  INET: rkempf_at_rightnow.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Wed Jul 18 2001 - 14:20:55 CDT

Original text of this message

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