Timesten11G安装

Timesten11G安装[@more@]

1.修改内核参数,由于之前已安装过11gR2 client端,此部忽略
修改/etc/sysctl.conf文件,加上如下列
kernel.shmmax = 2147483648
kernel.sem = 270 32000 100 128
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 = 65535
net.core.wmem_default = 65535
net.core.rmem_max = 4194304
net.core.wmem_max = 4194304
net.ipv4.tcp_window_scaling = 1
net.ipv4.ip_local_port_range = 1024 65000

然后执行 sysctl -p ,使修改生效

2.添加用户和目录
[root@rhel132 linux86]# mkdir /etc/TimesTen
[root@rhel132 linux86]# groupadd ttadmin
[root@rhel132 linux86]# chgrp -R ttadmin /etc/TimesTen
[root@rhel132 linux86]# chmod 770 /etc/TimesTen
[root@rhel132 linux86]# chmod 660 /etc/TimesTen/*
[root@rhel132 linux86]# useradd timesten
[root@rhel132 linux86]# usermod -G ttadmin,oinstall timesten

3.安装timesten
[root@rhel132 resource]# su - timesten
[timesten@rhel132 ~]$ cd /u01/resource/linux86


[timesten@rhel132 linux86]$ ./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 Only

Which would you like to install? [ 1 ]

Of the following options :

[1] /home/timesten
[2] /u01/resource
[3] Specify a location
[q] Quit the installation

Where would you like to install the tt1122 instance of TimesTen? [ 1 ]
Where would you like to create the daemon home directory? [ /home/timesten/TimesTen/tt1122/info ]

The daemon logs will be located in /home/timesten/TimesTen/tt1122/info
Would you like to specify a different location for the daemon logs? [ no ]
Installing into /home/timesten/TimesTen/tt1122 ...
Uncompressing ...

NOTE: If you are configuring TimesTen for use with Oracle Clusterware, the
daemon port number must be the same across all TimesTen installations
managed within the same Oracle Clusterware cluster.

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

Do you want to use the default port number for the TimesTen daemon? [ yes ]
The daemon will run on the default port number (53392).

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 'timesten'? [ yes ]

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

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

In order to use the 'In-Memory Database Cache' feature in any databases
created within this installation, you must set a value for the TNS_ADMIN
environment variable. It can be left blank, and a value can be supplied later
using /bin/ttModInstall.

Please enter a value for TNS_ADMIN (s=skip)? [ ] /u01/app/oracle/product/10201

TNS_ADMIN will be set to /u01/app/oracle/product/10201
You can change TNS_ADMIN later by running /bin/ttmodinstall.


NOTE: It appears that you are running version 3.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 3.4.6 library in the
/lib directory and to the 3.4.6 server binary in the
/bin directory. If you want to use a different compiler,
please modify the links to point to the desired library and server binary.

Installing server components ...
What is the TCP/IP port number that you want the TimesTen Server to listen on? [ 53393 ]
Do you want to install QuickStart and the TimesTen Documentation? [ no ] yes
Where would you like to install the quickstart and doc directories (s=skip)? [ /home/timesten/TimesTen/tt1122 ]

The TimesTen Quickstart applications can take up to 64 Mbytes of disk space.
Depending on how your system is configured, you may not want to create the
QuickStart DemoDataStore directory in the default location,
/home/timesten/TimesTen/tt1122/info/DemoDataStore

Where would you like to create the DemoDataStore directory? [ /home/timesten/TimesTen/tt1122/info ]
Creating /home/timesten/TimesTen/tt1122/info/DemoDataStore ...

Installing client components ...

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

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

Run the 'setuproot' script :
cd /home/timesten/TimesTen/tt1122/bin
./setuproot -install
This will move the TimesTen startup script into its appropriate location.

The startup script is currently located here :
'/home/timesten/TimesTen/tt1122/startup/tt_tt1122'.

The Quickstart home page can be accessed here :
'/home/timesten/TimesTen/tt1122/quickstart/index.html'

The 11.2.2.2 Release Notes are located here :
'/home/timesten/TimesTen/tt1122/README.html'

Starting the daemon ...
TimesTen Daemon startup OK.
End of TimesTen installation.

4.如果希望TimeSten随着服务器自动启动,执行下面的命令:
[oracle@rhel132 ~]$ su -
[root@rhel132 bin]# cd /home/timesten/TimesTen/tt1122/bin/
[root@rhel132 bin]# ./setuproot -install
Would you like to install the TimesTen daemon startup scripts into /etc/init.d? [ yes ]
Copying /home/timesten/TimesTen/tt1122/startup/tt_tt1122 to /etc/init.d

Successfully installed the following scripts :
/etc/init.d/tt_tt1122
/etc/rc.d/rc0.d/K45tt_tt1122
/etc/rc.d/rc1.d/K45tt_tt1122
/etc/rc.d/rc2.d/S90tt_tt1122
/etc/rc.d/rc3.d/S90tt_tt1122
/etc/rc.d/rc5.d/S90tt_tt1122
/etc/rc.d/rc6.d/K45tt_tt1122


5.如何启动停止timesten呢?(以后就简称timesten为TT)
启动TT
ttDaemonAdmin -start
停止TT
ttDaemonAdmin -stop

TT的所有配置文件都放在 install_dir/info目录下
TT产生的日志也都在 install_dir/info

6.配置环境变量

[root@rhel132 bin]# sh ttenv.sh
NOTE: unknown or unsupported java version, setting values for JDK 1.5

LD_LIBRARY_PATH set to /home/timesten/TimesTen/tt1122/lib:/home/timesten/TimesTen/tt1122/ttoracle_home/instantclient_11_2

ANT_HOME set to /home/timesten/TimesTen/tt1122/3rdparty/ant

PATH set to /home/timesten/TimesTen/tt1122/bin:/home/timesten/TimesTen/tt1122/quickstart/sample_code/oci:/home/timesten/TimesTen/tt1122/quickstart/sample_code/odbc:/home/timesten/TimesTen/tt1122/quickstart/sample_code/odbc/xla:/home/timesten/TimesTen/tt1122/quickstart/sample_code/jdbc:/home/timesten/TimesTen/tt1122/quickstart/sample_code/odbc_drivermgr:/home/timesten/TimesTen/tt1122/quickstart/sample_code/proc:/home/timesten/TimesTen/tt1122/quickstart/sample_code/ttclasses:/home/timesten/TimesTen/tt1122/quickstart/sample_code/ttclasses/xla:/home/timesten/TimesTen/tt1122/ttoracle_home/instantclient_11_2:/home/timesten/TimesTen/tt1122/ttoracle_home/instantclient_11_2/sdk:/home/timesten/TimesTen/tt1122/3rdparty/ant/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin

CLASSPATH set to /home/timesten/TimesTen/tt1122/lib/ttjdbc5.jar:/home/timesten/TimesTen/tt1122/lib/orai18n.jar:/home/timesten/TimesTen/tt1122/lib/timestenjmsxla.jar:/home/timesten/TimesTen/tt1122/3rdparty/jms1.1/lib/jms.jar:.

TNS_ADMIN set to /u01/app/oracle/product/10201

执行过后发现这些值并没有在timesten下.bash_profile,手动将这些值加在了.bash_profile下

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/271283/viewspace-1057738/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/271283/viewspace-1057738/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值