sp_deviceattr

Description

UNIX platforms only Changes the dsync setting of an existing database device file.

Syntax

sp_deviceattr logicalname, optname, optvalue

Parameters

logicalname

is the name of an existing database device. The device can be stored on either an operating system file or a raw partition, but the dsync setting is ignored for raw partitions.

optname

is the name of the setting to change. Currently, the only acceptable value for optname is dsync.

optvalue

can be either “true” or “false.”

Examples

Example 1

Sets dsync on for the device named “file_device1”:

sp_deviceattr file_device1, dsync, true

Usage

Permissions

The user executing sp_deviceattr must have permission to update the sysdevices table.

See also

System procedures sp_helpdevice