This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- 01_load_source.sql | |
| -- Appends generated fixture data to the SYD source database only. | |
| -- Prerequisite: run 00_create_schema.sql once on a fresh database. | |
| -- Usage: psql -X "$SOURCE_DSN" -v ON_ERROR_STOP=1 -v rows=100000 -f 01_load_source.sql | |
| \set ON_ERROR_STOP on | |
| -- Validate the psql variable before it is cast or used in SQL. :'rows' | |
| -- quotes the value as a SQL literal and avoids raw variable substitution. | |
| \if :{?rows} | |
| \else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- 00_create_schema.sql | |
| -- Creates the complete DVD rental schema and source-only generator procedure. | |
| -- Fresh database only. Run on SYD, MEL, and SGP; this file loads no rows. | |
| -- Usage: psql -X "$DB_DSN" -v ON_ERROR_STOP=1 -f 00_create_schema.sql | |
| \set ON_ERROR_STOP on | |
| -- Fresh database only. Deliberately fails if dvdrental already exists. | |
| -- Original lab implementation of the 15-table DVD rental model, not the | |
| -- canonical sample dump. All surrogate keys use bigint; temporal columns use timestamptz. | |
| BEGIN; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -u <user>:"<password>" | |
| -H "Content-Type: application/json" | |
| -H "Accept: application/json" | |
| -X GET https://pxxxxxxxq.deployment.goldengate.us-ashburn-1.oci.oraclecloud.com/services/v2/config/health/check |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -X "POST" "https://pxxxxxxxq.deployment.goldengate.us-ashburn-1.oci.oraclecloud.com/services/v2/credentials/{domain}/{alias} \ | |
| -H 'Content-Type: application/json' \ | |
| -H 'Accept: application/json' \ | |
| -u 'user:password' \ | |
| -d $'{ | |
| "userid": "oggadmin@//localhost:1521/ORCL", | |
| "password": "oggadmin" | |
| }' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -u <user>:"<password>" | |
| -H "Content-Type: application/json" | |
| -H "Accept: application/json" | |
| -X GET https://pxxxxxq.deployment.goldengate.us-ashburn-1.oci.oraclecloud.com/services/v2/logs/events |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -u <user>:"<password>" | |
| -H "Content-Type: application/json" | |
| -H "Accept: application/json" | |
| -X GET https://pxxxxxxq.deployment.goldengate.us-ashburn-1.oci.oraclecloud.com/services/v2/replicats/<replicat name>/info/reports/<replicat name>.dsc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -u <user>:"<password>" | |
| -H "Content-Type: application/json" | |
| -H "Accept: application/json" | |
| -X GET https://pxxxxxxxq.deployment.goldengate.us-ashburn-1.oci.oraclecloud.com/services/v2/extracts/<extract name>/info/reports/<extract name>.dsc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -X "POST" "https://pxxxxxxq.deployment.goldengate.us-ashburn-1.oci.oraclecloud.com/services/v2/replicats/<replicat name>/command" \ | |
| -H 'Content-Type: application/json' \ | |
| -H 'Accept: application/json' \ | |
| -u 'user:password' \ | |
| -d $'{ | |
| "command": "GETLAG" | |
| }' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -X "POST" "https://pxxxxxxq.deployment.goldengate.us-ashburn-1.oci.oraclecloud.com/services/v2/extracts/<extract name>/command" \ | |
| -H 'Content-Type: application/json' \ | |
| -H 'Accept: application/json' \ | |
| -u 'user:password' \ | |
| -d $'{ | |
| "command": "GETLAG" | |
| }' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| curl -u <user>:"<password>" -H "Content-Type: application/json" -H "Accept: application/json" -X POST https://<deployment URL>:<port>/services/v2/connections/<domain>.<credential>/trandata/schema -d '{ "operation":"add", "schemaName":"<schema>" }' | |
| curl -u <user>:"<password>" | |
| -H "Content-Type: application/json" | |
| -H "Accept: application/json" | |
| -X POST https://pxxxxxq.deployment.goldengate.us-ashburn-1.oci.oraclecloud.com/services/v2/connections/OracleGoldenGate.ggashburn/trandata/schema -d '{ "operation":"add", "schemaName":"admin" }' |
NewerOlder