Step1:修改内核参数
修改/etc/system文件后,重启系统.
set semsys:seminfo_semmni=356
set semsys:seminfo_semmns=2048
set semsys:seminfo_semmsl=1024
set semsys:seminfo_semume=2048
set semsys:seminfo_semmnu=2048
set shmsys:shminfo_shmseg=256
# To allow a large number of connections to a data store
set rlim_fd_cur=4096
set rlim_fd_max=4096
# To enable large shared memory objects in Solaris
set shmsys:shminfo_shmmax = 0x240000000
The value 0x240000000 (a 24 followed by seven zeroes)
indicates that the largest shared memory segment that can be created
is 1024 MB. The size of the shared memory segment required for a
data store is larger than the data store size permanent size. Set this
value high enough to support the largest shared memory segment
needed.
# to get the best performance for checkpoints on UFS file system
set ufs:ufs_WRITES = 0
For replication, TCP send and receive buffers should be increased to a
minimum of 512KB. You may need to embed the following commands
into a script. that can be run at system boot time:
# /usr/sbin/ndd -set /dev/tcp tcp_xmit_hiwat 524288
# /usr/sbin/ndd -set /dev/tcp tcp_recv_hiwat 524288
Step 2:
创建组: timesten
创建用户:times,所属组timesten
Step 3:
创建目录
# mkdir /etc/TimesTen
# chown times:timesten /etc/TimesTen
Step 4:
使用times用户安装TimesTen
$ HOME=/ora/TimesTen/tt70
$ export HOME
$ tar xvf timesten70300.sparc64.tar
$ cd sparc64
$ ./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? [ tt70 ]
Instance name will be 'tt70'.
Is this correct? [ yes ] y
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 ]
Of the three components:
[1] Client/Server and Data Manager
[2] Data Manager Only
[3] Client Only
Which would you like to install? [ 1 ] 1
Where would you like to install the tt70 instance of TimesTen? [ /ora/TimesTen/tt70 ]
Where would you like to create the daemon home directory? [ /ora/TimesTen/tt70/TimesTen/tt70/info ]
The directory /ora/TimesTen/tt70/TimesTen/tt70/info does not exist.
Do you want to create it? [ yes ] yes
Installing into /ora/TimesTen/tt70/TimesTen/tt70 ...
Uncompressing ...
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,
/ora/TimesTen/tt70/TimesTen/tt70/info/DemoDataStore
Where would you like to create the DemoDataStore directory? [ /ora/TimesTen/tt70/TimesTen/tt70/info ]
Creating /ora/TimesTen/tt70/TimesTen/tt70/info/DemoDataStore ...
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.
[Note: default port number 17000 for 32-bit installations and 17001 for 64-
bit applications]
Do you want to use the default port number for the TimesTen daemon? [ yes ]
The daemon will run on the default port number (17001).
Processing /ora/TimesTen/tt70/TimesTen/tt70/PERL/perl.tar ...
Would you like to enable datastore access control? [ no ]
The daemon log will be located in /ora/TimesTen/tt70/TimesTen/tt70/info
Would you like to specify a different location for the daemon log? [ no ]
Installing server components ...
Would you like to log all server Connects/Disconnects? [ yes ]
What is the TCP/IP port number that you want the TimesTen Server to listen on? [ 17003 ]
Starting the daemon ...
TimesTen Daemon startup OK.
Installing client components ...
What is the name of the host running the TimesTen server? [ bjinms216.bj.com ]
What is the TCP/IP port number that the TimesTen server is listening on? [ 17003 ]
What is the name of the instance running the TimesTen server? [ tt70 ]
Creating new /ora/TimesTen/tt70/TimesTen/tt70/info/sys.ttconnect.ini
Extracting 3rd party tools ...
Would you like to install the documentation? [ yes ]
Where would you like to create the doc directory (s=skip)? [ /ora/TimesTen/tt70/TimesTen/tt70/doc ]
The directory /ora/TimesTen/tt70/TimesTen/tt70/doc does not exist.
Do you want to create it? [ yes ] yes
NOTE: The TimesTen daemon startup/shutdown scripts have not been installed.
Run the script. '/ora/TimesTen/tt70/TimesTen/tt70/bin/setuproot' as root.
This will move the TimesTen startup script. into its appropriate location.
The startup script. is currently located here :
'/ora/TimesTen/tt70/TimesTen/tt70/startup/tt_tt70'.
End of TimesTen installation.
$ su root
Password:
[Note:Install TimesTen daemon startup scripts]
)Rx-cy;l'oJM.q0
# /ora/TimesTen/tt70/TimesTen/tt70/bin/setuproot -install
Would you like to install the TimesTen daemon startup scripts into /etc/init.d? [ yes ]
Copying /ora/TimesTen/tt70/TimesTen/tt70/startup/tt_tt70 to /etc/init.d
Successfully installed the following scripts :
/etc/init.d/tt_tt70
/etc/rc0.d/K45tt_tt70
/etc/rc1.d/K45tt_tt70
/etc/rc2.d/S90tt_tt70
Step 5:
设置环境变量
export PATH=/ora/TimesTen/tt70/TimesTen/tt70/bin:$PATH
export LD_LIBRARY_PATH=/ora/TimesTen/tt70/TimesTen/tt70/lib:$PATH
察看tt状态
$ ttStatus
TimesTen status report as of Wed Feb 27 14:48:35 2008
Daemon pid 302 port 17001 instance tt70
TimesTen server pid 307 started on port 17003
No TimesTen webserver running
------------------------------------------------------------------------
End of report
$ ttVersion
TimesTen Release 7.0.3.0.0 (64 bit Solaris) (tt70:17001) 2007-09-12T06:12:16Z
Instance admin: times
Instance home directory: /ora/TimesTen/tt70/TimesTen/tt70
Daemon home directory: /ora/TimesTen/tt70/TimesTen/tt70/info