歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> RedHat Linux 5 安裝TimesTen 全過程

RedHat Linux 5 安裝TimesTen 全過程

日期:2017/2/28 16:18:59   编辑:Linux教程

由於工作需要,今天在自己創建的虛擬機上(虛擬機的系統為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/TimesTen

3:將下載的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 testmal

Copyright (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上搜索下!

Copyright © Linux教程網 All Rights Reserved