Solved

VBA and Oracle Stored Procedure dbms.put_line capture task:

Posted on 2009-05-06
6
1,230 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 125 total points
ID: 24322772
Your question is not posted in Oracle Zone!
Sorry!
0
 
LVL 13

Assisted Solution

by:anand_2000v
anand_2000v earned 250 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

Independent Software Vendors: 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

Azure Functions is a solution for easily running small pieces of code, or "functions," in the cloud. This article shows how to create one of these functions to write directly to Azure Table Storage.
A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
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…

756 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