Who Can Alter a Mapping
The ALTER MAPPING
statement can be executed by:
-
The database owner — if the mapping is local
-
Users with the
CHANGE_MAPPING_RULES
system privilege — if the mapping is local
The ALTER MAPPING
statement can be executed by:
The database owner — if the mapping is local
Users with the CHANGE_MAPPING_RULES
system privilege — if the mapping is local
ALTER MAPPING
examplesALTER MAPPING FROM_RT
USING PLUGIN SRP IN "rt"
FROM USER U1 TO USER U3;
CREATE OR ALTER MAPPING
Creates a mapping of a security object if it doesn’t exist, or alters a mapping
DSQL
CREATE OR ALTER [GLOBAL] MAPPING name USING { PLUGIN plugin_name [IN database] | ANY PLUGIN [IN database | SERVERWIDE] | MAPPING [IN database] | '*' [IN database] } FROM {ANY type | type from_name} TO {USER | ROLE} [to_name]
For details on the options, see [fblangref50-security-mapping-create].
The CREATE OR ALTER MAPPING
statement creates a new or modifies an existing mapping.
Important
|
Global and local mappings of the same name are different objects. |
CREATE OR ALTER MAPPING
examplesCREATE OR ALTER MAPPING FROM_RT
USING PLUGIN SRP IN "rt"
FROM USER U1 TO USER U4;
DROP MAPPING
Drops a mapping of a security object
DSQL
DROP [GLOBAL] MAPPING name
Parameter | Description |
---|---|
name |
Mapping name |
The DROP MAPPING
statement removes an existing mapping.If GLOBAL
is specified, then a global mapping will be removed.
Important
|
Global and local mappings of the same name are different objects. |
The DROP MAPPING
statement can be executed by:
The database owner — if the mapping is local
Users with the CHANGE_MAPPING_RULES
system privilege — if the mapping is local
DROP MAPPING
examplesDROP MAPPING FROM_RT;