Solved

supress PL/SQL procedure completed ... Return value from sql plus

Posted on 2004-08-05
4
320 Views
Last Modified: 2013-12-26
Hi,
 I want to return a value from a oracle stored procedure.

 VALUE=` ${ORACLE_HOME}/bin/sqlplus -s   <<-EOF
                ${ORA_USER}/${ORA_PASSWORD}
                @${SQL_SCRIPT}
        EOF`

        echo $VALUE


I am doing the above, however $VALUE always contains "PL/SQL procedure completed successfully". Is there anyway to supress that last bit? and just return the actual value.
0
Comment
Question by:mash79
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 45

Accepted Solution

by:
sunnycoder earned 100 total points
ID: 11732900
Hi mash79,

var=`echo $VALUE | sed 's/PL\/SQL procedure completed successfully//'`
echo $var

Sunnycoder
0
 

Author Comment

by:mash79
ID: 11732938
Thanks.
That way worked.

Is there any way that can actually supress it from sqlplus?
0
 
LVL 45

Expert Comment

by:sunnycoder
ID: 11732941
sorry, dont know about that
0
 

Author Comment

by:mash79
ID: 11732974
FYI:

set FEEDBACK OFF;

will do it

Thanks all the same.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
repeatEnd java challenge 42 85
Separate files macro - Errors on larger data set 18 73
List out all word 7 336
WinWaitActive parameters 12 31
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question