![]() |
|
|
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 | LiquidChild | Shell Programming and Scripting | 9 | 06-01-2007 12:22 PM |
| Sqlplus | antkiu | Shell Programming and Scripting | 4 | 09-14-2006 01:36 AM |
| SQLPLUS in script | renichols | Shell Programming and Scripting | 4 | 03-06-2006 12:43 PM |
| error connecting to sqlplus | papachi | UNIX for Dummies Questions & Answers | 2 | 05-23-2005 12:05 PM |
| sqlplus -s error capture | w33man | Shell Programming and Scripting | 1 | 03-05-2004 04:26 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
SQLPLUS error
I am running a script that invokes SQLPLUS. During the execution I get the following: Code:
SQL*Plus: Release 9.2.0.8.0 - Production on Mon Jun 11 16:12:50 2007 Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. Connected to: Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production With the Partitioning, OLAP and Oracle Data Mining options JServer Release 9.2.0.8.0 - Production SQL> 2 3 4 5 6 7 8 Does anyone know where the 2..8 is coming from? Code:
if [ $retcode -eq "0" ]; then
print
print "*******************************************************"
print "2) Updating records in SKU table"
print "*******************************************************"
sqlplus $db_usr_stsc<<EOF
UPDATE stsc.sku s
SET (s.p_abc, s.p_manualparameters, s.p_commenttext, s.p_workinglistname) =
(SELECT x.p_abc, x.p_manualparameters, x.p_commenttext, x.p_workinglistname
FROM pac.SKUUPDATE x
WHERE s.loc = x.loc AND s.item = x.item)
WHERE EXISTS (SELECT 1
FROM pac.SKUUPDATE x
WHERE s.loc = x.loc AND s.item = x.item);
COMMIT;
exit
EOF
echo "Update Complete"
fi
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|