Skip to content

Commit a4041a5

Browse files
ChrisJ60klazarz
andauthored
Small but important fixes to allow for further review and testing. (#25)
* TimesTen: Initial population * Work in progress * Finalising workshop instructions etc. * QA fixes #1 * QA fixes #2 * Typo and grammar corrections * URL fixup, additional minor tweaks. * Minor updates and fixes. * Improve connection instructions. * cleanup migration cleanup migration * clean up after migration clean up after migration * Update to README file * Various improvements based on feedback. * URL corrections * Correcting e-mail address for 'help' * Tiny changes * Urgent fixes from first round review Co-authored-by: Kevin Lazarz <kevin.lazarz@oracle.com>
1 parent e5da317 commit a4041a5

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

timesten/cache-introduction/10-oltp-performance/oltp-performance.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ select directory_nb, last_calling_party, descr from vpn_users where vpn_id = :id
5050

5151
The input values, *id* and *nb*, are randomly generated for each execution such that they fall within the range of the values in the table, so each execution of the statement retrieves a randomly chosen row.
5252

53-
You will run the benchmark using the script **~/bin/runBenchmark**:
53+
You will run the benchmark using the script **/tt/livelab/bin/runBenchmark**:
5454

5555
```
5656
#!/bin/bash
@@ -149,7 +149,7 @@ Run the program against the Oracle database and note the results:
149149

150150
```
151151
<copy>
152-
~/bin/runBenchmark -oracle
152+
/tt/livelab/bin/runBenchmark -oracle
153153
</copy>
154154
```
155155

@@ -170,7 +170,7 @@ Run the program against the TimesTen cache and note the results:
170170

171171
```
172172
<copy>
173-
~/bin/runBenchmark -timesten
173+
/tt/livelab/bin/runBenchmark -timesten
174174
</copy>
175175
```
176176

timesten/cache-introduction/11-query-performance/query-performance.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ A much better way to time queries, with any database, is to use a program writte
4646

4747
`usage: timeQueries { -oracle | -timesten } <filename>`
4848

49-
where ‘filename’ is the name of a file containing the query text. The source code for the queryTimer utility is available in the main VM in the directory **~/lab/src**. Here is the timeQueries script:
49+
where ‘filename’ is the name of a file containing the query text. The source code for the queryTimer utility is available in the main VM in the directory **~/lab/src**.
50+
51+
Here is the **/tt/livelab/bin/timeQueries** script:
5052

5153
```
5254
#!/bin/bash
@@ -110,7 +112,7 @@ Examine the three queries that we will use for this exercise:
110112

111113
```
112114
<copy>
113-
cat ~/queries/query_1.sql
115+
cat /tt/livelab/queries/query_1.sql
114116
</copy>
115117
```
116118

@@ -133,7 +135,7 @@ ORDER BY 6;
133135

134136
```
135137
<copy>
136-
cat ~queries/query_2.sql
138+
cat /tt/livelab/queries/query_2.sql
137139
</copy>
138140
```
139141

@@ -160,7 +162,7 @@ SELECT
160162

161163
```
162164
<copy>
163-
cat ~queries/query_3.sql
165+
cat /tt/livelab/queries/query_3.sql
164166
</copy>
165167
```
166168

@@ -180,15 +182,15 @@ SELECT
180182
ORDER BY 1, 3 DESC;
181183
```
182184

183-
There is also a file, **queries/query_all.sql**, that contains all three queries.
185+
There is also a file, **/tt/livelab/queries/query_all.sql**, that contains all three queries.
184186

185187
## Task 3: Run the queries against the Oracle database
186188

187189
First run the queries against the Oracle database:
188190

189191
```
190192
<copy>
191-
~/bin/timeQueries -oracle queries/query_all.sql
193+
/tt/livelab/bin/timeQueries -oracle queries/query_all.sql
192194
</copy>
193195
```
194196

@@ -265,7 +267,7 @@ Now run the queries against the TimesTen cache:
265267

266268
```
267269
<copy>
268-
~/bin/timeQueries -timesten queries/query_all.sql
270+
/tt/livelab/bin/timeQueries -timesten queries/query_all.sql
269271
</copy>
270272
```
271273

timesten/cache-introduction/12-dynamic-caching/dynamic-caching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ This is because you do not need to perform an initial load for a dynamic cache g
114114
Check the state of the tables:
115115

116116
```
117-
<count>
117+
<copy>
118118
select count(*) from appuser.parent;
119119
</copy>
120120
```

0 commit comments

Comments
 (0)