赞
踩
show parameter db_recovery_file_dest
如果未设置或者设置太小,则需要调整
alter system set db_recovery_file_dest='+DATA' scope=both;
alter system set db_recovery_file_dest_size=1T scope=both;
--已开启归档模式下可以在线修改
SQL> select open_mode,log_mode,flashback_on from v$database;
SQL> alter database flashback on;
alter database recover managed standby database cancel;
shutdown immediate;
startup mount;
alter database convert to snapshot standby;
alter system set log_archive_dest_2='';
alter system set log_archive_dest_3='';
alter database open;
select open_mode,database_role from v$database;
--查询主库
select max(sequence#) from v$archived_log;
--查询备库
select max(sequence#) from v$archived_log;
shutdown immediate
startup mount
alter database convert to physical standby;
shutdown immediate
startup
select open_mode, database_role from v$database;
alter database recover managed standby database using current logfile disconnect from session;
set line 300
select * from v$dataguard_stats;
并查看备库alert日志,要有in transit 字样
SQL> select open_mode,log_mode,flashback_on from v$database;
SQL> alter database flashback off;
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。