Installing DDL Replication
To install DDL replication, you run the installation script that is provided with Oracle GoldenGate as the replication user. This user must have Create, Insert,Select, Delete, Drop, and Truncate database privileges. Additionally, this user must have write permission to copy the Oracle GoldenGate plugin in the MySQL plugin directory. For example, the MySQL plugin are typically in /usr/lib64/mysql/plugin/.
The installation script options are install, uninstall, start, stop, and restart.
The command to install DDL replication uses the install option, user id, password, and port number respectively:
bash-3.2$ ./ddl_install.sh install-option user-id password port-numberFor example:
bash-3.2$ ./ddl_install.sh install root welcome 3306The DDL replication installation script completes the following tasks:
- Ensures that you have a supported MySQL server version installed. DDL replication is supported for MySQL 5.7.10 and greater.
- Locates the MySQL plugin directory.
- Ensures that the
ddl_rewriter,ddl_metadataplugins and themetadata_serverfiles exist. If these files are not found, then an error message appears and the installation exits. - Ensures that the plugins are already installed. If installed, the script exits with a message requesting you to uninstall first and then reinstall.
- Stops the
metadata_serverif it is running. - Deletes the
oggddl.historytable if it exists. - Starts the
metadata_serveras a daemon process. - Installs the
ddl_rewriterandddl_metadataplugins.