Print Thread
Progress of stored procedure
#239 01/11/00 04:38 PM
Joined: Jan 2000
Posts: 1
Prague
S
safir Offline OP
Member
OP Offline
Member
S
Joined: Jan 2000
Posts: 1
Prague
Hi,
please, is there any convenient way to obtain information about progress of stored procedure (typically loop-end loop) for display progress bar?

Thank you.

Re: Progress of stored procedure
#240 01/13/00 09:22 PM
Joined: Aug 1999
Posts: 22,219
Member
Offline
Member
Joined: Aug 1999
Posts: 22,219
To communicate progress information back to the client you can use the dbms_pipe package. Just send a message to a uniquely identified pipe (use dbms_session.unique_session_name as its name) and use the TOracleEvent component in your client application to display this progress information.


------------------
Marco Kalter
Allround Automations


Marco Kalter
Allround Automations
Re: Progress of stored procedure
Marco Kalter #57298 11/27/17 08:19 PM
Joined: Sep 2014
Posts: 2
G
Member
Offline
Member
G
Joined: Sep 2014
Posts: 2
Hi, Marco
I use a code in duplicated session (oraDBMSSession) and use this Name for OracleEvent.
But when I use this code, I can't receive a pipe-messages immediately. Only when stored procedure is finished.

Please help solve this problem

My Code:
procedure TData.OracleEventEvent(Sender: TOracleEvent; const ObjectName: string; const [Ref] Info: Variant);
var i:integer;
begin
Main.Memo.Lines.Add('Событие из ' + Sender.Name + ' на ' + ObjectName);
if VarIsArray(Info) then
for i := 0 to VarArrayHighBound(Info, 1) do
Main.Memo.Lines.Add(Info[i]);
end;

Re: Progress of stored procedure
Gene #57306 11/28/17 09:47 AM
Joined: Aug 1999
Posts: 22,219
Member
Offline
Member
Joined: Aug 1999
Posts: 22,219
That's difficult to analyze from here. Perhaps you can check out the eventdemo project and compare it to your own project?


Marco Kalter
Allround Automations

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.032s Queries: 14 (0.009s) Memory: 2.5077 MB (Peak: 3.0420 MB) Data Comp: Off Server Time: 2024-05-15 16:09:08 UTC
Valid HTML 5 and Valid CSS