fast_recovery_area 남 은 공간 없 음 (ORA - 19815)

11849 단어 over
문제 현상
--

SQL> alter database add logfile group 4 ('/u01/oradata/oracle/redo04.log') size 50m;

SQL> alter system switch logfile;

분석 과정
1. 디스크 공간 이 꽉 찼 다 고 의심 (제외)
[root@oracle archivelog]# df -h

Filesystem            Size  Used Avail Use% Mounted on

/dev/sda1              19G   14G  4.5G  75% /

none                  506M  252M  254M  50% /dev/shm

You have new mail in /var/spool/mail/root

[root@oracle archivelog]

2. alert 보기beijing. log 로그
alter database add logfile group 4 ('/u01/oradata/oracle/redo04.log') size 50m

Completed: alter database add logfile group 4 ('/u01/oradata/oracle/redo04.log') size 50m

Sat Nov 01 03:30:49 2014

Thread 1 advanced to log sequence 163 (LGWR switch)

  Current log# 4 seq# 163 mem# 0: /u01/oradata/oracle/redo04.log

Sat Nov 01 03:30:49 2014

Errors in file /u01/diag/rdbms/oracle/beijing/trace/beijing_arc0_31059.trc: ORA-19815: WARNING: db_recovery_file_dest_size of 2147483648 bytes is 100.00% used, and has 0 remaining bytes available.

************************************************************************

You have following choices to free up space from recovery area:

1. Consider changing RMAN RETENTION POLICY. If you are using Data Guard,

   then consider changing RMAN ARCHIVELOG DELETION POLICY.

2. Back up files to tertiary device such as tape using RMAN

   BACKUP RECOVERY AREA command.

3. Add disk space and increase db_recovery_file_dest_size parameter to

   reflect the new space.

4. Delete unnecessary files using RMAN DELETE command. If an operating

   system command was used to delete files, then use RMAN CROSSCHECK and

   DELETE EXPIRED commands.

************************************************************************

Errors in file /u01/diag/rdbms/oracle/beijing/trace/beijing_arc0_31059.trc:

ORA-19809: limit exceeded for recovery files

ORA-19804: cannot reclaim 24801792 bytes disk space from 2147483648 limit

문제 포 지 셔 닝  
데이터베이스 압축 파일 로 그 를 fast 에 배치 합 니 다.recovery_area 에 공간 이 가득 찼 습 니 다.
해결 과정
1. 데이터베이스 가 열 리 지 않 으 면 db 수정recovery_file_dest_size
SQL> startup nomount;

SQL> show parameter db_recovery_file_dest_size

SQL> Alter system set db_recovery_file_dest_size=2G scope=both;

SQL> alter database mount;

SQL> alter database open;

2. 과거 기록 보관 로그 삭제
2.1 압축 파일 로그 수 동 삭제
[root@oracle archivelog]# pwd

/u01/flash_recovery_area/ORACLE/archivelog

[root@oracle archivelog]# ls -l

drwxr-x---  2 oracle oinstall 4096 Nov  1 03:43 2014_10_29

drwxr-x---  2 oracle oinstall 4096 Nov  1 03:43 2014_10_30

drwxr-x---  2 oracle oinstall 4096 Nov  1 03:43 2014_10_31

drwxr-x---  2 oracle oinstall 4096 Nov  1 03:44 2014_11_01

[root@oracle archivelog]# rm -rf 2014_10_29

[root@oracle archivelog]# rm -rf 2014_10_30

[root@oracle archivelog]# rm -rf 2014_10_31

2.2 압축 파일 로그 가 저장 소 에 있 는 상태 업데이트
RMAN> crosscheck archivelog all;



released channel: ORA_DISK_1

allocated channel: ORA_DISK_1

channel ORA_DISK_1: SID=42 device type=DISK

validation failed for archived log

archived log file name=/u01/flash_recovery_area/ORACLE/archivelog/2014_10_31/o1_mf_1_159_b58hpwom_.arc RECID=155 STAMP=862437663

validation succeeded for archived log

archived log file name=/u01/flash_recovery_area/ORACLE/archivelog/2014_11_01/o1_mf_1_160_b593tqck_.arc RECID=158 STAMP=862458264

validation succeeded for archived log

archived log file name=/u01/flash_recovery_area/ORACLE/archivelog/2014_11_01/o1_mf_1_161_b593cqd6_.arc RECID=156 STAMP=862457783

validation succeeded for archived log

archived log file name=/u01/flash_recovery_area/ORACLE/archivelog/2014_11_01/o1_mf_1_162_b593crx1_.arc RECID=157 STAMP=862457784

Crosschecked 4 objects



RMAN>
crosscheck  :                  ,        



    :     、   、    、    、    、SPFILE    



    

1.expired:            。        expired  ,                expired  

2.available:         。        ,                

3.unavailabe:          。         ,                 

2.3 모든 expired 상태 압축 파일 로그 기록 삭제 (실제 파일 앞 에 삭 제 됨)
RMAN> DELETE EXPIRED  archivelog all;



released channel: ORA_DISK_1

allocated channel: ORA_DISK_1

channel ORA_DISK_1: SID=42 device type=DISK

List of Archived Log Copies for database with db_unique_name ORACLE

=====================================================================



Key     Thrd Seq     S Low Time 

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

155     1    159     X 31-OCT-14

        Name: /u01/flash_recovery_area/ORACLE/archivelog/2014_10_31/o1_mf_1_159_b58hpwom_.arc





Do you really want to delete the above objects (enter YES or NO)? yes

deleted archived log

archived log file name=/u01/flash_recovery_area/ORACLE/archivelog/2014_10_31/o1_mf_1_159_b58hpwom_.arc RECID=155 STAMP=862437663

Deleted 1 EXPIRED objects





RMAN> 

좋은 웹페이지 즐겨찾기