《人在职场》显示文章详细内容: [展开] [回复] [网址] [举报] [屏蔽]
birchsilver
birchsilver目前处于离线状态
等    级:居民
经 验 值:21
魅 力 值:12
龙    币:49
积    分:29.1
注册日期:2003-09-09
 
  查看birchsilver个人资料   给birchsilver发悄悄话   将birchsilver加入好友   搜索birchsilver所有发表过的文章   给birchsilver发送电子邮件      

我来问个关于TimesTen的技术问题:在load cache group时提示5056错误!!
在load cache group时提示5056错误,求解!

以下是我的实验过程!

操作系统 : window server 2003 sp2
Oracle 版本: ORACLE 11gR2
TimesTen : 11.2.1
Oracle TimesTen 安装在同一台电脑上.

在oracle database 中已创建用户 u_tt_cadm ,并执行以下语句:

C:> SQLPLUS /NOLOG

SQL> conn u_tt_cadm

SQL> CREATE TABLE test_TimesTen (ID NUMBER(5) PRIMARY KEY, NAME VARCHAR2(30));

SQL> INSERT INTO test_TimesTen VALUES (1, 'ABC');

SQL> INSERT INTO test_TimesTen VALUES (2, 'DEF');

SQL> COMMIT;


c:> ttisql


Command> CONNECT "dsn=dsn_tt_mgr;uid=u_tt_cadm;pwd=u_tt_cadm;oraclepwd=u_tt_cadm";


Command> CALL ttCacheUidPwdSet('u_tt_cadm','u_tt_cadm');

Command> CALL ttCacheUidGet;

Command> CALL ttGridCreate('tt_cgrid');

Command> CALL ttGridNameSet('tt_cgrid');

Command> CREATE READONLY CACHE GROUP tt_cgrid
AUTOREFRESH INTERVAL 5 SECONDS
FROM test_TimesTen (ID NUMBER(5) PRIMARY KEY, NAME VARCHAR2(30));

Command> LOAD CACHE GROUP tt_cgrid COMMIT EVERY 30 ROWS;
5056: The cache operation fails: error_type=<Oracle Error>, error_code=<12154>,
error_message: ORA-12154: TNS:could not resolve the connect identifier specified
The command failed.

Command> cacheGroups

Cache Group U_TT_CADM.TT_CGRID:

Cache Group Type: Read Only
Autorefresh: Yes
Autorefresh Mode: Incremental
Autorefresh State: Paused
Autorefresh Interval: 5 Seconds
Autorefresh Status: ok
Aging: No aging defined

Root Table: U_TT_CADM.TEST_TIMESTEN
Table Type: Read Only

1 cache group found.
Command>
2011-02-05 22:45:02   此文章已经被查看1936次   
 相关文章: [回复]  [顶端] 



  您必须登录论坛才可以发表文章:
 
用户名:   密码:   记住密码:    (忘记密码 注册




版权所有 回龙观社区网 经营许可证编号:京B2-20201639 昌公网安备1101140035号

举报电话:010-86468600-5 举报邮箱: