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
Solved

VBA and Oracle Stored Procedure dbms.put_line capture task:

Posted on 2009-05-06
6
1,218 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Suggested Solutions

Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

860 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