-
Notifications
You must be signed in to change notification settings - Fork 196
Oracle db support #379
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Oracle db support #379
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
45eb56e
Oracle DB support workflow test
ngbanguyen 913b417
Oracle DB service name
ngbanguyen b9c0355
Move user reset to sql script inside Docker
ngbanguyen 77ef9e2
Error rate fix for tpcc/resourcestresser
ngbanguyen ec0efe0
Templated benchmark default oracle config. Oracle workflow with templ…
ngbanguyen d1c6e47
Move to Oracle 21 XE
ngbanguyen 20419c9
Update src/main/resources/benchmarks/sibench/ddl-oracle.sql
ngbanguyen 09f92a9
Remove unnecessary file change
ngbanguyen 700aba9
Moved copyright to contributor file
ngbanguyen 07b2cb2
Address comments
ngbanguyen 9484adc
Update src/main/resources/benchmarks/auctionmark/ddl-oracle.sql
ngbanguyen 0d8540f
Merge branch 'main' into oracle-db-support
apavlo 253f021
Update src/main/java/com/oltpbenchmark/benchmarks/auctionmark/Auction…
bpkroth ece5606
Update src/main/java/com/oltpbenchmark/util/SQLUtil.java
bpkroth b03cdc5
Merge branch 'main' into oracle-db-support
apavlo 63fcf6b
Update reset.sql location for GitHub Actions
ngbanguyen 583c395
Moved after load functionality to BenchmarkModule. Added test for aft…
ngbanguyen 592e5ef
Merge branch 'main' into oracle-db-support
ngbanguyen d4be869
Merge branch 'main' into oracle-db-support
ngbanguyen e1a4b12
Merge branch 'main' into oracle-db-support
bpkroth e827b3d
Merge branch 'main' into oracle-db-support
bpkroth efd02ba
Apply suggestions
ngbanguyen 2d06e75
Address comments
ngbanguyen 892e37a
Merge branch 'main' into oracle-db-support
ngbanguyen 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
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?xml version="1.0"?> | ||
<parameters> | ||
|
||
<!-- Connection details --> | ||
<type>ORACLE</type> | ||
<driver>oracle.jdbc.OracleDriver</driver> | ||
<url>jdbc:oracle:thin:@localhost:1521/xepdb1</url> | ||
<username>benchbase</username> | ||
<password>password</password> | ||
<isolation>TRANSACTION_SERIALIZABLE</isolation> | ||
<batchsize>128</batchsize> | ||
|
||
<!-- Scalefactor in AuctionMark scales by *1000 the number of customers--> | ||
<scalefactor>1</scalefactor> | ||
|
||
<!-- The workload --> | ||
<terminals>1</terminals> | ||
<works> | ||
<work> | ||
<time>60</time> | ||
<rate>10000</rate> | ||
<weights>45, 10, 20, 2, 1, 4, 10, 5, 3</weights> | ||
</work> | ||
</works> | ||
|
||
<!-- AuctionMark Procedures declaration --> | ||
<transactiontypes> | ||
<transactiontype> | ||
<name>GetItem</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>GetUserInfo</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>NewBid</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>NewComment</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>NewCommentResponse</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>NewFeedback</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>NewItem</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>NewPurchase</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>UpdateItem</name> | ||
</transactiontype> | ||
</transactiontypes> | ||
</parameters> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,166 @@ | ||
<?xml version="1.0"?> | ||
<parameters> | ||
|
||
<!-- Connection details --> | ||
<type>ORACLE</type> | ||
<driver>oracle.jdbc.OracleDriver</driver> | ||
<url>jdbc:oracle:thin:@localhost:1521/xepdb1</url> | ||
<username>benchbase</username> | ||
<password>password</password> | ||
<isolation>TRANSACTION_SERIALIZABLE</isolation> | ||
<batchsize>128</batchsize> | ||
|
||
<!-- Scale factor is the number of warehouses in TPCC --> | ||
<scalefactor>1</scalefactor> | ||
|
||
<!-- The workload --> | ||
<!-- Number of terminal per workload --> | ||
<terminals>1</terminals> | ||
|
||
<!-- Gather schema stats after loading to improve performance --> | ||
<!-- See src/main/resources/benchmarks/gather_schema_stats_oracle.sql --> | ||
<afterload>/benchmarks/gather_schema_stats_oracle.sql</afterload> | ||
|
||
<!-- Extra Features (Commented Out) --> | ||
<!-- Can be workload-specific --> | ||
<!-- <terminals bench="tpcc">2</terminals> --> | ||
|
||
<!-- Workload-specific options a marked with @bench=[workload_name] --> | ||
<!-- Workload-specific number of terminals --> | ||
<!-- <terminals bench="chbenchmark">2</terminals> --> | ||
|
||
<works> | ||
|
||
<!-- A Basic WorkPhase for Mixed Workloads --> | ||
<work> | ||
<time>60</time> | ||
|
||
<!-- Note: The rate can be set to UNLIMITED or DISABLED --> | ||
<rate>200</rate> | ||
|
||
<!-- Need to Specify transaction weights for each workload .. Otherwise the number of fields won't match --> | ||
<weights bench="tpcc">45,43,4,4,4</weights> | ||
<weights bench="chbenchmark">3, 2, 3, 2, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5</weights> | ||
</work> | ||
|
||
<!-- Extra features showcase --> | ||
<!-- Extra features showcase --> | ||
<!-- <work> --> | ||
<!-- <time>60</time> --> | ||
|
||
<!-- <rate>200</rate> --> | ||
<!-- <rate bench="chbenchmark">disabled</rate> --> | ||
|
||
<!-- NOTE: TPCC workers won't be distributed evenly between warehouses if not all workers are active --> | ||
<!-- <active_terminals>1</active_terminals> --> | ||
<!-- <active_terminals bench="chbenchmark">1</active_terminals> --> | ||
|
||
<!-- Specifies transaction weight for each workload. --> | ||
<!-- <weights bench="tpcc">45,43,4,4,4</weights> --> | ||
<!-- <weights bench="chbenchmark">3, 2, 3, 2, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5</weights> --> | ||
<!-- </work> --> | ||
|
||
<!-- Extra features --> | ||
<!-- | ||
<work> | ||
<time>60</time> | ||
|
||
<rate>100</rate> | ||
<rate bench="chbenchmark">unlimited</rate> | ||
|
||
<weights bench="tpcc">45,43,4,4,4</weights> | ||
<weights bench="chbenchmark">3, 2, 3, 2, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5</weights> | ||
</work> | ||
--> | ||
</works> | ||
|
||
|
||
<!-- CH specific --> | ||
<transactiontypes bench="chbenchmark"> | ||
<transactiontype> | ||
<name>Q1</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q2</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q3</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q4</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q5</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q6</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q7</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q8</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q9</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q10</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q11</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q12</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q13</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q14</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q15</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q16</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q17</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q18</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q19</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q20</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q21</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Q22</name> | ||
</transactiontype> | ||
</transactiontypes> | ||
|
||
<!-- TPCC specific --> | ||
<transactiontypes bench="tpcc"> | ||
<transactiontype> | ||
<name>NewOrder</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Payment</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>OrderStatus</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>Delivery</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>StockLevel</name> | ||
</transactiontype> | ||
</transactiontypes> | ||
</parameters> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
<?xml version="1.0"?> | ||
<parameters> | ||
|
||
<!-- Connection details --> | ||
<type>ORACLE</type> | ||
<driver>oracle.jdbc.OracleDriver</driver> | ||
<url>jdbc:oracle:thin:@localhost:1521/xepdb1</url> | ||
<username>benchbase</username> | ||
<password>password</password> | ||
<isolation>TRANSACTION_SERIALIZABLE</isolation> | ||
<batchsize>128</batchsize> | ||
|
||
<!-- Scalefactor in Epinions scales by *2000 the number of users--> | ||
<scalefactor>1</scalefactor> | ||
|
||
<!-- The workload --> | ||
<terminals>1</terminals> | ||
<works> | ||
<work> | ||
<time>60</time> | ||
<rate>10000</rate> | ||
<weights>10,10,10,10,10,10,10,10,20</weights> | ||
</work> | ||
</works> | ||
|
||
<!-- Epinions Procedures Declaration --> | ||
<transactiontypes> | ||
<transactiontype> | ||
<name>GetReviewItemById</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>GetReviewsByUser</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>GetAverageRatingByTrustedUser</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>GetItemAverageRating</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>GetItemReviewsByTrustedUser</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>UpdateUserName</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>UpdateItemTitle</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>UpdateReviewRating</name> | ||
</transactiontype> | ||
<transactiontype> | ||
<name>UpdateTrustRating</name> | ||
</transactiontype> | ||
</transactiontypes> | ||
</parameters> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.