Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1119058
  • 博文数量: 231
  • 博客积分: 2500
  • 博客等级: 少校
  • 技术积分: 2662
  • 用 户 组: 普通用户
  • 注册时间: 2009-11-03 16:35
个人简介

学无止境

文章分类

全部博文(231)

文章存档

2014年(7)

2013年(103)

2011年(11)

2010年(53)

2009年(57)

分类: Oracle

2009-11-26 14:32:48

timesten主要的几种用法:
  1. 直接作为primary数据库用,但这种情况下,应用程序所需的所有数据库都要存储在timesten上。
  2. timesten作为一个实时数据管理,大部分数据存储在磁盘数据库上(RDBMS),timesten与之通讯,在前端完成大量工作,再将数据存入后台磁盘数据库中。
  3. 数据应用,如果系统中持续不断地有事物信息,形成一个长队列,可以通过timesten先将这些信息存储起来。
  4. timesten作为数据综合点,用于连接多个数据源,多个数据库将必须的少量数据传输到timesten上,供应用使用。
  5. 为应用提供一个只读的cache环境,会将后台数据库中的表自动刷新上来。供大量只读访问。
  6. 作为一个update的cache,可以通过同步或异步的方式将数据库提交到后台数据库的表中。
  7. 部署一个分布式的cache,在多台机器上部署多个实例,配置动态分布式cache,其中的记录会自动地负载和老化。
timesten只有两种索引:
  1. T-tree indexes
  2. Hash indexes
要点:
  1. 创建cache group table必须要有主键,root table必须有一个主键或者1个非空唯一索引。
    8213: Cache group tables must have a primary key.
  2. 在系统管理的cache group中不允许表级别的READONLY,NOT PROPAGATE,PROPAGATE标志。
    8270: Table level READONLY/NOT PROPAGATE/PROPAGATE flags are not allowed in a system managed cache group
  3. 只有用户管理的cache group ,才能实现双向的数据同步,数据可以在oracle上面修改,也可以在TT上修改,都能及时同步到对方。
  4. 创建系统管理的cache group建议要启动cache agent,能够创建成功,但是会有警告。
    Warning  5002: Unable to connect to the cache agent for ; check agent status
    Warning  5051: Commit message to cache agent failed. Cache agent must be restarted
  5. 做load时需要启动cache agent。
    5002: Unable to connect to the cache agent for ; check agent status
    The command failed.
  6. 系统管理的cache group不允许flush。
    8271: Manual FLUSH operations are not allowed on cache group because it is system managed
阅读(1782) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~