vi /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
groupadd ttadmin
useradd timesten
usermod -G ttadmin,oinstall timesten
su - timesten
vi .bash_profile
export CLASSPATH=/opt/TimesTen/tt1122/lib/ttjdbc6.jar.jar:$CLASSPATH
export PATH=/opt/TimesTen/tt1122/bin:$PATH
export ORACLE_HOME=/opt/oracle/product/11.2.0/db_1
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$ORACLE_HOME/network/lib:/opt/TimesTen/tt1122/lib:$LD_LIBRARY_PATH
mkdir /etc/TimesTen
chgrp -R ttadmin /etc/TimesTen
chmod 770 /etc/TimesTen
chmod 660 /etc/TimesTen/*
mkdir /opt/TimesTen
chgrp -R ttadmin /opt/TimesTen
chmod 770 /opt/TimesTen
chmod 660 /opt/TimesTen/*
su - timesten
cd /home/timesten
tar xvfz timesten112260.linux86.tar.gz
cd linux86/
[timesten@localhost linux86]$ ls -ltr
total 436
-rwxr-xr-x 1 timesten timesten 34886 Nov 22 2013 uninst.sh
-rwxr-xr-x 1 timesten timesten 5623 Nov 22 2013 setup.sh
-rwxr--r-- 1 timesten timesten 128225 Nov 22 2013 README.html
-rwxr-xr-x 1 timesten timesten 248855 Nov 22 2013 install.pl
drwxrwxr-x 2 timesten timesten 4096 Nov 22 2013 doc
drwxr-xr-x 2 timesten timesten 4096 Nov 22 2013 3rdparty
drwxr-xr-x 2 timesten timesten 4096 Nov 22 2013 LINUX86
[timesten@localhost linux86]$ ./setup.sh
ERROR: You do not have execute permissions for the directory /etc/TimesTen.
The user must be a member of the group which owns /etc/TimesTen/instance_info.
Group members must also have write access to the directory and file.
This group, currently 'ttadmin', is the TimesTen administrators group.
Please see your system administrator or consult the TimesTen
installation guide for assistance.
[timesten@localhost 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] /home/timesten
[3] Specify a location
[q] Quit the installation
Where would you like to install the tt1122 instance of TimesTen? [ 1 ] 3
Please specify a directory to install TimesTen? [ /home/timesten ] /opt/TimesTen
Where would you like to create the daemon home directory? [ /opt/TimesTen/tt1122/info ]
The daemon logs will be located in /opt/TimesTen/tt1122/info
Would you like to specify a different location for the daemon logs? [ no ]
Installing into /opt/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)? [ ] /opt/oracle/product/11.2.0/db_1/network/admin
TNS_ADMIN will be set to /opt/oracle/product/11.2.0/db_1/network/admin
You can change TNS_ADMIN later by running /bin/ttmodinstall.
NOTE: It appears that you are running version 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 4.1.0 library in the
/lib directory and to the 4.1.0 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 ]
Would you like to install the documentation (without QuickStart)? [ yes ]
Where would you like to create the doc directory (s=skip)? [ /opt/TimesTen/tt1122/doc ]
The TimesTen documentation has been installed in /opt/TimesTen/tt1122/doc.
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 /opt/TimesTen/tt1122/bin
./setuproot -install
This will move the TimesTen startup script into its appropriate location.
The startup script is currently located here :
'/opt/TimesTen/tt1122/startup/tt_tt1122'.
The 11.2.2.6 Release Notes are located here :
'/opt/TimesTen/tt1122/README.html'
Starting the daemon ...
TimesTen Daemon startup OK.
End of TimesTen installation.
su -
[root@localhost opt]# cd /opt/TimesTen/tt1122/bin
[root@localhost bin]# ./setuproot -install
Would you like to install the TimesTen daemon startup scripts into /etc/init.d? [ yes ]
Copying /opt/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
启动TT
ttDaemonAdmin -start
停止TT
ttDaemonAdmin -stop
TT的所有配置文件都放在 install_dir/info目录下
TT产生的日志也都在 install_dir/info
配置环境变量
[root@localhost bin]# ./ttenv.sh
NOTE: unknown or unsupported java version, setting values for JDK 1.5
LD_LIBRARY_PATH set to /opt/TimesTen/tt1122/lib:/opt/TimesTen/tt1122/ttoracle_home/instantclient_11_2
ANT_HOME set to /opt/TimesTen/tt1122/3rdparty/ant
PATH set to /opt/TimesTen/tt1122/bin:/opt/TimesTen/tt1122/quickstart/sample_code/oci:/opt/TimesTen/tt1122/quickstart/sample_code/odbc:/opt/TimesTen/tt1122/quickstart/sample_code/odbc/xla:/opt/TimesTen/tt1122/quickstart/sample_code/jdbc:/opt/TimesTen/tt1122/quickstart/sample_code/odbc_drivermgr:/opt/TimesTen/tt1122/quickstart/sample_code/proc:/opt/TimesTen/tt1122/quickstart/sample_code/ttclasses:/opt/TimesTen/tt1122/quickstart/sample_code/ttclasses/xla:/opt/TimesTen/tt1122/ttoracle_home/instantclient_11_2:/opt/TimesTen/tt1122/ttoracle_home/instantclient_11_2/sdk:/opt/TimesTen/tt1122/3rdparty/ant/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
CLASSPATH set to /opt/TimesTen/tt1122/lib/ttjdbc5.jar:/opt/TimesTen/tt1122/lib/orai18n.jar:/opt/TimesTen/tt1122/lib/timestenjmsxla.jar:/opt/TimesTen/tt1122/3rdparty/jms1.1/lib/jms.jar:.
TNS_ADMIN set to /opt/oracle/product/11.2.0/db_1/network/admin
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/13177610/viewspace-1298189/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/13177610/viewspace-1298189/