由于主库连接十分不便,于是由主库导出数据调整为由备库导出
可是备库是只读模式,无法直接进行expdp,应该如何导出数据呢
如果想导出,可以临时转换为snapshot standby,当然也可以手工创建restore point,临时激活备库,原理上是相同的:
(1)转换为snapshot
physical standby 转换给snapshot standby SQL> shutdown immediate;
SQL> startup mount;
SQL> alter database convert to snapshot standby;
SQL> alter database open;
SQL> select open_mode,database_role from v$database; (2)expdp导出
执行expdp导出 (3)转换回物理备库
snapshot转换为physical standby SQL> shutdown immediate;
SQL> startup mount;
SQL> alter database convert to physical standby;
SQL> shutdown immediate;
SQL> startup
SQL> alter database recover managed standby database disconnect;
|