Authorization
The SQL services described in this section are implemented using several service programs. Changing the authority on one of these service programs will affect all the services that are part of that service program.
Authority can be changed using the GRTOBJAUT CL command on the *SRVPGM or the SQL GRANT statement on any procedure or function that uses the service program.
To access the services, a user needs at least *OBJOPR and *EXECUTE authority on the service program or the EXECUTE SQL privilege on the procedure or function. Some services may have additional authority requirements, such as special authority or function usage, as described in the documentation for each service.
The services are associated with the following service programs:
- Configure Db2® Mirror replication: QSYS/QMRDBSSDBA *SRVPGM
- Configure Db2 Mirror product: QSYS/QMRDBSSPRD *SRVPGM
-
Shipped with *PUBLIC *EXCLUDE authority.
- ADD_MIRROR_TAKEOVER_ADDRESS procedure
- ADD_MIRROR_VERSION procedure
CHANGE_MIGRATION_MANAGER procedure
- CHANGE_MIRROR procedure
CHANGE_MIRROR_HEALTH_MONITOR procedure
- CHANGE_MIRROR_OBJECTCONNECT procedure
- CHANGE_MIRROR_TAKEOVER_GROUP procedure
- CREATE_MIRROR_TAKEOVER_GROUP procedure
- DELETE_MIRROR_TAKEOVER_GROUP procedure
- PROCESS_PENDING_MIRROR_VERSION procedure
- RECLONE_REPLICATED_OBJECTS procedure
- REMOVE_MIRROR_IASP procedure
- REMOVE_MIRROR_TAKEOVER_ADDRESS procedure
- REMOVE_MIRROR_VERSION procedure
- SET_MIRROR_CLUSTER procedure
- SET_MIRROR_FLIGHT_RECORDER_ALL_LEVELS procedure
- SET_MIRROR_FLIGHT_RECORDER_INFO procedure
- SETUP_MIRROR procedure
- SWAP_MIRROR_ROLES procedure
- SWAP_MIRROR_TAKEOVER_GROUP procedure
- TERMINATE_MIRROR procedure
- Review Db2 Mirror details: QSYS/QMRDBSSRTU *SRVPGM
-
Shipped with *PUBLIC *USE authority.
- Review Db2 Mirror details: QSYS/QMRDBSSRTV *SRVPGM
-
Shipped with *PUBLIC *USE authority.
- CHECK_MIRROR_VERSION scalar function
- CHECK_REPLICATION_CRITERIA scalar function
COMPARE_MIRROR_VERSION scalar function
- COMPARE_RESYNC_STATUS table function
- INSPECT_REPLICATION_CRITERIA table function
MIGRATION_MANAGER_INFO view
- MIRROR_CLUSTER_INFO view
- MIRROR_FLIGHT_RECORDER_INFO view
MIRROR_HEALTH_MONITOR_INFO view
- MIRROR_INFO view
- MIRROR_OBJECTCONNECT_INFO view
MIRROR_SUSPENDING_JOBS table function
- MIRROR_TAKEOVER_INFO view
- MIRROR_VERSION_LIST view
- NRG_INFO view
- NRG_LINK_INFO view
- RDMA_CONNECTION_INFO view
- RDMA_LINK_INFO view
- REPLICATION_CRITERIA_INFO view
- VALIDATE_PENDING_REPLICATION_CRITERIA table function
- Configure Db2 Mirror communication: QSYS/QMRDBSSNRG *SRVPGM and QSYS/QTOCNRGRP *SRVPGM
-
Shipped with *PUBLIC *EXCLUDE authority.
- Configure Db2 Mirror resynchronization: QSYS/QDBSRVIO1 *SRVPGM
-
Shipped with *PUBLIC *USE authority.
- Work with Db2 Mirror object details: QSYS/QMRDBSSOBJ *SRVPGM
-
Shipped with *PUBLIC *EXCLUDE authority.
- MIRROR_COMPARE_LIBRARY procedureNote: Also requires authority to QSYS2/MCOMP_LIB, shipped with *PUBLIC *EXCLUDE authority.
- MIRROR_COMPARE_NODE procedureNote: Also requires authority to QSYS2/MCOMP_NODE, shipped with *PUBLIC *EXCLUDE authority.
- MIRROR_COMPARE_OBJECT table function
RECLONE_OBJECT procedure
- MIRROR_COMPARE_LIBRARY procedure
Return Db2 Mirror audit journal information:
QSYS2/MIRRORDJTS *SRVPGM
Shipped with *PUBLIC *USE authority.
To see which users have authority to configure the Db2
Mirror product, you can run this
query:
SELECT AUTHORIZATION_NAME
FROM QSYS2.OBJECT_PRIVILEGES
WHERE
SYSTEM_OBJECT_SCHEMA = 'QSYS' AND
SYSTEM_OBJECT_NAME = 'QMRDBSSPRD' AND
OBJECT_TYPE = '*SRVPGM' AND
OBJECT_OPERATIONAL = 'YES' AND
DATA_EXECUTE = 'YES';