Task 6: Load Initial Data
Load the cache group.
-
Start the
ttIsqlutility and connect to thecache1DSN as the instance administrator.Grant the
SELECT,INSERT,UPDATEandDELETEprivileges on thesales.customerscache table to the TimesTen cache administration user so that this user can issueSELECT,INSERT,UPDATEandDELETESQL statements on this table. TheINSERT,UPDATEandDELETEprivileges on thesales.customerstable are required to run write through operations from the TimesTen cache table to the cached Oracle Database table.% ttIsql cache1 Command> GRANT SELECT, INSERT, UPDATE, DELETE ON sales.customers TO cacheadmin; Command> exit; Disconnecting... Done.
-
Start the
ttIsqlutility and connect to thecache1DSN as the TimesTen cache administration user.Perform a
LOAD CACHE GROUPstatement for the first load of the AWT cache group since the cache tables are empty.% ttIsql "DSN=cache1;UID=cacheadmin;PwdWallet=/wallets/cacheadminwallet" Command> LOAD CACHE GROUP awt_customers COMMIT EVERY 256 ROWS PARALLEL 3; 2 cache instances affected. -
Query the contents of
sales.customercache table.Command> SELECT * FROM sales.customers; < 122 West Jim Johnston > < 663 MidWest Pat Reed > 2 rows found.
-
Use the
ttIsqlcachegroupscommand to view the definition of theawt_customerscache group:Command> cachegroups; Cache Group CACHEADMIN.AWT_CUSTOMERS: Cache Group Type: Asynchronous Writethrough Autorefresh: No Aging: LRU on Root Table: SALES.CUSTOMERS Table Type: Propagate 1 cache group found.