发布时间 : 星期一 文章TimesTen 安装配置更新完毕开始阅读
Command> select * from oratt.salgrade; < 1, 700, 1200 > < 2, 1201, 1400 > < 3, 1401, 2000 > < 4, 2001, 3000 > < 5, 3001, 9999 > < 6, 10000, 15000 > 6 rows found.
要注意的是整个timesten只有两种用户cacheuser,oratt。而oracle有三个用户timesten(必须),cacheuser(管理员),oratt(schemauser)
9. 创建本地的AWT Cache Group
ttisql
\
Command> create asynchronous writethrough cache group awt from oratt. bonus(
empno number(4) primary key, ename varchar2(10), sal number, comm number ) ;
//AWT是通过replication agent和oracle同步的,所以必须启动replication agent,否则数据同步不过去 Command> call ttrepstart; Command> exit;
//通过oratt进行数据操作
ttisql \Command> desc oratt.bonus;
Command> insert into oratt.bonus values(7566,’jones’,5000,4500); 1 row inserted. Command> commit; Command>
//在Oracle检查数据是否已近过来 SQL> select * from oratt.bonus;
EMPNO ENAME SAL COMM
———- ———- ———- ———————————— 7566 jones 5000 4500
至此实验完成,要注意的是用户之间的切换,如果实在不想切换,也可以一次性把相关的权限都赋予给某个用户,比如cacheuser。
其它的分享慢慢奉上!