Replicate data from PostgreSQL to MySQL
Before you begin
To successfully complete this quicktart, you must have the following:
- A PostgreSQL installation to serve as the source database (Installation instructions follow in Environment set up).
- Open port 5432 in your VCN's security list to be able to access PostgreSQL on its default port.
- An HeatWave Database to serve as the target database.
Task 1: Create the OCI GoldenGate Resources
This quickstart example requires deployments and connections for both
the source and target.
- Create a deployment for the source PostgreSQL database.
- Create a MySQL deployment for the target HeatWave Database.
- Create a PostgreSQL connection.
- For Type, select PostgreSQL Server from the dropdown.
- For Database name, enter
ociggll
. - For Host, enter the public IP of the Compute instance that PostgreSQL runs on.
- For Port, enter
5432
. - For Username, enter
ggadmin
. - For Password, enter your password.
- For Security Protocol, select Plain from the dropdown.
- Create a HeatWave connection.
- (Optional) If your HeatWave Database doesn't have a public endpoint, then create a connection to GoldenGate, and then assign this connection to the source PostgreSQL deployment.
- Assign the source connection to the source PostgreSQL deployment.
- Assign the target connection to the target MySQL deployment.
Task 3: Create the Extracts
- Add the Change Data Capture Extract:
- Add the Initial Load Extract:
You return to the Extracts
page, where you can observe the Extract
starting.
Task 4: Create the Distribution Path for Initial Load Extract
To create a Distribution Path for Initial Load Extract, complete the following:
Task 6: Create the Distribution Path for Change Data Capture
To create a Distribution Path for Change Data Capture, complete the following:
- In the source PostgreSQL deployment console, click Distribution Service.
- Click Add Distribution Path.
- Complete the Add Path form as follows:
- In the target MySQL deployment console, click Receiver Service, and then review the Receiver Path created.