您好,我是小DAI,专注于数据库管理员相关的技术问答,请问有什么可以帮您?

检索时间线值

用于返回当前的和先前的时间线、日志和日志值详细信息的方法。

db_backupheader 实用程序

读取第一个备份档案、返回备份统计数据、时间线和日志详细信息:

db_backupheader [  ] 

db_backupheader 是一个命令行实用程序。有关其它信息,请参见《 SAP IQ 实用程序指南 》中的“ db_backupheader 实用程序 ”。

时间线属性

启动 dbisq,连接到数据库,然后选择数据库属性来检索关于当前时间线和先前时间线的信息。

属性名称说明CurrentRedoPos当前日志重做位置:select db_property('CurrentRedoPos') 返回数字 OFFSET 值。结果类似于:‘1573909’。 CurrentTimelineID当前数据库时间线的全局唯一标识符:select db_property('CurrentTimelineID') 返回包含 36 个字符的字符串。结果类似于:‘670e7768-34ae-11e4-8000-a6da5f46c1e9’。 CurrentTimelineUTCCreationTime用于标识当前数据库时间线创建时间的 UTC 时间戳:select db_property('CurrentTimelineUTCCreationTime') 返回 UTC 时间戳。结果类似于:'2014-09-05 11:40:38.591+00:00'。 CurrentTransactionLogID当前事务日志的全局唯一标识符:select db_property('CurrentTransactionLogID') 返回包含 36 个字符的字符串。结果类似于:‘6a0c9c38-34ae-11e4-8000-a6da5f46c1e9’。 IQPointInTimeRecoveryLogFilename当前时间点恢复日志名称和位置:select db_property('IQPointInTimeRecoveryLogFilename') 返回时间点恢复日志的路径。结果类似于:‘demo/pitrLog/PITR__000_000001_0001.iqlog’。 IQPointInTimeRecoveryLogStatus时间点恢复日志的当前状态:select db_property('IQPointInTimeRecoveryLogStatus') 返回 ON、OFF 或请求值。如果已设置 IQ_POINT_IN_TIME_RECOVERY_LOGGING 选项,但未将实际日志记录设为“ON”,则返回请求值。 LastCheckpointTime上次检查点时间:select db_property('LastCheckpointTime') 返回 UTC 时间戳。结果类似于:'2014-09-09 11:28:04.219'。 LastCommitRedoPos上次提交结束时的重做位置:select db_property('LastCommitRedoPos') 返回数字 OFFSET 值。结果类似于:‘1574242’。 LastSyncedRedoPos写入并同步到磁盘的上次重做位置:select db_property('LastSyncedRedoPos') 返回数字 OFFSET 值。结果类似于:‘1574269’。 LastWrittenRedoPos写入到磁盘的上次重做位置:select db_property('LastWrittenRedoPos') 返回数字 OFFSET 值。结果类似于:‘1574296’。 PreviousTimelineID先前数据库时间线的全局唯一标识符:select db_property('PreviousTimelineID') 返回包含 36 个字符的字符串。结果类似于:‘98b69a5c-2c0c-11e4-8000-853d9a9151da’。 PreviousTimelineUTCCreationTime用于标识先前数据库时间线创建时间的 UTC 时间戳:select db_property('PreviousTimelineUTCCreationTime') 返回包含 36 个字符的字符串。结果类似于:'2014-08-25 12:02:14.128566+00:00'。 PreviousTransactionLogID先前事务日志的全局唯一标识符:select db_property('PreviousTransactionLogID') 返回包含 36 个字符的字符串。结果类似于:‘9bf0b6bc-2c0c-11e4-8000-853d9a9151da’。 TimelineBranchOffset先前数据库时间线中出现当前时间线分支的事务日志偏移量:select db_property('TimelineBranchOffset') 返回数字 OFFSET 值。结果类似于:‘1341357’。 