#######################################################
[ttdemo]
Driver=/opt/TimesTen/tt
DataStore=/var/TimesTen/tmp/ttdemo
DatabaseCharacterSet=WE
TempSize=
PermSize=
Authenticate=
UID=test
OracleID=shacola
OraclePwd=
Logging=
Isolation=
PassThrough=
LockLevel=
TypeMode=
#######################################################
sqlplus test/
CREATE TABLE readtab (a NUMBER NOT NULL PRIMARY KEY
INSERT INTO readtab VALUES (
INSERT INTO readtab VALUES (
COMMIT;
ttisql ttdemo
call ttCacheUidPwdSet(
call ttCacheStart;
CREATE READONLY CACHE GROUP readcache
AUTOREFRESH INTERVAL
FROM readtab
(a NUMBER NOT NULL PRIMARY KEY
LOAD CACHE GROUP readcache COMMIT EVERY
SELECT * FROM readtab;
sqlplus test/
INSERT INTO readtab VALUES (
INSERT INTO readtab VALUES (
COMMIT;
需要等待AUTOREFRESH INTERVAL 指定的時間
DROP CACHE GROUP readcache;
call ttCacheStop;
From:http://tw.wingwit.com/Article/program/Oracle/201311/17553.html