Skip to content

Commit f32d113

Browse files
committed
Updated examples. Added example for Oracle with TCPS and BLOB.
1 parent f5cfa53 commit f32d113

15 files changed

+172
-2
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"partitions" : 1,
3+
"pipeline": {
4+
"stages": [
5+
{
6+
"index": 1,
7+
"stageName": "LOB_TO_JSON",
8+
"userDefinedType": "CUSTOM"
9+
},
10+
{
11+
"database": {
12+
"credentialsFilePath" : "/opt/redislabs/redis-connect/config/samples/credentials",
13+
"databaseURL": "redis://127.0.0.1:14000",
14+
"databaseType": "REDIS",
15+
"customConfiguration": {
16+
"redis.connection.sslEnabled": false,
17+
"truststore": "/opt/redislabs/redis-connect/config/samples/credentials/client-truststore.jks"
18+
}
19+
},
20+
"index": 2,
21+
"stageName": "REDIS_JSON_SINK",
22+
"checkpointStageIndicator": true,
23+
"metricsEnabled" : true
24+
}
25+
]
26+
},
27+
"source": {
28+
"slowConsumerMaxRetryAttempts": -1,
29+
"database": {
30+
"credentialsFilePath": "/opt/redislabs/redis-connect/config/samples/credentials",
31+
"databaseURL": "jdbc:oracle:thin:@172.17.0.1:1521/ORCLPDB1",
32+
"databaseType": "ORACLE",
33+
"customConfiguration": {
34+
"database.dbname" : "ORCLCDB",
35+
"database.hostname" : "172.17.0.1",
36+
"database.port" : 1521,
37+
"database.pdb.name": "ORCLPDB1",
38+
"lob.enabled": true
39+
}
40+
},
41+
"tables": {
42+
"C##RCUSER.CLOB_DATA1": {
43+
"columns": [
44+
{ "targetColumn": "ID", "sourceColumn": "ID", "primaryKey": true},
45+
{ "targetColumn": "CLOB_DATA1", "sourceColumn": "CLOB_DATA1", "type": "CLOB"}
46+
],
47+
"initialLoad": {
48+
"partitions": 4
49+
},
50+
"passThroughEnabled": true
51+
},
52+
"C##RCUSER.CLOB_DATA2": {
53+
"columns": [
54+
{ "targetColumn": "ID", "sourceColumn": "ID", "primaryKey": true},
55+
{ "targetColumn": "CLOB_DATA2", "sourceColumn": "CLOB_DATA2", "type": "CLOB"}
56+
],
57+
"initialLoad": {
58+
"partitions": 4
59+
},
60+
"passThroughEnabled": true
61+
},
62+
"C##RCUSER.BLOB_DATA1": {
63+
"columns": [
64+
{ "targetColumn": "ID", "sourceColumn": "ID", "primaryKey": true},
65+
{ "targetColumn": "BLOB_DATA1", "sourceColumn": "BLOB_DATA1", "type": "BLOB"}
66+
],
67+
"initialLoad": {
68+
"partitions": 4
69+
},
70+
"passThroughEnabled": true
71+
}
72+
}
73+
}
74+
}

examples/oracle/demo/config/samples/payloads/cdc-job.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
"source": {
2323
"database": {
2424
"credentialsFilePath": "/opt/redislabs/redis-connect/config/samples/credentials",
25-
"databaseURL": "jdbc:oracle:thin:@172.17.0.1:1522/ORCLPDB1",
25+
"databaseURL": "jdbc:oracle:thin:@172.17.0.1:1521/ORCLPDB1",
2626
"databaseType": "ORACLE",
2727
"customConfiguration": {
2828
"database.dbname" : "ORCLCDB",
2929
"database.hostname" : "172.17.0.1",
30-
"database.port" : 1522,
30+
"database.port" : 1521,
3131
"database.pdb.name": "ORCLPDB1"
3232
}
3333
},
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
{
2+
"partitions" : 1,
3+
"pipeline": {
4+
"stages": [
5+
{
6+
"database": {
7+
"credentialsFilePath" : "/opt/redislabs/redis-connect/config/samples/credentials",
8+
"databaseURL": "redis://127.0.0.1:14000",
9+
"databaseType": "REDIS",
10+
"customConfiguration": {
11+
"redis.connection.sslEnabled": false,
12+
"truststore": "/opt/redislabs/redis-connect/config/samples/credentials/client-truststore.jks"
13+
}
14+
},
15+
"index": 1,
16+
"stageName": "REDIS_HASH_SINK",
17+
"checkpointStageIndicator": true,
18+
"metricsEnabled" : true
19+
}
20+
]
21+
},
22+
"source": {
23+
"database": {
24+
"credentialsFilePath": "/opt/redislabs/redis-connect/config/samples/credentials",
25+
"databaseURL": "jdbc:oracle:thin:@(DESCRIPTION= (ADDRESS= (PROTOCOL=TCPS)(PORT=2484)(HOST=172.17.0.1)) (CONNECT_DATA=(SERVICE_NAME=ORCLPDB1)) (SECURITY=(ssl_server_cert_dn=\"CN=localhost\")))",
26+
"databaseType": "ORACLE",
27+
"customConfiguration": {
28+
"database.dbname" : "ORCLCDB",
29+
"database.url" : "jdbc:oracle:thin:@(DESCRIPTION= (ADDRESS= (PROTOCOL=TCPS)(PORT=2484)(HOST=172.17.0.1)) (CONNECT_DATA=(SERVICE_NAME=ORCLPDB1)) (SECURITY=(ssl_server_cert_dn=\"CN=localhost\")))",
30+
"database.pdb.name": "ORCLPDB1",
31+
"truststore": "/opt/redislabs/redis-connect/config/samples/credentials/OracleTrustStore.jks"
32+
}
33+
},
34+
"tables": {
35+
"C##RCUSER.EMP": {
36+
"columns": [
37+
{ "targetColumn": "EMPNO", "sourceColumn": "EMPNO", "primaryKey": true},
38+
{ "targetColumn": "HIREDATE", "sourceColumn": "HIREDATE", "type": "DATE"}
39+
],
40+
"passThroughEnabled": true
41+
}
42+
}
43+
}
44+
}
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)