Building oracle11G DG in linux (4): subsequent verification

Source: Internet
Author: User

Building oracle11G DG in linux (4): subsequent verification

Environment

Name

Master Database

Slave Database

Host Name

Bjsrv

Shsrv

Software Version

RedHat performanise5.5, Oracle 11g 11.2.0.1

RedHat performanise5.5, Oracle 11g 11.2.0.1


Under the master database

$ Tail-f/u01/app/oracle/diag/rdbms/bjdb/TestDB12/trace/alert_TestDB12.log




For DG, you must enable the alarm log.

Slave Database

$ Tail-f/u01/app/oracle/diag/rdbms/shdb/trace/alert_shdb.log




4. Switch on the master database, slave database, and verification database.

Startup sequence: Enable the slave database first, then the master database, and enable the listener (lsnrctl start) of the master database );

Close sequence: first shut down the master database and then shut down the slave database.

Switch log verification Master/Slave Database

Master database operations

Process logic:

Master database switch log (3 times): master database switch log → form archive log → archive log will be sent to slave database → slave database receives archive log from master database → perform recover.

 

SQL>Altersystem switch logfile;

[Supplement]: The rediscovery area is enabled but not used.

View the alarm log in the slave database. Warning:




SQL>Show parameter recovery




After the query, it is found that the recovery region is not created on the slave database, so this small error is reported in the alarm log.

Oracle @ shsrv:/home/oracle>Mkdir/u01/app/oracle/fast_recovery_area

// Re-create the recovery area


If the file already exists, the system ignores the problem temporarily.

 


Recover on the slave Database

SQL>Recovermanaged standby database disconnect from session;

// Start the Media Recovery Process




View the process of archiving logs in the master database

Slave database alarm log information:




View log process in the master database

SQL>Selectmax (sequence #) from v $ archived_log where name is not null;

// You can see that the serial number of the archiving process in the master database is synchronized to that in the slave database.




Switch the master database again:

SQL>Altersystem switch logfile;




Slave database observation Alert Log:




 

Build DG successfully.

 


***************** *********

Statement:
Original works, from "Deep Blue blog" blog, allow reprint, reprint please be sure to indicate the source (http://blog.csdn.net/huangyanlong ).

The author has the right to pursue legal liability for copyright issues.





Related Article

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.