Differences between alter system switch logfile and alter system archive log current

Source: Internet
Author: User

Alter system switch logfile is a force log switch. It does not necessarily archive the current redo log files. (If the file is automatically archived and opened, the existing redo logs are archived. If the file is not automatically archived, the current redo log is not archived .)
Alter system archive log current is to archive the current redo log file. If automatic archiving is enabled or not, a ORA-00258 error is reported.

The main difference is that
Alter system switch logfile performs log switching on the current instance in a single instance database or RAC.
Alter system archive log current performs log switching on all instances in the database.

Generally, all RMAN scripts write alter system archive log current, because RMAN can back up and archive logs. Alter system archive log current so that all archives can be backed up.


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.