Time remaining to complete table statistics [message #539475] |
Mon, 16 January 2012 04:42 |
|
Jack14
Messages: 497 Registered: December 2011 Location: INDIA
|
Senior Member |
|
|
Hi,
I use the following query to find out the remaining time to complete the table statistics
which is running currently.
SELECT SID, SERIAL#, opname, SOFAR, TOTALWORK,username,context,
ROUND(SOFAR/TOTALWORK*100,2) COMPLETE
FROM V$SESSION_LONGOPS
WHERE
TOTALWORK != 0
AND SOFAR != TOTALWORK
order by 1;
I have a question in the query output.
SOFAR column shows 9325 and totalwork column shows 12287.How to calculate the columns in terms of hours and minutes ?
And also sometime the query never shows the output of the query for the current running query.
Is there a another way to find out for the similar task ?
Thank you
[Updated on: Mon, 16 January 2012 04:52] Report message to a moderator
|
|
|
|