![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I work on Oracle 11 and sometimes there are queries, that need hours to be performed. is there a way to find out the progress of a special query within another session? pseudo: AsynchronSession:=StartSessionAsynchron(VeryLongQu ery); AnotherSession:=StartSynchronSession(); While AsynchronSession.IsRunning do begin PrintResult(AnotherSession.StartQuery(QueryToFindO utProgress)); Wait(60 sek); end; Thank you Andreas -- wenn email, dann AndreasMosmann <bei> web <punkt> de |
#3
| |||
| |||
|
|
Hi, I work on Oracle 11 and sometimes there are queries, that need hours to be performed. is there a way to find out the progress of a special query within another session? pseudo: * AsynchronSession:=StartSessionAsynchron(VeryLongQu ery); * AnotherSession:=StartSynchronSession(); * While AsynchronSession.IsRunning do begin * * PrintResult(AnotherSession.StartQuery(QueryToFindO utProgress)); * * Wait(60 sek); * end; Thank you Andreas -- wenn email, dann AndreasMosmann <bei> web <punkt> de |
#4
| |||
| |||
|
|
"Andreas Mosmann" <mosmann (AT) expires-31-01-2011 (DOT) news-group.org> a écrit dans le message de news: 1296027840.2 (AT) user (DOT) newsoffice.de... | Hi, | | I work on Oracle 11 and sometimes there are queries, that need hours to | be performed. | is there a way to find out the progress of a special query within | another session? | | pseudo: | | AsynchronSession:=StartSessionAsynchron(VeryLongQu ery); | AnotherSession:=StartSynchronSession(); | While AsynchronSession.IsRunning do begin | PrintResult(AnotherSession.StartQuery(QueryToFindO utProgress)); | Wait(60 sek); | end; | | Thank you | Andreas | | -- | wenn email, dann AndreasMosmann <bei> web <punkt> de SQL> desc V$SESSION_LONGOPS Name Null? Type -------------------------------- -------- ---------------------- SID NUMBER SERIAL# NUMBER OPNAME VARCHAR2(64) TARGET VARCHAR2(64) TARGET_DESC VARCHAR2(32) SOFAR NUMBER TOTALWORK NUMBER UNITS VARCHAR2(32) START_TIME DATE LAST_UPDATE_TIME DATE TIMESTAMP DATE TIME_REMAINING NUMBER ELAPSED_SECONDS NUMBER CONTEXT NUMBER MESSAGE VARCHAR2(512) USERNAME VARCHAR2(30) SQL_ADDRESS RAW(4) SQL_HASH_VALUE NUMBER SQL_ID VARCHAR2(13) QCSID NUMBER Regards Michel Thank you very much, but it doesn't seem to work as I want, I don't know |
![]() |
| Thread Tools | |
| Display Modes | |
| |