Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Anyway way to print while executing procedure ?
HI,
Jeremy a écrit dans le message <36D29F8E.6B59200B_at_nus.edu.sg>...
>Hi, I really hope someone can help
>
>I have created a procedure containing a cursor which updates a table
>containing about 7000 records. Due to the large number, upon executing
>the procedure in the script, I could not trace if the process is running
>or stopped.
>
>So is there a way where I can print a counter for example in SQL*PLUS so
>that I noe the procedure is executing smoothly. Thank you.
To print smoething during execution :
1- the server output must be on :
SET SERVEROUTPUT ON
2- You can write inside your cursor loop:
DBMS_OUTPUT.PUT_LINE('My coursor is here' || TO_CHAR(Counter));
This will print a line ... Received on Sun Mar 07 1999 - 08:37:56 CST
![]() |
![]() |