Code Description for Oracle manual archiving Mode

Source: Internet
Author: User

Today, we will share with you the specific operation modes of the Oracle manual archiving mode. This article mainly introduces the actual operation steps of the Oracle manual archiving mode in the way of its actual application code, the following describes the specific content of the article. I hope you will gain some benefits after browsing it.

A friend of mine did the experiment yesterday. As a result, the database cannot be automatically archived and can only be archived manually. A group of people discussed the problem and found no cause in many places. Finally, he found the problem and solved the problem.

After the archive mode is enabled, you can set manual archiving. The archive log list command does not reflect the current archiving mode. You need to query log_mode in v $ database. For standby databases, setting manual Oracle archiving is invalid.

 
 
  1. SYS@dev01> alter database archivelog;  
  2. Database altered.  
  3. SYS@dev01> archive log list;  
  4. Database log mode Archive Mode  
  5. Automatic archival Enabled  
  6. Archive destination /u03/archive/dev01  
  7. Oldest online log sequence 48  
  8. Next log sequence to archive 50  
  9. Current log sequence 50  
  10. SYS@dev01> select log_mode from v$database;  
  11. LOG_MODE  
  12. ARCHIVELOG  
  13. SYS@dev01> alter database archivelog manual;  
  14. Database altered.  
  15. SYS@dev01> archive log list;  
  16. Database log mode Archive Mode  
  17. Automatic archival Enabled  
  18. Archive destination /u03/archive/dev01  
  19. Oldest online log sequence 48  
  20. Next log sequence to archive 50  
  21. Current log sequence 50  
  22. SYS@dev01> select log_mode from v$database;  
  23. LOG_MODE  
  24. MANUAL  
  25. SYS@dev01> alter database noarchivelog;  
  26. Database altered.  
  27. SYS@dev01> archive log list;  
  28. Database log mode No Archive Mode  
  29. Automatic archival Disabled  
  30. Archive destination /u03/archive/dev01  
  31. Oldest online log sequence 48  
  32. Current log sequence 50  
  33. SYS@dev01> select log_mode from v$database;  
  34. LOG_MODE  
  35. NOARCHIVELOG  
  36. SYS@dev01> 

The above content is an introduction to the manual archiving mode of Oracle. I hope you will get some benefits.

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.