Step by Step TimesTen ----- 配置client-server連線
To configure a client-server connection to the data store.
使用fxrep Datastore舉例:
Step 1: Server端的機器上配置DSN,指向Server端的Datastore.
在/export/home/times/TimesTen/tt70/info/sys.odbc.ini檔案中新增fxrep DSN的配置,如下
################################################################
# New data source definitions can be added below.
################################################################
[fxrep]
Driver=/export/home/times/TimesTen/tt70/lib/libtten.so
DataStore=/export/home/times/TimesTen/datastore/fxrep
DatabaseCharacterSet=US7ASCII
PermSize=20
Overwrite=0
Authenticate=0
測試Server 端配置是否成功:
bjinms221.bj.com> ttisql fxrep
Copyright (c) 1996-2007, Oracle. All rights reserved.
Type ? or "help" for help, type "exit" to quit ttIsql.
All commands must end with a semicolon character.
connect "DSN=fxrep";
Connection successful: DSN=fxrep;UID=times;DataStore=/export/home/times/TimesTen/datastore/fxrep;DatabaseCharacterSet=US7ASCII;ConnectionCharacterSet=US7ASCII;DRIVER=/export/home/times/TimesTen/tt70/lib/libtten.so;Authenticate=0;PermSize=20;TypeMode=0;
(Default setting AutoCommit=1)
Command>
Step 2: 在Client端機器上配置DSN,指向Server端的DSN
在/ora/TimesTen/tt70/info/sys.odbc.ini檔案中新增fxrep_18 DSN的配置,如下
[fxrep_18]
TTC_SERVER=fxrep_18
TTC_SERVER_DSN=fxrep
Step 3: 在Client端機器上配置Timetens連線串
在/ora/TimesTen/tt70/info/sys.ttconnect.ini檔案中新增fxrep_18連線串的配置資訊
[fxrep_18]
Description=TimesTen Server
Network_Address=bjinms221 (在/etc/hosts檔案中配置相應的主機名和IP地址)
TCP_PORT=17003
測試Client端配置是否成功:
$ ttisqlcs fxrep_18
Copyright (c) 1996-2007, Oracle. All rights reserved.
Type ? or "help" for help, type "exit" to quit ttIsql.
All commands must end with a semicolon character.
connect "DSN=fxrep_18";
Connection successful: DSN=fxrep_18;TTC_SERVER=fxrep_18;TTC_SERVER_DSN=fxrep;UID=times;DATASTORE=/export/home/times/TimesTen/datastore/fxrep;DATABASECHARACTERSET=US7ASCII;CONNECTIONCHARACTERSET=US7ASCII;AUTHENTICATE=0;PERMSIZE=20;TYPEMODE=0;
(Default setting AutoCommit=1)
Command>
Windows平臺
執行 ODBC Administrator -> System DSN -> Add -> TimesTen CLient 7.0 -> Finish
在視窗裡填寫如下資訊
Client Dsn: fxrep_18
Server name or network address: bjinms221
單擊 SERVERS 按鈕, 新增logical server 'bjinms221' on port '17302'
Sever DSN: fxrep
然後,OK儲存
在命令列視窗測試連線
ttIsql fxrep_18
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/81/viewspace-421428/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Step by Step TimesTen --- ttIsqlSQL
- Step by Step TimesTen --- DataStore的雙向複製( 一)AST
- Step by Step TimesTen --- DataStore的雙向複製( 二)AST
- Step by Step TimesTen-- 使用ODBC訪問TimesTen資料庫C++篇(一個例子)(1)資料庫C++
- Step by Step TimesTen-- 使用ODBC訪問TimesTen資料庫C++篇(一個例子)(2)資料庫C++
- 2.4.7 Step 6: 連線到例項
- linux中配置NFS服務step by stepLinuxNFS
- React Step by StepReact
- Oracle 11gR2 Active DataGuard配置Step By Step(一)Oracle
- Oracle 11gR2 Active DataGuard配置Step By Step(二)Oracle
- Oracle 11gR2 Active DataGuard配置Step By Step(三)Oracle
- Command 模式 Step by Step模式
- BAPI Step by step GuidanceAPIGUI
- Linkerd 2.10(Step by Step)—設定服務配置檔案
- Promise的實現(step by step)Promise
- Learn c++ step by step (轉)C++
- Linux Software RAID step by stepLinuxAI
- Git Step by Step (3):Git物件模型Git物件模型
- Oracle高階複製Step by StepOracle
- 安裝linux(step by step)(轉)Linux
- Learn C++ step by step(2) (轉)C++
- 配置TimesTen客戶端連線[TimesTen運維]客戶端運維
- 單步除錯 step into/step out/step over 區別詳解除錯
- Linkerd 2.10(Step by Step)—使用 Kustomize 自定義 Linkerd 的配置
- ABP應用開發(Step by Step)-下篇
- ABP應用開發(Step by Step)-上篇
- TIDB DM資料同步step by stepTiDB
- Git Step by Step (4):探索.git目錄Git
- ClearCase使用入門--step by step(序) (轉)
- 實時 Linux 抖動分析 Step by stepLinux
- Git Step by Step (6):Git遠端倉庫Git
- STEP BY STEP INSTALL SSH ON AIX5.3(6.1)AI
- install 11G ASM on RedHat step by stepASMRedhat
- oracle10g simpe AQ step by step(二)Oracle
- oracle10g simpe AQ step by step(一)Oracle
- step by step install netbackup client 6.5 on aixclientAI
- Step by Step Data Replication Using Oracle GoldenGateOracleGo
- Step by Step 安裝 BizTalk Server 2009Server