Oracle 9i Resource Manager provides a new feature that facilitates the prevention of execution of operations that are estimated to run for a longer time than a predefined limit.
This can be accomplished by doing the following:
While creating a resource plan directive you need to specify the parameter
MAX_EST_EXEC_TIME
For example you can create a plan to specify a maximum execution time limit of 10 minutes by specifying the parameter in the following procedure
DBMS_RESOURCE_MANAGER.CREATE_PLAN_DIRECTIVE (…,MAX_EST_EXEC_TIME =>600,……..);
Oracle calculates the time taken for a SQL statement based on statistics available and rejects the statement if the calculated estimated time is more than the set limit.
Hope this helps.
- Kolagani
OCP 8i,9i DBA,SCJP, BEA WLS6CD