1.su - oracle
2.rman
3.connect wisgrpt/wisgrpt
4.
删除所有的归档文件
run{
allocate channel t1 type disk;
delete force noprompt archivelog all;
release channel t1;
}
删除2006年9月15号23点12分22秒以前的所有归档日志
run{
allocate channel t1 type disk;
delete force noprompt archivelog until time "to_date('2006-9-15 23:12:22','yyyy-mm-dd hh24:mi:ss')";
release channel t1;
}
allocate channel t1 type disk 表示分配通道,通道的名称为t1
force 表示无论归档日志文件是否物理存在,都要删除在数据库中的记录
noprompt 表示删除前,不提示用户进行确认
release channel t1 表示释放通道t1
通过rman的delete命令删除归档日志文件
最新推荐文章于 2024-05-20 07:30:00 发布