timesten的安装

因为工作的需要,我编写了一份timesten的安装文档。安装环境是RedHat AS5 64位的操作系统。

1、  root登录系统

 

2、  /etc/sysctl.conf文件后追加一些配置,vi /etc/sysctl.conf

#edit for timesten

net.ipv4.tcp_rmem=4096 4194304 4194304   

net.ipv4.tcp_wmem=98304 4194304 4194304   

net.ipv4.tcp_mem=98304 4194304 4194304   

net.core.rmem_default=262144   

net.core.wmem_default=262144   

net.core.rmem_max=4194304   

net.core.wmem_max=4194304   

net.ipv4.tcp_window_scaling=1

net.ipv4.ip_local_port_range=1024 65000

kernel.sem=5000 32000 100 128

保存退出

 

3、  修改limit配置

echo "* hard nofile 8192" >> /etc/security/limits.conf

echo "* soft nofile 8192" >> /etc/security/limits.conf

 

4、  重启机器

reboot

 

5、  建用户

useradd timesten -d /timesten

 

6、  passwd命令修改timesten用户的口令为timesten

 

7、  切换成timesten用户

su – timesten

 

8、  tt70install.tar.gz放到/timesten目录下

 

9、  解压tt70install.tar.gz

tar -xvf tt70install.tar.gz

 

10、              安装timesten

su - root

mkdir /etc/TimesTen/

chown timesten:timesten /etc/TimesTen/

su – timesten

cd install

./setup.sh

 

 

11、              选择产品是64位,还是32位,出现如下提示:

Of the following two choices :

 

  [1] 32-bit Linux for x86

  [2] 64-bit Linux for AMD64 and Intel EM64T processors

 

Which platform are you currently running? [ 2 ]

 

选择安装64Linux版本,确认回车

 

12、              确认timesten实例名,出现如下提示

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? [ tt70 ]

默认选择timesteninstance名字,直接回车,提示:

Instance name will be 'tt70'.

Is this correct? [ yes ]

默认回车

 

13、              选择安装产品,出现如下提示

Please select a product :

 

  [1] Oracle TimesTen In-Memory Database

  [2] Oracle TimesTen In-Memory Database with Cache Connect to Oracle

 

Which product would you like to install? [ 1 ] 2

选择安装“Oracle TimesTen In-Memory Database with Cache Connect to Oracle”,输入2,确认回车

 

14、              选择安装组件,出现如下提示

Of the three components:

 

  [1] Client/Server and Data Manager

  [2] Data Manager Only

  [3] Client Only

 

Which would you like to install? [ 1 ]

选择安装“Client/Server and Data Manager”,默认确认回车

 

15、              选择安装timesten的目录,出现如下提示

Where would you like to install the tt70 instance of TimesTen? [ /timesten ]

选择/timesten,确认回车

 

16、              选择创建守护进程的主目录,出现如下提示

Where would you like to create the daemon home directory? [ /timesten/TimesTen/tt70/info ]

默认回车,出现如下提示:

The directory /timesten/TimesTen/tt70/info does not exist.

Do you want to create it? [ yes ]

提示目录不存在是否创建,默认选择yes,确认回车。开始解压安装,提示如下

Installing into /timesten/TimesTen/tt70 ...

Uncompressing ...

 

 

17、              解压结束后,安装Demo程序,出现如下提示

 

 

The TimesTen Demo applications can take up to 64 Mbytes of disk space.

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

DemoDataStore directory in the default location,

/timesten/TimesTen/tt70/info/DemoDataStore

 

Where would you like to create the DemoDataStore directory? [ /timesten/TimesTen/tt70/info ]

默认回车确认,提示如下:

Creating /timesten/TimesTen/tt70/info/DemoDataStore ...

 

18、              选择timesten守护进程的端口,出现如下提示

 

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

      port number that is set at installation time. The daemon port number can

      be verified by running 'ttVersion'.

 

The default port number is 17001.

 

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

默认选择17001端口,确认端口没有被占用 [1] ,确认方法见脚注。

如果17001端口没有被占用的话,则默认回车确认,如果被占用,则输入no,回车,出现如下提示

Please enter a unique port number for the TimesTen daemon (<CR>=list)? [ ] 18001

输入一个没有被占用的端口,回车确认。系统提示安装过程:

Processing /timesten/TimesTen/tt70/PERL/perl.tar ...

 

19、              选择激活数据存储的控制权限,出现如下提示

Would you like to enable datastore access control? [ no ]yes

输入yes,回车确认,出现如下提示

The daemon log will be located in /timesten/TimesTen/tt70/info

 

20、              选择timesten守护进程日志

Would you like to specify a different location for the daemon log? [ no ]yes

为方便管理,应该重新选择日志目录,输入yes,出现如下提示:

Where would you like the daemon log to be written? [ /timesten/TimesTen/tt70/info ]

 

在新的终端 [2] 里面,用timesten用户登录,建立目录

cd /timesten/TimesTen/tt70

mkdir log

 

回到安装timesten的终端,输入新的目录

Where would you like the daemon log to be written? [ /timesten/TimesTen/tt70/info ] /timesten/TimesTen/tt70/log

回车确认,出现提示:

Are you sure you want the daemon log to be written to /timesten/TimesTen/tt70/log? [ yes ]

默认回车,确认把日志写到新建的目录下

 

21、              输入ORACLE_HOME,出现如下提示

NOTE: Cache Connect to Oracle requires the ORACLE_HOME environment variable.

      If you cannot provide a valid path to your Oracle installation,

      you must modify the script :

        /timesten/TimesTen/tt70/bin/ttThunk

      as well as the daemon options file :

        /timesten/TimesTen/tt70/info/ttendaemon.options

      when you have acquired the appropriate value.

      Cache Connect to Oracle will not function properly without

      ORACLE_HOME defined in these files.

      Note that you can add or change this instance's ORACLE_HOME setting

      by running <install_dir>/bin/ttmodinstall -changeOracleSetting.

 

Would you like to specify a value for ORACLE_HOME ? [ yes ]

 

默认回车确认,出现提示

Please enter a value for ORACLE_HOME (q=quit)? [  ]

因为安装billing应用的时候,已经把oracle的客户端安装好,所以这里直接输入“/opt/oracle/product/ 10.2.0 /db_ 1

Please enter a value for ORACLE_HOME (q=quit)? [  ] /opt/oracle/product/ 10.2.0 /db_1

 

回车确认,系统提示:

The following variables have been set in the file :

/timesten/TimesTen/tt70/bin/ttThunk

 

ORACLE_HOME= /opt/oracle/product/ 10.2.0 /db_1

 

22、              激活Cache Connect to Oracle Administrator,出现提示

Would you like to enable the Cache Connect to Oracle Administrator? [ yes ]

默认回车确认

 

23、              选择Cache Connect to Oracle Administrator的端口,出现提示

What TCP/IP port number would you like Cache Connect to Oracle Administrator to listen on? [ 18005 ]

安装程序会提示一个默认端口,按照前面的方法确认这个端口没有被占用,如果占用则选择别的端口,输入正确的端口号,回车确认,出现提示

NOTE: To access the TimesTen Cache Connect to Oracle Administrator

      go to the url: http://localhost:18005/cache

 

由于g++版本的原因,安装程序可能会提示

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

      compiler. TimesTen ships with multiple sets of client libraries and server

      binaries : one built with g++ 3.2.3 , one 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.

 

之后,系统开始安装server组件,安装程序提示

Installing server components ...

 

24、              选择记录所有server的连接和断开连接

Would you like to log all server Connects/Disconnects? [ yes ]

默认回车确认

 

25、              选择TimesTen服务TCP端口,出现提示

What is the TCP/IP port number that you want the TimesTen Server to listen on? [ 18003 ]

安装程序会提示一个默认端口,按照前面的方法确认这个端口没有被占用,如果占用则选择别的端口,输入正确的端口号,回车确认,出现提示

Starting the daemon ...

TimesTen Daemon startup OK.

 

Installing client components ...

 

 

26、              确认TimesTen服务安装的机器、端口、instance,出现提示

What is the name of the host running the TimesTen server? [ localhost ]

安装程序将获取本机的hostname,默认回车确认。

 

确认TimesTen服务的端口,出现提示

What is the TCP/IP port number that the TimesTen server is listening on? [ 18003 ]

此处安装程序将默认选择上一步的端口,默认回车确认

 

确认TimesTen服务的instance,出现提示

What is the name of the instance running the TimesTen server? [ tt70 ]

此处安装程序默认选择tt70,默认回车确认

 

安装程序提示

Creating new /timesten/TimesTen/tt70/info/sys.ttconnect.ini

Extracting 3rd party tools ...

 

27、              不安装TimesTen文档,出现提示

Would you like to install the documentation? [ yes ]no

输入no,回车确认,出现提示

Documentation not installed.

To manually install the documentation, run the command 'setup.sh -installDoc'

 

28、              安装结束,安装程序提示如下

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

 

As root, run the script 'setuproot', located in /timesten/TimesTen/tt70/bin,

to move the TimesTen startup script into its appropriate location.

 

The startup script is currently located here :

  '/timesten/TimesTen/tt70/startup/tt_tt70'.

 

End of TimesTen installation.

安装程序提示可以用root运行setuproot,这个脚本是用来在机器重启后自动重启TimesTen的,可以不运行,以后手工启动。

 


[1] netstat –an|grep 17001来确认,如果提示该端口已经处以LISTEN状态,则标明该端口已经被占用,否则则该端口能够被使用

tcp        0      0 127.0.0.1:17001          0.0.0 .0:*                   LISTEN  

 

[2] 用远程登录工具,重新开一个登录终端


你可能感兴趣的:(timesten的安装)