Specifies the dump condition of a shared memory dump, and displays current settings. You must enable the dump on conditions configuration parameter to perform shared memory dumps.
sp_shmdumpconfig "action", type, value, max_dumps, dump_dir, dump_file, option1, option2, option3, option4, option5
add – adds the specified shared memory dump conditions.
drop – drops the specified shared memory dump conditions.
update – changes the settings for an existing memory dump condition.
reset – resets the dump count for a shared memory dump condition.
display – dispalys the current shared memory dump conditions.
0 – do not inlude the error log in the dump file.
1 – include the errorlog in the dump file.
0 – do not merge dump files.
1 – merge the dump files.
error – generates a dump file for the specified server error number (for example, error numbers 1105 or 813).
signal – generates a dump file when the specified operating system signal occurs (for example, signals 11 or 10).
severity – generates a dump file when an error occurs with a severity equal to or greater than the specified severity. See Diagnosing System Problems in the System Administration Guide Volume 1 for more information about error severity levels.
module – generates a dump file for a range of server error numbers. The range is delimited by multiples of 100, for example 800 or 1200.
defaults
timeslice – generates a dump file when a process receives a timeslice error.
panic – generates a dump file when a server panic occurs. A server panic terminates the SAP ASE server after perfoming the shared memory dump.
message – generates a dump file when a specified error log message occurs. Contact Sybase Technical Support to optain specific error message numbers.
dbcc – sets up a configuration with defaults and omissions as requested. Upon the next occurrence of the problem, issue dbcc memdump at the isql prompt to create a memory dump.
sp_shmdumpconfig 'update', signal, 11, null, null, ""
include_page – include all pages from data caches.
omit_page – omit all pages from data caches.
default_page – use the default value when including data cache pages.
include_proc – include all pages from the procedure cache.
omit_proc – omit all pages from the procedure cache.
default_proc – use the default values for the procedure cache.
include_unused – include unused pages.
omit_unused – omit unused pages.
default_unused – use the default value for unused pages.
Values for these options override the system-wide default settings. Specify default_cache, default_proc, or default_unused to inherit the appropriate value from the system-wide default settings.
no_halt – no engines halted during the dump. Use this option if you do not want to use shared memory dumps (for example, because the downtime is unacceptable or because the event triggering the shared memory dump is based on a synchronization problem, and you need to see what other engines are doing).
Memory dumps made with the no_halt option may contain a “fuzzy” image and the dump file likely contains corrupted lock tables, run queues, and so on.
default_halt
halt
sp_shmdumpconfig "add", signal, 11,1,"dump_dir"
sp_shmdumpconfig ’add’, error, 605, null, null, null, include_page
declare @sig int select @sig=hextoint("0xc0000005") exec sp_shmdumpconfig 'add', signal, @sig,1,"dump_dir"
sp_shmdumpconfig ’add’, module, 800
sp_shmdumpconfig 'update', signal, 11, null, null, null, ""
The sp_shmdumpconfig stored procedure uses positional parameters. When setting a parameter that falls to the right of parameters you do not want to set, specify null values for the unset parameters.
The permission checks for sp_shmdumpconfig differ based on your granular permissions settings. If action is equal to add, update, reset:
Setting | Description |
---|---|
Enabled | With granular permissions enabled, you must be a user with manage server configuration privilege. |
Disabled | With granular permissions disabled, you must be a user with sa_role. |