File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
src/main/java/com/example/okafka Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 11-- Set as appropriate for your database.
22alter session set container = freepdb1;
33
4- -- user for okafka
4+ -- user for okafka. You may modify tablespace grants as appropriate.
55create user TESTUSER identified by testpwd;
66grant create session to TESTUSER;
77grant resource, connect, unlimited tablespace to TESTUSER;
88
99-- okafka permissions
10+ -- AQ User role to be able to use AQ
1011grant aq_user_role to TESTUSER;
12+ -- To be able to invoke operations from AQ-JMS
1113grant execute on dbms_aq to TESTUSER;
14+ -- To be able to create transactional event queue and subscriber
1215grant execute on dbms_aqadm to TESTUSER;
16+ -- To be able to discover other RAC nodes of the database
1317grant select on gv_$session to TESTUSER;
1418grant select on v_$session to TESTUSER;
1519grant select on gv_$instance to TESTUSER;
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ public static void main(String[] args) {
2525 .all ()
2626 .get ();
2727 System .out .println ("[ADMIN] Created topic: " + testTopic .name ());
28+ System .out .println ("[ADMIN] Created transactional topic: " + transactionalTestTopic .name ());
2829 } catch (ExecutionException | InterruptedException e ) {
2930 if (e .getCause () instanceof TopicExistsException ) {
3031 System .out .println ("[ADMIN] Topic already exists" );
You can’t perform that action at this time.
0 commit comments