fast_recovery_area无剩余空间(ORA-19815)
一.问题现象
--执行日志切换时,夯住
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 .5G % /
none 506M 252M 254M % /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--- oracle oinstall Nov : 2014_10_29
drwxr-x--- oracle oinstall Nov : 2014_10_30
drwxr-x--- oracle oinstall Nov : 2014_10_31
drwxr-x--- oracle oinstall Nov : 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= device type=DISK
List of Archived Log Copies for database with db_unique_name ORACLE
===================================================================== Key Thrd Seq S Low Time
------- ---- ------- - ---------
X -OCT-
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= STAMP=
Deleted EXPIRED objects RMAN>
fast_recovery_area无剩余空间(ORA-19815)的更多相关文章
- SQL Server自动化运维系列——监控磁盘剩余空间及SQL Server错误日志(Power Shell)
需求描述 在我们的生产环境中,大部分情况下需要有自己的运维体制,包括自己健康状态的检测等.如果发生异常,需要提前预警的,通知形式一般为发邮件告知. 在所有的自检流程中最基础的一个就是磁盘剩余空间检测. ...
- SQL Server自动化运维系列 - 监控磁盘剩余空间及SQL Server错误日志(Power Shell)
需求描述 在我们的生产环境中,大部分情况下需要有自己的运维体制,包括自己健康状态的检测等.如果发生异常,需要提前预警的,通知形式一般为发邮件告知. 在所有的自检流程中最基础的一个就是磁盘剩余空间检测. ...
- SQL Server 自动化运维系列 - 监控磁盘剩余空间及SQL Server错误日志(Power Shell)
需求描述 在我们的生产环境中,大部分情况下需要有自己的运维体制,包括自己健康状态的检测等.如果发生异常,需要提前预警的,通知形式一般为发邮件告知. 在所有的自检流程中最基础的一个就是磁盘剩余空间检测. ...
- android计算每个目录剩余空间丶总空间以及SD卡剩余空间
ublic class MemorySpaceCheck { /** * 计算剩余空间 * @param path * @return */ public static String getAvail ...
- 用花生壳实现内网映射,决解无域名、无公网IP、无服务器空间问题
无域名.无公网IP.无服务器空间用花生壳提供的免费内网映射吧.你的PC就是服务器,花生壳提供的自定义二级域名轻松访问你的个人网站. 1.首先你得注册哦,然后申请免费的域名(2个) 2.设置路由器,下面 ...
- css实现div的高度填满剩余空间
css实现div的高度填满剩余空间 .top{ width: 100%; height: 70px;} .bottom{background-color: #cc85d9;width: 100%;po ...
- sql 查询服务器硬盘剩余空间
DECLARE @tb1 Table( drive varchar(20), [MB 可用空间] varchar(20)) INSERT INTO @tb1 Exec master.dbo.xp_fi ...
- android 判断sd的状态,所有文件,剩余空间的大小
public class MainActivity extends AppCompatActivity { String TAG = MainActivity.class.getCanonicalNa ...
- 查看tablespace实际使用量和剩余空间
到某表空间所有段的加和值,即按表空间分组统计dba_data_files.bytes-dba_free_space.bytes=dba_segments.bytesdba_segments中可查询已分 ...
随机推荐
- [ASP.NET] Session的了解
ASP.NET Session的使用当中我们会遇到很多的问题,那么这里我们来谈下经常出现的一些常用ASP.NET Session的理解: ASP.NET Session的七点认识之一 对于值类型的变量 ...
- MySQL(23):事务的隔离级别出现问题之 脏读
1. 脏读 所谓的脏读就是指一个事务读取了另一个事务未提取的数据. 试想一下:a账户要给b账户100元购买商品,如果a账户开启一个事务,执行下面的update语句做了如下转账的工作: update a ...
- 转: React系统的入门系统
评注:React系统的入门系统. 转: http://www.infoq.com/cn/search.action?queryString=%E6%B7%B1%E5%85%A5%E6%B5%85%E ...
- 基调(听云)app,服务器,质量测试手段
1. 网络质量检测 http://www.tingyun.com/tingyun_network.html
- Codevs 1287 矩阵乘法&&Noi.cn 09:矩阵乘法(矩阵乘法练手题)
1287 矩阵乘法 时间限制: 1 s 空间限制: 128000 KB 题目等级 : 黄金 Gold 题解 查看运行结果 题目描述 Description 小明最近在为线性代数而头疼, ...
- sharepoint 2013 "The module ... owssvr.dll could not be loaded due to a configuration problem"
打开sharepoint站点可以看到这个503的错误, 在event viewer中查看如下: The Module DLL 'C:\Program Files\Common Files\Micros ...
- Web前端学习笔记3
1.meta标签. 1.1 <meta charset="utf-8"> charset:字符集 1.2 <meta name="keywords&qu ...
- 【转载】Dubbo与Zookeeper、SpringMVC整合和使用(负载均衡、容错)
http://blog.csdn.net/congcong68/article/details/41113239 互联网的发展,网站应用的规模不断扩大,常规的垂直应用架构已无法应对,分布式服务架构以及 ...
- 从ASP.NET的web1子界面刷新打开web1的web0父界面
单击web0界面的按钮bt1触发一下代码: protected void btnSave_Click(object sender, EventArgs e) { string parentJs = @ ...
- IOS显示九宫格列表
//总列数 ; CGFloat appW = ; CGFloat appH = ; //间隙 CGFloat maginX = (self.view.frame.size.width - totalC ...