Displays configuration parameters by group, their current values, their non-default value settings, the value to which they have most recently been set, and the amount of memory used by this setting. Displays only the parameters with a display level that is the same as or below that of the user.
sp_configure [configname [, configvalue] | group_name | non_unique_parameter_fragment] 'drop instance' [, instance_name] [display_nondefault_settings]
sp_configure "configuration file", 0, {"write" | "read" | "verify" | "restore"} "file_name"
sp_configure configname, 0, “default” resets configname to its default value and displays current value, default value, configured value, and amount of memory used by configname.
sp_configure
sp_configure "identity"
Configuration option is not unique. Parameter Name Default Memory Used Config Value Run Value Unit Type -------------- ------- ----------- ------------ --------- ------ ---- identity burning set 1 0 1 1 id static identity grab size 0 0 0 0 id dyna size of auto identit 10 0 10 10 bytes dyna . . .
sp_configure "recovery interval in minutes", 3
Parameter Name Default Memory Used Config Value Run Value Unit Type -------------- ------- ----------- ------------ --------- ------ ---- recovery interval 5 0 3 3 min dyn Configuration option changed. The SQL Server need not be rebooted since the option is dynamic.
sp_configure "number of device", 0, "default"
sp_configure "max concurrently recovered db", 4
sp_configure "number of checkpoint tasks", 4
sp_configure "enable metrics capture", 1
sp_configure "configuration file", 0, "read", "srv.config"
sp_configure "configuration file", 0, "restore", "generic.config"
sp_configure "configuration file", 0, "write", "my_server.config"
sp_configure "configuration file", 0, "verify", "backup_config.cfg"
Any user can execute sp_configure to display information about parameters and their current values, but not to modify parameters. System administrators can execute sp_configure to change the values of most configuration parameters. Only system security officers can execute certain parameters. These are listed under “Permissions” in this section.
sp_configure allows you to specify the value for configuration paramters in unit specifiers. The unit specifiers are p or P for pages, m or M for megabytes, g or G for gigabytes, and t or T for terabytes. If you do not specify a unit, and you are configuring a parameter that controls memory, the SAP ASE server uses the logical page size for the basic unit.
Files created with sp_configure have restricted permissions.
The configuration and run values are updated.
The configuration file is updated.
The change takes effect immediately.
The configuration value is updated.
The configuration file is updated.
The change takes effect only when you restart the SAP ASE server.
The default column in the report displays the value SAP ASE is shipped with. If you do not explicitly reconfigure a parameter, it retains its default value.
The memory used column displays the amount of memory used by the parameter at its current value in kilobytes. Some related parameters draw from the same memory pool. For instance, the memory used for stack size and stack guard size is already accounted for in the memory used for number of user connections. If you added the memory used by each of these parameters separately, it would total more than the amount actually used. In the memory used column, parameters that “share” memory with other parameters are marked with a hash mark (#).
The config_value column displays the most recent value to which the configuration parameter has been set with sp_configure.
The run_value column displays the value being used by the SAP ASE server. It changes after you modify a parameter’s value with sp_configure and, for static parameters, after you restart the SAP ASE server. This is the value stored in syscurconfigs.value.
The “basic” level – displays only the most basic parameters. It is appropriate for very general server tuning.
The “intermediate” level – displays parameters that are somewhat more complex, as well as showing you all the “basic” parameters. This level is appropriate for a moderately complex level of server tuning.
The “comprehensive” level – default display level. Displays all parameters, including the most complex ones. This level is appropriate for users who do highly detailed server tuning.
Setting one of the other display levels lets you work with a subset of the configuration parameter, shortening the amount of information displayed by sp_configure.
sp_displaylevel
sp_configure can run in sessions using chained transaction mode if there are no open transactions.
For information on the individual configuration parameters, see the System Administration Guide.
set in Reference Manual: Commands
For more information on max concurrently recovered db and number of checkpoint tasks, see Backing up and Restoring User Databases in the System Administration Guide.
The permission checks for sp_configure differ based on your granular permissions settings. Any user can display information about parameters and their current values.
Setting | Description |
---|---|
Enabled | With granular permissions enabled:
|
Disabled | With granular permissions disabled:
With granular permissions disabled, you must have sa_role to
execute sp_configure to modify values for other configuration parameters:
|
Values in event and extrainfo columns from the sysaudits table are:
Information | Values |
---|---|
Event | 38 |
Audit option | exec_procedure |
Command or access audited | Execution of a procedure |
Information in extrainfo |
|
Information | Values |
---|---|
Event | 73 |
Audit option | Automatically audited event nto controlled by an option. |
Command or access audited | Turning the auditing parameter on with sp_configure |
Information in extrainfo |
|
Information | Values |
---|---|
Event | 74 |
Audit option | Automatically audited event nto controlled by an option. |
Command or access audited | Turning the auditing parameter off with sp_configure |
Information in extrainfo |
|
Information | Values |
---|---|
Event | 82 |
Audit option | security |
Command or access audited | sp_configure |
Information in extrainfo |
|