现象

登录失败

告警日志:

由此可知,归档日志空间已满

解决方式:

一、增大归档日志空间

1、启动数据库至nomount

 [oracle@CentOS ~]$ sqlplus / as sysdba

 SQL Production  :: 

 Copyright (c) , , Oracle.  All rights reserved.

 Connected to an idle instance.

 SQL> startup nomount
 ORACLE instance started.

 Total System Global Area   bytes
 Fixed Size             bytes
 Variable Size           bytes
  bytes
 Redo Buffers             bytes
 SQL> show parameter db_recovery_file_dest_size

 NAME                     TYPE     VALUE
 ------------------------------------ ----------- ------------------------------
 db_recovery_file_dest_size         big integer 3882M
 SQL> show parameter db_recovery_file_dest

 NAME                     TYPE     VALUE
 ------------------------------------ ----------- ------------------------------
 db_recovery_file_dest             string     /u01/app/oracle/flash_recovery
                          _area
 db_recovery_file_dest_size         big integer 3882M

查看db_recovery_file_dest路径在磁盘空间中是否有足够空间

 [root@CentOS ~]# df -h
 文件系统          容量  已用  可用 已用%% 挂载点
 /dev/sda6              56G   24G   30G  % /
 tmpfs                 932M  480M  452M  % /dev/shm
 /dev/sda1             194M   32M  152M  % /boot
 /dev/sda2              20G   18G  .4G  % /home
 /dev/sda3              20G  592M   19G   % /opt
 .host:/                40G   15G   25G  % /mnt/hgfs

增加归档空间

SQL System altered.

启动数据库

 SQL> shutdown immediate;
 ORA: database not mounted

 ORACLE instance shut down.
 SQL> startup
 ORACLE instance started.

 Total System Global Area   bytes
 Fixed Size             bytes
 Variable Size           bytes
  bytes
 Redo Buffers             bytes
 Database mounted.
 Database opened.

如有必要,清理归档日志

查看归档日志

 [oracle@CentOS ~]$ rman target /

 Recovery Manager: Release   :: 

 Copyright (c) , , Oracle and/or its affiliates.  All rights reserved.

 connected )

 RMAN> crosscheck archivelog all;

 using target database control file instead of recovery catalog
 allocated channel: ORA_DISK_1
 channel ORA_DISK_1: SID device type=DISK
 ......

清理七天前的归档日志

 RMAN> DELETE ARCHIVELOG ALL COMPLETED BEFORE 'SYSDATE-7';

 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 VMDB
 =====================================================================

 Key     Thrd Seq     S Low Time
 ------- ---- ------- - ---------
                  A
         Name: /o1_mf_1_41_dr44tg7r_.arc

                  A
         Name: /o1_mf_1_42_dr650bv8_.arc

                  A
         Name: /o1_mf_1_43_dr73pv06_.arc

 ......

参考资料

https://zhidao.baidu.com/question/1575284660590623380.html

最新文章

  1. 原生Android App项目调用Untiy导出的Android项目
  2. Direct2D相关
  3. ahjesus自定义隐式转换和显示转换
  4. JavaScript中的事件对象
  5. JQuery解析json数据
  6. git报错 error: cannot stat ‘'web/js': Permission denied
  7. HBase -ROOT-和.META.表结构
  8. [Effective C++ --030]透彻了解inlining的里里外外
  9. c#&.NET3.0高级程序设计-02 Enum Demo
  10. 免费edu邮箱申请注冊地址
  11. 《全体育·瑜伽》
  12. IL反编译的实用工具
  13. 用 async/await 来处理异步
  14. Intel 82599网卡异常挂死原因
  15. npm run dev
  16. jQuery-2.DOM---节点插入
  17. Delphi7通过superobject解析JSON
  18. 一次ssh远程不能登录的排查
  19. mongoDB如何处理多对多关系
  20. SQLServer2012 (非)聚集索引存储探究

热门文章

  1. 一个逼格很低的appium自动化测试框架
  2. Caffe可视化之VisualDL
  3. MyEclipse10+Flash Builder4+BlazeDS+Tomcat7配置J2EE Web项目报错(一)
  4. javaWeb学习之Listener监听
  5. js中的0就是false,非0就是true及案例
  6. Keras官方中文文档:函数式模型API
  7. 谈谈MySQL的事务隔离级别
  8. 【BZOJ3994】约数个数和(莫比乌斯反演)
  9. 一个10年Java程序员的年终总结,献给还在迷茫中的你
  10. ambari下 hive metastore 启动失败