rman的crosscheck命令
短信预约 -IT技能 免费直播动态提醒
在操作系统上手动删除备份或归档,rman不会立即知晓此变更,所以需要crosscheck更新备份的状态。
手动rm归档日志
检查归档
RMAN> crosscheck archivelog all;
released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=18 device type=DISK
validation failed for archived log
archived log file name=/home/oracle/1_62_947085344.dbf RECID=5 STAMP=950278766
validation failed for archived log
archived log file name=/home/oracle/1_63_947085344.dbf RECID=6 STAMP=950279852
validation failed for archived log
archived log file name=/home/oracle/1_64_947085344.dbf RECID=7 STAMP=950455276
validation failed for archived log
…
archived log file name=/home/oracle/1_1_950712737.dbf RECID=72 STAMP=950712738
validation succeeded for archived log
archived log file name=/home/oracle/1_2_950712737.dbf RECID=73 STAMP=950713931
Crosschecked 60 objects
删除实效归档
RMAN> delete expired archivelog all;
released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=18 device type=DISK
List of Archived Log Copies for database with db_unique_name TEST
=====================================================================
Key Thrd Seq S Low Time
------- ---- ------- - -------------------
5 1 62 X 2017-07-23 22:09:22
Name: /home/oracle/1_62_947085344.dbf
6 1 63 X 2017-07-25 14:19:26
Name: /home/oracle/1_63_947085344.dbf
7 1 64 X 2017-07-25 14:37:32
Name: /home/oracle/1_64_947085344.dbf
。。。
71 1 119 X 2017-07-30 14:24:59
Name: /home/oracle/1_119_947085344.dbf
72 1 1 X 2017-07-30 14:52:17
Name: /home/oracle/1_1_950712737.dbf
73 1 2 X 2017-07-30 14:52:18
Name: /home/oracle/1_2_950712737.dbf
Do you really want to delete the above objects (enter YES or NO)? yes
deleted archived log
archived log file name=/home/oracle/1_62_947085344.dbf RECID=5 STAMP=950278766
deleted archived log
archived log file name=/home/oracle/1_63_947085344.dbf RECID=6 STAMP=950279852
deleted archived log
…
STAMP=950711099
deleted archived log
archived log file name=/home/oracle/1_119_947085344.dbf RECID=71 STAMP=950712737
deleted archived log
archived log file name=/home/oracle/1_1_950712737.dbf RECID=72 STAMP=950712738
deleted archived log
archived log file name=/home/oracle/1_2_950712737.dbf RECID=73 STAMP=950713931
Deleted 60 EXPIRED objects
RMAN> list archivelog all;
specification does not match any archived log in the repository
手动rm归档日志
检查归档
RMAN> crosscheck archivelog all;
released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=18 device type=DISK
validation failed for archived log
archived log file name=/home/oracle/1_62_947085344.dbf RECID=5 STAMP=950278766
validation failed for archived log
archived log file name=/home/oracle/1_63_947085344.dbf RECID=6 STAMP=950279852
validation failed for archived log
archived log file name=/home/oracle/1_64_947085344.dbf RECID=7 STAMP=950455276
validation failed for archived log
…
archived log file name=/home/oracle/1_1_950712737.dbf RECID=72 STAMP=950712738
validation succeeded for archived log
archived log file name=/home/oracle/1_2_950712737.dbf RECID=73 STAMP=950713931
Crosschecked 60 objects
删除实效归档
RMAN> delete expired archivelog all;
released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=18 device type=DISK
List of Archived Log Copies for database with db_unique_name TEST
=====================================================================
Key Thrd Seq S Low Time
------- ---- ------- - -------------------
5 1 62 X 2017-07-23 22:09:22
Name: /home/oracle/1_62_947085344.dbf
6 1 63 X 2017-07-25 14:19:26
Name: /home/oracle/1_63_947085344.dbf
7 1 64 X 2017-07-25 14:37:32
Name: /home/oracle/1_64_947085344.dbf
。。。
71 1 119 X 2017-07-30 14:24:59
Name: /home/oracle/1_119_947085344.dbf
72 1 1 X 2017-07-30 14:52:17
Name: /home/oracle/1_1_950712737.dbf
73 1 2 X 2017-07-30 14:52:18
Name: /home/oracle/1_2_950712737.dbf
Do you really want to delete the above objects (enter YES or NO)? yes
deleted archived log
archived log file name=/home/oracle/1_62_947085344.dbf RECID=5 STAMP=950278766
deleted archived log
archived log file name=/home/oracle/1_63_947085344.dbf RECID=6 STAMP=950279852
deleted archived log
…
STAMP=950711099
deleted archived log
archived log file name=/home/oracle/1_119_947085344.dbf RECID=71 STAMP=950712737
deleted archived log
archived log file name=/home/oracle/1_1_950712737.dbf RECID=72 STAMP=950712738
deleted archived log
archived log file name=/home/oracle/1_2_950712737.dbf RECID=73 STAMP=950713931
Deleted 60 EXPIRED objects
RMAN> list archivelog all;
specification does not match any archived log in the repository
免责声明:
① 本站未注明“稿件来源”的信息均来自网络整理。其文字、图片和音视频稿件的所属权归原作者所有。本站收集整理出于非商业性的教育和科研之目的,并不意味着本站赞同其观点或证实其内容的真实性。仅作为临时的测试数据,供内部测试之用。本站并未授权任何人以任何方式主动获取本站任何信息。
② 本站未注明“稿件来源”的临时测试数据将在测试完成后最终做删除处理。有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
rman的crosscheck命令
下载Word文档到电脑,方便收藏和打印~
下载Word文档
猜你喜欢
2024-04-02
2024-04-02
2024-04-02
2024-04-02
2024-04-02
2024-04-02
2024-04-02
2024-04-02
2024-04-02
2024-04-02
2024-04-02
2024-04-02
RMAN命令详解和常用汇总
RMAN命令详解和常用汇总转摘汇集,日后使用本文链接:https://blog.csdn.net/EVISWANG/article/details/50448370http://blog.itpub.net/25904686/viewspace-742701/
2014-12-02
2024-04-02
2024-04-02
怎么理解RMAN backup database plus archivelog delete all input命令
本篇文章为大家展示了怎么理解RMAN backup database plus archivelog delete all input命令,内容简明扼要并且容易理解,绝对能使你眼前一亮,通过这篇文章的详细介绍希望你能有所收获。RMAN> r
2023-06-06
2023-08-31
linux命令中的tar命令的用法
这篇文章主要讲解了“linux命令中的tar命令的用法”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“linux命令中的tar命令的用法”吧!通过SSH访问服务器,难免会要用到压缩,解压缩,打
2023-06-09
Linux命令中的rpm安装命令
在 Linux 操作系统下,几乎所有的软件均通过RPM 进行安装、卸载及管理等操作。RPM 的全称为Redhat Package Manager ,是由Redhat 公司提出的,用于管理Linux 下软件包的软件。Linux 安装时,除了几
2022-06-04