免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2462 | 回复: 6
打印 上一主题 下一主题

这两句是什么意思(不应该没人会呀,怎么没人帮忙) [复制链接]

论坛徽章:
3
天秤座
日期:2014-10-29 11:37:572015元宵节徽章
日期:2015-03-06 15:50:39NBA常规赛纪念章
日期:2015-05-04 22:32:03
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-09-08 21:29 |只看该作者 |倒序浏览
alter system archive log current

backup archivelog all delete input

[ 本帖最后由 tomer 于 2007-9-9 13:49 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2007-09-09 20:03 |只看该作者
alter system archive log current 更改数据库为归档模式
backup archivelog all delete input 备份归档日志

论坛徽章:
3
天秤座
日期:2014-10-29 11:37:572015元宵节徽章
日期:2015-03-06 15:50:39NBA常规赛纪念章
日期:2015-05-04 22:32:03
3 [报告]
发表于 2007-09-10 00:36 |只看该作者
原帖由 liu_jian110 于 2007-9-9 20:03 发表
alter system archive log current 更改数据库为归档模式
backup archivelog all delete input 备份归档日志



alter system archive就是更改更改数据库为归档模式 ,为什么要加个 log current

backup archivelog all delete input 备份归档日志,其中delete input是删掉什么

论坛徽章:
0
4 [报告]
发表于 2007-09-10 09:00 |只看该作者
原帖由 tomer 于 2007-9-10 00:36 发表



alter system archive就是更改更改数据库为归档模式 ,为什么要加个 log current

backup archivelog all delete input 备份归档日志,其中delete input是删掉什么


1. archive log current 不是更改数据库为归档模式


官方文档中已经阐述的很清楚:
CURRENT Clause

Specify CURRENT to manually archive the current redo log file group of the specified thread, forcing a log switch. If you omit the THREAD parameter, then Oracle Database archives all redo log file groups from all enabled threads, including logs previous to current logs. You can specify CURRENT only when the database is open.

2. delete input意思就是备份完archivelog以后,自动将其删除(只是删除一个dest的archived log,如果要删除所有dest的archived log
应该使用delete all input

官方文档中已经阐述的很清楚:
4.3.7.1.2 Using BACKUP ARCHIVELOG with DELETE INPUT or DELETE ALL INPUT

You can specify the DELETE INPUT or DELETE ALL INPUT clauses for the BACKUP ARCHIVELOG command to delete archived logs after they are backed up, eliminating the separate step of manually deleting the archived redo logs. With DELETE INPUT, RMAN only deletes the specific copy of the archived redo log chosen for the backup set. With DELETE ALL INPUT, RMAN will delete each backed-up archived redo log file from all log archiving destinations.

For example, assume that you archive to /arc_dest1, /arc_dest2, and /arc_dest3, and you run the following command:

BACKUP DEVICE TYPE sbt
  ARCHIVELOG ALL
  DELETE ALL INPUT;


In this case RMAN backs up only one copy of each log sequence number in these directories, and then deletes all copies of any log that it backed up from the archiving destinations. If you had specified DELETE INPUT rather than DELETE ALL INPUT, then RMAN would only delete the specific archived redo log files that it backed up (for example, it would delete the archived redo log files in /arc_dest1 if those were the files used as the source of the backup, but it would leave the contents of the /arc_dest2 and /arc_dest3 intact) .

If you issue BACKUP ARCHIVELOG ALL or BACKUP ARCHIVELOG LIKE '...', and there are no archived redo log files to back up, then RMAN does not signal an error.

论坛徽章:
3
天秤座
日期:2014-10-29 11:37:572015元宵节徽章
日期:2015-03-06 15:50:39NBA常规赛纪念章
日期:2015-05-04 22:32:03
5 [报告]
发表于 2007-09-10 09:41 |只看该作者
没太明白,是删除备份集里的archivelog,还是原来路径下的archivelog

论坛徽章:
0
6 [报告]
发表于 2007-09-10 10:33 |只看该作者
原文件

论坛徽章:
3
天秤座
日期:2014-10-29 11:37:572015元宵节徽章
日期:2015-03-06 15:50:39NBA常规赛纪念章
日期:2015-05-04 22:32:03
7 [报告]
发表于 2007-09-10 10:48 |只看该作者
哦,就是备份完,就把原来的删掉了

谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP