Multiplex permission changes (ESD #3)

Starting with ESD #3, Sybase IQ 12.6 restricts permissions by default.

Prior to ESD #3, Sybase IQ allowed query servers to create and drop users, groups, and group memberships and to change permissions on objects created by write servers. This caused conflicts with permissions set by write servers.

Now only write servers can:

The following objects, when created on a write server, are owned by that server and cannot be dropped or altered on a query server by default:

The following, when created, altered, or dropped on a write server, propagate to query servers:

The following are permitted on query servers:

The database options MPX_GLOBAL_TABLE_PRIV and MPX_LOCAL_SPEC_PRIV, described in the following sections, let you override the new permission restrictions.

NoteSybase strongly recommends that you create users domains and messages on the write server only, to avoid static collisions. For details, see “Setting multiplex permissions [CR 404004].”


New database option MPX_GLOBAL_TABLE_PRIV

Function

Lets a query server grant and revoke permissions on objects created by the write server.

Allowed values

ON, OFF

Scope

DBA permissions are required to set this option. Can be set only for the PUBLIC group. Takes effect immediately.

Default

OFF

Description

To enable this option, set it ON. Setting MPX_GLOBAL_TABLE_PRIV ON allows grant and revoke of table and execute permissions of write server objects on a query server.

See also

“New database option MPX_LOCAL_SPEC_PRIV.”

NoteThis option was omitted from the chapter “Database Options” in the Sybase IQ Reference Manual.


New database option MPX_LOCAL_SPEC_PRIV

Function

Lets a query server create and drop users, groups, and group memberships.

Allowed values

0 to 63

A bit mask indicating the corresponding special privileges to be granted and revoked on a query server:

To combine two or more privileges, add the bit masks in hexadecimal (base 16), then convert to decimal to determine the value for the option. For example, to combine RESOURCE and GROUP privileges on a database, use the formula 4 + 16 (10 in base 16) = 20 and set MPX_LOCAL_SPEC_PRIV to 20.

To allow all privileges, you must set all bits. To do this, set MPX_LOCAL_SPEC_PRIV to 63.

Scope

Can be set only for the PUBLIC group. Takes effect immediately.

Default

0

Description

To enable the MPX_LOCAL_SPEC_PRIV option, set it to the appropriate value between 1 and 63 (See Allowed values.) DBA permissions are required to set this option. This option takes effect immediately.

See also

“New database option MPX_GLOBAL_TABLE_PRIV”.

NoteThis option was omitted from the chapter “Database Options” in the Sybase IQ Reference Manual.