1:内核参数修改
# vi /etc/sysctl.conf
kernel.sem= #sysctl –p
备注:此安装过程为测试环境,具体参数修改要参考TimesTen官方文档。
2:创建用户及组信息
[root@nxjs05 wzh]# groupadd timesten
[root@nxjs05 wzh]# useradd timesten -g timesten -G timesten
[root@nxjs05 wzh]# passwd timesten
Changing password for user timesten.
New password:
BAD PASSWORD: it is based on a dictionary word
Retype new password:
passwd: all authentication tokens updated successfully.
[root@nxjs05 wzh]# 密码为:timesten
3:Huge pages设置
# id -g timesten # vi /etc/sysctl.conf
vm.nr_hugepages =
vm.hugetlb_shm_group =
# sysctl -p
备注:此安装过程为测试环境,具体参数修改要参考TimesTen官方文档。
4:设置memlock参数
# vi /etc/security/limits.conf
timesten soft memlock
timesten hard memlock
---
5G**
重启
5:下面操作请在Timesten安装完成后用timesten用户进行操作
[timesten@nxjs05 info]$ vi ttendaemon.options
# Commented values are default values
#-supportlog /opt/Timesten/TimesTen/wzhkfcs/info/ttmesg.log
#-maxsupportlogfiles
#-maxsupportlogsize
#-userlog /opt/Timesten/TimesTen/wzhkfcs/info/tterrors.log
#-maxuserlogfiles
#-maxuserlogsize 0x100000
#
-verbose
#-tns_admin
-server
-linuxLargePageAlignment [timesten@nxjs05 info]$ ttdaemonadmin -stop
TimesTen Daemon stopped. [timesten@nxjs05 info]$ ttdaemonadmin -start
TimesTen Daemon startup OK. [timesten@nxjs05 info]$ ttstatus
TimesTen status report as of Mon Nov :: Daemon pid port instance wzhkfcs
TimesTen server pid started on port
------------------------------------------------------------------------
Accessible by group timesten
End of report
[timesten@nxjs05 info]$
6:文件设置
# mkdir /etc/TimesTen
# chgrp –R timesten /etc/TimesTen
# chmod /etc/Timesten/
# mkdir -p /opt/ttdata/logs
#mkdir -p /opt/ttdata/database
# chown –R timesten:timesten /opt/
安装前若不作此操作,在安装过程中也会提示让你去创建/etc/TimesTen,另外的文件目录则为安装规范,安装的时候指定安装到该目录下。
7:环境变量设置
切换到timesten用户下:
$ cd
$ vi .bash_profile
export
CLASSPATH=/opt/Timesten/TimesTen/wzhkfcs/lib/ttjdbc14.jar:$CLASSPATH
export
PATH=/opt/Timesten/TimesTen/ wzhkfcs /bin:$PATH
export
LD_LIBRARY_PATH=/opt/Timesten/TimesTen/ wzhkfcs /lib:$LD_LIBRARY_PATH 保存,退出。wzhkfcs为实例名称
$source .bash_profile
8:安装
# su –timesten
$ cd /opt/linux8664
$ ./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 characters.
Please choose an instance name for this installation? [ tt1122 ] wzhkfcs
Instance name will be 'wzhkfcs'. Is this correct? [ yes ] 说明:
此处输入你的Timesten的实例名,这里需要注意的是Timesten的实例名和oracle的实例名并不一样,在Timesten中一个Timesten软件只能有一个实例名。如果想要在一台机器上创建多个实例则需要安装多个Timesten软件。 Which would you like to install? [ ] Of the following options : [] /home/timesten
[] /opt
[] Specify a location
[q] Quit the installation Where would you like to install the wzhkfcs instance of TimesTen? [ ]
Please specify a directory to install TimesTen? [ /home/timesten ] /opt/Timesten
The directory /opt/Timesten does not exist.
Do you want to create it? [ yes ] yes
Where would you like to create the daemon home directory? [ /opt/Timesten/TimesTen/wzhkfcs/info ] The daemon logs will be located in /opt/Timesten/TimesTen/wzhkfcs/info
Would you like to specify a different location for the daemon logs? [ no ]
Installing into /opt/Timesten/TimesTen/wzhkfcs ...
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 . Do you want to use the default port number for the TimesTen daemon? [ yes ]
The daemon will run on the default port number (). 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 ] 说明:为Timesten建立监听端口和选择用户组,这里默认为timesten用户组。 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 '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 Installing server components ...
What is the TCP/IP port number that you want the TimesTen Server to listen on? [ ] 说明:这里是在Cache connect to oracle的时候timesten需要通过tns_admin来识别connect的ORACLE地址,由于timesten的tnsname.ora和oracle的通用,所以我们这里选择跳过,等装完后将ORACLE的TNSNAME.ORA复制过来即可。 Do you want to install the Quick Start Sample Programs and the TimesTen Documentation? [ no ]
Would you like to install the documentation (without the Quick Start Sample Programs)? [ yes ] no
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/TimesTen/wzhkfcs/bin
./setuproot -install
This will move the TimesTen startup script into its appropriate location. The startup script is currently located here :
'/opt/Timesten/TimesTen/wzhkfcs/startup/tt_wzhkfcs'. The documentation was not installed.
To manually install the documentation, run the command 'setup.sh -installDoc' The 11.2.2.8 Release Notes are located here :
'/opt/Timesten/TimesTen/wzhkfcs/README.html' Starting the daemon ...
TimesTen Daemon startup OK.
End of TimesTen installation.
[timesten@nxjs05 linux8664]$ 说明:不使用Oracle Clusterware,按默认值no回车,然后使用root用户运行所提示的脚本,这样就完成安装了。 [root@nxjs05 bin]# ./setuproot -install
$* is no longer supported at ./setuproot line .
Would you like to install the TimesTen daemon startup scripts into /etc/init.d? [ yes ]
Copying /opt/Timesten/TimesTen/wzhkfcs/startup/tt_wzhkfcs to /etc/init.d Successfully installed the following scripts :
/etc/init.d/tt_wzhkfcs
/etc/rc.d/rc0.d/K45tt_wzhkfcs
/etc/rc.d/rc1.d/K45tt_wzhkfcs
/etc/rc.d/rc2.d/S90tt_wzhkfcs
/etc/rc.d/rc3.d/S90tt_wzhkfcs
/etc/rc.d/rc5.d/S90tt_wzhkfcs
/etc/rc.d/rc6.d/K45tt_wzhkfcs [root@nxjs05 bin]#
9:创建Timesten数据库
(1) 配置sys.odbc,ini参数
/opt/Timesten/TimesTen/wzhkfcs/info
[timesten@nxjs05 info]$ vi sys.odbc.ini
[ODBC Data Sources]
wzhkfcs=TimesTen 11.2. Driver 说明:在ODBC数据源处添加你所需要建立的Timesten的dsn名称。 [wzhkfcs]
Driver=/opt/Timesten/TimesTen/wzhkfcs/lib/libtten.so
DataStore=/opt/ttdata/database/wzhkfcs
LogDir=/opt/ttdata/logs/wzhkfcs
PermSize=
TempSize=
PLSQL=
ConnectionCharacterSet=AL32UTF8
DatabaseCharacterSet=AL32UTF8 #OracleNetServiceName=
#OracleId= 说明:在/oradata/ttdata/sys.odbc.ini配置文件中添加相应dsn名称的配置参数:
Driver的参数可以直接拷贝Timesten给的实例中的内容
DataStore则是存放ckpt文件以的路径(确认已经创建路径所对应的目录文件)
LogDir是存放Timesten的错误日志以及log文件的路径(确认已经创建路径所对应的目录文件)
PermSize是Timesten所需要使用的永久内存大小,单位为M
TempSize是Timesten所需要使用的临时内存大小,一般为PermSize的八分之一或者十分之一。也可以按官方文档的公式来计算:
PermSize is less than MB
TempSize = MB + ceiling(PermSize / MB)
Otherwise
TempSize = MB + ceiling(PermSize / MB) ConnectionCharacterSet是在与Oracle进行连接的时候需要用到的,应与所连接的Oracle服务器的自己保持相同。
DatabaseCharacterSet是Timesten数据库的字符集,如果要有当cache的打算也应与对应的oracle数据库保持一样的字符集
OracleNetServiceName是tnsname.ora中的servicename,用来连接对应oracle数据库
OracleId是Cache的Oracle数据库的实例名
(2) 创建和启动数据库
[timesten@nxjs05 info]$ ttisql wzhkfcs Copyright (c) , , Oracle and/or its affiliates. All rights reserved.
Type ? or "help" for help, type "exit" to quit ttIsql.
connect "DSN=wzhkfcs";
Connection successful: DSN=wzhkfcs;UID=timesten;DataStore=/opt/ttdata/database/wzhkfcs;DatabaseCharacterSet=AL32UTF8;ConnectionCharacterSet=AL32UTF8;DRIVER=/opt/Timesten/TimesTen/wzhkfcs/lib/libtten.so;LogDir=/opt/ttdata/logs/wzhkfcs;PermSize=;TempSize=;TypeMode=;
(Default setting AutoCommit=)
Command>
(3)创建用户
Command>create user test identified by test;
Command>grant create table,connect,create view,admin,cache_manager to test;
Red Hat TimesTen安装记录的更多相关文章
-
基于网络的 Red Hat 无人值守安装
基于网络的 Red Hat 无人值守安装 本文介绍了 PC 平台上的一种快速 Red Hat Linux 安装方案.它具有很高的自动化程度--用户只需手工启动机器并选择从网络启动,就可以完成整个安装过 ...
-
Red Hat Linux 安装 (本地、网络安装)
Red Hat Linux 安装 (本地.网络安装) 650) this.width=650;" onclick='window.open("http://blog.51cto.c ...
-
Red Hat操作系统的安装
1.双击打开VMware虚拟机 2.以下是打开后的界面,点击“创建新的虚拟机” 3.出现新建虚拟机的导向,选择“自定义” 3.选择虚拟机硬件兼容性,使用默认Workstation 12.0就可以 4. ...
-
Red Hat Linux安装vsftpd
一.安装分区方案: (1)交换分区,两倍内存 (2)/boot分区 (3)/剩余的所有空间语言选择English(英语) 二. 配置IPIP地址.子网掩码: 编辑 /etc/sysconfig/net ...
-
28. Red Hat Linux安装Vmware Tools
在VMware虚拟机中安装好了VMware Tools,才能实现主机与虚拟机之间的文件共享,同时可支持*拖拽的功能,鼠标也可在虚拟机与主机之前*移动(而不再用按ctrl+alT释放),而且还可以令 ...
-
linux(red hat)下安装jenkins
Jenkins的安装能够分为在线安装和下载软件本地安装.我这里用的是另外一种方法,将其下载后是一个应用程序直接点击安装就能够.等安装完后配置一下jdk的路径就ok啦!接下来进行具体的说明: 一.前提 ...
-
linux red hat下安装tomcat的过程
linux下安装tomcat <-----------1.0----------------->:首先需要先去tomcat官网下载linux版本的tomcat的安装包; 我在官网上下载的 ...
-
Linux(Red Hat)-中安装Vmware Tools
0. 会弹出 ***1.在弹出的文件夹中找到"VMwwareTools9.6.2-1688356.tar.gz",右击"解压缩到"...我解压缩到了" ...
-
Red hat Linux 安装Node.js 源码安装
1. 下载源码包 http://nodejs.org/dist/v0.10.29/node-v0.10.29.tar.gz 2.准备安装环境,>python2.6, gcc, g++ pytho ...
随机推荐
-
ORA-01950: no privileges on tablespace xxxx
案例场景: 新建了一个表空间后TBS_MARKET_DAT,希望将归档的数据放置在这个表空间. SQL> CREATE TABLESPACE TBS_MARKET_DAT 2 DATAFI ...
-
HDU 3401 Trade dp+单调队列优化
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=3401 Trade Time Limit: 2000/1000 MS (Java/Others)Mem ...
-
JVM学习笔记(三)------内存管理和垃圾回收
JVM内存组成结构 JVM栈由堆.栈.本地方法栈.方法区等部分组成,结构图如下所示: 1)堆 所有通过new创建的对象的内存都在堆中分配,其大小可以通过-Xmx和-Xms来控制.堆被划分为新生代和旧生 ...
-
oracle存储过程写法。
create or replace procedure testwzm(v_gdjdm in varchar2) isv_id varchar2(10);v_xlname varchar2(100); ...
-
java 配置及安装Eclipse
jdk下载 点我~ Java SE Development Kit 8u20 You must accept the Oracle Binary Code License Agreement for ...
-
Android中将一个图片切割成多个图片
有种场景,我们想将一个图片切割成多个图片.比如我们在开发一个拼图的游戏,就首先要对图片进行切割. 以下是封装好的两个类,可以实现图片的切割.仅供参考和学习. 一个是ImagePiece类,此类保存了一 ...
-
System.ComponentModel.DataAnnotations.Schema.TableAttribute 同时存在于EntityFramework.dll和System.ComponentModel.DataAnnotations.dll中
Entity Framework 与 .net4.5 的 System.ComponentModel.DataAnnotations 都有 System.ComponentModel.DataAnno ...
-
alias命令详情
基础命令学习目录首页 原文链接:http://c.biancheng.net/view/938.html 给命令设置别名,你可以把它当作命令的"小名",但是这样做有什么意义呢? 比 ...
-
arp_filter的验证,使用net namespace
使用网络命名空间:net namespace 在namespace ns1中增加了两个网卡 sudo ip netns add ns1 sudo ip link add veth0 type veth ...
-
微信小程序禁止刷新之后苹果端还可以下拉的问题
一.问题描述 最近在做一个小程序项目,需要禁止下拉刷新,于是在page.json里面添加了这段话 "enablePullDownRefresh":false 全局关闭下拉刷新,这段 ...