Solved

VBA and Oracle Stored Procedure dbms.put_line capture task:

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

914 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now