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
如果使用 Shared memory communication,需要如下2个步骤
:
第一:需要在ttendaemon.options 添加-
serverShmIpc
Note:
TimesTen supports a maximum of 16 different instances of the
shared
memory IPC-enabled server. If an application tries to connect to more
than 16 different shared memory segments it receives an ODBC error.
然后使用 -serverShmSize
size 指定sharememory 大小。
Some guidelines for determining the size of the shared memory segment include:
-
The maximum size allowed is 1 gigabyte.
-
TimesTen needs 1 MB of memory for internal use.
-
Each connection needs a fixed block of 16 KB.
-
Each statement starts with a block of 16 KB for the IPC. But this
size is increased or decreased depending upon the size of the data being
transmitted for a query. TimesTen increments the statement buffer size
by doubling it and decreases it by halving it.
For example, if the user application anticipates a max of 100
simultaneous shared-memory-enabled client/server connections, and if
each connection is anticipated to have a maximum of 50 statements, and
the largest query returns 128 KB of data, use this formula to configure
the serverShmSize
:
serverShmSize = 1 MB + (100 * 16) KB + (100 * 50 * 128) KB
= 1 MB + 2 MB + 625 MB = 628 MB
This is the most memory required for this example. The entire memory
segment would be used only if all 100 connections have 50 statements
each and each statement has a query that returns 128 KB of data in a row
of the result.
In this example, if you configured the serverShmSize
to
128 MB, either a new shared-memory-enabled client/server connection is
refused by the TimesTen Server or a query may fail due to lack of
resources within the shared memory segment.
Changing
the size of the shared memory segment
Once configured, to change the value of the shared memory segment you
must stop the TimesTen Server. Stopping the server detaches all
existing client/server connections to any database that is associated
with that instance of the TimesTen Server. The steps for modifying the
value of the -serverShmSize
option are:
-
Modify the value of
-serverShmSize
in the ttendaemon.options
file.
-
Use the ttDaemonAdmin
utility to restart the TimesTen Server. Only the instance administrator can restart the TimesTen Server.
Controlling the TimesTen
Server log messages
The -noserverlog
entry in a separate line in the ttendaemon.options
file tells the TimesTen daemon to turn off logging of connects and disconnects from the client applications.
If the TimesTen Server is installed, you can enable or disable logging of connect and disconnect messages by:
-
To enable logging, add a comment symbol '#' before the -noserverlog
entry.
-
To disable logging, remove the comment symbol '#' before the -noserverlog
entry.
第二:Define the Network Address as
ttShmHost
in the logical server name
[ttLocalHost_tt1121]
Description=TimesTen Server
Network_Address=
ttShmHost
TCP_PORT=53389
UNIX domain socket communication
[ttLocalHost_tt1121]
Description=TimesTen Server
Network_Address=
ttLocalHost
TCP_PORT=53389
相对来说, 使用socket方式比第一种tcp/ip 效率更高,比第二种 shared memory 占用内存要少。
分享到:
相关推荐
TimesTen学习笔记,主要对TimesTen数据源的配置、连接以及TimesTen与Oracle之间数据的交互。
NULL 博文链接:https://menglh.iteye.com/blog/299850
Oracle TimesTen 7.0 操作、管理和编程笔记
Timesten运维笔记[借鉴].pdf
最近公司打算在下一代计费系统里面使用内存数据库的技术,所以作为公司的设计人员之一的我,在oracle网上下了个TimesTen,安装在我们的测试服务器上面aix5,这篇短文主要是我操作数据库的一个笔记,下一篇打算发一个...
此文档是我一步一步写出来的,初学者只要一步一步按这个文档来装就行。
Oracle TimesTen In-Memory Database PL/SQL Packages Reference 11g Release 2 (11.2.2)-348
安装文件:otn.oracle.com Linux: red-hat ES3, SUSE9 CPU:intel EM64
CentOS6.3安装TimesTen.docx
Oracle TimesTen In-Memory Database PL/SQL Developer's Guide 11g Release 2 (11.2.2)-148
最近用到Oracle TimesTen,网上找资料都是7.0的,现在最新的是11G,于是自己对照着英文QuickStart和手册写了一份在Linux下的安装和配置文档,记录了安装和使用过程中的一些要主意的地方。
timesten for windows and linux 64位的安装,其中安装timesten必须安装oracle client客户端,该步骤未写,自行百度。
Oracle公司下缓存数据库TimesTen,大多用于电信,金融等行业,对数据读取要求较高行业,
很好的资料关于timesten的安装
深度解析timesten用途,和应用场景及配置
TimesTen操作指南,不错
Oracle的TimesTen语法说明,不错
TimesTen Patchset 17019459 -01 Description TIMESTEN 11.2.1.9.9 RELEASE Product Oracle TimesTen In-Memory Database Release TimesTen 11.2.1.9.9
oracle timesten how to setup
本文章介绍timesten的各种情况,是timesten入门的好书!