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 ...
随机推荐
- Java中sleep,wait,yield,join的区别
sleep() wait() yield() join()用法与区别 1.sleep()方法 在指定时间内让当前正在执行的线程暂停执行,但不会释放“锁标志”.不推荐使用. sleep()使当前线程 ...
- 【转】Android Studio中Git的配置及协同开发
一. Android Stutio配置git setting–>Version Control–>Git–>Path to Git executable中选择git.exe的位置 ...
- [转] Epoll 相对Poll和Select的优点
http://blog.csdn.net/summerhust/article/details/18260117 PS: 相对select来说,Poll的监听列表比select更短,并且Poll的监听 ...
- 利用System V消息队列实现回射客户/服务器
一.介绍 在学习UNIX网络编程 卷1时,我们当时可以利用Socket套接字来实现回射客户/服务器程序,但是Socket编程是存在一些不足的,例如: 1. 服务器必须启动之时,客户端才能连上服务端,并 ...
- 兼容所有浏览器的JQuery zClip插件实现复制到剪贴板功能
相信这个功能大家平时上网经常能碰到,以前也没怎么留意怎么实现的,直到项目中需要. 网上一搜一大堆,单纯使用js方法也不是没有,但是由于各浏览器的安全机制不同,不是跨浏览器的.去看了几个常用的网站,都是 ...
- PC端手机访问跳转手机站点
第一种: var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.sr ...
- My.Ioc 代码示例——使用条件绑定和元数据(可选)构建插件树
本文旨在通过创建一棵插件树来演示条件绑定和元数据的用法. 说“插件树”也许不大妥当,因为在一般观念中,谈到插件树,我们很容易会想到 Winform/Wpf 中的菜单.举例来说,如果要在 Winform ...
- ASPNET5 诊断
1. 配置一个错误的处理页 在ASP.NET5, 可以在Startup的Configure里配置一个错误处理页,对于开发来说,非常简单,只要增加Microsoft.AspNet.Diagnostics ...
- RoadTrip 学习笔记
#RoadTrip 学习笔记 本篇是在Cmd Markdown中写完粘贴来的. RoadTrip介绍 RoadTrip 项目地址:https://github.com/romainguy/road-t ...
- xmlns:android="http://schemas.android.com/apk/res/android" 是什么意思?
声明xml命名空间.xmlns意思为“xml namespace”.冒号后面是给这个引用起的别名.schemas是xml文档的两种约束文件其中的一种,规定了xml中有哪些元素(标签).元素有哪些属性及 ...