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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 2.4.7 Step 6: 連線到例項
- React Step by StepReact
- Linkerd 2.10(Step by Step)—使用 Kustomize 自定義 Linkerd 的配置
- Linkerd 2.10(Step by Step)—設定服務配置檔案
- Command 模式 Step by Step模式
- Linkerd 2.10(Step by Step)—4. 如何配置外部 Prometheus 例項Prometheus
- Promise的實現(step by step)Promise
- Shell Step by Step (4) —— Cron & Echo
- Step by Step 安裝 BizTalk Server 2009Server
- Step by Step Data Replication Using Oracle GoldenGateOracleGo
- TIDB DM資料同步step by stepTiDB
- 單步除錯 step into/step out/step over 區別詳解除錯
- 實時 Linux 抖動分析 Step by stepLinux
- ABP應用開發(Step by Step)-下篇
- ABP應用開發(Step by Step)-上篇
- Linkerd 2.10(Step by Step)—多叢集通訊
- Sql Server Linux(Redhat) Distributed Availability Group Setup — step by stepSQLServerLinuxRedhatAI
- 10GR2下建立物理standby STEP BY STEP
- Step-by-step,打造屬於自己的vue ssrVue
- Adaboost Algorithm StepGo
- 深度學習之step by step搭建神經網路深度學習神經網路
- Vue.js SSR Step by Step (1) – 實現簡單的client-only vue-webpack 配置Vue.jsclientWeb
- 使用Eclipse 安裝 構建Maven專案 (step-by-step)EclipseMaven
- HTML step 屬性HTML
- 【Step-By-Step】高頻面試題深入解析 / 週刊06面試題
- 【Step-By-Step】高頻面試題深入解析 / 週刊07面試題
- 【Step-By-Step】高頻面試題深入解析 / 週刊04面試題
- 【Step-By-Step】高頻面試題深入解析 / 週刊05面試題
- 【Step-By-Step】高頻面試題深入解析 / 週刊03面試題
- 【Step-By-Step】高頻面試題深入解析 / 週刊01面試題
- 【Step-By-Step】高頻面試題深入解析 / 週刊02面試題
- 阿里雲數倉Dataworks資料匯出到檔案step by step阿里
- Linkerd 2.10(Step by Step)—1. 將您的服務新增到 Linkerd
- Linkerd 2.10(Step by Step)—將 GitOps 與 Linkerd 和 Argo CD 結合使用GitGo
- 2.4.8 Step 7: 建立spfile
- step1 補充
- Vue.js SSR Step by Step (2) – 一個簡單的同構DEMOVue.js
- [完結] Learn Vue 2: Step By Step [Laracasts 免費視訊中文語音]VueAST
- [完結] Learn Vue 2: Step By Step [Laracasts 免費影片中文語音]VueAST