Change the protection mode of dataguard

Source: Internet
Author: User

Change the protection mode of dataguard

View the current protection mode: SQL> select protection_mode from v $ database; PROTECTION_MODE--------------------MAXIMUM AVAILABILITY prepare to change protection mode to maximum performance mode: On the master database: SQL> shutdown immediate; Databaseclosed. databasedismounted. ORACLE instanceshut down. SQL> startupmouont; SP2-0714: invalid combination of STARTUP optionsSQL> startupmountORACLE instancestarted. total SystemGlobal Area 281018368 bytesFixed Size 1218944 bytesVariableSize 1048592 64 bytesDatabaseBuffers 167772160 bytesRedoBuffers 7168000 bytesDatabasemounted. SQL> alterdatabase set standby database to maximize performance; Databasealtered. SQL> alterdatabase open; Databasealtered. SQL> selectprotection_mode from v $ database; PROTECTION_MODE--------------------MAXIMUM PERFORMANCE is very simple because it is a security mode downgrade, standby databases do not need to be restarted. Change the security level to the maximum protection mode: Check whether the standby logfile exists in the standby database. If not, create a standby logfile. SQL> select * from v $ logfile; GROUP # status type member is _ -------------- -------- running --- 3 ONLINE/u01/app/oracle/oradata/orcl/redo03.log NO 2 ONLINE/u01/app/oracle/oradata/orcl/redo02.log NO 1 ONLINE/u01/app/oracle/oradata/orcl/redo01.log NO 4 STANDBY/u01/app/oracle/oradata/orcl/redo04.log NO 5 STANDBY/u01/app/oracle/ oradata/orcl/redo05.log NO 6 STANDBY/u 01/app/oracle/oradata/orcl/redo06.log NO 7 STANDBY/u01/app/oracle/oradata/orcl/redo07.log NO7 rowsselected. Shut down both the host and the slave. SQL> shutdown immediate; modify the host parameter file :*. log_archive_dest_2 = 'service = 10 gstandbyLGWR SYNC affrem VALID_FOR = (ONLINE_LOGFILES, PRIMARY_ROLE) DB_UNIQUE_NAME = 10gstandby 'SQL> startupmountORACLE instancestarted. total SystemGlobal Area 281018368 bytesFixed Size 1218944 bytesVariableSize 104859264 bytesDatabaseBuffers 167772160 bytesRedoBuffers 7168000 bytesDatabasemounted. SQL> alterdatabase set standby database to maximize protection; Databasealtered. in this case, you need to open the standby database first. If you open the master database first, it will fail to start. create the standby database first: SQL> startupmount; ORACLE instancestarted. total SystemGlobal Area 281018368 bytesFixed Size 1218944 bytesVariableSize 96470656 bytesDatabaseBuffers 176160768 bytesRedoBuffers 7168000 bytesDatabasemounted. SQL> recovermanaged standby database disconnect from session; Mediarecovery complete. finally, open the master database for verification: SQL> alterdatabase open; Databasealtered. SQL> select protection_mode from v $ database; PROTECTION_MODE--------------------MAXIMUMPROTECTION

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.