Prepare Database Users and Privileges for Oracle GoldenGate for MySQL
Requirements for the database user for Oracle GoldenGate processes are as follows:
-
Create a database user that is dedicated to Oracle GoldenGate. It can be the same user for all the Oracle GoldenGate processes that must connect to a database.
-
To preserve the security of your data, and to monitor Oracle GoldenGate processing accurately, do not permit other users, applications, or processes to log on as, or operate as, the Oracle GoldenGate database user.
-
Keep a record of the database users. They must be specified in the Oracle GoldenGate parameter files with the
USERIDparameter. -
The Oracle GoldenGate user requires read access to the
INFORMATION_SCHEMAdatabase. -
The Oracle GoldenGate user requires the following user privileges.
Privilege Source Extract Target Replicat Purpose SELECTYes
Yes
Connect to the database and select object definitions
REPLICATION SLAVEYes
NA
Connect and receive updates from the replication master’s binary log
CREATECREATE VIEWEVENTINSERTUPDATEDELETEYes
Yes
Source and target database heartbeat and checkpoint table creation, and data record generation and purging
DROPYes
Yes
Dropping a Replicat checkpoint table or deleting a heartbeat table implementation
EXECUTEYes
Yes
To execute stored procedures
INSERT,UPDATE,DELETEon target tablesNA
Yes
Apply replicated DML to target objects
DDL privileges on target objects (if using DDL support)
NA
Yes
Issue replicated DDL on target objects
User Privileges Required for Local Capture
To capture binary log events by the local capture, an Administrator must provide the following privileges to the Extract user:
-
Read and Execute permissions for the directory where the MySQL configuration file (
my.cnf) is located. -
Read permission for the MySQL configuration file (
my.cnf). -
Read and Execute permissions for the directory where the binary logs are located.
-
Read and Execute permission for the
tmpdirectory. Thetmpdirectory is/tmp.
-