有些时候,我们为了使oracle dg的standby库另做他用,需要解除oracle dataguard数据同步。我本地因为standby库存储出现故障,导致dg存在问题,故需要解除。今天,我们通过使用部分命令,实现dg的快速解除。
1,备份spfile到pfile
为了保存目前数据库的参数配置信息,便于以后查看数据库配置改动,我们备份现有的spfile文件到pfile。
SQL> create pfile='/HW551001/pfile20250301.ora' from spfile; File created.
保存的参数文件内容如下:
2,调整主库模式
SQL> alter database set standby database to maximize performance; Database altered.
3,修改主库dg配置参数
SQL> alter system reset log_archive_config scope=spfile; System altered. SQL> show parameter fal NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ fal_client string STD fal_server string STDDG SQL> alter system reset fal_client scope=spfile; System altered. SQL> alter system reset fal_server scope=spfile; System altered. SQL> alter system reset log_archive_dest_state_2 scope=spfile; System altered. SQL> alter system reset log_archive_dest_2 scope=spfile; System altered.
4,删除standby log
5,重启数据库,解除生效
到此这篇关于如何快速的解除oracle dataguard的文章就介绍到这了,更多相关oracle dataguard内容请搜索脚本之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持脚本之家!
来源链接:https://www.jb51.net/database/336967q26.htm
© 版权声明
本站所有资源来自于网络,仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您(转载者)自己承担!
如有侵犯您的版权,请及时联系3500663466#qq.com(#换@),我们将第一时间删除本站数据。
如有侵犯您的版权,请及时联系3500663466#qq.com(#换@),我们将第一时间删除本站数据。
THE END
暂无评论内容