Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VBA and Oracle Stored Procedure dbms.put_line capture task:

Posted on 2009-05-06
6
Medium Priority
?
1,272 Views
1 Endorsement
Last Modified: 2012-06-27
VBA and Oracle Stored Procedure dbms.put_line capture task:

I have stored procedures that I can call using a vba module.
I can append the parameters and it all works quite nicely.

The stored procedures are used in other places as well,so I don't want to change
if I don't absolutely have to.

My Question:

The Oracle proc  has informational output displays dbms.put_line "stuff"  
that I would like to capture in my vba function.

I know how to execute the stored_procedure and retrieve the cursor if I want too.

How do I capture the oracle output at the end?

(btw:  This particular procedure does not return a cursor or result set.)

Since I can test the err.description and get the Oracle Error Message, I'm
guessing, that I can get the dbms.put_line output too?

Can I capture it without changeing the Oracle side of things?

If so, can some provide a sample please?

thank you, bangel
1
Comment
Question by:bangel
  • 2
6 Comments
 
LVL 48

Assisted Solution

by:schwertner
schwertner earned 500 total points
ID: 24322772
Your question is not posted in Oracle Zone!
Sorry!
0
 
LVL 13

Assisted Solution

by:anand_2000v
anand_2000v earned 1000 total points
ID: 24333934
"dbms_output.put_line" can be retrieved by using dbms_output.get_line
An excellent example in Java is given by Tom Kyte in
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:45027262935845

Convert it to your script.
0
 

Author Comment

by:bangel
ID: 24336386
thank you I read Tom's article, and get back to ya
0
 

Accepted Solution

by:
bangel earned 0 total points
ID: 24348360
I have read the article, and it looks like I can rewrite in vb.  Thank you.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

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

In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

926 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