profile
is the name of the profile to be created.
SESSIONS_PER_USER
limits a user to
integer concurrent sessions.
CPU_PER_SESSION
limits the CPU time for a session. This value is expressed in hundredths of seconds.
CPU_PER_CALL
CONNECT_TIME
limits the total elapsed time of a session. This value is expressed in minutes.
IDLE_TIME
LOGICAL_READS_PER_SESSION
limits the number of data blocks read in a session, including blocks read from memory and disk, to
integer blocks.
LOGICAL_READS_PER_CALL
limits the number of data blocks read for a call to process a SQL statement (a parse, execute, or fetch) to
integer blocks.
PRIVATE_SGA
limits the amount of private space a session can allocate in the shared pool of the System Global Area (SGA) to integer bytes. You can also use the K or M to specify this limit in kilobytes or megabytes. This limit only applies if you are using the multi-threaded server architecture. The private space for a session in the SGA includes private SQL and PL/SQL areas, but not shared SQL and PL/SQL areas.
COMPOSITE_LIMIT
limits the total resource cost for a session. You must express the value of this parameter in service units.
Oracle7 calculates the total resource cost as a weighted sum of the following resources:
For information on how to specify the weight for each session resource see the ALTER RESOURCE COST command .
UNLIMITED
indicates that a user assigned this profile can use an unlimited amount of this resource.
DEFAULT
Enable resource limits: You can enable resource limits through one of the following ways:
Any user who is not explicitly assigned a profile is subject to the limits defined in the DEFAULT profile. Also, if the profile that is explicitly assigned to a user omits limits for some resources or specifies DEFAULT for some limits, the user is subject to the limits on those resources defined by the DEFAULT profile.
Example
The following statement creates the profile SYSTEM_MANAGER:
CREATE PROFILE system_manager LIMIT SESSIONS_PER_USER UNLIMITED CPU_PER_SESSION UNLIMITED CPU_PER_CALL 3000 CONNECT_TIME 45 LOGICAL_READS_PER_SESSION DEFAULT LOGICAL_READS_PER_CALL 1000 PRIVATE SGA 15K COMPOSITE_LIMIT 5000000
If you then assign the SYSTEM_MANAGER profile to a user, the user is subject to the following limits in subsequent sessions: