8 Oracle GoldenGate Classic for MySQL
- Deploying Oracle GoldenGate Classic Architecture for MySQL Platforms
- Finding Oracle GoldenGate for Non-Oracle (MySQL) within the Oracle Cloud Marketplace
- Launching Oracle GoldenGate Classic for Non-Oracle (MySQL)
- Connecting to Oracle GoldenGate Classic for Non-Oracle (My SQL) Compute Node
- Working with Oracle GoldenGate Classic for Non-Oracle (MySQL)
Deploying Oracle GoldenGate Classic Architecture for MySQL Platforms
Using Oracle GoldenGate Classic Architecture on Marketplace, you can deploy and manage your deployment from a single location.
Here are the prerequisites which are required before deployment:
- Oracle Cloud Account
- Access to compute node resources within Oracle Cloud Tenant
Parent topic: Oracle GoldenGate Classic for MySQL
Finding Oracle GoldenGate for Non-Oracle (MySQL) within the Oracle Cloud Marketplace
The following steps help you to deploy Oracle GoldenGate for Non-Oracle (My SQL) from Oracle Cloud Marketplace:
- Log in to Oracle Cloud Marketplace.
- From the Oracle Cloud Marketplace home page, use the search box under Applications and search for the keyword GoldenGate.
- From the Search Results, select Oracle GoldenGate for Non-Oracle.
Parent topic: Oracle GoldenGate Classic for MySQL
Launching Oracle GoldenGate Classic for Non-Oracle (MySQL)
Parent topic: Oracle GoldenGate Classic for MySQL
Connecting to Oracle GoldenGate Classic for Non-Oracle (My SQL) Compute Node
- Log in to your Oracle Cloud Console.
- Select Compute -> Instances.
- Select the hyperlink name of the compute node. The public IP Address is listed under Primary VNIC Information.
- To access the compute node where Oracle GoldenGate is running, connect as the
opc
account using SSH. For more information on how to access a node using theopc
account refer to Connecting to an Instance.
ssh -i <private-key-filename> opc@<public-id-address>
Parent topic: Oracle GoldenGate Classic for MySQL
Working with Oracle GoldenGate Classic for Non-Oracle (MySQL)
After deploying Oracle GoldenGate Classic for Non-Oracle (My SQL) on Oracle Cloud Marketplace, you can access the latest release of Oracle GoldenGate Classic for Non-Oracle (My SQL).
Before you can start using Oracle GoldenGate Classic for Non-Oracle (My SQL), there are a few tasks that you must perform to ensure that your environment is complete and ready to replicate your data.
Before you begin data replication, you must perform the following tasks:
Topics:
- Establishing Connectivity
- Oracle GoldenGate for MySQL Requirements
- Configure Source MySQL Database for Remote Capture
- Configure Target MySQL Database for Remote Apply
- Starting GGSCI
- Configuring and Creating a Remote Extract for MySQL
- Configuring and Creating a Remote Replicat for MySQL
Parent topic: Oracle GoldenGate Classic for MySQL
Establishing Connectivity
The Oracle GoldenGate Classic for Non-Oracle (My SQL) on Oracle Cloud Marketplace compute node acts as a hub where you can manage your connections to source and target My SQL databases. To establish connectivity from an Oracle GoldenGate Classic for Non-Oracle (My SQL) compute node to your on-premises My SQL database, use the following options:
- IPSec VPN
- FastConnect
For establishing an IPSec VPN with OCI, refer to IPSec VPN documentation. For establishing a FastConnect connection, refer to the FastConnect documentation.
Oracle GoldenGate for MySQL Requirements
Before you can begin replicating data, for a MySQL database, review the instance, database and user requirements available in Installing Oracle GoldenGate for MySQL chapter of Installing Oracle GoldenGate Guide and Understanding What's Supported for MySQL chapter of Using Oracle GoldenGate for Heterogeneous Databases. These sections contain important information regarding database requirements and supported features.
Configure Source MySQL Database for Remote Capture
- Create and grant access permissions to an Oracle GoldenGate remote capture user.
Execute the following statements in a remote database to create a user and grant the required permissions for remote capture. The following example provides high level privileges for the created remote capture user :
mysql > CREATE USER 'sourceuser'@'dbhostname' IDENTIFIED BY 'password'; mysql > GRANT ALL PRIVILEGES ON *.* TO 'sourceuser'@'dbhostname'; mysql > FLUSH PRIVILEGES;
To know more about user permission requirements, refer to Database User for Oracle GoldenGate Processes for MySQL chapter of the Using Oracle GoldenGate for Heterogeneous Databases guide.
- The
server_id
value of the remote MySQL server should be greater than 0. You can verify this value by executing the following statement on the MySQL remote server:mysql > show variables like 'server_id';
If the
server_id
value is 0, modify themy.cnf
configuration file to set it to a value greater than 0.
Configure Target MySQL Database for Remote Apply
Create and grant access permissions to an Oracle GoldenGate remote apply user. Execute the following statements in a remote database to create a user and grant the required permissions for remote apply. The following example provides high level privileges for the created remote apply user :
mysql > CREATE USER 'targetuser'@'dbhostname' IDENTIFIED BY 'password';
mysql > GRANT ALL PRIVILEGES ON *.* TO 'targetuser'@'dbhostname';
mysql > FLUSH PRIVILEGES;
To know more about user permission requirements, refer to Database User for Oracle GoldenGate Processes for MySQL chapter of the Using Oracle GoldenGate for Heterogeneous Databases guide.
Starting GGSCI
$ cd mysql
$ ./ggsci