Timesten11G安裝

jolly10發表於2012-03-27
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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章