Skip to content

Commit

Permalink
WMS ID: 11454 : - Improve application performance with True Cache : …
Browse files Browse the repository at this point in the history
…User review feedback (#634)

* Truecache livelabs first change

* true cache livelabs 2nd revision

* Truecache 3rd revision

* True Cache lint checker fix

* Some more lint check bug fix

* Remove unused files

* Updating the manifest.jspn for other folders

* Code review comments

* Code review comments and some screenshots

* Links to images with the oraclelivelabs absolute location

* Update manifest.json

Remove lab 1 and 2 for Green button Sandbox and rename labs

* Update manifest.json

Remove lab 1 and Lab 2 for Sandbox and Desktop version.

* Update manifest.json

* Update manifest.json

Change the workshop title to "Improve application performance with True Cache"

* Update prepare-setup.md

Changed the resource manager zip file to correct hyperlink for true cache.

* Update prepare-setup.md

Changed the hyperlink to reflect the resource manager for True cache

* Update manifest.json

Changed the workshop title

* Update prepare-setup.md

Spell check

* Update manifest.json

* True Cache lab documentation review changes

True Cache lab documentation review changes

* Incorporate PM review comment True Cache livelabs

Incorporate PM review comment for True Cache livelabs

* Incorporate the changes required for livelabs account

Modify the Prerequisites for the livelabs account, we dont need them, they are only applicable for free tier and paid

* Incorporate user review feedback

Incorporate user review feedback

* Fixed the missing quote

Fixed the missing quote

---------

Co-authored-by: vivek-vishwanathan <140459653+vivek-vishwanathan@users.noreply.github.com>
  • Loading branch information
sambitppanda and vivek-vishwanathan authored Aug 16, 2024
1 parent 609d53e commit c178dda
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 7 deletions.
73 changes: 67 additions & 6 deletions truecache/data-load/data-load.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,21 @@ This lab assumes you have:
</copy>
```
3. Alter the session to log in to the PDB
3. Show the existing pdbs in the database by using show pdbs.
```
<copy>
show pdbs;
</copy>
```
4. Alter the session to log in to the PDB
```
<copy>
alter session set container=ORCLPDB1;
</copy>
```
4. Execute step1 as the sysdba user. This creates the transactions user and provides the necessary permission to the transactions user.
5. Execute step1 as the sysdba user. This creates the transactions user and provides the necessary permission to the transactions user.
```
<copy>
Expand All @@ -60,10 +67,37 @@ This lab assumes you have:
![dataload step1](https://oracle-livelabs.github.io/database/truecache/data-load/images/dataloadstep1.png " ")
5. Log on to SALES1 service as the transactions user using the password specified in step1 and run the step2 and step3.
6. Exit from the sysdba session by pressing exit
```
<copy>
exit
</copy>
```
7. Check the hostname of the linux box , by entering hostname command
```
<copy>
hostname
</copy>
```
8. Logon to SALES1 service as the transaction user using the password specified in step1 in the format hostname:1521/SALES1. To view the password open the file using cat command.
```
<copy>
cat step1.sql
</copy>
```
sqlplus transactions/<***PASSWORDFROMSTEP1****>@prod:1521/SALES1
9. Execute step2 and step3 sequentially.
```
<copy>
@step2.sql
</copy>
```
```
<copy>
sqlplus transactions/******@ORCLPDB1:1521/SALES1
@step3.sql
</copy>
```
Expand All @@ -72,28 +106,55 @@ This lab assumes you have:
## Task 2: Load Data into the Tables
1. Run step4 as the transactions user.
```
<copy>
@step4.sql
</copy>
```
![dataload step4](https://oracle-livelabs.github.io/database/truecache/data-load/images/dataloadstep4.png " ")
2. After completing step4, you should see a commit complete message.
![dataload commit](https://oracle-livelabs.github.io/database/truecache/data-load/images/dataloadcommit.png " ")
3. Exit from the sqlplus session by entering exit
```
<copy>
exit
</copy>
```
## Task 3: Verify True Cache
1. Open a terminal window and connect to the podman container for true cache.
1. Open a new terminal window and connect to the podman container for true cache.
```
<copy>
sudo podman exec -i -t truedb /bin/bash
</copy>
```
![dataload truecache](https://oracle-livelabs.github.io/database/truecache/data-load/images/dataloadtruecache.png " ")
2. Login to the database using the transaction user.
2. Login to the truecache using the transaction user using the format <truecache_hostname>:1521/SALES1_TC
sqlplus transactions/<***PASSWORDFROMSTEP1****>@truedb:1521/SALES1_TC
![dataload truecache login](https://oracle-livelabs.github.io/database/truecache/data-load/images/dataloadtruecachelogin.png " ")
3. Verify the True Cache role.
```
<copy>
SELECT DATABASE_ROLE FROM V$DATABASE;
</copy>
```
![dataload truecache verify](https://oracle-livelabs.github.io/database/truecache/data-load/images/dataloadtruecacheverify.png " ")
4. Exit from the sqlplus session by entering exit
```
<copy>
exit
</copy>
```
You may now proceed to the next lab.
## Learn More
Expand Down
16 changes: 15 additions & 1 deletion truecache/jdbc/jdbc.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,21 @@ This lab assumes you have:
```
![app container](https://oracle-livelabs.github.io/database/truecache/jdbc/images/appcontainer.png " ")
2. Run the application by running /stage/clientapp/TransactionApp.sh , This first runs the application against the primary database for 2 minutes. Then it runs the application against True Cache for 2 minutes with 50 threads.
2. Go to the directory /stage/clientapp
```
<copy>
cd /stage/clientapp
</copy>
```
2. Run the application by running TransactionApp.sh , This first runs the application against the primary database for 2 minutes. Then it runs the application against True Cache for 2 minutes with 50 threads.
```
<copy>
sh TransactionApp.sh
</copy>
```
![transaction app](https://oracle-livelabs.github.io/database/truecache/jdbc/images/transactionapp.png " ")
3. Observe the improve in performance while using True Cache.
Expand Down

0 comments on commit c178dda

Please sign in to comment.