Database User for Oracle GoldenGate Processes 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 support DDL replication, the MySQL user must have privileges to install the database plug-ins. The required permissions for the plug-in is only required with MySQL 5.7. The
INSERTprivilege is required on themysql.pluginsystem table. -
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
-
To capture binary log events, 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. The MySQL database connection requires access to the/tmp/mysql.sockfile for versions prior to MySQL 8.0.
-