Create Replicat
post
/services/{version}/replicats/{replicat}
Create a new replicat process.
Request
Supported Media Types
- application/json
Path Parameters
-
replicat: string
Minimum Length:
1Maximum Length:8Pattern:^[A-Z_$][A-Z0-9_$]*$The name of the replicat. Replicat names are upper case, begin with an alphabetic character followed by up to seven alpha-numeric characters.
-
version: string
Oracle GoldenGate Service API version.
Allowed Values:[ "v2" ]
Root Schema : Oracle GoldenGate Replicat
Type:
objectTitle:
Show Source
Oracle GoldenGate Replicat-
$schema(optional):
Allowed Values:
[ "ogg:replicat" ] -
begin(optional):
begin
Starting point for data processing
-
checkpoint(optional):
checkpoint
Location for checkpoint data
-
config(optional):
array config
Minimum Number of Items:
0Maximum Number of Items:32767 -
credentials(optional):
credentials
Credentials for target database
-
critical(optional):
boolean
Default Value:
falseIndicates the replicat is critical to the deployment -
description(optional):
string
Minimum Length:
1Maximum Length:4095Description for the process -
encryptionProfile(optional):
encryptionProfile
-
intent(optional):
Default Value:
UnidirectionalAllowed Values:[ "High Availability", "Disaster Recovery", "Unidirectional", "N-Way", "Sharding" ]Intent for data capture workflow -
managedProcessSettings(optional):
managedProcessSettings
Control how the ER process is managed by the Administration Server
-
mode(optional):
mode
Mode of replication
-
registration(optional):
Default Value:
noneAllowed Values:[ "none", "standard" ]Registration with the target database -
source(optional):
source
Source of data to process
-
status(optional):
Default Value:
stoppedAllowed Values:[ "starting", "running", "stopped", "killed", "abended" ]Oracle GoldenGate Process Status -
synchronized(optional):
boolean
Indicates that the Replicat is stopped in a synchronized state
Nested Schema : begin
Starting point for data processing
Default Value:
nowMatch One
Show Source
-
Allowed Values:
[ "now" ] -
string
Minimum Length:
20Maximum Length:32Pattern:^[0-9]{4}[-](0[1-9]|1[0-2])[-](0[1-9]|[12][0-9]|3[01])[tT ]([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)([.][0-9]{1,6})?([zZ]|[+-][0-9][0-9]:[0-5][0-9])$ -
object begin-x-oneOf[2]
Nested Schema : checkpoint
Location for checkpoint data
Match One
Show Source
-
Allowed Values:
[ "files" ]Use the local filesystem to store checkpoint data -
object checkpoint-x-oneOf[1]
Use the specified table to store checkpoint information
Nested Schema : config
Type:
arrayMinimum Number of Items:
0Maximum Number of Items:
Show Source
32767-
Array of:
string
Minimum Length:
0Maximum Length:4095
Nested Schema : credentials
Credentials for target database
Default Value:
oracle.doceng.json.BetterJsonNull@64d7b720Match One
Show Source
Nested Schema : managedProcessSettings
Control how the ER process is managed by the Administration Server
Match One
Show Source
-
object managedProcessSettings-x-oneOf[0]
Custom settings
-
string
Minimum Length:
1Maximum Length:64Pattern:^[A-Za-z0-9][A-Za-z0-9_:-]*$Name of 'ogg:managedProcessSettings' configuration value
Nested Schema : mode
Mode of replication
Match One
Show Source
-
object mode-x-oneOf[0]
Creates a standard, non-integrated Replicat
-
object mode-x-oneOf[1]
(Oracle Only) Creates a standard, integrated Replicat
-
object mode-x-oneOf[2]
(Oracle Only) Coordinated Replicat
Nested Schema : source
Source of data to process
Match One
Show Source
-
Allowed Values:
[ "tables" ]Use tables (initial load) -
object source-x-oneOf[1]
-
object source-x-oneOf[2]
Nested Schema : begin-x-oneOf[2]
Type:
Show Source
object-
$schema(optional):
Allowed Values:
[ "type:position/atTrailRBA" ] -
offset(optional):
integer
Minimum Value:
0Maximum Value:2147483647Default Value:0Offset in trail sequence file -
sequence:
integer
Minimum Value:
0Maximum Value:999999999Default Value:0Trail file sequence number
Nested Schema : checkpoint-x-oneOf[1]
Type:
objectUse the specified table to store checkpoint information
Show Source
Nested Schema : credentials-x-oneOf[0]
Type:
Show Source
object-
$schema(optional):
Allowed Values:
[ "ogg:credentialsRef" ] -
alias:
string
Minimum Length:
1Maximum Length:30Pattern:^[a-zA-Z][a-zA-Z0-9_#$]*$ -
domain(optional):
string
Minimum Length:
1Maximum Length:30Default Value:OracleGoldenGatePattern:^[a-zA-Z][a-zA-Z0-9_#$]*$
Nested Schema : managedProcessSettings-x-oneOf[0]
Type:
objectCustom settings
Show Source
-
$schema(optional):
Allowed Values:
[ "ogg:managedProcessSettings" ] -
autoRestart(optional):
object autoRestart
Control how the ER process is restarted by the Administration Server if it terminates
-
autoStart(optional):
object autoStart
Description of how the ER process starts with Administration Server
Nested Schema : autoRestart
Type:
objectControl how the ER process is restarted by the Administration Server if it terminates
Default Value:
Show Source
{
"enabled":false,
"onSuccess":false,
"delay":0,
"retries":9,
"window":60,
"disableOnFailure":true
}-
$schema(optional):
Allowed Values:
[ "ogg:taskRestart" ] -
delay(optional):
integer
Minimum Value:
0Maximum Value:3600Default Value:0The amount of time, in seconds, to pause between discovering that a process has terminated abnormally and restarting the process. -
disableOnFailure(optional):
boolean
Default Value:
trueIf true, the task is disabled when it fails all execution attempts in an execution window. -
enabled:
boolean
Default Value:
falseIf set, the task can be restarted if it terminates. -
failures(optional):
integer
Minimum Value:
0Maximum Value:3600The number of times the task failed in the current window. -
onSuccess(optional):
boolean
Default Value:
falseIf false, the task is only restarted if it fails. -
retries(optional):
integer
Minimum Value:
0Maximum Value:3600Default Value:9The maximum number of times the task should be restarted before aborting retry efforts. -
window(optional):
integer
Minimum Value:
0Maximum Value:604800Default Value:60The window of time, in seconds, during which retries are counted.
Nested Schema : autoStart
Type:
objectDescription of how the ER process starts with Administration Server
Show Source
-
delay(optional):
integer
Minimum Value:
0Maximum Value:3600Default Value:0Time to wait in seconds before starting process -
enabled:
boolean
Default Value:
falseIf set, the process is started when Administration Server starts
Nested Schema : mode-x-oneOf[0]
Type:
objectCreates a standard, non-integrated Replicat
Show Source
-
parallel(optional):
boolean
Default Value:
falseApply multiple operations in parallel -
type:
Allowed Values:
[ "nonintegrated" ]
Nested Schema : mode-x-oneOf[1]
Type:
object(Oracle Only) Creates a standard, integrated Replicat
Show Source
-
parallel(optional):
boolean
Default Value:
falseApply multiple operations in parallel -
type:
Allowed Values:
[ "integrated" ]
Nested Schema : mode-x-oneOf[2]
Type:
object(Oracle Only) Coordinated Replicat
Show Source
-
maxThreads(optional):
integer
Minimum Value:
1Maximum Value:500Default Value:25 -
threadNumber(optional):
integer
Minimum Value:
1Maximum Value:500 -
type:
Allowed Values:
[ "coordinated" ]
Nested Schema : source-x-oneOf[1]
Type:
Show Source
object-
name:
string
Minimum Length:
2Maximum Length:2Pattern:^[A-Za-z][A-Za-z0-9]$The name of the trail -
path(optional):
string
Minimum Length:
1Maximum Length:4096The path where the trail data is stored
Nested Schema : source-x-oneOf[2]
Type:
Show Source
object-
$schema(optional):
Allowed Values:
[ "ogg:file" ] -
filename:
string
Minimum Length:
1Maximum Length:4096The name of the file -
remote(optional):
boolean
Default Value:
falseIndicates if file is local or remote
Example Request (application/json)
{
"config":[
"Replicat REP2",
"UseridAlias oggadmin",
"Map oggadmin.*,",
" Target oggadmin.*;"
],
"source":{
"name":"X2"
},
"credentials":{
"alias":"oggadmin"
},
"checkpoint":{
"table":"oggadmin.checkpoints"
}
}
Response
Supported Media Types
- application/json
201 Response
The replicat process was created successfully.
Root Schema : RESTful API Standard Response
Type:
objectTitle:
RESTful API Standard ResponseStandard Response for all Oracle GoldenGate RESTful API calls
Show Source
-
$schema(optional):
Allowed Values:
[ "api:standardResponse" ] -
links:
array links
Minimum Number of Items:
0Maximum Number of Items:16Oracle GoldenGate links for the request -
messages:
array messages
Minimum Number of Items:
0Maximum Number of Items:65535Oracle GoldenGate messages issued during the request -
response(optional):
object response
Oracle GoldenGate document from the request
Nested Schema : links
Type:
arrayMinimum Number of Items:
0Maximum Number of Items:
16Oracle GoldenGate links for the request
Show Source
Nested Schema : messages
Type:
arrayMinimum Number of Items:
0Maximum Number of Items:
65535Oracle GoldenGate messages issued during the request
Show Source
Nested Schema : response
Type:
objectOracle GoldenGate document from the request
Nested Schema : items
Type:
Show Source
object-
$schema(optional):
Allowed Values:
[ "ogg:link" ] -
description(optional):
string
Minimum Length:
1Maximum Length:4095A human-readable description that provides information and detail specific to this link. -
href:
string
Minimum Length:
2Maximum Length:4095Pattern:^[a-zA-Z][a-zA-Z0-9+-.]*:[^ \t]*$An absolute URI for the link -
mediaType(optional):
string
Minimum Length:
6Maximum Length:255Pattern:^(text|application)/[a-zA-Z0-9!#$&.+-^_]+$Media type - see RFC 4288 (https://tools.ietf.org/html/rfc4288) -
rel:
Allowed Values:
[ "alternate", "canonical", "current", "describedby", "describes", "enclosure", "parent", "related", "self", "first", "last", "next", "previous" ]Relationship of href to the requested link
Nested Schema : items
Type:
Show Source
object-
$schema(optional):
Allowed Values:
[ "ogg:message" ] -
code:
string
Minimum Length:
9Maximum Length:9Pattern:^OGG[-][0-9]{5}$The Oracle GoldenGate message code -
issued:
string
Minimum Length:
20Maximum Length:32Pattern:^[0-9]{4}[-](0[1-9]|1[0-2])[-](0[1-9]|[12][0-9]|3[01])[tT ]([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)([.][0-9]{1,6})?([zZ]|[+-][0-9][0-9]:[0-5][0-9])$The date and time that the message was issued -
severity:
Allowed Values:
[ "INFO", "WARNING", "ERROR" ]The severity of the message -
title:
string
Minimum Length:
1Maximum Length:4095A human-readable description that provides information and detail specific to this occurence of the information, warning or error. -
type:
string
Minimum Length:
2Maximum Length:4095Pattern:^[a-zA-Z][a-zA-Z0-9+-.]*:[^ \t]*$An absolute URI [RFC3986] to a page that describes the info, warning or error type.
Example Response (application/json)
{
"$schema":"api:standardResponse",
"links":[
{
"href":"http://localhost:11001/services/v2/replicats/REP2",
"mediaType":"application/json",
"rel":"canonical"
},
{
"href":"http://localhost:11001/services/v2/replicats/REP2",
"mediaType":"application/json",
"rel":"self"
}
],
"messages":[
{
"$schema":"ogg:message",
"code":"OGG-08100",
"issued":"2019-03-15T14:42:35Z",
"severity":"INFO",
"title":"REPLICAT added.",
"type":"http://docs.oracle.com/goldengate/c1910/gg-winux/GMESG/oggus.htm#OGG-08100"
},
{
"$schema":"ogg:message",
"code":"OGG-10183",
"issued":"2019-03-15T14:42:35Z",
"severity":"INFO",
"title":"Parameter file REP2.prm: Validity check: PASS",
"type":"http://docs.oracle.com/goldengate/c1910/gg-winux/GMESG/oggus.htm#OGG-10183"
}
]
}