Timesten學習1

blueocean926發表於2009-02-13

該章節主要描述timesten在linux平臺上的安裝

Normal 0 7.8 磅 0 2

1 Timesten Install

1.1  安裝

linux平臺上,Timesten的預設安裝目錄在/tmp路徑下,在安裝過程中可以修改環境變數TMPDIR來配置預設安裝路徑。

linux平臺上使用非root使用者安裝。

建立timesten組及tt使用者

#groupadd -g 1002 timesten

#useradd -u 1002 -g 1002 -G timesten -d /home/tt -m tt

#mkdir /etc/TimesTen

#chmod 775 /etc/TimesTen

#chgrp timesten /etc/TimesTen

#mkdir –p /oracle/timesten

#chown -R tt:timesten /oracle/timesten

#su – tt

$export TMPDIR=/oracle/timesten

[tt@server1 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? [ tt70 ]

Instance name will be 'tt70'.

Is this correct? [ yes ]

Please select a product :

[1] Oracle TimesTen In-Memory Database

[2] Oracle In-Memory Database Cache

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 ]

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

Where would you like to create the daemon home directory? [ /oracle/timesten/TimesTen/tt70/info ]

The directory /oracle/timesten/TimesTen/tt70/info does not exist.

Do you want to create it? [ yes ]

Installing into /oracle/timesten/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,

/oracle/timesten/TimesTen/tt70/info/DemoDataStore

Where would you like to create the DemoDataStore directory? [ /oracle/timesten/TimesTen/tt70/info ]

Creating /oracle/timesten/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 17000.

Do you want to use the default port number for the TimesTen daemon? [ yes ]

The daemon will run on the default port number (17000).

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

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

The daemon logs will be located in /oracle/timesten/TimesTen/tt70/info

Would you like to specify a different location for the daemon logs? [ no ]

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

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? [ 17002 ]

Starting the daemon ...

TimesTen Daemon startup OK.

Installing client components ...

What is the name of the host running the TimesTen server? [ server1 ]

What is the TCP/IP port number that the TimesTen server is listening on? [ 17002 ]

What is the name of the instance running the TimesTen server? [ tt70 ]

Creating new /oracle/timesten/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)? [ /oracle/timesten/TimesTen/tt70/doc ]

The directory /oracle/timesten/TimesTen/tt70/doc does not exist.

Do you want to create it? [ yes ]

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

Run the script '/oracle/timesten/TimesTen/tt70/bin/setuproot' as root.

This will move the TimesTen startup script into its appropriate location.

The startup script is currently located here :

'/oracle/timesten/TimesTen/tt70/startup/tt_tt70'.

End of TimesTen installation.

# /oracle/timesten/TimesTen/tt70/bin/setuproot

ERROR: The TimesTen utility 'ttVersion' cannot be found.

Please run this script from the 'bin' directory of your installation.

[root@server1 bin]# setuproot -install

Would you like to install the TimesTen daemon startup scripts into /etc/init.d? [ yes ]

Copying /oracle/timesten/TimesTen/tt70/startup/tt_tt70 to /etc/init.d

Successfully installed the following scripts :

/etc/init.d/tt_tt70

/etc/rc.d/rc0.d/K45tt_tt70

/etc/rc.d/rc1.d/K45tt_tt70

/etc/rc.d/rc2.d/S90tt_tt70

/etc/rc.d/rc3.d/S90tt_tt70

/etc/rc.d/rc5.d/S90tt_tt70

/etc/rc.d/rc6.d/K45tt_tt70

1.2  add the Cache Connect

To add the Cache Connect to Oracle option

$setup.sh –installCache

There is 1 TimesTen instance installed locally :

1) tt70 (TimesTen7.0.5)

NOTE: There is only one instance which can be upgraded.

Instance Name : tt70

Product Installed : TimesTen7.0.5

Installation Directory : /oracle/timesten/TimesTen/tt70

BitLevel : 32

Component Installed : Client/Server and DataManager

Daemon Port : 17000

Would you like to upgrade this instance? [ yes ]

Extracting Cache Connect to Oracle ...

NOTE: Cache Connect to Oracle requires the ORACLE_HOME environment variable.

If you cannot provide a valid path to your Oracle installation,

you must modify the script :

/oracle/timesten/TimesTen/tt70/bin/ttThunk

as well as the daemon options file :

/oracle/timesten/TimesTen/tt70/info/ttendaemon.options

when you have acquired the appropriate value.

Cache Connect to Oracle will not function properly without

ORACLE_HOME defined in these files.

Note that you can add or change this instance's ORACLE_HOME setting

by running /bin/ttmodinstall -changeOracleSetting.

Would you like to specify a value for ORACLE_HOME ? [ yes ]

Please enter a value for ORACLE_HOME (q=quit)? [ ] /oracle/app/oracle/product/10.2.0/db_1

The following variables have been set in the file :

/oracle/timesten/TimesTen/tt70/bin/ttThunk

ORACLE_HOME=/oracle/app/oracle/product/10.2.0/db_1

LD_LIBRARY_PATH=/oracle/timesten/TimesTen/tt70/lib:/oracle/app/oracle/product/10.2.0/db_1/lib32:/oracle/app/oracle/product/10.2.0/db_1/network/lib32:/oracle/app/oracle/product/10.2.0/db_1/lib:/oracle/app/oracle/product/10.2.0/db_1/network/lib

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

What TCP/IP port number would you like Cache Connect to Oracle Administrator to listen on? [ 17004 ]

NOTE: To access the TimesTen Cache Connect to Oracle Administrator

go to the url:

Restarting the daemon ...

TimesTen Daemon stopped.

TimesTen Daemon startup OK.

End of TimesTen installation.

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/48010/viewspace-1017307/,如需轉載,請註明出處,否則將追究法律責任。