Advanced
2009-04-16
TimesTen:Cache Group局部数据缓存及Aging
简单测试,记录备忘。
按条件加载Cache Group数据,底层表是IOT表分区表,TimesTen表映射底层Oracle数据库表:Command> load cache group ishipawt where ISHIP.idatet >'2009-04-10' commit every 0 rows;修改数据表,增加数据老化周期,设定2小时老化:
0 cache instances affected.
Command> load cache group ishipawt where ISHIP.idatet >'2009-04-08' commit every 0 rows;
101630 cache instances affected.
Command> alter table iship add aging use idatet lifetime 2 hours cycle 30 minutes;
8007: Cannot change aging attributes or add/drop aging policy of replicated tables while replication Agent is running
The command failed.
Command> call ttrepstop;
Command> alter table iship add aging use idatet lifetime 2 hours cycle 30 minutes;
Command> call ttrepstart;
初始Cache数据有101631条:
Command> select count(*) from iship;Aging之后,剩余一条记录:
< 101631 >
1 row found.
Command> call ttagingschedulenow('ISHIP');
Command> desc iship;Table EYGLE.ISHIP:
1 table found.
Columns:
*AINDEX NUMBER NOT NULL
*SMMSIH VARCHAR2 (20) INLINE NOT NULL
*IDATET DATE NOT NULL
*ODATET DATE NOT NULL
Aging use IDATET lifetime 2 hours cycle 30 minutes on
(primary key columns are indicated with *)
Command> select count(*) from iship;
< 1 >
1 row found.
-The End-
历史上的今天
- 2018-04-16 2018 Oracle APAC用户组大会在上海胜利闭
- 2013-04-16 Oracle数据库恢复:数据库黑客攻击案例一则
- 2013-04-16 Movable Type在Firefox下Categories分类失效解决
- 2011-04-16 2011数据库技术大会 参会记
- 2008-04-16 一场即将到来的费解官司-声援Kamus
- 2008-04-16 DBA警世录:root操作需谨慎
- 2007-04-16 将在阿里巴巴"中国网络工程师侠客行"大会演讲
- 2007-04-16 DBA警世录:Oracle的共享内存段