What is Oracle's archive log?

Source: Internet
Author: User

Our Oracle database defaults to non-archive mode, and if there are three redo log groups, when all three log groups are fully filled, the first log group will start looping, and the contents of the first log group will be completely overwritten, so if the database crashes and you want to recover the data that was earlier, That's a pit.

What to do?

You ask me, I tell you. Switching the database log mode to archive mode is OK, so when writing to the log loop, the data in the log group is written to the archive log before it is overwritten. You see, the problem is solved, right?


One might ask, " hey, when should I use the archive model?"

This depends on the database corresponding to the application system is what the requirements, if the data is absolutely not allowed to lose must use the archive mode.

If you only emphasize the operational efficiency of the system, as for data loss is not so important, you can take a non-archival mode. However, it is recommended that administrators regularly perform a full database backup.

Toggle Log Mode:

① View Log Mode

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/9D/B0/wKiom1mECHihKJbbAAAUxPg_4Is968.png "title=" 111111111111111111111111.png "alt=" Wkiom1mechihkjbbaaauxpg_4is968.png "/>


② shutting down the database, restarting and loading the database but not opening the database

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/9D/B0/wKiom1mECQ7COCiZAABIqqIUAko139.png "title=" 22222222222222222222222222.png "alt=" Wkiom1mecq7cocizaabiqqiuako139.png "/>


③ Changing the log mode

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M00/9D/B0/wKiom1mECVLihFQuAAAOSy8lf1o267.png "title=" 33333333333.png "alt=" Wkiom1mecvlihfquaaaosy8lf1o267.png "/>


④ Opening a database

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/9D/B0/wKioL1mECXzjCAstAAAM5MtJlm4632.png "title=" 444444444444444444444444.png "alt=" Wkiol1mecxzjcastaaam5mtjlm4632.png "/>


OK, you can check the archive mode by using the Select Log_mode from V$database in the Plsql developer tool, or by entering the Sql*plus log list in archive.

A.

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/9D/B0/wKioL1mECgvRA8YLAAAT-bWhlLw933.png "title=" 555555555555555555555.png "alt=" Wkiol1mecgvra8ylaaat-bwhllw933.png "/>


B.

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/9D/B0/wKioL1mECjmh9vZjAAAvWDq8b0s566.png "title=" 66666666666666666666666666666.png "alt=" Wkiol1mecjmh9vzjaaavwdq8b0s566.png "/>


If you still want to know something else, please baidu it yourself!

This article is from the "Brother Hong It World" blog, so be sure to keep this source http://zhengkangkang.blog.51cto.com/12015643/1953567

What is Oracle's archive log?

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.