Timesten for Unix的安装

下载安装文件

1.         查看系统的具体版本,获取相应安装文件

安装文件下载路径:

http://www.oracle.com/technology/global/cn/software/products/timesten/index.html

安装前的准备

1.         检查系统参数

a)         设置大文件系统(默认系统是支持的)
#/usr/sbin/fsadm -F xvfs  -o largefiles /dir_name

b)        设置最大的共享内存段

              通过# /usr/sbin/kctune 命令可以查看系统参数

              semmns  是系统内系统用户可用的IPC信号总数。

              shmmax 最大的共享内存段,以字节为单位,一般设置为可以最大使用的内存的实际大小。

 

              如果是HP-Unix,可以通过/usr/sbin/sam或者/usr/sbin/smh来设置系统内核参数。

 

              这些系统参数都可以在安装完毕之后再设置。

 

2.         检查是否已安装JDK

3.         检查是否已安装Oracle客户端

Timesten7支持Oracle 9i,10g及以上版本。

4.         配置相关环境变量:

ORACLE_HOME,JAVA_HOME

 

在安装完毕之后,还需要修改LD_LIBRARY_PATH环境变量

LD_LIBRARY_PATH=$TimesTen_Installation/lib:$Oracle_Home/lib

/*如果是64位的,一定要注意是否是$Oracle_Home/lib64 */

 

创建用户/用户组

1.         创建用户组和用户

#增加组TimesTen
groupadd TimesTen

#增加用户timesten并加入到sysTimesTen组中:

useradd -g TimesTen -G sys –d  /YOUR_INSTALL_DIR/TimesTen  timesten

passwd timesten

 

2.         准备相关目录:

# /etc/TimesTen 不一定是安装指定目录,但是安装前必须的目录,在安装时,会生成instance_info文件。

mkdir /etc/TimesTen

chown –R timesten:TimesTen /etc/TimesTen

# 准备自定义的安装目录
mkdir  /YOUR_INSTALL_DIR/TimesTen
chmod  775 /YOUR_INSTALL_DIR/TimesTen
chgrp  -R  TimesTen /YOUR_INSTALL_DIR/TimesTen
chown -R timesten:TimesTen /YOUR_INSTALL_DIR/TimesTen

3.         配置用户组具有所内存的权限

/*root 用户执行*/
      setprivgrp TimesTen MLOCK

开始安装

以下安装步骤中显示的提示 是安装Linux版本的提示,跟安装Unix版本基本相同。

除了自定义安装路径,以及选择安装的产品为” Oracle TimesTen In-Memory Database with Cache Connect to Oracle”,其他大部分按照默认选项。

 

1  解压 tt70install.tar.gz

tar -xvf tt70install.tar.gz

2    安装 timesten

su – timesten

cd install

./setup.sh

3、选择产品是 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 ]

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

4 确认 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 ]

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

Instance name will be 'tt70'.

Is this correct? [ yes ]

默认回车

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

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 ,确认回车

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

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 ”,默认确认回车

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

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

选择 /timesten ,确认回车

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

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 ...

9              解压结束后,安装 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 ...

10              选择 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 端口,确认端口没有被占用,确认方法见脚注。

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

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

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

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

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

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

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

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

12              选择 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 ]

在新的终端里面,用 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 ]

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

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

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

默认回车确认

14              选择 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 ...

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

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

默认回车确认

16              选择 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 ...

17              确认 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 ...

18              不安装 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'

19              安装结束,安装程序提示如下

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

As root, run the script 'set

 

配置DSN

编辑/YOUR_INSTALL_DIR/TimesTen/tt70/info/sys.odbc.ini文件

1.         [ODBC Data Sources] 节点下加入自定义的DSN名称(例如tt92_bison32),属性值为TimesTen 7.0 Driver

[ODBC Data Sources]

tt92_bison32=TimesTen 7.0 Driver

 

2.         加入自定义DSN节点,例如[tt92_bison32]

 

#############################

#instance for test Data Store

#####################

[tt92_bison32]

Driver=/YOUR_INSTALL_DIR/TimesTen/tt70/lib/libtten.so

DataStore=/YOUR_INSTALL_DIR/TimesTen/tt70/info/tt92_bison32

DatabaseCharacterSet=AL32UTF8

PermSize=6000

Overwrite=0

Authenticate=0

UID=bison32

OracleId=103392

OraclePwd=bison32

 

 

 

你可能感兴趣的:(oracle,linux,cache,unix,HP)