![]() |
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 |
| difference in calling shell scripts | arpit_narula | SUN Solaris | 6 | 09-07-2008 03:46 PM |
| Issue calling scripts through CRON. | vskr72 | Shell Programming and Scripting | 5 | 01-07-2008 08:12 PM |
| Calling SQL LDR and SQL plus scripts in a shell script | rajagavini | Shell Programming and Scripting | 5 | 11-05-2007 06:12 PM |
| Calling functions in scripts directly | LiquidChild | Shell Programming and Scripting | 12 | 04-27-2007 06:28 AM |
| Calling SQL scripts through Shell Script | madhunk | Shell Programming and Scripting | 18 | 06-14-2006 12:35 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||||
|
It's highly likely that you didn't search the forums for 'sqlplus' .
Whilst this may not answer all your questions, it might put you on the right path. How to check sqlplus command is successfull or not in HP UX? Trying to perform SQL in the way you've shown is really hard to manage over time. In future, make use of the search feature in these forums. You questions is more than likely to have been asked before in the past. Cheers, Cameron ![]() |
|
|||||
|
thankx Cameron.
I have gone thru the all the search...but not reffered anyone......as any of them not met my requirements since i post it with confusing statements...sorry for that. actually i should ask, even though whenever sqlerror exit SQL.SQLCODE is there why i am not able to catch that SQL.SQLCODE after executing the function ???? why rc is showing 0 as we all know i am executing wrong ddl(s) , why not SQL.SQLCODE as rc ????? i will be thankful if you can explain me.... NOTE : i have not used any spool file, o/p logging file..rather than i checked the ERROR/output by passing the o/p to v_cnt as follows, HTML Code:
if [ `echo "$v_cnt" | grep "ORA-" | wc -l` -ne 0 ]
then
echo "`basename $0` wrong execution possible reason is :-`echo "$v_cnt" | grep "ORA-" | awk -F":" '{print $2}'`"
exit 1
fi
Last edited by manas_ranjan; 11-22-2007 at 05:08 AM.. |