TimesTen在linux下的安装

转载请注明来源http://blog.csdn.net/vitallor

1.安装前准备

创建TimesTen用户,TimesTen一定要分到dba组下

[root@localhost~]# groupadd dba

[root@localhost~]# useradd -g dba timesten

[root@localhost~]# passwd timesten

 

创建/etc/TimesTen目录,此目录不创建安装时会报错

[root@localhost~]# mkdir /etc/TimesTen

[root@localhost~]# chown timesten:dba /etc/TimesTen

 

用timesten用户登录系统,解压安装包

[timesten@localhostlinux8664]$ tar zxvf timesten112180.linux8664.tar.gz


2.装TimesTen

2.1安装步骤

用timesten用户登录系统,进行安装。

2.2执行安装程序

[timesten@test141-serverlinux8664]$ ./setup.sh

以下按安装过程,屏幕打印的顺序描述安装步骤

NOTE:Each TimesTen installation is identified by a unique instance name.

      The instance name must be a non-nullalphanumeric string, not longer

      than 255 characters.

2.2.1确认TT的名字

Please choose an instance namefor this installation? [ tt1121 ]

Instancename will be 'tt1121'.

Is this correct? [ yes ]

 

2.2.2选择安装全部还是只安装客户端

选1安装全部,选3只安装客户端

Of thethree components:

 

  [1] Client/Server and Data Manager

  [2] Data Manager Only

  [3] Client Only

 

Which would you like to install?[ 1 ]

 

2.2.3选择安装路径

Of thefollowing options :

 

  [1] /home/timesten

  [2] /software

  [3] Specify a location

  [q] Quit the installation

 

Where would you like to installthe tt1121 instance of TimesTen? [ 1 ]

Where would you like to createthe daemon home directory? [ /home/timesten/TimesTen/tt1121/info ]

 

Thedaemon logs will be located in /home/timesten/TimesTen/tt1121/info

Would you like to specify adifferent location for the daemon logs? [ no ]

Installinginto /home/timesten/TimesTen/tt1121 ...

Uncompressing...

 

NOTE: Ifyou are configuring TimesTen for use with Oracle Clusterware, the

      daemon port number must be the sameacross all TimesTen installations

      managed within the same OracleClusterware cluster.

 

NOTE:All installations that replicate to each other must use the same daemon

      port number that is set at installationtime. The daemon port number can

      be verified by running 'ttVersion'.

 

Thedefault port number is 53388.

 

2.2.4确认TT端口

Do you want to use the defaultport number for the TimesTen daemon? [ yes ]

Thedaemon will run on the default port number (53388).

 

NOTE:For security, we recommend that you restrict access to the

      TimesTen installation to members of asingle OS group. Only members of

      that OS group will be allowed to performdirect mode connections to

      TimesTen, and only members of that OSgroup will be allowed to perform

      operations that access TimesTen datastores, TimesTen files and shared

      memory. The OS group defaults to theprimary group of the instance

      administrator. You can default to thisgroup, choose another OS group

      or you can make this instanceworld-accessible. If you choose to make

      this instance world-accessible, alldatabase files and shared memory

      are readable and writable by all users.

 

Restrict access to the theTimesTen installation to the group 'timesten'? [ yes ]

 

NOTE:Enabling PL/SQL will increase the size of some TimesTen libraries.

 

Would you like to enable PL/SQLfor this instance? [ yes ]

 

2.2.5指定ORACLE的TNS文件所在路径

如果选择的是全部安装,会需要指定ORACLE的TNS所在路径,此步很关键

In orderto use the 'In-Memory Database Cache' feature in any databases

createdwithin this installation, you must set a value for the TNS_ADMIN

environmentvariable. It can be left blank, and a value can be supplied later

using<install_dir>/bin/ttModInstall.

 

Please enter a value forTNS_ADMIN (s=skip)? [  ]/opt/oracle/111/network/admin

 

TNS_ADMINwill be set to /opt/oracle/111/network/admin

You canchange TNS_ADMIN later by running <install_dir>/bin/ttmodinstall.

 

 

 

NOTE: Itappears that you are running version 4.1 of the g++

      compiler. TimesTen ships with multiplesets of client libraries and server

      binaries : one built for compatibilitywith g++ 3.4.6 and one with

      g++ 4.1.0. The installer has createdlinks to the 4.1.0 library in the

      <install_dir>/lib directory and tothe 4.1.0 server binary in the

      <install_dir>/bin directory. If youwant to use a different compiler,

      please modify the links to point to thedesired library and server binary.

 

Installingserver components ...

What is the TCP/IP port numberthat you want the TimesTen Server to listen on? [ 53389 ]

 

2.2.6安装QuickStart,注意要选yes

Do you want to installQuickStart and the TimesTen Documentation? [ no ] yes

Where would you like to installthe quickstart and doc directories (s=skip)? [ /home/timesten/TimesTen/tt1121 ]

 

TheTimesTen Quickstart applications can take up to 64 Mbytes of disk space.

Dependingon how your system is configured, you may not want to create the

QuickStartDemoDataStore directory in the default location,

/home/timesten/TimesTen/tt1121/info/DemoDataStore

 

Where would you like to createthe DemoDataStore directory? [ /home/timesten/TimesTen/tt1121/info ]

Creating/home/timesten/TimesTen/tt1121/info/DemoDataStore ...

 

Installingclient components ...

 

Would you like to use TimesTenReplication with Oracle Clusterware? [ no ]

 

NOTE:The TimesTen daemon startup/shutdown scripts have not been installed.

 

Run the'setuproot' script :

         cd /home/timesten/TimesTen/tt1121/bin

         ./setuproot -install

Thiswill move the TimesTen startup script into its appropriate location.

 

Thestartup script is currently located here :

 '/home/timesten/TimesTen/tt1121/startup/tt_tt1121'.

 

TheQuickstart home page can be accessed here :

 '/home/timesten/TimesTen/tt1121/quickstart/index.html'

 

The11.2.1.8 Release Notes are located here :

  '/home/timesten/TimesTen/tt1121/README.html'

 

Startingthe daemon ...

TimesTenDaemon startup OK.

End ofTimesTen installation.

[timesten@test141-serverlinux8664]$

3.修改环境变量

Timesten用户登录

[timesten@test141-server~]$ vi /home/timesten/.bash_profile

修改为:

PATH=$PATH:$HOME/bin:/home/timesten/TimesTen/tt1121/bin

 

export PATH

 

export CLASSPATH=/home/timesten/TimesTen/tt1121/lib/ttjdbc5.jar:$CLASSPATH

export ORACLE_HOME=/opt/oracle/111

exportLD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/network/lib:/home/timesten/TimesTen/tt1121/lib:$LD_LIBRARY_PATH

export PATH=$ORACLE_HOME/bin:$PATH

4.查看安装情况

[timesten@test141-server~]$ cd/home/timesten/TimesTen/tt1121/bin

[timesten@test141-server~]$  ls -ltr ttenv.*

-r--r-----1 timesten timesten 330 07-08 20:33 ttenv.sh

-r--r-----1 timesten timesten 331 07-08 20:33 ttenv.csh

5.查看TT环境变量

[timesten@test141-server bin]$ttenv.sh

LD_LIBRARY_PATHset to/home/timesten/TimesTen/tt1121/lib:/home/timesten/TimesTen/tt1121/ttoracle_home/instantclient_11_1

 

ANT_HOMEset to /home/timesten/TimesTen/tt1121/3rdparty/ant

 

PATH setto /home/timesten/TimesTen/tt1121/bin:/home/timesten/TimesTen/tt1121/quickstart/sample_code/oci:/home/timesten/TimesTen/tt1121/quickstart/sample_code/odbc:/home/timesten/TimesTen/tt1121/quickstart/sample_code/odbc/xla:/home/timesten/TimesTen/tt1121/quickstart/sample_code/jdbc:/home/timesten/TimesTen/tt1121/quickstart/sample_code/odbc_drivermgr:/home/timesten/TimesTen/tt1121/quickstart/sample_code/proc:/home/timesten/TimesTen/tt1121/quickstart/sample_code/ttclasses:/home/timesten/TimesTen/tt1121/quickstart/sample_code/ttclasses/xla:/home/timesten/TimesTen/tt1121/ttoracle_home/instantclient_11_1:/home/timesten/TimesTen/tt1121/ttoracle_home/instantclient_11_1/sdk:/home/timesten/TimesTen/tt1121/3rdparty/ant/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/timesten/bin

 

CLASSPATHset to /home/timesten/TimesTen/tt1121/lib/ttjdbc5.jar:/home/timesten/TimesTen/tt1121/lib/orai18n.jar:/home/timesten/TimesTen/tt1121/lib/timestenjmsxla.jar:/home/timesten/TimesTen/tt1121/3rdparty/jms1.1/lib/jms.jar:.

 

TNS_ADMINset to /opt/oracle/111/network/admin

6.查看TT版本号

[timesten@test141-server bin]$ttversion

TimesTenRelease 11.2.1.8.0 (64 bit Linux/x86_64) (tt1121:53388) 2011-02-02T02:20:46Z

  Instance admin: timesten

  Instance home directory:/home/timesten/TimesTen/tt1121

  Group owner: timesten

  Daemon home directory:/home/timesten/TimesTen/tt1121/info

  PL/SQL enabled.

7.查看TT状态

[timesten@test141-server bin]$ttstatus

TimesTenstatus report as of Fri Jul  8 21:22:172011

 

Daemonpid 17377 port 53388 instance tt1121

TimesTenserver pid 17387 started on port 53389

------------------------------------------------------------------------

Accessibleby group timesten

End ofreport

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值