Oracle Error Message
OCI-21608: duration is invalid for this function
Reason for the Error
Attempt to use a duration not valid for this function.
Solution
Use a valid duration – a previously created user duration or OCI_DURATION_STATEMENT or OCI_DURATION_SESSION. For callout duration or external procedure duration, use OCIExtProcAllocCallMemory.