You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-24Lines changed: 10 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,8 +22,9 @@ To run `OKafka application` against Oracle Database, a database user must be cre
22
22
23
23
```roomsql
24
24
create user <user> identified by <password>
25
-
GRANT CONNECT , RESOURCE to user;
26
-
GRANT UNLIMITED TABLESPACE to user;
25
+
26
+
GRANT AQ_USER_ROLE to user;
27
+
GRANT CONNECT, RESOURCE, unlimited tablespace to user;
27
28
GRANT EXECUTE on DBMS_AQ to user;
28
29
GRANT EXECUTE on DBMS_AQADM to user;
29
30
GRANT EXECUTE on DBMS_AQIN to user;
@@ -34,7 +35,8 @@ GRANT SELECT on GV_$INSTANCE to user;
34
35
GRANT SELECT on GV_$LISTENER_NETWORK to user;
35
36
GRANT SELECT on GV_$PDBS to user;
36
37
GRANT SELECT on USER_QUEUE_PARTITION_ASSIGNMENT_TABLE to user;
37
-
exec DBMS_AQADM.GRANT_PRIV_FOR_RM_PLAN('user');
38
+
GRANT SELECT on SYS.DBA_RSRC_PLAN_DIRECTIVES to user;
39
+
EXEC DBMS_AQADM.GRANT_PRIV_FOR_RM_PLAN('user');
38
40
```
39
41
40
42
Note:
@@ -134,29 +136,13 @@ gradle javadoc
134
136
135
137
## Examples
136
138
137
-
Repository contains 7 common OKafka application examples in `examples` folder.
138
-
139
-
`1. CreateTopic.java` -
140
-
Connects to Oracle Database and create a topic TXEQ with 10 partitions with default retention time of 7 days.
141
-
142
-
`2. DeleteTopic.java`
143
-
Deletes already created OKafka topic.
144
-
145
-
`3. SimpleProducer.java`
146
-
Produces 100 messages into TxEQ topic.
147
-
148
-
`4. SimpleConsumer.java`
149
-
Consumes 100 messages from TxEQ topic.
150
-
151
-
`5. TransactionalProducer.java`
152
-
Retrieves the Oracle Database Connection object from OKafka producer. Atomically performs a DML operation and sends a record.
153
-
154
-
`6. TransactionalConsumer.java`
155
-
Retrieves the Oracle Database Connection object from OKafka consumer. Atomically consumes a batch of records and perform DML operation for each record.
139
+
Repository contains 2 common OKafka application examples in `examples` folder.
156
140
141
+
`1. ProducerOKafka.java`
142
+
Produces 10 messages into TxEQ topic.
157
143
158
-
`7. TransactionalProduceConsume.java`
159
-
Atomically consumes a batch of messages from TXEQ topic using OKafka Consumer, processes records from the batch and produces them in the tpic TxEQ_2 using OKafka Producer. To achieve atomicity for this these consume-process-produce operations, application retrieves the Oracle Database Connection object from OKafka Consumer and pass it to create an OKafka Producer.
0 commit comments