can you tell me what is a function similar as dbms_lock.sleep exict from Oracle 9i.
because i want take more exactly time in fraction of second.
and dbms_lock.sleep(second in NUMBER), but i know that similar function exists from Oracle 9i but there time in INTERVAL.
please help me, what is the name of that function?
I've never heard of such a fuunction, that's not to say it doesn't exist.
The other thing to remember is that it is rare to any sleep operation to be totally accurate because of the delays associated with calling a procedure, setting a timer of some description, noticing the time is right to wake up and then actually waking up the process.
As such I doubt you will every get an accurate short duration pause in a language such as PL/SQL.
It's only my opinion, but I'm happy to be proved wrong.
I've just had a scan through the documentation and metalink and I can't see any functions or procedures that do what you are saying.
The TIMESTAMP datatype is present in 9i which allows you to deal with times to 9 decimal places of a second, but this has nothing to do with any form of sleep, pause or wait function.
If you ever find such a thing please post it. I don't need it, but it's nice to know ;-)
Originally posted by Shine i want more exactly, smallest units of seconds.
I too would be surprised if you would get results repeatable to better than a few hundreth's or even tenth's of a second.
My reaction is that if you need timing to "high" precision, you're using the wrong technology - DBMS aren't really designed for that.
"The power of instruction is seldom of much efficacy except in those happy dispositions where it is almost superfluous" - Gibbon, quoted by R.P.Feynman
Bookmarks