Setting LOADPLUS authorizations
LOADPLUS does not run as part of the Db2 subsystem. Therefore, users must have system and data set authorizations that are equivalent to the authorizations that Db2 requires. Use the following procedures to set the necessary authorizations.
To set Db2 authorizations
- For all load jobs, grant the following authorizations:
- Sufficient Db2 authority to execute the LOADPLUS plan and all packages that the LOADPLUS plan uses
- Authorization equivalent to the authorization that the IBM Db2 LOAD utility requires
To enable loading tables that contain identity columns, also complete the following authorization steps:
- Grant SELECT privileges on the following Db2 tables:
- SYSIBM.SYSSEQUENCES
- SYSIBM.SYSSEQUENCESDEP
- To enable the use of the UPDATEMAXA YES option to update the MAXASSIGNEDVAL column of the SYSIBM.SYSSEQUENCES table, complete the following steps:
- Determine which of the following authorization IDs should have ALTER privileges for the table that is being loaded:
- User ID of the job owner
- INSTALL SYSADM
- Ensure that the value for the UPDMAXA_AUTHID installation option reflects this determination.
- Grant ALTER privileges on the table that is being loaded for the appropriate authorization ID.
- Determine which of the following authorization IDs should have ALTER privileges for the table that is being loaded:
- Grant SELECT privileges on the following Db2 tables:
To enable loading a table whose table space or index spaces are defined with DEFINE NO, also grant INSERT privileges on that table.
To enable the using FORCE option to cancel Db2 threads that might prevent a successful drain during a load job, also grant the following authorizations:
- DISPLAY privileges
- One of the following authorities:
- SYSADM
- SYSOPR
- SYSCTRL
- To enable zIIP processing and LOADPLUS features that use snapshot processing, ensure that you have the appropriate authorizations for XBM or SUF.For information about security levels and authorizations for XBM, see theEXTENDED BUFFER MANAGER for DB2 documentation.
To enable running an SQLAPPLY load, also grant the following authorizations:
- (Normally granted during High-speed Apply Engine installation) EXECUTE privileges:
- EXECUTE privilege for the plan that High-speed Apply Engine uses to access its own restart table and the catalog
- EXECUTE privilege for the High-speed Apply restart package
(Normally granted after High-speed Apply Engine installation) additional privileges:
- INSERT privileges on the table that a user is loading
- INSERT, UPDATE, SELECT, and DELETE privileges on the High-speed Apply Engine restart table
- CREATE privileges for the collections that the High-speed Apply Engine creates
- Bind privileges with the add option (BINDADD) for the plans and packages that High-speed Apply creates during apply processing
The High-speed Apply Engine provides several ways to grant the CREATE and BINDADD privileges. Some techniques avoid granting bind privileges to the user ID that runs High-speed Apply. For more information, see the High-speed Apply Engine documentation documentation.
- (Normally granted during High-speed Apply Engine installation) EXECUTE privileges:
To enable data set access using the Db2 RACF ID
Specify OPNDB2ID=YES in your installation options.
This option tells LOADPLUS to use the Db2 RACF ID for data set access.
To enable data to set access when not using the Db2 RACF ID
Specify OPNDB2ID=NO in your installation options.
This option tells LOADPLUS not to use the Db2 RACF ID for data set access.
If using RACF or a similar system security package to protect underlying data sets and the Integrated Catalog Facility (ICF) catalog of a table or index space, set a minimum of the levels of authorization shown in the following table for all load jobs.
Minimum levels of authorization that LOADPLUS requires
Table or index space definition
To access, update, and define DB2 data sets
To access and update the ICF catalog
VCAT-defined
CONTROL
UPDATE
STOGROUP-defined
ALTER or CONTROL
UPDATE or CONTROL
- To enable checking referential constraints during the load, also grant READ privileges on the primary index of the parent table for the table being loaded.
- To enable using rename or FASTSWITCH processing, if you establish authority at a node lower than the highest node, grant the same privileges as shown in the Minimum levels of authorization that LOADPLUS requires table for the following data sets:
- When FASTSWITCH NO is in effect:
- VCAT.BMCDBD.database.object.I0001
- VCAT.BMCDBC.database.object.I0001
- VCAT.OLDDBD.database.object.I0001
- VCAT.OLDDBC.database.object.I0001
- VCAT.BMCDBD.database.object.J0001
- VCAT.BMCDBC.database.object.J0001
- VCAT.OLDDBD.database.object.J0001
- VCAT.OLDDBC.database.object.J0001
- When FASTSWITCH YES is in effect:
- VCAT.BMCDBD.database.object.I0001
- VCAT.BMCDBC.database.object.I0001
- VCAT.BMCDBD.database.object.J0001
- VCAT.BMCDBC.database.object.J0001
- When FASTSWITCH NO is in effect:
Related topics