Chinaunix首页 | 论坛 | 博客
  • 博客访问: 665945
  • 博文数量: 168
  • 博客积分: 2928
  • 博客等级: 中校
  • 技术积分: 1904
  • 用 户 组: 普通用户
  • 注册时间: 2010-01-04 09:56
文章分类

全部博文(168)

文章存档

2010年(168)

我的朋友

分类: Oracle

2010-12-21 16:50:17

TimesTen 70620 For Linx的安装还是比较简单的,不像Oracle可能还需要启动图形界面,Timesten完全是命令行方式安装就可以完成。下面是安装的过程:

建立用户:
[root@rac1 ~]# groupadd -g 502 tta
groupadd: gid 502 is not unique
[root@rac1 ~]# groupadd -g 5002 tta
[root@rac1 ~]# useradd -s /bin/bash -d /home/tt1 -g tta -G sys tt1
建立目录:
[root@rac1 ~]# mkdir /etc/TimesTen
[root@rac1 ~]# chown tt1:tta /etc/TimesTen
[root@rac1 ~]# su - ttl
su: user ttl does not exist
[root@rac1 ~]# su - tt1
[tt1@rac1 ~]$ ls
[tt1@rac1 ~]$ exit
logout
[root@rac1 ~]# cd /home/oracle/
[root@rac1 oracle]# ls
3238244                             instructions.txt                     p3238244_9204_LINUX.zip
agentdeployroot.sh                  linux                                picnic
agent_download.rsp.bak              login.sql                            README.txt
compat-libcwait-2.1-1.i386.rpm      mylog_linux                          show_space.sql
compat-oracle-rhel4-1.0-5.i386.rpm  olm_health_check_TSH1_20100831.html  timesten70620.linux86.tar.gz
Desktop                             OPatch                               transfar_health_check_TSH1_20100901.html
health_check_html.sql               p2617419_220_GENERIC.zip
[root@rac1 oracle]# mv timesten70620.linux86.tar.gz /home/tt1/
[root@rac1 oracle]# chown tt1:tta /home/tt1/timesten70620.linux86.tar.gz
[root@rac1 oracle]# su - tt1
[tt1@rac1 ~]$ ls
timesten70620.linux86.tar.gz
[tt1@rac1 ~]$ ls -al
总用量 108396
drwx------  3 tt1  tta       4096 12月 21 16:29 .
drwxr-xr-x  5 root root      4096 12月 21 16:28 ..
-rw-------  1 tt1  tta          8 12月 21 16:28 .bash_history
-rw-r--r--  1 tt1  tta         24 12月 21 16:28 .bash_logout
-rw-r--r--  1 tt1  tta        191 12月 21 16:28 .bash_profile
-rw-r--r--  1 tt1  tta        124 12月 21 16:28 .bashrc
-rw-r--r--  1 tt1  tta        383 12月 21 16:28 .emacs
-rw-r--r--  1 tt1  tta        120 12月 21 16:28 .gtkrc
drwxr-xr-x  3 tt1  tta       4096 12月 21 16:28 .kde
-rw-r--r--  1 tt1  tta  110836371 12月 21 15:12 timesten70620.linux86.tar.gz
-rw-r--r--  1 tt1  tta        658 12月 21 16:28 .zshrc
解压包:
[tt1@rac1 ~]$ gunzip timesten70620.linux86.tar.gz
[tt1@rac1 ~]$ ls
timesten70620.linux86.tar
[tt1@rac1 ~]$ tar -xvf timesten70620.linux86.tar
linux86/
linux86/doc/
linux86/doc/api.pdf
linux86/doc/cacheconnect.pdf
linux86/doc/c_dev.pdf
linux86/doc/docaddendum.pdf
linux86/doc/error.pdf
linux86/doc/install.pdf
linux86/doc/intro.pdf
linux86/doc/java_dev.pdf
linux86/doc/ms.odbc.pdf
linux86/doc/operations.pdf
linux86/doc/replication.pdf
linux86/doc/sql.pdf
linux86/doc/troubleshooting.pdf
linux86/doc/ttclasses.pdf
linux86/doc/ttjava.zip
linux86/3rdparty/
linux86/3rdparty/ant-1.6.2-bin.tar.bz2
linux86/3rdparty/jms-1_1-fr-apidocs.tar.bz2
linux86/install.pl
linux86/setup.sh
linux86/uninst.sh
linux86/README.html
linux86/behaviorchanges.txt
linux86/LINUX86/
linux86/LINUX86/manifest
linux86/LINUX86/perl
linux86/LINUX86/bzip2
linux86/LINUX86/ttpatchinst
linux86/LINUX86/ttserver.tar.bz2
linux86/LINUX86/timesten.tar.bz2
linux86/LINUX86/ttclient.tar.bz2
[tt1@rac1 ~]$ ls
linux86  timesten70620.linux86.tar
[tt1@rac1 ~]$ cd linux86/
[tt1@rac1 linux86]$ ls
3rdparty  behaviorchanges.txt  doc  install.pl  LINUX86  README.html  setup.sh  uninst.sh
下面来安装TT数据库:
[tt1@rac1 linux86]$ ./setup.sh
Of the following options :
  [1] Install a new instance
  [2] Upgrade an existing instance
  [3] Display information about an existing instance
  [q] Quit the installation
Which would you like to perform? [ 1 ]
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 ] 2
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/tt1 ]
Where would you like to create the daemon home directory? [ /home/tt1/TimesTen/tt70/info ]
The directory /home/tt1/TimesTen/tt70/info does not exist.
Do you want to create it? [ yes ]
Installing into /home/tt1/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,
/home/tt1/TimesTen/tt70/info/DemoDataStore
Where would you like to create the DemoDataStore directory? [ /home/tt1/TimesTen/tt70/info ]
Creating /home/tt1/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 /home/tt1/TimesTen/tt70/PERL/perl.tar ...
Would you like to enable datastore access control? [ no ] yes
The daemon logs will be located in /home/tt1/TimesTen/tt70/info
Would you like to specify a different location for the daemon logs? [ no ]
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 :
        /home/tt1/TimesTen/tt70/bin/ttThunk
      as well as the daemon options file :
        /home/tt1/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)? [  ] /u01/app/oracle/product/9.2.0
The following variables have been set in the file :
/home/tt1/TimesTen/tt70/bin/ttThunk
ORACLE_HOME=/u01/app/oracle/product/9.2.0
LD_LIBRARY_PATH=/home/tt1/TimesTen/tt70/lib:/u01/app/oracle/product/9.2.0/lib32:/u01/app/oracle/product/9.2.0/network/lib32:/u01/app/oracle/product/9.2.0/lib:/u01/app/oracle/product/9.2.0/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:

NOTE: It appears that you are running version 3.2 or 3.3 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.2.3 library in the
      /lib directory and to the 3.2.3 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? [ rac1 ]
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 /home/tt1/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)? [ /home/tt1/TimesTen/tt70/doc ]
The directory /home/tt1/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 '/home/tt1/TimesTen/tt70/bin/setuproot' as root.
This will move the TimesTen startup script into its appropriate location.
The startup script is currently located here :
  '/home/tt1/TimesTen/tt70/startup/tt_tt70'.
End of TimesTen installation.
[tt1@rac1 linux86]$
[tt1@rac1 linux86]$ cd $HOME
[tt1@rac1 ~]$ pwd
/home/tt1
设置环境变量:
[tt1@rac1 ~]$ vi .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi
# User specific environment and startup programs
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/9.2.0
export ORACLE_SID=TSH1
export ORACLE_TERM=xterm
export TIMESTEN=/home/tt1/TimesTen/tt70
export LD_LIBRARY_PATH=$TIMESTEN/lib:$ORACLE_HOME/lib
export PATH=$TIMESTEN/bin:$ORACLE_HOME/bin:$PATH:$HOME/bin
unset USERNAME
".bash_profile" 27L, 619C 已写入                                                                                 
[tt1@rac1 ~]$ cd /home/tt1/TimesTen/tt70/
[tt1@rac1 tt70]$ ls
3rdparty  bin  demo  doc  include  info  lib  mibs  nls  PERL  README.html  startup  ttclasses  unsupported
[tt1@rac1 tt70]$ source /home/tt1/.bash_profile
[tt1@rac1 tt70]$ cd bin/
[tt1@rac1 bin]$ ls
autorefreshChangeLogInfo.sql  ttAdoptStores     ttCheckCmd        ttenv.sh        ttrepadmin     ttstatus          ttversion
autorefreshCleanUp.sql        ttAdoptStoresCmd  ttcserver         ttisql          ttRepAdmin     ttStatus          ttVersion
envcfg                        ttbackup          ttcserver_gcc323  ttIsql          ttRepAdminCmd  ttStatusCmd       ttxactadmin
README.TXT                    ttBackup          ttcserver_gcc346  ttIsqlCmd       ttrestore      ttsyslogcheck     ttXactAdmin
setuproot                     ttBackupCmd       ttcserver_gcc410  ttisqlcs        ttRestore      ttSyslogCheck     ttXactAdminCmd
setup.sh                      ttbulkcp          ttdaemonadmin     ttIsqlCS        ttRestoreCmd   ttSyslogCheckCmd  ttxactlog
timestend                     ttBulkCp          ttDaemonAdmin     ttIsqlCSCmd     ttschema       tttail            ttXactLog
timestenorad                  ttBulkCpCmd       ttDaemonAdminCmd  ttmigrate       ttSchema       ttTail            ttXactLogCmd
timestenrepd                  ttbulkcpcs        ttdaemonlog       ttMigrate       ttSchemaCmd    ttTailCmd         uninst.sh
timestensubd                  ttBulkCpCS        ttDaemonLog       ttMigrateCmd    ttschemacs     ttThunk
timestenws                    ttBulkCpCSCmd     ttDaemonLogCmd    ttmigratecs     ttSchemaCS     tttracemon
ttadmin                       ttcapture         ttdestroy         ttMigrateCS     ttSchemaCSCmd  ttTraceMon
ttAdmin                       ttCapture         ttDestroy         ttMigrateCSCmd  ttsize         ttTraceMonCmd
ttAdminCmd                    ttcheck           ttDestroyCmd      ttmodinstall    ttSize         ttuser
ttadoptstores                 ttCheck           ttenv.csh         ttpatchinst     ttSizeCmd      ttUser
让系统启动时启动TT数据库:
[tt1@rac1 bin]$ pwd
/home/tt1/TimesTen/tt70/bin
[tt1@rac1 bin]$ su
Password:
[root@rac1 bin]# ./setuproot
setuproot [-install] [-uninstall] [-help] [-verbose]
        -install      Install TimesTen daemon startup scripts
        -uninstall    Un-install TimesTen daemon startup scripts
        -help         Display this help message
        -verbose      Display extra installation/uninstallation information
[root@rac1 bin]# ./setuproot  install
setuproot [-install] [-uninstall] [-help] [-verbose]
        -install      Install TimesTen daemon startup scripts
        -uninstall    Un-install TimesTen daemon startup scripts
        -help         Display this help message
        -verbose      Display extra installation/uninstallation information
[root@rac1 bin]# ./setuproot  -install
Would you like to install the TimesTen daemon startup scripts into /etc/init.d? [ yes ]
Copying /home/tt1/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
[root@rac1 bin]#
阅读(3332) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~