diff --git a/truecache/data-load/data-load.md b/truecache/data-load/data-load.md index b48df55ba..97694e5c7 100644 --- a/truecache/data-load/data-load.md +++ b/truecache/data-load/data-load.md @@ -43,14 +43,21 @@ This lab assumes you have: ``` -3. Alter the session to log in to the PDB +3. Show the existing pdbs in the database by using show pdbs. + ``` + + show pdbs; + + ``` + +4. Alter the session to log in to the PDB ``` alter session set container=ORCLPDB1; ``` -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. ``` @@ -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 + ``` + + exit + + ``` +7. Check the hostname of the linux box , by entering hostname command + ``` + + hostname + + ``` +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. + ``` + + cat step1.sql + + ``` + sqlplus transactions/<***PASSWORDFROMSTEP1****>@prod:1521/SALES1 + +9. Execute step2 and step3 sequentially. + + ``` + + @step2.sql + + ``` + ``` - sqlplus transactions/******@ORCLPDB1:1521/SALES1 + @step3.sql ``` @@ -72,14 +106,27 @@ This lab assumes you have: ## Task 2: Load Data into the Tables 1. Run step4 as the transactions user. + + ``` + + @step4.sql + + ``` ![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 + ``` + + exit + + ``` + ## 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. ``` sudo podman exec -i -t truedb /bin/bash @@ -87,13 +134,27 @@ This lab assumes you have: ``` ![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 :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. + ``` + + SELECT DATABASE_ROLE FROM V$DATABASE; + + ``` ![dataload truecache verify](https://oracle-livelabs.github.io/database/truecache/data-load/images/dataloadtruecacheverify.png " ") +4. Exit from the sqlplus session by entering exit + ``` + + exit + + ``` + You may now proceed to the next lab. ## Learn More diff --git a/truecache/jdbc/jdbc.md b/truecache/jdbc/jdbc.md index 40a01aac7..6098b1bbe 100644 --- a/truecache/jdbc/jdbc.md +++ b/truecache/jdbc/jdbc.md @@ -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 + + ``` + + cd /stage/clientapp + + ``` + +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. + + ``` + + sh TransactionApp.sh + + ``` ![transaction app](https://oracle-livelabs.github.io/database/truecache/jdbc/images/transactionapp.png " ") 3. Observe the improve in performance while using True Cache.