博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
onbar的日志抢救备份
阅读量:2454 次
发布时间:2019-05-10

本文共 2609 字,大约阅读时间需要 8 分钟。

如果我们的数据库那天日志没有备份完,而此时数据库突然宕掉后不能启动,那么我们的这几个日志就没有备份。如果此时恢复的话是有几个日志不能恢复的,为了不让我们的数据丢失,我们就需要把没有备份的日志备份到磁带上。

用onbar -b -l -s起用抢救模式,在数据库停止的状态下可以备份日志。

这个也是出了问题在领导那里学习的,以前没有用过。呵呵。

[informix@test ~]$ onbar
/home/informix/bin/onbar_d
onbar usage

BACKUP & VERIFICATION

=====================
For IBM Informix Dynamic Server:
-b [-L ] [-w | -f | ] [-O]
-b -F
-b -l [-c | -C | -s] [-O]
-v [-w] [-p] [-t ] [-f | ]

-b backup

-c backup current logical log
-C continuous logical log backup
-f pathname of file containing list of storage spaces
-F fake backup
-l backup full logical logs (no spaces)
-L backup level: 0, 1, or 2, defaults to 0
-O override internal error checks - enforce policy strictly
-p backup spaces only (no logs)
-w whole system backup
-s salvage logs
-v verify consistency of most recent backups
list of storage spaces to backup
onbar usage

RESTORE

========
For IBM Informix Dynamic Server:
-r [-e] [-O] [-f | ]
-r [-e] [-t | -n ] [-O]
-r -p [-e] [-t ] [-O] [-f | ]
-r -l [-t | -n ]
-r -w [-e] [[-p] [ -t ] | -n ] [-O]
-RESTART
-r -rename -f [-w] [-p] [-t | -n ]
[-f | ]
-r {-rename -p -o -n
-o ...} [-w] [-p] [-t | -n ]
[-f | ]

-e external restore

-f pathname of file containing list of storage spaces
-l logical log only restore (no spaces)
-n last logical log to restore
-O override internal error checks - enforce policy strictly
-p physical only restore (no logs)
-r restore
-t point in time to stop restore
-w whole system to restore
-RESTART restart an interrupted restore
list of storage spaces to restore
-rename rename chunks during cold restore
With -rename option:
-rename -f pathname of file containing list of mapped
chunk pathnames and offsets
-p old pathname of chunk
-o old offset of chunk
-n new pathname of chunk
-o new offset of chunk
onbar usage

MESSAGING

=========
For IBM Informix Dynamic Server:

-m [] [-r []]

-m Displays last of onbar's activity log file (default: 20 lines)

-r Repeat display every seconds (default: 5 seconds)

onbar usage

LOGICAL-LOG(S) DISPLAY
======================
For IBM Informix Dynamic Server:
{-P} {-n | ending log unique identifier>} [-l] [-q] [-b] [-u ]
[-t ] [-x

-P Print backed up logical-log(s) information

-n Display the specified log identifier(s)
-l Display maximum information about each log record
-q Do not display program header
-b Display information about logged BLOB pages
-u Display the specified user(s)
-t Display the specified TBLspace(s)
-x Display the specified transaction(s)
[informix@test ~]$

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/312079/viewspace-245622/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/312079/viewspace-245622/

你可能感兴趣的文章
在Redhat Linux机器上更改主机名
查看>>
青蛙换位置excel_吃青蛙:如何在Excel中创建每日交付的sprint消耗图
查看>>
SQL Server中的报表–使用SQL Server数据工具将三个报表合并为一个报表
查看>>
增强的PolyBase SQL 2019-外部表SQL Server,目录视图和下推式
查看>>
SQL Server Always On可用性组中的移动数据库文件的演练
查看>>
tde数据库加密_在其他服务器上还原启用了透明数据加密(TDE)的数据库
查看>>
SQL Server整合–在单个SQL Server实例上托管多个数据库
查看>>
sql自定义报表软件_SQL Server中的报表–自定义报表的外观
查看>>
power bi数据分析_设置Power BI数据网关
查看>>
在SQL Server中截断表操作
查看>>
构建azure对话机器人_如何在5分钟内使用Azure创建聊天机器人
查看>>
sql server表分区_SQL Server中的FORCESCAN和分区表
查看>>
css 相同的css属性_CSS属性,内容和L10N
查看>>
mootools_使用MooTools的别名功能
查看>>
pandora nohup_如何更好地训练您的Pandora广播电台
查看>>
显示器选三星还是飞利浦_如何为飞利浦色相灯设置计时器
查看>>
vm macos 启用3d_如何在macOS中启用夜班以减轻眼睛疲劳
查看>>
白色裤子为什么会沾上蓝色_什么是蓝色的,为什么它可以在Mac上运行?
查看>>
dropbox文件_Dropbox即将发布的扩展程序更新将添加更多文件编辑支持,包括Pixlr照片...
查看>>
亚马逊移除订单_如何存档和更好地管理您的亚马逊订单
查看>>