Example of actual application code for Oracle Problem Solving

Source: Internet
Author: User

I have encountered such a problem before solving the Oracle problem. I did not know how to solve it due to the urgent time. I will share it with you. The following is a detailed introduction of the article, hope you can learn from it. Today, we met again because the log is damaged.

 
 
  1. cmd -> sqlplus  
  2. SQL> select group#,sequence#,archived,status from v$log;  
  3. GROUP# SEQUENCE# ARC STATUS  
  4. 86 NO INACTIVE  
  5. 87 NO INVALIDATED  
  6. 85 NO INACTIVE  
  7. alter database clear logfile group 1;  
  8. alter database clear logfile group 2;  
  9. alter database clear logfile group 3;  
  10. shutdown immediate;  
  11. startup mount;  
  12. SQL> select group#,sequence#,archived,status from v$log;  
  13. GROUP# SEQUENCE# ARC STATUS  
  14. 88 NO CURRENT  
  15. 0 NO UNUSED  
  16. 0 NO UNUSED  
  17. alter database clear logfile group 1;  
  18. alter database clear unarchived logfile group 1;  
  19. alter database clear logfile group 2;  
  20. alter database clear unarchived logfile group 2;  
  21. alter database clear logfile group 3;  
  22. alter database clear unarchived logfile group 3;  
  23. shutdown;  
  24. startup mount;  
  25. alter database open;  

The above content is a description of the Code related to Oracle problem solving, hoping to provide you with some help in this regard.

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.