Oracle log status

Source: Internet
Author: User

OracleDatabase Log status

We queryV $ logThe view shows the log status.

SQL> select group #, ARCHIVED, status fromv $ log;

 GROUP # ARC STATUS

-----------------------------

1 NO CURRENT

2 YESINACTIVE

3 YES ACTIVE

 

CurrentIndicates the currently used log file, which is active.CurrentLogs are required.

ActiveIndicates the status of the active log. The log may be archived or not archived.

InactiveIndicates that the log is inactive. This log is not required when the instance is restored, but is used when the media is restored.

UnusedIndicates that the log may have been added but not used.

SQL> alter system switch logfile;

 

System altered.

 

SQL> select group #, ARCHIVED, status fromv $ log;

 

GROUP # ARC STATUS

-----------------------------

1 YES ACTIVE

2 NOCURRENT

3 YES ACTIVE

 

SQL> alter system switch logfile;

 

System altered.

 

SQL> select group #, ARCHIVED, status fromv $ log;

 

GROUP # ARC STATUS

-----------------------------

1 YES ACTIVE

2 YESACTIVE

3 NO CURRENT

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.