Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: V$SESSION_LONGOPS sofar/totalwork *always* = 1 in 10g ?
Spendius wrote:
> Hi,
> I have a script that's been working for years:
>> select round((sofar/totalwork)*100,2) ||'%' pct, >> opname, target, >> round(time_remaining/60, 2) minutes >> from v$session_longops >> where round((sofar/totalwork)*100,2) != '100' >> and sid=&&1
>> select sid,sofar/totalwork from v$session_longops ;
Are your variables defined as INTEGER or FLOATING POINT?
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace x with u to respond) Puget Sound Oracle Users Group www.psoug.orgReceived on Thu Nov 30 2006 - 11:00:25 CST
![]() |
![]() |