User's Guide
PART 4. Database Administration and Advanced Use
CHAPTER 21. Managing User IDs and Permissions
Building a set of users and groups allows you to manage permissions on a database. Another aspect of database security and management is to limit the resources an individual user can use.
For example, you may wish to prevent a single connection from taking too much of the available memory or CPU resources, in order to avoid a connection from slowing down other users of the database.
Adaptive Server Anywhere provides a set of database options that the DBA can use to control resources. These options are called resource governors.
You can set database options using the SET OPTION statement, which has the following syntax:
SET [ TEMPORARY ] OPTION
... [ userid. | PUBLIC. ]option-name = [ option-value ]
For reference information about options, see Database Options. For information on the SET OPTION statement, see SET OPTION statement.
The following options can be used to manage resources:
JAVA_HEAP_SIZE Sets the maximum size (in bytes) of that part of the memory that is allocated to Java applications on a per connection basis.
MAX_CURSOR_COUNT Limits the number of cursors for a connection.
MAX_STATEMENT_COUNT Limits the number of prepared statements for a connection.
BACKGROUND_PRIORITY Limits the impact requests on the current connection have on the performance of other connections
Database option settings are not inherited through the group structure.