Display Information from Change Log Tables
TimesTen provides the cacheInfo
SQL script that gathers information from the change log tables that exist on the Oracle database for cache groups with autorefresh. See Managing a Cache Environment with Oracle Database Objects in the Oracle TimesTen In-Memory Database Cache
Guide for additional information about change log tables.
Run the script as the cache administration user on the Oracle database using SQL*Plus. If you run the script as a different user, it reports that the change log tables do not exist.
The script is in the following location:
timesten_home/install
/oraclescripts/cacheInfo.sql
The cacheInfo
script displays the following information for each cached table:
% cd timesten_home/install/oraclescripts % sqlplus cacheuser/oracle SQL> @cacheInfo *************Autorefresh Objects Information *************** Host name: sys1 Timesten datastore name: /users/OracleCache/alone1 Cache table name: ORATT.ORDERS Change log table name: tt_06_69245_L Number of rows in change log table: 100000 Maximum logseq on the change log table: 38 Timesten has autorefreshed updates up to logseq: 38 Number of updates waiting to be autorefreshed: 0 Number of updates that has not been marked with a valid logseq: 0 ****************************
The information returned for each change log table includes the name of the change log table, the name of its corresponding TimesTen cache table, the number of rows in the change log table, and the number of updates in the change log table that have not been automatically refreshed into the cache table.
The log sequence number (logseq
) acts as a marker for the autorefresh operation.