TimesTen1122配置客户端连接

来源:互联网 发布:2005至2008年网络歌曲 编辑:程序博客网 时间:2024/06/06 19:55

1、配置TNS

在使用TT客户端之前需要安装oracle客户端,配置好连接oracle数据库的TNSFYL_TT =  (DESCRIPTION =    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.6.99)(PORT = 1521))    (CONNECT_DATA =      (SERVER = DEDICATED)      (SERVICE_NAME = fyl)    )  )测试[oracle@db1 admin]$ sqlplus scott@fyl_tt/tiger

2、安装TT客户端软件

[oracle@db1 linux8664]$ ./setup.sh ERROR: The /etc/TimesTen directory needs to be created for the instance registry       and its ownership and permissions set appropriately.       Please refer to the installation guide for assistance.[oracle@db1 linux8664]$ [oracle@db1 linux8664]$ [oracle@db1 linux8664]$ ./setup.sh NOTE: Each TimesTen installation is identified by a unique instance name.      The instance name must be a non-null alphanumeric string, not longer      than 255 characters.Please choose an instance name for this installation? [ tt1122 ] Instance name will be 'tt1122'.Is this correct? [ yes ] Of the three components:  [1] Client/Server and Data Manager  [2] Data Manager Only  [3] Client OnlyWhich would you like to install? [ 1 ] 3Of the following options :  [1] /home/oracle  [2] /soft  [3] Specify a location  [q] Quit the installationWhere would you like to install the tt1122 instance of TimesTen? [ 1 ] 3Please specify a directory to install TimesTen? [ /home/oracle ] /u02Installing into /u02/TimesTen/tt1122 ...Creating /u02/TimesTen/tt1122 ...Uncompressing ...NOTE: For security, we recommend that you restrict access to the      TimesTen installation to members of a single OS group. Only members of      that OS group will be allowed to perform direct mode connections to      TimesTen, and only members of that OS group will be allowed to perform      operations that access TimesTen data stores, TimesTen files and shared      memory. The OS group defaults to the primary group of the instance      administrator. You can default to this group, choose another OS group      or you can make this instance world-accessible. If you choose to make      this instance world-accessible, all database files and shared memory      are readable and writable by all users.Restrict access to the the TimesTen installation to the group 'oinstall'? [ yes ]       TNS_ADMIN was not set in your environment but there is a tnsnames.ora      file in /u01/app/oracle/product/11.2.0/db_1/network/admin.Would you like to use this TNS_ADMIN setting for the Oracle TimesTen Application-Tier Database Cache? [ yes ] TNS_ADMIN will be set to /u01/app/oracle/product/11.2.0/db_1/network/adminYou can change TNS_ADMIN later by running <install_dir>/bin/ttmodinstall.NOTE: It appears that you are running version 4 or higher of the g++      compiler. TimesTen ships with multiple sets of client libraries and server      binaries : one built for compatibility with g++ 3.4.6 and one with      g++ 4.1.0. The installer has created links to the 4.1.0 library in the      <install_dir>/lib directory and to the 4.1.0 server binary in the      <install_dir>/bin directory. If you want to use a different compiler,      please modify the links to point to the desired library and server binary.Do you want to install the Quick Start Sample Programs and the TimesTen Documentation? [ no ] Would you like to install the documentation (without the Quick Start Sample Programs)? [ yes ] Where would you like to create the doc directory? [ /u02/TimesTen/tt1122/doc ] The TimesTen documentation has been installed in /u02/TimesTen/tt1122/doc.Installing client components ...What is the name of the host running the TimesTen server? [ db1 ] What is the TCP/IP port number that the TimesTen server is listening on? [ 53397 ] The 11.2.2.8 Release Notes are located here :  '/u02/TimesTen/tt1122/README.html'End of TimesTen installation.
3、配置客户端数据源

查看服务器端服务端口[oracle@fyl admin]$ ttstatus|grep "TimesTen server"TimesTen server pid 2401 started on port 53397配置客户端数据源[oracle@db1 info]$ vi sys.ttconnect.ini [mydb_test]Description=TimesTen ServerNetwork_Address=192.168.6.99TCP_PORT=53397[oracle@db1 info]$ vi sys.odbc.ini [ODBC Data Sources]mydb_CS=TimesTen 11.2.2 Client Driver[mydb_CS]TTC_SERVER=mydb_testTTC_SERVER_DSN=mydbUID=scott
4、测试

[oracle@db1 bin]$ ./ttisqlcs mydb_CSCopyright (c) 1996, 2015, Oracle and/or its affiliates. All rights reserved.Type ? or "help" for help, type "exit" to quit ttIsql.connect "DSN=mydb_CS";Enter password for 'scott': Connection successful: DSN=mydb_CS;TTC_SERVER=mydb_test;TTC_SERVER_DSN=mydb;UID=scott;DATASTORE=/u02/TimesTen/oradata/mydb;DATABASECHARACTERSET=ZHS16GBK;CONNECTIONCHARACTERSET=US7ASCII;PERMSIZE=60;TEMPSIZE=40;TYPEMODE=0;ORACLENETSERVICENAME=fyl;(Default setting AutoCommit=1)Command> tables;  SCOTT.DEPT1 table found.Command> select * from dept;< 10, ACCOUNTING, NEW YORK >< 20, RESEARCH, DALLAS >< 30, SALES, CHICAGO >< 40, OPERATIONS, BOSTON >4 rows found.




0 0
原创粉丝点击
热门问题 老师的惩罚 人脸识别 我在镇武司摸鱼那些年 重生之率土为王 我在大康的咸鱼生活 盘龙之生命进化 天生仙种 凡人之先天五行 春回大明朝 姑娘不必设防,我是瞎子 美的电饭煲啪一声响不工作了怎么办 误给宝宝吃了坏的饭怎么办 鼠标没反应键盘指示灯不亮怎么办 新买变频冰箱风机声音大怎么办 三星手机玩王者荣耀一直闪退怎么办 刚申请的阿里大宝卡不想要了怎么办 国美刚买不到一个月电视坏了怎么办 交保险后保险公司不给开收据怎么办 收据白联作废红联丢失怎么办 收据作废客户联给客户了怎么办 宜家买的床和床垫搬家了怎么办 科龙空调开机后自己关机怎么办 以旧换新旧的没给商家 报案怎么办 想换新手机但是旧的没坏怎么办 从苏宁易购买的电视坏了怎么办 苏宁易购服务站买的电视坏了怎么办 用微信登陆京东账号退不出来怎么办 微信账号密码手机号都忘记了怎么办 我的手机号京东被别人绑定了怎么办 京东之前绑定的手机号不用了怎么办 京东退货钱未到银行卡账号里怎么办 京东身份证绑的手机号不用了怎么办 海尔冰箱要退货箱子扔了怎么办 海尔冰箱门变形关不严没吸力怎么办 长时间不用的手机忘记密码怎么办啊 微信忘记密码手机号又不用了怎么办 华为账号换了手机密码忘记了怎么办 用u盘制作音响喊话内容怎么办 新三板公司退市了小股东怎么办? 新三板公司退市股东股票怎么办 利群收购乐天玛特超市卡怎么办 买房过户夫妻一方是外省户口怎么办 欠了国美金融贷款没钱还会怎么办? 国企员工涨工资不在编的员工怎么办 装车牌照的螺丝孔小了怎么办 北京摇号之后中签和未中签怎么办 拉轿车的大车出车祸车怎么办 美图m6手机忘记锁屏密码怎么办 微信验证码登录收不到验证码怎么办 微信被限制登录收不到验证码怎么办 微信登录申诉收不到短信怎么办