Timesten 学习笔记(五)Client/Server
Client/Server 模式综述
?
?
TimesTen客户端访问远程系统上的TimesTen数据库,TimesTen客户端的ODBC驱动程序负责连接应用程序。使用TimesTen客户端驱动程序,应用程序可以连接透明的TimesTen服务器和数据管理器。
????你可以直接使用TimesTen客户端驱动程序或者使用Windows的ODBC驱动程序管理器连接的客户端应用程序。 但是不建议使用Windows ODBC driver manager, 因为可能会带来性能方面的损失。
????TimesTen服务端:负责监听和转发请求和回应。
?
几点注意:
?
create user or alter user 只能直接连接服务器后创建,不能使用client/server 方式,并且创建用户后应该CREATE SESSION 以便该用户可以通过client端连接服务器。
?
某些工具 不能通过client/server方式访问。 可以使用的工具一般都有 CS标记
?
client/server下的通信协议
?
TCP/IP Communication
Shared memory communication
UNIX domain socket communication
默认情况下使用 tcp/ip
?
如果使用 Shared memory communication,需要如下2个步骤:
?
第一:需要在ttendaemon.options 添加-serverShmIpc
相对来说, 使用socket方式比第一种tcp/ip 效率更高,比第二种 shared memory 占用内存要少。