![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| sqlplus call | JohnZ1385 | UNIX for Dummies Questions & Answers | 1 | 06-05-2008 10:48 AM |
| Sqlplus | LiquidChild | Shell Programming and Scripting | 9 | 06-01-2007 11:22 AM |
| Problem while calling Oracle 10g SQLPLUS files | ganapati | UNIX for Advanced & Expert Users | 2 | 05-01-2007 03:03 AM |
| Using a variable in sqlplus | MadHatter | Shell Programming and Scripting | 11 | 09-26-2006 04:57 AM |
| Sqlplus | antkiu | Shell Programming and Scripting | 4 | 09-14-2006 12:36 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
KSH Sqlplus problem
Hi,
trying this =============================== Temp=`sqlplus -s user/passwd <<EOF WHENEVER SQLERROR EXIT 1 set serverout on set feedback off set heading off select nam from tabel1 where x=y; EOF` echo Temp>>$logfile ================================= The select statement is wrong on purpose (the column doesn't exist) The output I am getting is: select nam from tabel1xyz.logbgt.out........etc....lots of filenames of the current directory....where x=y....ORA-XXX ERROR. Also if I write the select statement as select nam from tabel1 where x=y; The output is select nam from tabel1 where x=yxyz.logbgt.out........etc....lots of filenames of the current directory........ORA-XXX ERROR. The garbage prints after the first newline I think. This doesn't happens when the select statement is corrected. Will appreciate any hint on this behavior ..thanks.. Amit |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|