清除Oracle Flash Recovery用到的一些命令

数据库我是门外汉,所以做个备份
select status from v$instance;

alter database open;

select * from v$log;
alter database open;

alter database clear logfile group 1;
alter database clear unarchived logfile group 1; 

select * from v$flash_recovery_area_usage;

archive log start
show parameters archive
crosscheck archivelog all;
delete expired archivelog all;

select * from v$recovery_file_dest;
alter system set DB_RECOVERY_FILE_DEST_SIZE=20g;


RMAN
show all

crosscheck archivelog all;
delete expired archivelog all;

你可能感兴趣的:(oracle,Flash)