• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
    • 軟件測試技術
    • 軟件測試博客
    • 軟件測試視頻
    • 開源軟件測試技術
    • 軟件測試論壇
    • 軟件測試沙龍
    • 軟件測試資料下載
    • 軟件測試雜志
    • 軟件測試人才招聘
      暫時沒有公告

    字號: | 推薦給好友 上一篇 | 下一篇

    數據庫進階:在Oracle中釋放flash_recovery_area

    發布: 2008-5-06 09:51 | 作者: GOD | 來源: 希賽網 | 查看: 74次 | 進入軟件測試論壇討論

    領測軟件測試網 案例:Oracle數據庫10g中釋放flash_recovery_area解決ORA-19815錯誤。

      錯誤現象:備份Oracle數據庫10g時出現下面的錯誤:

      ORA-19815: WARNING: db_recovery_file_dest_size of 2147483648 bytes is 100.00% used, and has 0 remaining bytes available.
      *************************************************************
      You have the following choices to free up space from
      flash recovery area:
      1. Consider changing your RMAN retention policy.
      If you are using dataguard, then consider changing your
      RMAN archivelog deletion policy.
      2. Backup files to tertiary device such as tape using the
      RMAN command BACKUP RECOVERY AREA.
      3. Add disk space and increase the db_recovery_file_dest_size
      parameter to reflect the new space.
      4. Delete unncessary files using the RMAN DELETE command.
      If an OS command was used to delete files, then use
      RMAN CROSSCHECK and DELETE EXPIRED commands.
      *************************************************************

      此時flash_recovery_area已經手工釋放空間,即使切換到一個全新的磁盤也無法解決此問題。

      繼續連接數據庫的查詢:

      $ sqlplus "/ as sysdba"
      SQL*Plus: Release 10.1.0.2.0 - Production on Mon Mar 28 11:45:30 2005
      Copyright (c) 1982, 2004, Oracle. All rights reserved.
      Connected to:
      Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - 64bit Production
      With the Partitioning, OLAP and Data Mining options
      SYS AS SYSDBA on 28-MAR-05 >set liesize 120
      SP2-0158: unknown SET option "liesize"
      SYS AS SYSDBA on 28-MAR-05 >set linesize 120
      SYS AS SYSDBA on 28-MAR-05 >SELECT substr(name, 1, 30) name, space_limit AS quota,
      2 space_used AS used,
      3 space_reclaimable AS reclaimable,
      4 number_of_files AS files
      5 FROM v$recovery_file_dest ;
      NAME QUOTA USED RECLAIMABLE FILES
      ---------------------------- ---------- ---------- ----------- ----------
      /data5/flash_recovery_area 2147483648 2144863232 0 227

      此時發現仍然記錄了227個文件,USED空間仍然未被釋放。

      繼續使用rman登錄數據庫來進行crosscheck:

      $ rman target /
      Recovery Manager: Release 10.1.0.2.0 - 64bit Production
      Copyright (c) 1995, 2004, Oracle. All rights reserved.
      connected to target database: EYGLE (DBID=1337390772)
      RMAN> crosscheck archivelog all;
      using target database controlfile instead of recovery catalog
      allocated channel: ORA_DISK_1
      channel ORA_DISK_1: sid=144 devtype=DISK
      validation failed for archived log
      archive log filename=/opt/oracle/flash_recovery_area/EYGLE/
      archivelog/2004_05_17/o1_mf_1_790_0bjq36ps_.arc recid=1 stamp=526401126
      validation failed for archived log
      archive log filename=/opt/oracle/flash_recovery_area/EYGLE/
      archivelog/2004_05_17/o1_mf_1_791_0bkbcy7x_.arc recid=2 stamp=526420862
      validation failed for archived log
      archive log filename=/opt/oracle/flash_recovery_area/EYGLE/
      archivelog/2004_05_17/o1_mf_1_792_0bkkds4d_.arc recid=3 stamp=526428057
      .......
      archive log filename=/opt/oracle/flash_recovery_area/EYGLE/
      archivelog/2004_07_16/o1_mf_1_1014_0hh3zsrp_.arc recid=225 stamp=531678074
      validation failed for archived log
      archive log filename=/opt/oracle/flash_recovery_area/EYGLE/
      archivelog/2004_07_16/o1_mf_1_1015_0hh40qyp_.arc recid=226 stamp=531678104
      validation failed for archived log
      archive log filename=/opt/oracle/flash_recovery_area/EYGLE/
      archivelog/2004_07_16/o1_mf_1_1016_0hh41jqq_.arc recid=227 stamp=531678129
      Crosschecked 227 objects
      RMAN> delete expired archivelog all;
      released channel: ORA_DISK_1
      allocated channel: ORA_DISK_1
      channel ORA_DISK_1: sid=144 devtype=DISK
      List of Archived Log Copies
      Key Thrd Seq S Low Time Name
      ------- ---- ------- - --------- ----
      1 1 790 X 17-MAY-04 /opt/oracle/flash_recovery_area/EYGLE/
      archivelog/2004_05_17/o1_mf_1_790_0bjq36ps_.arc
      2 1 791 X 17-MAY-04 /opt/oracle/flash_recovery_area/EYGLE/
      archivelog/2004_05_17/o1_mf_1_791_0bkbcy7x_.arc
      3 1 792 X 17-MAY-04 /opt/oracle/flash_recovery_area/EYGLE/
      archivelog/2004_05_17/o1_mf_1_792_0bkkds4d_.arc
      .......
      225 1 1014 X 16-JUL-04 /opt/oracle/flash_recovery_area/EYGLE/
      archivelog/2004_07_16/o1_mf_1_1014_0hh3zsrp_.arc
      226 1 1015 X 16-JUL-04 /opt/oracle/flash_recovery_area/EYGLE/
      archivelog/2004_07_16/o1_mf_1_1015_0hh40qyp_.arc
      227 1 1016 X 16-JUL-04 /opt/oracle/flash_recovery_area/EYGLE/
      archivelog/2004_07_16/o1_mf_1_1016_0hh41jqq_.arc
      Do you really want to delete the above objects (enter YES or NO)? YES
      deleted archive log
      archive log filename=/opt/oracle/flash_recovery_area/EYGLE/
      archivelog/2004_05_17/o1_mf_1_790_0bjq36ps_.arc recid=1 stamp=526401126
      deleted archive log
      archive log filename=/opt/oracle/flash_recovery_area/EYGLE/
      archivelog/2004_05_17/o1_mf_1_791_0bkbcy7x_.arc recid=2 stamp=526420862
      deleted archive log
      ......
      archive log filename=/opt/oracle/flash_recovery_area/EYGLE/
      archivelog/2004_07_16/o1_mf_1_1014_0hh3zsrp_.arc recid=225 stamp=531678074
      deleted archive log
      archive log filename=/opt/oracle/flash_recovery_area/EYGLE/
      archivelog/2004_07_16/o1_mf_1_1015_0hh40qyp_.arc recid=226 stamp=531678104
      deleted archive log
      archive log filename=/opt/oracle/flash_recovery_area/EYGLE/
      archivelog/2004_07_16/o1_mf_1_1016_0hh41jqq_.arc recid=227 stamp=531678129
      Deleted 227 EXPIRED objects
      RMAN> exit
      Recovery Manager complete.

    延伸閱讀

    文章來源于領測軟件測試網 http://www.kjueaiud.com/

    TAG: oracle ORACLE Oracle 進階 數據庫 recovery area

    21/212>

    關于領測軟件測試網 | 領測軟件測試網合作伙伴 | 廣告服務 | 投稿指南 | 聯系我們 | 網站地圖 | 友情鏈接
    版權所有(C) 2003-2010 TestAge(領測軟件測試網)|領測國際科技(北京)有限公司|軟件測試工程師培訓網 All Rights Reserved
    北京市海淀區中關村南大街9號北京理工科技大廈1402室 京ICP備10010545號-5
    技術支持和業務聯系:info@testage.com.cn 電話:010-51297073

    軟件測試 | 領測國際ISTQBISTQB官網TMMiTMMi認證國際軟件測試工程師認證領測軟件測試網

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>