Skip to content

Commit d59196a

Browse files
authored
WIP: tollbooth demo data generator (#874)
* collecting inputs for data-gen --------- Signed-off-by: Mark Nelson <mark.x.nelson@oracle.com>
1 parent f97c0d0 commit d59196a

File tree

11 files changed

+1331
-6
lines changed

11 files changed

+1331
-6
lines changed

tolldemo/TEMP

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ grant execute on DBMS_RESOURCE_MANAGER to tolldemo;
99
grant select_catalog_role to tolldemo;
1010
grant select on sys.aq$_queue_shards to tolldemo;
1111
grant select on user_queue_partition_assignment_table to tolldemo;
12-
exec dbms_teqk.AQ$_GRANT_PRIV_FOR_REPL('TOLLDEMO');
12+
--exec dbms_teqk.AQ$_GRANT_PRIV_FOR_REPL('TOLLDEMO');
1313
commit;
1414

1515
connect tolldemo/Welcome12345
1616

1717
begin
18-
dbms_awadm.create_sharded_queue (queue_name => 'TollGate', multiple_consumers => true);
19-
dbms_awadm.set_queue_parameter(tname, 'KEY_BASED_ENQUEUE', 2);
20-
dbms_awadm.set_queue_parameter(tname, 'SHARD_NUM', 5);
21-
dbms_awadm.start_queue(tname) ;
18+
dbms_aqadm.create_transactional_event_queue (queue_name => 'TollGate', multiple_consumers => true);
19+
dbms_aqadm.set_queue_parameter(tname, 'KEY_BASED_ENQUEUE', 2);
20+
dbms_aqadm.set_queue_parameter(tname, 'SHARD_NUM', 5);
21+
dbms_aqadm.start_queue(tname) ;
2222
end;

tolldemo/data-generator/pom.xml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
<modelVersion>4.0.0</modelVersion>
5+
<parent>
6+
<groupId>org.springframework.boot</groupId>
7+
<artifactId>spring-boot-starter-parent</artifactId>
8+
<version>3.2.4</version>
9+
<relativePath/> <!-- lookup parent from repository -->
10+
</parent>
11+
<groupId>com.example</groupId>
12+
<artifactId>data-generator</artifactId>
13+
<version>0.0.1-SNAPSHOT</version>
14+
<name>data-generator</name>
15+
<description>Demo project for Spring Boot</description>
16+
<properties>
17+
<java.version>21</java.version>
18+
</properties>
19+
<dependencies>
20+
<dependency>
21+
<groupId>org.springframework.boot</groupId>
22+
<artifactId>spring-boot-starter</artifactId>
23+
</dependency>
24+
25+
<dependency>
26+
<groupId>org.springframework.boot</groupId>
27+
<artifactId>spring-boot-starter-test</artifactId>
28+
<scope>test</scope>
29+
</dependency>
30+
</dependencies>
31+
32+
<build>
33+
<plugins>
34+
<plugin>
35+
<groupId>org.springframework.boot</groupId>
36+
<artifactId>spring-boot-maven-plugin</artifactId>
37+
</plugin>
38+
</plugins>
39+
</build>
40+
41+
</project>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package com.example.datagenerator;
2+
3+
import org.springframework.boot.SpringApplication;
4+
import org.springframework.boot.autoconfigure.SpringBootApplication;
5+
6+
@SpringBootApplication
7+
public class DataGeneratorApplication {
8+
9+
public static void main(String[] args) {
10+
SpringApplication.run(DataGeneratorApplication.class, args);
11+
}
12+
13+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
spring.application.name=data-generator
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
James
2+
Robert
3+
John
4+
Michael
5+
David
6+
William
7+
Richard
8+
Joseph
9+
Thomas
10+
Christopher
11+
Charles
12+
Daniel
13+
Matthew
14+
Anthony
15+
Mark
16+
Donald
17+
Steven
18+
Andrew
19+
Paul
20+
Joshua
21+
Kenneth
22+
Kevin
23+
Brian
24+
George
25+
Timothy
26+
Ronald
27+
Jason
28+
Edward
29+
Jeffrey
30+
Ryan
31+
Jacob
32+
Gary
33+
Nicholas
34+
Eric
35+
Jonathan
36+
Stephen
37+
Larry
38+
Justin
39+
Scott
40+
Brandon
41+
Benjamin
42+
Samuel
43+
Gregory
44+
Alexander
45+
Patrick
46+
Frank
47+
Raymond
48+
Jack
49+
Dennis
50+
Jerry
51+
Tyler
52+
Aaron
53+
Jose
54+
Adam
55+
Nathan
56+
Henry
57+
Zachary
58+
Douglas
59+
Peter
60+
Kyle
61+
Noah
62+
Ethan
63+
Jeremy
64+
Walter
65+
Christian
66+
Keith
67+
Roger
68+
Terry
69+
Austin
70+
Sean
71+
Gerald
72+
Carl
73+
Harold
74+
Dylan
75+
Arthur
76+
Lawrence
77+
Jordan
78+
Jesse
79+
Bryan
80+
Billy
81+
Bruce
82+
Gabriel
83+
Joe
84+
Logan
85+
Alan
86+
Juan
87+
Albert
88+
Willie
89+
Elijah
90+
Wayne
91+
Randy
92+
Vincent
93+
Mason
94+
Roy
95+
Ralph
96+
Bobby
97+
Russell
98+
Bradley
99+
Philip
100+
Eugene

0 commit comments

Comments
 (0)