由于工作需要,今天在自己创建的虚拟机上(虚拟机的系统为RedHat Linux 5,虚拟机为:VMware-workstation-full-7.1.1-282343);下面开始安装过程:安装前系统具备的东东:1:Oracle服务端(其实不装这个,也没有关系)2:创建TT的管理员以及管理组!ready:[root@localhost ~]# groupadd ttadmin
[root@localhost ~]# useradd -G ttadmin tttest
[root@localhost ~]# chown -R tttest:ttadmin /etc/TimesTen3:将下载的timesten112180.linux8664.tar.gz上传到install(在tttest上创建的安装文件夹的存放目录)进行解压:gzip timesten112180.linux8664.tar.gz|tar -xvf -然后进入:[tttest@localhost linux86]$ cd /home/tttest/install/linux86 --即安装脚本的地方,执行,./setup.sh ,即开始安装!安装的时候,只要根据文字提示向下安装,本次不提供该文档,下次补上!下面主要讲解配置问题!4:在安装完TimesTen的后,需要进行datastore的配置!由于虚拟机的空间有限制,配置的信息如下(目录为/home/tttest/TimesTen/tt1121/info) vi sys.odbc.ini:直连配置:#####################################################################
#
# New data source definitions can be added below.
#
#####################################################################[testmal]
Driver=/home/tttest/TimesTen/tt1121/lib/libtten.so
DataStore=/home/tttest/TimesTen/tt1121/info/testmal
LogDir=/home/tttest/TimesTen/log
PLSQL_TIMEOUT=0
DatabaseCharacterSet=AL32UTF8
Connections=30
ConnectionCharacterSet=WE8ISO8859P1
PermSize=800
RecoveryThreads=8
TempSize=200
Preallocate=0
LogFileSize=512
CkptFrequency=600
LogBufMB=50########################################################################
# This following sample definitions should be in the .odbc.ini file
# that is used for the TimesTen 11.2.1 Client.
# The Server Name is set in the TTC_SERVER attribute.
# The Server DSN is set in the TTC_SERVER_DSN attribute.
#########################################################################
[luck_ttserver]
TTC_SERVER=luck_ttserver
TTC_SERVER_DSN=testmal主要的内容如上,其他不需要更改数据!当然在该文件中需要加上[ODBC Data Sources]
TT_1121=TimesTen 11.2.1 Driver
testmal=TimesTen 11.2.1 Driver --此处主要加的是该行! 到此已经完全配置好至连接了!下面配置CS模式:cat sys.ttconnect.ini
# Copyright (c) 1999, 2009, Oracle and/or its affiliates.All rights reserved. ###############################################################
# This is a sample sys.ttconnect.ini file that is used for the
# TimesTen Client. It contains entries for each server.
###############################################################[ttLocalHost_tt1121]
Description=TimesTen Server
Network_Address=ttLocalHost
TCP_PORT=53385[luck_ttserver] --此处配置的主要是下面的内容,luck_ttserver 此处的内容为sys.odbc.ini 中的TTC_SERVER=luck_ttserver
Description=luck_ttserver --此处同上
Network_Address=ttLocalHost --配置客户端连接的地址
TCP_PORT=53385 --此处配置的客户端,TimesTen维护的端口值此已经完全配置完TimesTen的配置了,下面该连接timesTen了:[tttest@localhost info]$ ttisql testmalCopyright (c) 1996-2011, Oracle. All rights reserved.
Type ? or "help" for help, type "exit" to quit ttIsql. connect "DSN=testmal";
844: Cannot write data store file /home/tttest/TimesTen/tt1121/info/testmal.ds1. OS-detected error: No space left on device
The command failed.--在刚创建的时候居然提示空间不足,后来扩大了空间即可以了!(此处会创建datastore,故时间会长点,需要耐心等待)下面正常连接了:[tttest@localhost info]$ ttIsqlCS -connStr "DSN=luck_ttserver"Copyright (c) 1996-2011, Oracle. All rights reserved.
Type ? or "help" for help, type "exit" to quit ttIsql. connect "DSN=luck_ttserver";
Connection successful: DSN=luck_ttserver;TTC_SERVER=luck_ttserver;TTC_SERVER_DSN=testmal;UID=tttest;DATASTORE=/home/tttest/TimesTen/tt1121/info/testmal;DATABASECHARACTERSET=AL32UTF8;CONNECTIONCHARACTERSET=WE8ISO8859P1;LOGFILESIZE=512;LOGDIR=/home/tttest/TimesTen/log;PERMSIZE=800;TEMPSIZE=200;CONNECTIONS=30;CKPTFREQUENCY=600;RECOVERYTHREADS=8;TYPEMODE=0;PLSQL_TIMEOUT=0;LOGBUFMB=50;
(Default setting AutoCommit=1)遇到问题的时候,可以在/home/tttest/TimesTen/tt1121/info,查看tterrors.log看提示的何种错误,如果有错误,把错误贴出来,到GOOGLE上搜索下! Ubuntu下QT4开发环境的搭建及初体验Linux Shell实现多进程并发执行相关资讯 Linux安装
- Linux基础教程:Linux的安装与简介 (今 21:00)
- Linux自动安装实现 (03/08/2014 07:12:01)
- 在MAC下使用ISO制作Linux的安装USB (04/17/2013 11:36:16)
| - 如何在MacBook Pro Retina上安装 (06/23/2014 08:17:33)
- Linux源码程序安装后的工作 (03/02/2014 10:57:44)
- 制做OEL/CentOS Linux三合一U盘安 (12/28/2012 11:42:50)
|
本文评论 查看全部评论 (0)