481.Which statement is true about a running session that belongs to the online transaction processing
(OLTP) group?
A. It permanently switches to the low_group consumer group if the session exceeds 10,000 I/O requests
or 2,500 MB of data transfer.
B. It performs the first 10000 I/O requests or 2,500 MB of data transfer in the LOW-GROUP consumer
group, and then switches to the original group.
C. It switches to the LOW_GROUP consumer group if the session exceeds 10000 I/O requests or 2500
MB of data transfer and returns to the original group after the operation.
D. It switches to the LOW_GROUP consumer group if the session exceeds 10000 I/O requests or 2500
MB of data transfer for queries, but not for data manipulation language (DML) operations.
Answer: D
从官方文档可知,此题选C.
Example 2
The following PL/SQL block creates a resource plan directive for the OLTP
group that temporarily switches any session in that group to the LOW_GROUP
consumer group if the session exceeds 10,000 I/O requests or exceeds 2,500 Megabytes of data transferred. The session is returned to its original group after the offending top call is complete.
Parameters
Table 120-7 CREATE_PLAN_DIRECTIVE Procedure Parameters
Parameter | Description |
---|---|
|
Name of the resource plan |
|
Name of the consumer group or subplan |
|
Comment for the plan directive |
|
-- deprecated: use |
|
-- deprecated: use |
|
-- deprecated: use |
|
-- deprecated: use |
|
-- deprecated: use |
|
-- deprecated: use |
|
-- deprecated: use |
|
-- deprecated: use |
|
Specifies maximum number of concurrently active sessions for a consumer group. Default is |
|
Specified time (in seconds) after which a job in the inactive session queue (waiting for execution) will time out. Default is |
|
Specifies a limit on the degree of parallelism for any operation. Default is |
|
Specifies consumer group to switch to, once a switch condition is met. If the group name is ' |
|
Specifies time (in CPU seconds) that a session can execute before an action is taken. Default is |
|
If |
|
Specifies the maximum execution time (in CPU seconds) allowed for a session. If the optimizer estimates that an operation will take longer than |
|
Limits the size in kilobytes of the undo records corresponding to uncommitted transactions by this consumer group |
|
Indicates the maximum session idle time. Default is |
|
Maximum amount of time in seconds that a session can be idle while blocking another session's acquisition of a resource |
|
Deprecated. If this parameter is specified, |
|
Resource allocation value for level 1 (replaces
|
|
Resource allocation value for level 2 (replaces
|
|
Resource allocation value for level 3 (replaces
|
|
Resource allocation value for level 4 (replaces
|
|
Resource allocation value for level 5 (replaces
|
|
Resource allocation value for level 6 (replaces
|
|
Resource allocation value for level 7 (replaces
|
|
Resource allocation value for level 8 (replaces
|
|
Specifies the amount of I/O (in MB) that a session can issue before an action is taken. Default is |
|
Specifies the number of I/O requests that a session can issue before an action is taken. Default is |
|
Specifies that if an action is taken because of the |
|
Specifies the maximum percentage of CPU that this Consumer Group or Sub-Plan can utilize. Valid values are 0% to 100%. |
|
Specifies the maximum percentage of the target number of parallel servers in an Oracle RAC environment that a consumer group can use. Any additional parallel statements that are launched from this consumer group will be queued. The default is If a consumer group does not have any parallel statements running within an Oracle RAC database, the first parallel statement is allowed to exceed this limit. The target number of parallel servers in an Oracle RAC environment is the sum of the parameter |
|
Specifies the time (in seconds) that a query may remain in its Consumer Group's parallel statement queue before it is removed and terminated with an error (ORA- 07454). |
-
All parameters default to
NULL
. However, for theEMPHASIS
CPU
resource allocation method, this case would severely limit resources to all the users. -
For
max_idle_time
andmax_idle_blocker_time
,PMON
will check these limits once a minute. If it finds a session that has exceeded one of the limits, it will forcibly kill the session and clean up all its state. -
The parameter
switch_time_in_call
is mostly useful for three-tier applications where the mid-tier server is implementing session pooling. By usingswitch_time_in_call
, the resource usage of one client will not affect a future client that happens to be executed on the same session.