- 论坛徽章:
- 0
|
sybase12.5.2增量备份日志文件的必须条件是什么
dump database 我已经作了,就是日志这里出了问题.
请问dump transaction 做增量备份到底需不需要使用参数
[with truncate_only,with no_log,with no_truncate],上述三个参数到底需要哪个,我还是不太理解,教材上说:
如果数据库在来自数据段的单独设备上不具有日志段,则您无法使用 dump transaction 复制日志并截断它。对于这些数据库,您必须:
1使用 dump transaction 的特殊 with truncate_only 选项截断日志,以便它不会用尽空间
2使用 dump database 复制整个数据库(包括日志)因为不复制任何数据,所以 with truncate_only 只要求数据库的名称:dump transaction database_name with truncate_only
以下示例转储数据库 mydb(该数据库在来自数据段的单独设备上不具有日志段),然后截断日志:
dump database mydb to mydevice
dump transaction mydb with truncate_only
截断没有可用空间的日志,则使用 dump transaction 特殊的no_log 选项 |
|