配置完后,ttisql进入TT报错
[code][oracle@localhost info]$ ttisql tt_1122
Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
Type ? or "help" for help, type "exit" to quit ttIsql.
connect "DSN=tt_1122";
6228: Invalid value (US7ASCII) for DatabaseCharacterSet connection attribute -- value must be the same as the current data store value (ZHS16GBK)
The command failed.
Done.
[oracle@localhost info]$ [/code]
修改sys.odbc.ini将US7ASCII换为ZHS16GBK ,重启TT重新连接即可
[code][TT_1122]
Driver=/u01/TimesTen/tt11/lib/libtten.so
DataStore=/u01/TimesTen/tt11/info/TT_1122
#DatabaseCharacterSet=US7ASCII
DatabaseCharacterSet=ZHS16GBK
PermSize=128
OracleNetServiceName=ORASQL
[oracle@localhost info]$ ttDaemonAdmin -stop
TimesTen Daemon stopped.
[oracle@localhost info]$ ttDaemonAdmin -start
TimesTen Daemon startup OK.
[oracle@localhost info]$ ttisql tt_1122
Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
Type ? or "help" for help, type "exit" to quit ttIsql.
connect "DSN=tt_1122";
Connection successful: DSN=TT_1122;UID=oracle;DataStore=/u01/TimesTen/tt11/info/TT_1122;DatabaseCharacterSet=ZHS16GBK;ConnectionCharacterSet=US7ASCII;DRIVER=/u01/TimesTen/tt11/lib/libtten.so;PermSize=128;TypeMode=0;OracleNetServiceName=ORASQL;
(Default setting AutoCommit=1)
Command> [/code]
[code][oracle@localhost info]$ ttisql tt_1122
Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
Type ? or "help" for help, type "exit" to quit ttIsql.
connect "DSN=tt_1122";
6228: Invalid value (US7ASCII) for DatabaseCharacterSet connection attribute -- value must be the same as the current data store value (ZHS16GBK)
The command failed.
Done.
[oracle@localhost info]$ [/code]
修改sys.odbc.ini将US7ASCII换为ZHS16GBK ,重启TT重新连接即可
[code][TT_1122]
Driver=/u01/TimesTen/tt11/lib/libtten.so
DataStore=/u01/TimesTen/tt11/info/TT_1122
#DatabaseCharacterSet=US7ASCII
DatabaseCharacterSet=ZHS16GBK
PermSize=128
OracleNetServiceName=ORASQL
[oracle@localhost info]$ ttDaemonAdmin -stop
TimesTen Daemon stopped.
[oracle@localhost info]$ ttDaemonAdmin -start
TimesTen Daemon startup OK.
[oracle@localhost info]$ ttisql tt_1122
Copyright (c) 1996, 2013, Oracle and/or its affiliates. All rights reserved.
Type ? or "help" for help, type "exit" to quit ttIsql.
connect "DSN=tt_1122";
Connection successful: DSN=TT_1122;UID=oracle;DataStore=/u01/TimesTen/tt11/info/TT_1122;DatabaseCharacterSet=ZHS16GBK;ConnectionCharacterSet=US7ASCII;DRIVER=/u01/TimesTen/tt11/lib/libtten.so;PermSize=128;TypeMode=0;OracleNetServiceName=ORASQL;
(Default setting AutoCommit=1)
Command> [/code]
「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




