南京Oracle认证培训 TimesTen学习之安装篇_第1页
南京Oracle认证培训 TimesTen学习之安装篇_第2页
南京Oracle认证培训 TimesTen学习之安装篇_第3页
南京Oracle认证培训 TimesTen学习之安装篇_第4页
南京Oracle认证培训 TimesTen学习之安装篇_第5页
已阅读5页,还剩5页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

南京南京 Oracle 认证培训认证培训 TimesTen 学习之安装篇学习之安装篇 一 Linux 平台安装准备工作 1 大页设置 1 修改 HugePage 配置值 echo 32 proc sys vm nr hugepages 2 查看 HugePage 值 root ttdb cat proc meminfo grep Huge HugePages Total 28 HugePages Free 28 HugePages Rsvd 0 Hugepagesize 2048 kB 2 信号量 1 查看当前值 root ttdb sbin sysctl a grep sem kernel sem 250 32000 32 128 2 推荐值 kernel sem 400 32000 100 128 3 使设置生效 sbin sysctl p 3 共享内存 kernel shmmax 2147483648 单位 字节 byte 如果配置大于 8GB 那么也应该增加 shmall 参数的 值 这个值应该等于 SHMMAX PAGE SIZE 在 x86 系统 Page 的大小通常为 4K 在安腾平台通常为 16K 例如 在安腾 64GB 的数据库 应该指定以下的参数值 kernel shmmax 68719476736 kernel shmall 4194304 1 配置 shmmax 和 shmall 参数 在没有重启的情况下 执行以下的命令修改共享内存的值 sbin sysctl w kernel shmmax 2147483648 也可以通过以下命令修改这个值 echo 2147483648 proc sys kernel shmmax 这个命令与执行 sysctl 命令有相同的效果 2 查看共享内存值 cat proc sys kernel shmmax 注意 如果操作系统使用的是 Redhat 从 Redhat Enterprise 5 4 开始 shmmax 和 shmall 这两个值已 经足够的大 默认不需要修改 4 复制 1 配置网络参数 针对复制 TCP 发送和接收 buffers 应该增加到 4MB 在 etc sysctl conf 文件加入以下行 net ipv4 tcp rmem 4096 4194304 4194304 net ipv4 tcp wmem 98304 4194304 4194304 net core rmem default 65535 net core wmem default 65535 net core rmem max 4194304 net core wmem max 4194304 net ipv4 tcp window scaling 1 2 使配置生效 重启服务器或者运行以下命令 sbin sysctl p 5 IMDB Cache 1 配置网络参数 针对 IMDB Cache TCP 发送和接收 buffers 应该增加得更大 修改 etc sysctl conf 文件添加以下行 net ipv4 tcp rmem 4096 4194304 4194304 net ipv4 tcp wmem 98304 4194304 4194304 net core rmem default 262144 net core wmem default 262144 net core rmem max 4194304 net core wmem max 4194304 net ipv4 tcp window scaling 1 net ipv4 ip local port range 1024 65000 2 使配置生效 重启或者运行以下命令 sbin sysctl p 6 有关目录 在 UNIX 平台 TimesTen 的默认安装目录是 HOME TimesTen TimesTen 在安装过程中会创建临时 文件 其他大的操作 例如 大的删除操作 拷贝文件也会使用到临时目录 临时目录依赖于操作系统 Solaris 和 Linux 通常是 tmp 目录 AIX 通常是 var tmp 目录 在 Windows 平台通过设置 TMP 环境变量可 以改变临时目录的位置 在 UNIX 平台 通过设置 TMPDIR 环境变量可以改变临时目录的位置 7 有关系统组 在 UNIX 平台 TimesTen 实例管理组和 TimesTen 用户组是相同的或者不同的操作系统组 1 TimesTen 实例管理组 任何安装 TimesTen 的用户必须是这个组的成员 这个组必须被授予读和写访问 etc TimesTen 目录的 权限 etc TimesTen 目录包括安装在这台电脑上所有 TimesTen 实例的信息 2 TimesTen 用户组 实例管理员必须也是这个组的成员 去安装 TimesTen 安装完成之后 只有这个操作系统组的成员 被允许直接驱动连接到 TimesTen 在 TimesTen 数据库上执行操作 8 目录和文件权限 在 UNIX 平台 TimesTen 在 etc TimesTen 目录中维护着在服务器上安装的所有 TimesTen 实例的注册 信息 实例注册不是必须要求这步操作 但是正确安装和卸载 TimesTen 这个文件是必不可少的 在安装 之前 确保安装 TimesTen 的系统用户是管理组的成员 对 etc TimesTen 目录有正确的读写权限 1 创建 TimesTen 用户组 groupadd timesten 2 创建 TimesTen 实例注册表和管理员组 mkdir etc TimesTen groupadd ttadmin chgrp R ttadmin etc TimesTen chmod 770 etc TimesTen chmod 660 etc TimesTen 3 创建 TimesTen 安装用户 useradd g ttadmin G timesten timesten tt 管理员组应该是主组 二 安装 TimesTen TimesTen 的安装文件只有 200 多 M 可以看出跟 Oracle Database 的安装介质相比还是有差距的 TimesTen 的安装是文本的方式 下面是安装过程 timesten ttdb 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 255 characters Please choose an instance name for this installation tt1122 Instance name will be tt1122 Is this correct 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 Of the following options 1 home timesten 2 opt soft 3 Specify a location q Quit the installation Where would you like to install the tt1122 instance of TimesTen 1 TimesTen 实例安装的位置 Where would you like to create the daemon home directory home timesten TimesTen tt1122 info 守护 进程目录位置 The daemon logs will be located in home timesten TimesTen tt1122 info Would you like to specify a different location for the daemon logs no 守护进程日志目录位置 Installing into home timesten 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 守护进程的端口号 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 ttadmin yes NOTE Enabling PL SQL will increase the size of some TimesTen libraries Would you like to enable PL SQL for this instance yes 可以通过 ttmodadmin 工具之后再启用 In order to use the In Memory 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 bin ttModInstall Please enter a value for TNS ADMIN s skip home timesten TimesTen 和 Oracle Database 的含 义相同 在指定的位置查找 tnsnames ora 文件 可以保留为空 如果在安装的时候未指定 TNS ADMIN 环境变量 可以使用 ttmodadmin 工具修改该值 在使用 In Memory Database Cache 之前必须设置好这个 环境变量 TNS ADMIN will be set to home timesten TimesTen You can change TNS ADMIN later by running bin ttmodinstall Installing server components What is the TCP IP port number that you want the TimesTen Server to listen on 53397 TimesTen 服 务器端口号 Do you want to install QuickStart and the TimesTen Documentation no Would you like to install the documentation without QuickStart yes Where would you like to create the doc directory s skip home timesten TimesTen tt1122 doc The TimesTen documentation has been installed in home timesten TimesTen tt1122 doc 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 home timesten TimesTen tt1122 bin setuproot install timesten 自动执行这个命令 执行这个命令之后 服务器被重启之后 TimesTen 实例能被自动启动 This will move the TimesTen startup script into its appropriate location The startup script is currently located here home timesten TimesTen tt1122 startup tt tt1122 The 11 2 2 2 Release Notes are located here home timesten TimesTen tt1122 README html Starting the daemon 启动守护进程 守护进程在守护进程的启动目录下写一个 timestend pid 文件 默认是 install dir info 这个文件包含守护进程的进程 ID 当停止守护进程 这个 ID 用于确定终止的进 程 当进程被终止 timestend pid 文件被移除 TimesTen Daemon startup OK End of TimesTen installation 下面是 setup sh 脚本的参数 三三 TimesTen TimesTen 守护进程 守护进程 当操作系统被引导 TimesTen 主守护进程 timestend 自动启动 在后台频繁的操作 TimesTen 主守护进程启动 脚本 如果安装的是 TimesTen 服务器 当TimesTen 守护进程被开始 该脚本被自动开始 当 TimesTen 守护进程被停止 该脚本被自动停止 注意 必须是 TimesTen 实例的管理员或者 root 权限起停 TimesTen 守护进程 1 使用以下的命令手动停止守护进程 ttDaemonAdmin stop 2 使用以下的命令手动启动守护进程 ttDaemonAdmin start 四四 TimesTen TimesTen 常用的管理工具 常用的管理工具 1 查看版本 timesten ttdb bin ttVersion TimesTen Release 11 2 2 2 0 64 bit Linux x86 64 tt1122 12345 2011 12 23T09 26 28Z Instance admin timesten Instan

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论