Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to get No.of records updated during DML Execution?

Jeevanantham VNov 6 2017 — edited Nov 7 2017

I had task to update 1 lakhs records in normal SQL statement.

For example: UPDATE SAL_DETAILS SET SAL = salary *10 WHERE department in ('IT'); --- It contains more than 1 lakhs records.

When i execute this statement in my active session, it takes 10 minutes usually.  Here my question is:

1) Is it possible to get updated records count details in 5th minute before update statement completes?

2) Is it possible to get updated records details in 5th minute before update statement completes?

FYI,

1) I want to check this during UPDATE statement execution before completes, expecting answer in SQL methods.

2) Usually, SQL%ROWCOUNT and RETURNING INTO will give the desired result after the completion i guess. Please support on this.

Thanks in advance.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 5 2017
Added on Nov 6 2017
17 comments
3,189 views