I have an application that uses a fairly extensive Oracle database. Each month the user will run a summary process that will take all the data for the prior month and create summary data which is then used for various purposes.
My problem is that the procedure to fetch and load the data has the potential to take quite a long time. It is not really possible to break it up into multiple procedure calls, which would allow me to update the user to what is happenning before I call each piece. I am basically stuck with executing the Oracle procedure and waiting for it to finish.
I was wondering if anyone knew of a way to have the main application monitor what was happenning in the Oracle procedure while it is executing. I was thinking that dbms output or dbms alerts might serve a purpose here. The problem is that the application won't do anything until the procedure is completed, so I can't simply poll for dbms from my application. Perhaps there is a way to tell Delphi to execute the procedure and then forget about waiting for a return. Or perhaps with the use of threads, a small monitoring module could be developed to inform the user what is happenning... I would appreciate any ideas or input. Thanks.
My problem is that the procedure to fetch and load the data has the potential to take quite a long time. It is not really possible to break it up into multiple procedure calls, which would allow me to update the user to what is happenning before I call each piece. I am basically stuck with executing the Oracle procedure and waiting for it to finish.
I was wondering if anyone knew of a way to have the main application monitor what was happenning in the Oracle procedure while it is executing. I was thinking that dbms output or dbms alerts might serve a purpose here. The problem is that the application won't do anything until the procedure is completed, so I can't simply poll for dbms from my application. Perhaps there is a way to tell Delphi to execute the procedure and then forget about waiting for a return. Or perhaps with the use of threads, a small monitoring module could be developed to inform the user what is happenning... I would appreciate any ideas or input. Thanks.