Skip to content

Commit 6f97c55

Browse files
Merge pull request #1105 from oracle/fix-lab-scripts
Fix lab scripts
2 parents 44ea052 + 2a86299 commit 6f97c55

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
drop view ticket_dv;
2+
drop table related_ticket;
3+
drop index ticket_Vector_ivf_idx;
4+
drop table support_ticket;
5+
6+
-- drop the user to completely remove the lab schema
7+
drop user testuser cascade;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
truncate table related_ticket;
2+
truncate table support_ticket;
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
-- app user and grants
2+
create user testuser identified by testPWD12345
3+
4+
grant unlimited tablespace to testuser;
5+
grant connect, resource to testuser;
6+
7+
-- For TxEventQ
8+
grant aq_user_role to testuser;
9+
grant execute on dbms_aq to testuser;
10+
grant execute on dbms_aqadm to testuser;
11+
grant select on sys.gv_$session to testuser;
12+
grant select on sys.v_$session to testuser;
13+
grant select on sys.gv_$instance to testuser;
14+
grant select on sys.gv_$listener_network to testuser;
15+
grant select on sys.dba_rsrc_plan_directives to testuser;
16+
grant select on sys.gv_$pdbs to testuser;
17+
exec dbms_aqadm.grant_priv_for_rm_plan('testuser');
18+
commit;

0 commit comments

Comments
 (0)