Timesten 学习笔记(四)环境变量设置

Shared library path environment variable

On Linux systems, add install_dir /lib directory to the LD_LIBRARY_PATH environment variable.

 

Set the CLASSPATH variable
set CLASSPATH=.;install_dir
/lib/ttjdbc6.jar

 

ODBCINI SYSODBCINI environment variable

TimesTen 使用 odbcini 文件确定 数据库资源和连接属性。 如果用户自己不指定odbcini,系统自动徐兆 安装目录下的/info/ sys.odbc.ini

 

具体内容如下

 

[my_ttdb]
Driver=/home/tt1/TimesTen/tt1121/lib/libtten.so
DataStore=/home/tt1/TimesTen/tt1121/info/DemoDataStore/my_ttdb
PermSize=20960  /*The ttMigrate and ttDestroy utilities, and can only expend can not desize*/
TempSize=3200 /* Tempsize = 40 MB + ceiling(PermSize / 8 MB) */
PLSQL_MEMORY_SIZE=64
PLSQL=1
DatabaseCharacterSet=WE8MSWIN1252
OracleNetServiceName=LNPDUMP
LogBufMB=500   /*MB*/
LogFileSize=512
#MemoryLock=4
LogDir=/home/tt1/TimesTen/tt1121/log/my_ttdb /*place the transaction log files on a different I/O

                                                                                   path from the database checkpoint files. */
CkptFrequency=300          /*seconds*/
CkptLogVolume=0
CkptRate=10     /*MB*/
CachegridEnable=0

 

有个connection需要特别指出。系统默认是64 个, 最大2047。 下面是一段对于 concurrency的描述

 

In a shared environment, concurrent connections to the database become a key limitation: A separate Oracle process is required to handle each connection in an Oracle database, and each process may require up to 2 MB of memory. All database installations--even Dedicated installations of Oracle and others--limit the number of concurrent connections based on the upper limit of memory and CPU available.

Example: Consider a shared Oracle server with 30 customer accounts at 100 concurrent connections per account. If each customer averaged only 30% of their maximum--or 33 connections per customer--the total number of concurrent connections would average 990. At 2 MB per process, the machine would be using 1980 MB RAM. This does not include shared memory for database buffering, or any memory for core OS/DB processes. In addition, at 990 concurrent connections, a great deal of processor time is burned just handling context switches. Under these circumstances, the server would slow to a crawl very quickly.

Limiting concurrent connections enables us to dedicate more memory to each individual process to dramatically increase the performance of your queries. Because of these precautions, complex transactions run much faster than with other databases. More dedicated memory is available to each process, and a high amount of system memory is dedicated to buffering.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值