sqlplus /as sysdba
#查看闪回区当前配置show parameter db_recovery;#设置闪回区路径,和归档一致alter system set db_recovery_file_dest='+ARCHDG' scope = both;#设置闪回区空间大小alter system set db_recovery_file_dest_size=500G scope = both;#控制闪回(Flashback)操作的保留期限(默认以分钟为单位)alter system set db_flashback_retention_target=518400 scope = both;#用于指定归档日志文件的存储位置和传输方式alter system set log_archive_dest_1='+ARCHDG' scope = both;#如果报错用下面sqlalter system set log_archive_dest_1='location=+ARCHDG' scope = both;
CREATERESTOREPOINT P202310091714 GUARANTEE FLASHBACK DATABASE;set line 150
col name for a30
select scn,name,GUARANTEE_FLASHBACK_DATABASE,timefrom v$restore_point;