欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

rman中如何制定删除某段时间的归档日志

程序员文章站 2022-06-13 20:29:46
...

rman中如何制定删除某段时间的归档日志 eg: RMAN sql alter session set nls_date_format=YYYY-MM-DD; sql statement: alter session set nls_date_format=YYYY-MM-DD RMAN delete archivelog from time 2012-12-01 until time 2013-02-28; released channe

rman中如何制定删除某段时间的归档日志

eg:
RMAN> sql 'alter session set nls_date_format="YYYY-MM-DD"';

sql statement: alter session set nls_date_format="YYYY-MM-DD"

RMAN> delete archivelog from time "2012-12-01" until time "2013-02-28";

released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=144 devtype=DISK
specification does not match any archive log in the recovery catalog


小结:
sql 'alter session set nls_date_format="YYYY-MM-DD"';
delete archivelog from time "2012-12-01" until time "2013-02-28";