Oracle real-world case-Flashback storage space depletion solution (ORA-19815 solution)

Source: Internet
Author: User
Tags imagecopy metalink

This is a real oracleORA-19815 solution) case, hope to help everyone.

Today, the platform of a friend company encountered slow login and slow data query, and the failure to log on to oracle monitored through spotlight. No problems were found by checking the system memory and processes, finally, I found myself. I first checked the memory and processes of the platform, and did not find any problems. Finally, I checked the oracle alarm log and found the following problems:
 
 
  1. ARC0: Failed to archive thread 1 sequence 53 (19809)  
  2. Sun Jun 10 23:12:12 2012  
  3. Errors in file /home/oracle/admin/BGTP/bdump/bgtp_arc1_3906.trc:  
  4. ORA-19815: WARNING: db_recovery_file_dest_size of 2147483648 bytes is 100.00% used, and has 0 remaining bytes available.  
  5. Sun Jun 10 23:12:12 2012  
  6. ************************************************************************  
  7. You have following choices to free up space from flash recovery area:  
  8. 1. Consider changing RMAN RETENTION POLICY. If you are using Data Guard,  
  9.    then consider changing RMAN ARCHIVELOG DELETION POLICY.  
  10. 2. Back up files to tertiary device such as tape using RMAN  
  11.    BACKUP RECOVERY AREA command.  
  12. 3. Add disk space and increase db_recovery_file_dest_size parameter to  
  13.    reflect the new space.  
  14. 4. Delete unnecessary files using RMAN DELETE command. If an operating  
  15.    system command was used to delete files, then use RMAN CROSSCHECK and  
  16.    DELETE EXPIRED commands.  
  17. ************************************************************************  
Is the ORA-19815 problem, through metalink query, is the flash back area space is exhausted, the solution I use to increase the flash back area storage space, to solve this problem now first check v $ recovery_file_dest try

650) this. width = 650; "border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131229/20061Q430-0.jpg "/>

It can be found that the available space is 0, and the usage in the view Flash back area

 

 
 
  1. SQL> select file_type, percent_space_used as used,percent_space_reclaimable as reclaimable, number_of_files as "number" from v$flash_recovery_area_usage;   
  2.  
  3. FILE_TYPE      USED RECLAIMABLE number  
  4. ------------ ---------- ----------- ----------  
  5. CONTROLFILE       0       0      0  
  6. ONLINELOG         0       0      0  
  7. ARCHIVELOG    98.65       0     51  
  8. BACKUPPIECE       0       0      0  
  9. IMAGECOPY         0       0      0  
  10. FLASHBACKLOG          0       0      0  
  11.  
  12. 6 rows selected.  
We found that 98.65% has been used. The following method is used to log on to the database.
 
 
  1. [oracle@master ~]$ sqlplus / as sysdba  
  2.  
  3. SQL*Plus: Release 10.2.0.1.0 - Production on Sun Jun 10 22:41:54 2012  
  4.  
  5. Copyright (c) 1982, 2005, Oracle.  All rights reserved.  
  6.  
  7.  
  8. Connected to:  
  9. Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production  
  10. With the Partitioning, OLAP and Data Mining options  
First, check the current flash back area size.
 
 
  1. SQL> show parameter db_recovery_file_dest  
  2.  
  3. NAME                     TYPE    VALUE  
  4. ------------------------------------ ----------- ------------------------------  
  5. db_recovery_file_dest            string  /home/oracle/flash_recovery_ar  
  6.                          ea  
  7. db_recovery_file_dest_size       big integer 2G  
  8. SQL> archive log list;  
  9. Database log mode          Archive Mode  
  10. Automatic archival         Enabled  
  11. Archive destination        USE_DB_RECOVERY_FILE_DEST  
  12. Oldest online log sequence     53  
  13. Next log sequence to archive   53  
  14. Current log sequence           55  
We can see that the size of the flash back area is 2 GB, So I expanded it to 10 Gb.
 
 
  1. SQL> alter system set db_recovery_file_dest_size=10G scope=both;  
  2.  
  3. System altered.  
Then, check the usage of the flash back area.
 
 
  1. SQL>  select * from v$recovery_file_dest;  
  2.  
  3. NAME                      SPACE_LIMIT SPACE_USED SPACE_RECLAIMABLE NUMBER_OF_FILES  
  4. ---------------------------------------- ------------ ---------- ----------------- ---------------  
  5. /home/oracle/flash_recovery_area      10737418240 2383963648         0      57  
  6.  
  7. SQL>  show parameter db_recovery_file_dest  
  8.  
  9. NAME                     TYPE    VALUE  
  10. ------------------------------------ ----------- ------------------------------  
  11. db_recovery_file_dest            string  /home/oracle/flash_recovery_ar  
  12.                          ea  
  13. db_recovery_file_dest_size       big integer 10G  
Check the usage of the flash back area.
 
 
  1. SQL> select file_type, percent_space_used as used,percent_space_reclaimable as reclaimable, number_of_files as "number" from v$flash_recovery_area_usage;   
  2.  
  3. FILE_TYPE      USED RECLAIMABLE number  
  4. ------------ ---------- ----------- ----------  
  5. CONTROLFILE       0       0      0  
  6. ONLINELOG         0       0      0  
  7. ARCHIVELOG     22.2       0     57  
  8. BACKUPPIECE       0       0      0  
  9. IMAGECOPY         0       0      0  
  10. FLASHBACKLOG          0       0      0  
  11.  
  12. 6 rows selected.  
Reduced from 98.65% to 22.2%. Check the alarm log.
 
 
  1. db_recovery_file_dest_size of 10240 MB is 20.14% used. This is a  
  2. user-specified limit on the amount of space that will be used by this  
  3. database for recovery-related files, and does not reflect the amount of  
  4. space available in the underlying filesystem or ASM diskgroup.  
  5. Sun Jun 10 23:12:12 2012  
  6. ALTER SYSTEM SET db_recovery_file_dest_size='10G' SCOPE=BOTH;  
  7. Sun Jun 10 23:12:15 2012  
  8. Archiver process freed from errors. No longer stopped  
  9. Sun Jun 10 23:12:15 2012  
  10. Thread 1 advanced to log sequence 56  
  11.   Current log# 1 seq# 56 mem# 0: /home/oracle/oradata/BGTP/redo01.log  
  12. Thread 1 advanced to log sequence 57  
  13.   Current log# 2 seq# 57 mem# 0: /home/oracle/oradata/BGTP/redo02.log  
  14. Sun Jun 10 23:12:27 2012  
  15. Thread 1 cannot allocate new log, sequence 58  
  16. Checkpoint not complete  
  17.   Current log# 2 seq# 57 mem# 0: /home/oracle/oradata/BGTP/redo02.log  
  18. Thread 1 advanced to log sequence 58  
  19.   Current log# 3 seq# 58 mem# 0: /home/oracle/oradata/BGTP/redo03.log  
  20. Sun Jun 10 23:12:52 2012  
  21. Thread 1 advanced to log sequence 59  
  22.   Current log# 1 seq# 59 mem# 0: /home/oracle/oradata/BGTP/redo01.log  
  23. Sun Jun 10 23:12:52 2012  
  24. Trying to expand controlfile section 11 for Oracle Managed Files  
  25. Expanded controlfile section 11 from 56 to 112 records  
  26. Requested to grow by 56 records; added 2 blocks of records  
The ORA-19815 error is no longer reported repeatedly, and now the flash back area space usage is full problem has been solved. Then, my spotlight monitoring can monitor oracle. The following figure shows how spotlight monitors oracle.

650) this. width = 650; "border =" 0 "alt =" "src =" http://www.bkjia.com/uploads/allimg/131229/20061VK0-1.jpg "/>

There are a lot of ways to solve the ORA-19815, I am just one of them, thanks to oracle's metalink

This article is from the "Yin-Technical Exchange" blog, please be sure to keep this source http://dl528888.blog.51cto.com/2382721/895168

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.