Red Hat TimesTen安装记录
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 ...
随机推荐
- table头部、尾部固定;中间内容定高自适应滚动
table头部.尾部固定;中间内容定高自适应滚动 很多时候,需要使用到表格做数据分析,不管是前端展现,还是后台管理系统节点展现 工作过程中遇到了,作为一个小笔记,备忘! 如下图所示 --------- ...
- 转载:linux capability深入分析
转至http://www.cnblogs.com/iamfy/archive/2012/09/20/2694977.html 一)概述: 1)从2.1版开始,Linux内核有了能力(capabili ...
- php中应该哪怕被打断腿都要记得的几个函数
php中应该哪怕被打断腿都要记得的几个函数: substr() 截取字符串 : explode() 使用一个字符串分割另一个字符串 : implode() 将数组用预定的字符连接成字符串: 下面有一个 ...
- Rocketmq整体分析
之前本人在实际的生产环境中,使用过activemq和rabbitmq消息队列,在使用过程中出现一些难以解决的问题,本文通过产品选型.网络架构和核心特性分析了rocketmq的优势和特性. 产品选型 我 ...
- 【protobuf进阶】读取proto实体里的extensionObject对象的方法
//设置扩展对象 ProtoBuf.Extensible.AppendValue //读取扩展对象 ProtoBuf.Extensible.GetValue 最近通过C#的TcpClient调用jav ...
- What is therelationship between @EJB and ejb-ref/ejb-local-ref?
http://glassfish.java.net/javaee5/ejb/EJB_FAQ.html What is therelationship between @EJB and ejb-ref/ ...
- TCP具体解释(3):重传、流量控制、拥塞控制……
传输数据 在TCP的数据传送状态.非常多重要的机制保证了TCP的可靠性和强壮性.它们包括:使用序号.对收到的TCP报文段进行排序以及检測反复的数据:使用校验和来检測报文段的错误.使用确认和计时器来检測 ...
- TCP异常终止(reset报文)
在之前做智能家居系统时,师弟做的服务端与WiFI盒子(客户端)进行通信时,总是出现异常情况,然后服务端不停地向客户端发送RESET报文,之前一直都不知道是什么情况,因此一直不知道是什么问题导致的,今天 ...
- IDL实现主成分变化(PCA)
IDL只能通过调用envi的二次接口做图像的变换,但是对于普通的数据没有提供函数.根据主成分变换的原理,用IDL写出来了,这样就不用每次再去用matlab的princomp去做了.主成分变化的基本过程 ...
- 【Python之旅】第六篇(七):开发简易主机批量管理工具
[Python之旅]第六篇(七):开发简易主机批量管理工具 python 软件开发 Paramiko模块 批量主机管理 摘要: 通过前面对Paramiko模块的学习与使用,以及Python中多线程与多 ...