Skip to contentManaged Kafka is live: Apache Kafka on AWS for half the cost of MSK

Connectors

Generate Oracle shadow table script

POST/connectors/{uuid}/generate-shadow-script

Generates the SQL script to create shadow tables required for Oracle change data capture (CDC). Run this script on your Oracle source before starting replication.

Authorizations

  • Authorizationstringheaderrequired

    API key passed as a Bearer token in the Authorization header.

Request

curl --request POST \
  --url https://api.artie.com/connectors/{uuid}/generate-shadow-script \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "database": "<string>",
  "tables": [
    {
      "columns": [
        {
          "metadata": {
            "dataType": "<string>",
            "defaultValue": "<string>",
            "isPrimaryKey": true,
            "notNull": true
          },
          "name": "<string>"
        }
      ],
      "name": "<string>",
      "schema": "<string>"
    }
  ]
}'

Path parameters

  • uuidstringrequired

Body

application/json

  • databasestringrequired
  • tablesobject[]required
    Show child attributes
    • columnsobject[]required
      Show child attributes
      • metadataobjectrequired
        Show child attributes
        • dataTypestringrequired
        • defaultValuestring | null
        • isPrimaryKeyboolean | null
        • notNullbooleanrequired
      • namestringrequired
    • namestringrequired
    • schemastringrequired

Responses

200OKapplication/json

  • scriptstringrequired

400Bad Request

500Internal Server Error

200 OK
{
  "script": "<string>"
}

Was this page helpful?