Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion code-teq/okafka-lab/oraclefree/grant_permissions.sql
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
-- Set as appropriate for your database.
alter session set container = freepdb1;

-- user for okafka
-- user for okafka. You may modify tablespace grants as appropriate.
create user TESTUSER identified by testpwd;
grant create session to TESTUSER;
grant resource, connect, unlimited tablespace to TESTUSER;
Comment on lines 6 to 7
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're requiring 26ai maybe you should replace with the db_developer_role


-- okafka permissions
-- AQ User role to be able to use AQ
grant aq_user_role to TESTUSER;
-- To be able to invoke operations from AQ-JMS
grant execute on dbms_aq to TESTUSER;
-- To be able to create transactional event queue and subscriber
grant execute on dbms_aqadm to TESTUSER;
-- To be able to discover other RAC nodes of the database
grant select on gv_$session to TESTUSER;
grant select on v_$session to TESTUSER;
grant select on gv_$instance to TESTUSER;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public static void main(String[] args) {
.all()
.get();
System.out.println("[ADMIN] Created topic: " + testTopic.name());
System.out.println("[ADMIN] Created transactional topic: " + transactionalTestTopic.name());
} catch (ExecutionException | InterruptedException e) {
if (e.getCause() instanceof TopicExistsException) {
System.out.println("[ADMIN] Topic already exists");
Expand Down