文档详情

TimesTen学习笔记4(timesten 中个各种命令).docx

发布:2018-12-20约4.24千字共11页下载文档
文本预览下载声明
TimesTen学习笔记4(timesten 中个各种命令) 第 PAGE \* Arabic \* MERGEFORMAT 11 页 TimesTen学习笔记4(timesten 中个各种命令) 1.ttAdmin(命令) 功能: 指定内存加载策略 指定replication agent策略 启动或停止cache agent 如: [timesten@rh44server ~]$ ttadmin -query tt_eservice; RAM Residence Policy : inUse Replication Agent Policy : manual Replication Manually Started : False Cache Agent Policy : manual Cache Agent Manually Started : False [timesten@rh44server ~]$ ttadmin -rampolicy always tt_eservice; RAM Residence Policy : always Replication Agent Policy : manual Replication Manually Started : False Cache Agent Policy : manual Cache Agent Manually Started : False [timesten@rh44server ~]$ ttadmin -cachePolicy always tt_eservice; 2.ttDaemonAdmin(命令) 功能:启动/停止TimesTen main daemon, Server and Webserver. 语法: ttDaemonAdmin [-force] {-start | -stop | -restart} ttDaemonAdmin -startserver ttDaemonAdmin [-force] -stopserver ttDaemonAdmin [-startwebserver | -stopwebserver] 3.ttBackup(命令) 功能: 备份data store。 例如: [timesten@rh44server ~]$ ttbackup -type filefullenable -dir /home/timesten/ -fname logzhou tt_eservice; Backup started ... Backup complete 恢复 ttRestore -dir /home/timesten/ -fname logzhou restoredDSN; 备到带库 ttBackup -type streamFull tt_eservice | dd bs=64k of=/dev/rmt0 4.ttBulkCp(命令) 功能: 在内存表和文件之间转换数据。 两种模式: ? In copy-in mode, rows are copied into an existing TimesTen table from one or more ASCII files (or stdin). ? In copy-out mode, an entire TimesTen table is copied to a single ASCII output file (or stdout). 例如: [timesten@rh44server ~]$ ttBulkCp -o dsn=tt_eservice tracelog tracelog.dump 1/1 row copied 5.ttBlockinfo (存储过程) 功能:显示perm内存中block的利用信息和碎片信息。 用法:CALL ttBlockInfo; 6.ttBookmark(存储过程) 功能: 显示日志文件信息。 用法: Call ttBookmark; 7.ttCachePolicySet (存储过程) 功能:指定cache agent的策略。 用法:call ttCachePolicySet(always); 8.ttCachePropagateFlagSet 功能: 允许临时停止把更新推向oracle db 用法: Call ttCachePropagateFlagSet(0); 该标志在每次事务提交或回滚段后都被重置,所以如果需要关闭的话,要将autocommit设为0. 如果设为1的话,则update会推向oracle。 9.ttCacheStart/ttCacheStop 功能:启动/关闭cache agent 用法: Call ttCac
显示全部
相似文档