Last active
September 16, 2015 07:28
-
-
Save yoshikaw/6930fb737cbd03a839a0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% sqlplus -S / as sysdba | |
set lines 9999 | |
select open_mode from v$database; | |
OPEN_MODE | |
------------------------------------------------------------ | |
MOUNTED | |
select SID, START_TIME,TOTALWORK, sofar, (sofar/totalwork) * 100 done, | |
sysdate + TIME_REMAINING/3600/24 end_at | |
from v$session_longops | |
where totalwork > sofar | |
AND opname NOT LIKE '%aggregate%' | |
AND opname like 'RMAN%'; | |
SID START_TIME TOTALWORK SOFAR DONE END_AT | |
---------- ------------------- ---------- ---------- ---------- ------------------- | |
2 2015-09-16 15:44:56 50521344 15788016 31.25019 2015-09-16 18:04:32 | |
quit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment