网站首页
JSP空间
动态资讯
开源项目
技术文档
资源下载
J2EE资源
客户论坛
在线支付
 
  技术文档>>数据库技术>>Oracle技术>>Oracle开发>查看文档  
  在oracle 10g中如何解决ora-19815错误     
  文章作者:未知  文章来源:赛迪网技术社区  
  查看:147次  录入:管理员--2008-04-03  
 

【赛迪网-it技术报道】问题:在备份oracle10g时出现下面的错误:

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.

此时空间得以释放:

$ sqlplus "/ as sysdba"

sql*plus: release 10.1.0.2.0 - production on mon mar 28 12:02:19 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 >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 9959424 0 1

sys as sysdba on 28-mar-05 >

另一个解决方法:

通过执行下面的命令将闪回区的内容备份到第三方介质:

rman> backup recovery area;

 
 
上一篇: 实例讲解如何更改字段至兼容的不同类型 (1)    下一篇: 讲解物化视图ora-23313错误的解决方法 (1)
  相关文档
Oracle数据库最重要的部分之一数据字典 09-29
如何使用pipeline function获得实时输出 03-18
讲解数据仓库实施过程所需要考虑的步骤 02-20
如何正确的使用or展开来改写sql查询 03-26
解析:ORACLE性能调整--统计信息的迁移 08-05
讲解oracle面试过程中常见的二十个问题 04-24
教你通过任务和管道异步调用存储过程 04-11
在Oracle实例间移动SQL调整工具集简介 04-11
数据字典管理的表空间存在着效率问题 09-01
轻松了解 memory_target与自动内存管理 11-15
快速掌握在oracle 9i中转换时区的方法 01-28
通过SQL定时分析表监控Unix系统性能 04-11
菜鸟学Oracle - 用PL/SQL画直方图 05-27
如何对系统默认的约束名和索引名重命名 02-29
oralce数据库定时执行存储过程的设置步骤 01-31
oracle数据库无法加载_oramts_的解决办法 05-28
如何在window nt系统中监测oracle进程 02-01
用quick slice获取oracle进程的线程状态 07-07
oracle 9i sys_context函数的使用方法 07-04
带你轻松接触使用特殊索引时的注意事项 09-01
返回首页 | 关于我们 | J网章程 | JSP空间合租 | 客服中心 | 免责声明 | 常见问题 | 参观机房
本站主机空间代理至厦门市华众网络科技有限公司
《中华人民共和国增值电信业务经营许可证》
编号:闽B2-20050079
@2005-2008福建JSP技术网 版权所有 闽ICP备05000928号
厦门(总部):13616026886 福州:0591-87655121
邮箱:admin@fjjsp.com 站长QQ,点击这里给我发消息