欢迎来到天天文库
浏览记录
ID:56855664
大小:39.00 KB
页数:9页
时间:2020-07-16
《TimesTen学习笔记4(timesten 中个各种命令).doc》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、此资料由网络收集而来,如有侵权请告知上传者立即删除。资料共分享,我们负责传递知识。TimesTen学习笔记4(timesten中个各种命令) 1.ttAdmin(命令) 功能: 指定内存加载策略 指定replicationagent策略 启动或停止cacheagent 如: [timesten@rh44server~]$ttadmin-querytt_eservice; RAMResidencePolicy:inUse ReplicationAgentPolicy:manual ReplicationManuallyStart
2、ed:False CacheAgentPolicy:manual CacheAgentManuallyStarted:False [timesten@rh44server~]$ttadmin-rampolicyalwaystt_eservice; RAMResidencePolicy:always ReplicationAgentPolicy:manual ReplicationManuallyStarted:False CacheAgentPolicy:manual CacheAgentManuallyStarted:9此资料由
3、网络收集而来,如有侵权请告知上传者立即删除。资料共分享,我们负责传递知识。False [timesten@rh44server~]$ttadmin-cachePolicyalwaystt_eservice; 2.ttDaemonAdmin(命令) 功能:启动/停止TimesTenmaindaemon,ServerandWebserver. 语法: ttDaemonAdmin[-force]{-start
4、-stop
5、-restart} ttDaemonAdmin-startserver ttDaemonAdmin[-force]-s
6、topserver ttDaemonAdmin[-startwebserver
7、-stopwebserver] 3.ttBackup(命令) 功能: 备份datastore。 例如: [timesten@rh44server~]$ttbackup-typefilefullenable-dir/home/timesten/-fnamelogzhoutt_eservice; Backupstarted... Backupcomplete 恢复 ttRestore-dir/home/timesten/-fnamelogzhou9此资
8、料由网络收集而来,如有侵权请告知上传者立即删除。资料共分享,我们负责传递知识。restoredDSN; 备到带库 ttBackup-typestreamFulltt_eservice
9、ddbs=64kof=/dev/rmt0 4.ttBulkCp(命令) 功能: 在内存表和文件之间转换数据。 两种模式: •Incopy-inmode,rowsarecopiedintoanexistingTimesTentablefromoneormoreASCIIfiles(orstdin). •Incopy-outmode,anentireTi
10、mesTentableiscopiedtoasingleASCIIoutputfile(orstdout). 例如: [timesten@rh44server~]$ttBulkCp-odsn=tt_eservicetracelogtracelog.dump 1/1rowcopied 5.ttBlockinfo(存储过程) 功能:显示perm内存中block的利用信息和碎片信息。 用法:CALLttBlockInfo; 6.ttBookmark(存储过程) 功能:9此资料由网络收集而来,如有侵权请告知上传者立即删除。资料共分享,我们
11、负责传递知识。显示日志文件信息。 用法:CallttBookmark; 7.ttCachePolicySet(存储过程) 功能:指定cacheagent的策略。 用法:callttCachePolicySet(‘always’); 8.ttCachePropagateFlagSet 功能:允许临时停止把更新推向oracledb 用法:CallttCachePropagateFlagSet(0);该标志在每次事务提交或回滚段后都被重置,所以如果需要关闭的话,要将autocommit设为0. 如果设为1的话,则update会推向ora
12、cle。 9.ttCacheStart/ttCacheStop 功能:启动/关闭cacheagent 用法:CallttCache
此文档下载收益归作者所有