内存数据库Timesten安装过程全记录

[root@host2 timesten]# su - tt
[tt@host2 ~]$ cd /timesten/linux8664/
[tt@host2 linux8664]$ ls
3rdparty  doc  install.pl  LINUX8664  README.html  setup.sh  uninst.sh
[tt@host2 linux8664]$ ./setup.sh
WARNING: You are running an unsupported version of Linux. Please refer to
         the TimesTen documentation for officially supported operating systems.

Do you want to continue anyway? [ no ] yes

ERROR: The /etc/TimesTen directory needs to be created for the instance registry
       and its ownership and permissions set appropriately.
       Please refer to the installation guide for assistance.

[tt@host2 linux8664]$ exit
logout
[root@host2 timesten]#  mkdir /etc/TimesTen  
[root@host2 timesten]# chown ?R tt:ttadmin /etc/TimesTen  
chown: `?R‘: invalid user
[root@host2 timesten]# chown -
[root@host2 timesten]# chgrp -R ttadmin /etc/TimesTen
[root@host2 timesten]# su - oracle
[oracle@host2 ~]$ exit
logout
[root@host2 timesten]# su - tt
[tt@host2 ~]$ cd /timesten/linux8664/
[tt@host2 linux8664]$ ls
3rdparty  doc  install.pl  LINUX8664  README.html  setup.sh  uninst.sh
[tt@host2 linux8664]$ ./setup.sh
WARNING: You are running an unsupported version of Linux. Please refer to
         the TimesTen documentation for officially supported operating systems.

Do you want to continue anyway? [ no ] yes

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 ] 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 ] 1

Of the following options :

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

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

The daemon logs will be located in /home/tt/TimesTen/tt1122/info
Would you like to specify a different location for the daemon logs? [ no ] yes
Where would you like the daemon logs to be written? [ /home/tt/TimesTen/tt1122/info ]
Installing into /home/tt/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 53396.

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

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 ‘tt‘? [ yes ] yes

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

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

In order to use the ‘Oracle TimesTen Application-Tier 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 <install_dir>/bin/ttModInstall.

Please enter a value for TNS_ADMIN (s=skip)? [  ] s


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
      <install_dir>/lib directory and to the 4.1.0 server binary in the
      <install_dir>/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? [ 53397 ]
Do you want to install the Quick Start Sample Programs and the TimesTen Documentation? [ no ] yes
Where would you like to install the Quick Start and doc directories (s=skip)? [ /home/tt/TimesTen/tt1122 ]
The TimesTen documentation has been installed in /home/tt/TimesTen/tt1122.

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

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

Installing client components ...

Would you like to use TimesTen Replication with Oracle Clusterware? [ no ] yes
Please provide the path to the Oracle Clusterware installation on this machine (s=skip)? [  ] s

TimesTen Replication with Oracle Clusterware will not be installed. You can run
 /home/tt/TimesTen/tt1122/bin/ttmodinstall -crs
to install this feature after this installation.

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

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

The startup script is currently located here :
  ‘/home/tt/TimesTen/tt1122/startup/tt_tt1122‘.

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

The 11.2.2.7 Release Notes are located here :
  ‘/home/tt/TimesTen/tt1122/README.html‘

Starting the daemon ...
TimesTen Daemon startup OK.
End of TimesTen installation.
[tt@host2 linux8664]$ cd /home/tt/TimesTen/tt1122/bin/
[tt@host2 bin]$ sh ttenv.sh
NOTE: unknown or unsupported java version, setting values for JDK 1.5

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

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

PATH set to /home/tt/TimesTen/tt1122/bin:/home/tt/TimesTen/tt1122/quickstart/sample_code/oci:/home/tt/TimesTen/tt1122/quickstart/sample_code/odbc:/home/tt/TimesTen/tt1122/quickstart/sample_code/odbc/xla:/home/tt/TimesTen/tt1122/quickstart/sample_code/jdbc:/home/tt/TimesTen/tt1122/quickstart/sample_code/odbc_drivermgr:/home/tt/TimesTen/tt1122/quickstart/sample_code/proc:/home/tt/TimesTen/tt1122/quickstart/sample_code/ttclasses:/home/tt/TimesTen/tt1122/quickstart/sample_code/ttclasses/xla:/home/tt/TimesTen/tt1122/ttoracle_home/instantclient_11_2:/home/tt/TimesTen/tt1122/ttoracle_home/instantclient_11_2/sdk:/home/tt/TimesTen/tt1122/3rdparty/ant/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/tt/bin

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

[tt@host2 bin]$ sh ttenv.csh
NOTE: unknown or unsupported java version, setting values for JDK 1.5
ttenv.csh: line 9: setenv: command not found
ttenv.csh: line 9: setenv: command not found
ttenv.csh: line 9: setenv: command not found
ttenv.csh: line 9: setenv: command not found

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

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

PATH set to /home/tt/TimesTen/tt1122/bin:/home/tt/TimesTen/tt1122/quickstart/sample_code/oci:/home/tt/TimesTen/tt1122/quickstart/sample_code/odbc:/home/tt/TimesTen/tt1122/quickstart/sample_code/odbc/xla:/home/tt/TimesTen/tt1122/quickstart/sample_code/jdbc:/home/tt/TimesTen/tt1122/quickstart/sample_code/odbc_drivermgr:/home/tt/TimesTen/tt1122/quickstart/sample_code/proc:/home/tt/TimesTen/tt1122/quickstart/sample_code/ttclasses:/home/tt/TimesTen/tt1122/quickstart/sample_code/ttclasses/xla:/home/tt/TimesTen/tt1122/ttoracle_home/instantclient_11_2:/home/tt/TimesTen/tt1122/ttoracle_home/instantclient_11_2/sdk:/home/tt/TimesTen/tt1122/3rdparty/ant/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/tt/bin

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

[tt@host2 bin]$ cd /home/tt/TimesTen/tt1122/info/

 

修改.bash_profile

export TIMESTEN=/home/tt/TimesTen/tt1122
export LD_LIBRARY_PATH=$TIMESTEN/lib
export PATH=$TIMESTEN/bin:$PATH

 

[tt@host2 ~]$ ttVersion
TimesTen Release 11.2.2.7.4 (64 bit Linux/x86_64) (tt1122:53396) 2014-07-07T18:26:53Z
  Instance admin: tt
  Instance home directory: /home/tt/TimesTen/tt1122
  Group owner: tt
  Daemon home directory: /home/tt/TimesTen/tt1122/info
  PL/SQL enabled.
[tt@host2 ~]$ ttStat
ttStats       ttStatsCS     ttStatus     
ttStatsCmd    ttStatsCSCmd  ttStatusCmd  
[tt@host2 ~]$ ttStatus
TimesTen status report as of Fri Jul 11 15:22:07 2014

Daemon pid 10058 port 53396 instance tt1122
TimesTen server pid 10067 started on port 53397
------------------------------------------------------------------------
Accessible by group tt
End of report

 

内存数据库Timesten安装过程全记录,布布扣,bubuko.com

内存数据库Timesten安装过程全记录

上一篇:【socket】Linux 下socket返回值总为-1


下一篇:Tomcat+Memcached+Nginx实现session会话共享