Specifies a resource governor to limit the maximum number of prepared statements that a connection can use at once.
Can be set for an individual connection or the PUBLIC group. Takes effect immediately. Requires DBA permissions to set this option for any connection.
The specified resource governor allows a DBA to limit the number of prepared statements per connection that a user can have. If an operation exceeds the limit for a connection, an error is generated indicating that the limit has been exceeded.
If a connection executes a stored procedure, that procedure is executed under the permissions of the procedure owner. However, the resources used by the procedure are assigned to the current connection.
You can remove resource limits by setting MAX_STATEMENT_COUNT to 0 (zero).