The SET_TIMEOUT_BEHAVIOUR procedure specifies how the monitor thread should handle the target session when a timeout occurs.
This procedure is called within the target session.
Applicability
This topic applies only to OceanBase Database Enterprise Edition. OceanBase Database Community Edition does not support this feature.
Syntax
DBMS_DEBUG.SET_TIMEOUT_BEHAVIOUR (
behaviour IN PLS_INTEGER);
Parameters
The behaviour parameter can be set to the following values:
| Parameter | Description |
|---|---|
| retry_on_timeout | Retry. The timeout is ignored. This is similar to setting the timeout to an infinite value. |
| continue_on_timeout | Continue execution using the same event identifier. |
| nodebug_on_timeout | Disable debug mode (i.e., call debug_off) and continue execution. This target session will no longer generate events unless reinitialized by calling debug_on. |
| abort_on_timeout | Continue execution using the abort_execution identifier, which will cause the program to terminate immediately. The session remains in debug mode. |
Exceptions
unimplemented indicates that the requested behavior is not recognized.
Considerations
The default behavior (if this procedure is not called) is continue_on_timeout, as it allows the debugger client to regain control over the next event, preventing the target session from hanging indefinitely.
