oracle前端数据缓存,TimesTen:Cache Group局部数据缓存及Aging

TimesTen:Cache Group局部数据缓存及Aging

6ee5639a40442445944d63b514b2dd02.png

简单测试,记录备忘。

按条件加载Cache Group数据,底层表是IOT表分区表,TimesTen表映射底层Oracle数据库表:Command> load cache group ishipawt where ISHIP.idatet >'2009-04-10' commit every 0 rows;

0 cache instances affected.

Command> load cache group ishipawt where ISHIP.idatet >'2009-04-08' commit every 0 rows;

101630 cache instances affected.

修改数据表,增加数据老化周期,设定2小时老化: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;

< 101631 >

1 row found.

Command> call ttagingschedulenow('ISHIP');

Command> desc iship;

Table EYGLE.ISHIP:

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

1 table found.

(primary key columns are indicated with *)

Aging之后,剩余一条记录:Command> select count(*) from iship;

< 1 >

1 row found.

-The End-

By eygle on 2009-04-16 18:32 |

Comments (0) |

Advanced | 2255 |

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值