Professional Documents
Culture Documents
Command 2
Command 2
FINANCE_ACCESS: permission-name
ON HR.STAFE: table-name identifies the table on which the row permission is created
FOR ROWS WHERE: Indicates that a row permission is created. A row permission specifies a
search condition under which rows of the table can be accessed (Une autorisation de ligne
spécifie une condition de recherche sous laquelle les lignes de la table sont accessibles)
VERIFY_ROLE_FOR_USER : function returns a value that indicates whether the roles that
are associated with the authorization ID that is specified in the first argument are included
in the role names that are specified in the list of the second argument.
SESSION_USER: Specifies the value of the SESSION_USER (or USER) special register
The result is 1 if any of the roles that are associated with the user that is identified by the
SESSION_USER
ENFORCED FOR ALL ACCESS: Specifies that the row permission applies to all references of the table
DISABLE or ENABLE: DISABLE Specifies that the row permission is to be disabled for row access control
ENABLE Specifies that the row permission is to be enabled for row access control
ON HR.STAFF: Identifies the table for which the column mask is created
DISABLE or ENABLE
ENABLE specifies that the column mask is to be enabled for column access control
ALTER TABLE statement with the ACTIVATE ROW ACCESS CONTROL clause to activate row access control for table
Db2_warehouse: server-name specifies the name of the data source that is being defined to the federated database
TYPE server-typeDB2/UDB: Specifies the type of the data source that is being defined to the federated database, and determines the default wrapper that is
used.
AUTHORIZATION remote-authorization-name: Required only for Db2 family data sources. Specifies the authorization ID under which any necessary actions are
performed at the data source when the CREATE SERVER statement is processed
PASSWORD: Required only for Db2 family data sources. Specifies the password associated with the authorization ID represented by remote-authorization-name.
OPTIONS: Specify configuration options for the for the server to be created. Which options you can specify depends on the data source of the object for which a
server is being created.
Db2_warehouse A name that you assign to the Db2 database server. TYPE DB2/udb: Specifies the type of data source server to which you are
configuring access. VERSION 11:The version of the Db2 database server that you want to access. AUTHORIZATION "<userid>" The authorization
ID at the data source. PASSWORD "<password>" The password that is associated with the authorization ID at the data source. HOST
‘<hostname>’ host name alias, or IP address of the host for the Db2 database that you want to access. PORT '50000' The port on which the Db2
database that you want to access is listening. DBNAME 'BLUDB'
An alias for the Db2 database that you want to access.
Bigsql: Maps the local authorization ID to the remote user ID and password.
SERVER db2_warehouse: Specifies the name of the Db2 family data source server that you defined in the CREATE SERVER statement.
REMOTE_AUTHID '<userid>': Specifies the connect user ID at the Db2 family data source server to which you are mapping db2_warehouse.
REMOTE_PASSWORD '<password>': Specifies the password that is associated with '<userid>'.