Prepare Database Users and Privileges for Db2 z/OS
Learn about creating database users and assigning privileges for Oracle GoldenGate for Db2 z/OS.
Oracle GoldenGate requires a database user account. Create this account and assign privileges according to the following guidelines.
The following table shows the required system privileges for a dedicated Oracle GoldenGate user created in Db2 z/OS:
Assign the Db2 privileges listed in the following table to the Extract and Replicat dedicated database users. These are in addition to any permissions that Db2 ODBC requires. Except where noted, all Extract privileges apply to initial-load and log-based Extract processes, .
The authorities listed in the following table can be provided by granting
either SYSCTRL
or DBADM
plus SQLADM
authority to the user running the Oracle GoldenGate processes.
Table 4-1 Privileges Needed by Oracle GoldenGate for Db2 z/OS
User privilege | Extract | Stored Procedure | Replicat |
---|---|---|---|
|
Yes |
Yes |
Yes |
(This does not apply to initial-load Extract) |
Y |
- |
N |
|
Y |
- |
Y |
|
Y |
- |
N |
|
N |
- |
Y |
|
N | - |
Y |
|
Y |
- |
N |
Privileges required by |
Y |
- |
N |
Footnote 1
SELECT
on source tables
required only if tables contain LOB columns, or for an
initial-load Extract, if used.
Footnote 2
Required if using ADD
CHECKPOINTTABLE
from the command line interface
to use the database checkpoint feature.
Footnote 3
SQLEXEC
enables stored
procedures and queries to be executed by an Oracle
GoldenGate process.