473,396 Members | 1,773 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

dbms_output.putlin show up AFTER completion???

Hello all,

I have made a procedure which is running a very, very long time (about
20 hours)

Within the procedure I put some output-lines, to show the user that
the procedure is still running. Lines like this
DBMS_OUTPUT.PUT_LINE('percentage ready : '!!mypercentage);

But when I start the procedure I DO NOT see these lines. The lines do
appear AFTER the procedure is finished. So after 20 hours I get a lot
of output-lines at once.

How can I show the user the lines while running the procedure???

(Using oracle 8.1.7, I am starting the procedure from sql+ (exec
myserver.myprocedure))
Thanks a lot and kind regards,
Andre van Rossem
The Netherlands
Jul 19 '05 #1
1 3606
Congratulations,
you just discovered (the hard way, unfortunately!) probably the
biggest drawback of PL/SQL! What you have to do is rely on something
else than DBMS_OUTPUT.PUT_LINE to find out where you are in your
subroutine. I personally usually make use of
DBMS_APPLICATION_INFO.SET_MODULE spread through the code to see where
my PL/SQL block is at. If using this, you need to look in V$SESSION
(columns ACTION and MODULE) to see where the program is. One more
option is to use DBMS_APPLICATION_INFO.SET_SESSION_LONGOPS (you then
spy on the dynamic view V$SESSION_LONGOPS to see where you're at). 20
hours seems like a very long time for a procedure. What about posting
your code so that we can give some ideas for performance improvement?
Or you can email me if you want.

Daniel (remove JUNK from my email address to reach me).
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Agoston Bejo | last post by:
Is there any way to reach the content of the DBMS_OUTPUT buffer after calling an Oracle stored procedure from ASP/ADO?
2
by: Agoston Bejo | last post by:
Is there any way to reach the content of the DBMS_OUTPUT buffer after calling an Oracle stored procedure from ASP/ADO?
1
by: srinivas | last post by:
Hi, First i need to say my heartful thanks to google groups.So many things are clarified by some of the experts. Now I have a requirement.Basically our site have 5 pages.When we navigate to...
5
by: nsd | last post by:
Is there any equivalent of oracle's dbms_output.put_line in db2? Pl. let me know if any.. regards, nsd
5
by: Robert Heuvel | last post by:
Hi, this is what I did: public struct SWaitCursor:IDisposable { public SWaitCursor (int i) { Cursor.Current = Cursors.WaitCursor; } void System.IDisposable.Dispose() { Cursor.Current =...
22
by: Zytan | last post by:
I have public methods in a form. The main form calls them, to update that form's display. This form is like a real-time view of data that is changing. But, the form may not exist (it is...
3
by: Chris | last post by:
I have a python script that is driving Excel and using the win32com module. However, upon program completion there's still an Excel.exe process running in the background that I must terminate...
1
by: Andre | last post by:
Hello all, I have made a procedure which is running a very, very long time (about 20 hours) Within the procedure I put some output-lines, to show the user that the procedure is still running....
1
DebadattaMishra
by: DebadattaMishra | last post by:
Introduction In case of rich applications, you must have observed that a text field behaves like a dynamic combo box. When the user enters some characters in the text field, a popup will come up...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.