最实用的两个命令
convert database 备库名子to snapshot standby;
convert database 备库名子to physical standby;
select status,instance_name,database_role,open_mode from v$database,v$instance;
select status,instance_name,database_role,open_mode from v$database,v$instance;
select process,status,client_process,sequence#,block# from v$managed_standby;
select flashback_on from v$database;
alter database recover managed standby database cancel;
select process,status,client_process,sequence#,block# from v$managed_standby;
alter database convert to snapshot standby;
select status,instance_name,database_role,open_mode from v$database,v$instance;
select name from v$restore_point;
select open_mode from v$database;
alter database open;
alter database open;
alter session set container=PDB1;
create table test (id number,name varchar2(100));
insert into test values(1,'LIHAO');
commit;
select * from test;
alter database convert to physical standby;
alter session set container=CDB$ROOT;
alter database convert to physical standby;
SHUTDOWN IMMEDIATE
startup mount
alter database convert to physical standby;
select status,instance_name,database_role,open_mode from v$database,v$instance;
alter database recover managed standby database disconnect;
select process,status,client_process,sequence#,block# from v$managed_standby;
convert database 'cdb1_stby' to snapshot standby;
select status,instance_name,database_role,open_mode from v$database,v$instance;
SHOW DATABASE cdb1_stby;
convert database 'cdb1_stby' to physical standby;