sa_server_option system procedure

Overrides a server option while the server is running.

Syntax

sa_server_option( 
opt, 
val 
)

Arguments

Remarks

Database administrators can use this procedure to override some database server options temporarily, without restarting the database server.

The option values that are changed using this procedure are reset to their default values when the server shuts down. If you want to change an option value every time the server is started, you can specify the corresponding database server option when the database server is started if one exists (these are listed in the rightmost column in the table below).

The following option settings can be changed:

Option name Values Default
AutoMultiProgrammingLevel YES, NO YES
AutoMultiProgrammingLevelStatistics YES, NO NO
CacheSizingStatistics YES, NO NO
CollectStatistics YES, NO YES
ConnsDisabled YES, NO NO
ConnsDisabledForDB YES, NO NO
ConsoleLogFile filename  
ConsoleLogMaxSize file-size, in bytes  
CurrentMultiProgrammingLevel Integer 20
DatabaseCleaner ON, OFF ON
DeadlockLogging ON, OFF, RESET, CLEAR OFF
DebuggingInformation YES, NO NO
DropBadStatistics YES, NO YES
DropUnusedStatistics YES, NO YES
IdleTimeout Integer, in minutes 240
IPAddressMonitorPeriod Integer, in seconds 120 for portable devices, 0 otherwise
LivenessTimeout Integer, in seconds 120
MaxMultiProgrammingLevel Integer Four times the CurrentMultiProgrammingLevel value
MessageCategoryLimit Integer 400
MinMultiProgrammingLevel Integer The minimum of the value of the -gtc server option and the number of logical CPUs on the computer
OptionWatchAction MESSAGE, ERROR MESSAGE
OptionWatchList comma-separated list of database options  
ProcedureProfiling YES, NO, RESET, CLEAR NO
ProfileFilterConn connection-id  
ProfileFilterUser user-id  
QuittingTime valid date and time  
RememberLastPlan YES, NO NO
RememberLastStatement YES, NO NO
RequestFilterConn connection-id, -1  
RequestFilterDB database-id, -1  
RequestLogFile filename  
RequestLogging SQL, HOSTVARS, PLAN, PROCEDURES, TRIGGERS, OTHER, BLOCKS, REPLACE, ALL, YES, NONE, NO NONE
RequestLogMaxSize file-size, in bytes  
RequestLogNumFiles Integer  
RequestTiming YES, NO NO
SecureFeatures feature-list  
StatisticsCleaner ON, OFF ON
WebClientLogFile filename  
WebClientLogging ON, OFF OFF

Permissions

The following options, which are related to application profiling or request logging, require either DBA or PROFILE authority:

All other options require DBA authority.

Side effects

None

Example

The following statement disallows new connections to the database server:

CALL sa_server_option( 'ConnsDisabled', 'YES' );

The following statement disallows new connections to the current database:

CALL sa_server_option( 'ConnsDisabledForDB', 'YES' );

The following statement enables logging of all SQL statements, procedure calls, plans, blocking and unblocking events, and specifies that a new request log be started:

CALL sa_server_option( 'RequestLogging', 'SQL+PROCEDURES+BLOCKS+PLAN+REPLACE' );