当前日志损坏(ACTIVE,CURRENT),数据库正常关闭
2016-03-12 10:13
411 查看
1.查看日志文件 GROUP# THREAD# SEQUENCE# BYTES BLOCKSIZE MEMBERS ARC STATUS FIRST_CHANGE# FIRST_TIM NEXT_CHANGE# NEXT_TIME ---------- ---------- ---------- ---------- ---------- ---------- --- ---------------- ------------- --------- ------------ --------- 1 1 100 52428800 512 1 NO CURRENT 3277175 19-FEB-16 2.8147E+14 2 1 98 52428800 512 1 YES INACTIVE 3219784 19-FEB-16 3247884 19-FEB-16 3 1 99 52428800 512 1 YES INACTIVE 3247884 19-FEB-16 3277175 19-FEB-16 2.正常关闭数据库 SQL> shutdown immediate Database closed. Database dismounted. ORACLE instance shut down. 3.处理redolog [oracle@single2 single2]$ mv redo01.log redo01.log.bak [oracle@single2 single2]$ rm -rf redo01.log 4.启动 SQL> startup ORACLE instance started. Total System Global Area 413372416 bytes Fixed Size 2253784 bytes Variable Size 318770216 bytes Database Buffers 88080384 bytes Redo Buffers 4268032 bytes Database mounted. ORA-03113: end-of-file on communication channel Process ID: 2560 Session ID: 1 Serial number: 5 alert日志 ORA-00313: open failed for members of log group 1 of thread 1 ORA-00312: online log 1 thread 1: '/u01/app/oracle/oradata/single2/redo01.log' ORA-27037: unable to obtain file status Linux-x86_64 Error: 2: No such file or directory Additional information: 3 5.恢复 SQL> startup mount; ORACLE instance started. Total System Global Area 413372416 bytes Fixed Size 2253784 bytes Variable Size 318770216 bytes Database Buffers 88080384 bytes Redo Buffers 4268032 bytes Database mounted. SQL> recover database until cancel; Media recovery complete. SQL> alter database open resetlogs; Database altered. 6.自己生成了redolog文件 [oracle@single2 single2]$ ll redo01.log -rw-r----- 1 oracle oinstall 52429312 Mar 5 21:55 redo01.log
相关文章推荐
- Mysql命令-求一列字段的总和
- 【翻译自mos文章】设置了RemoveIPC=yes 的RHEL7.2 会crash掉Oracle asm 实例和Oracle database实例
- Mybatis 外部修改数据库形成的缓存问题
- mysql-5.7.11-winx64中mysql.exe双击无法看到进程,CMD下3534错误,无法启动的解决方法
- mysql-5.7.11-winx64中mysql.exe双击无法看到进程,CMD下3534错误,无法启动的解决方法
- Mysql 5.7免安装版配置 win10
- cmd mysql导入数据库报错Unkonwn command ‘\''’ 或 Unkonwn command ‘\n''’
- Oracle回收站操作
- mongodb 监控命令mongostat
- Neutron数据库同步错误 NotImplementedError: No support for ALTER of constraints in SQLite dialect
- memcached几个easy被忽略但很实用的命令
- Oracle GoldenGate 支持 从SAP HANA database抽取或者复制数据到SAP HANA database 吗?
- 获取、增加、修改、删除sqlserver字段描述及快速查看表字段与描述
- CentOS6.3+vsftpd+mysql+pam_mysql实现虚拟用户管理的ftp服务器
- Ubuntu 安装mysql和简单操作
- SQL Server 问题 1 - SQL Server encountered error 0x80070422/0x8007042d
- 阿里云 mysql的远程访问问题
- mysql root密码
- 数据库简单概念和心得体会01
- 通俗易懂数据库三范式