ORA-01114 ORA-01110 ORA-27091 ORA-27041 磁盘挂载问题
2015-08-04 09:31
507 查看
出现问题-- oracle 11.2.0.1.0 ,无备份,SUSE Linux Enterprise Server 11 (x86_64) SP2
ORA-01114: IO error writing block to file 7 (block # 1)
ORA-01110: data file 7: '/u01/app/oracle/oradata/prod1/disk3/womodel03.dbf'
ORA-27091: unable to queue I/O
ORA-27041: unable to open file
Linux-x86_64 Error: 30: Read-only file system
1.查看文件的权限
ls -lrth /u01/app/oracle/oradata/prod1/disk3/womodel03.dbf'
-rw-r----- 1 oracle oinstall 32G Aug 3 23:18 /u01/app/oracle/oradata/prod1/disk3/woreport03.dbf
2.首先在文件层面检查文件是否坏块
dbv file=/u01/app/oracle/oradata/prod1/disk3/womodel03.dbf' blocksize=8192--现在无记录了,但是得到的结果是没有坏块
3.因为紧急,所以想通过offline datafile 7后启动数据库,但是接下来竟然对datafile 11报同样的错误
alter database datafile 7 offline;
alter database open;
ORA-01114: IO error writing block to file 11(block # 1)
ORA-01110: data file 11: '/u01/app/oracle/oradata/prod1/disk3/womodel11.dbf'
ORA-27091: unable to queue I/O
ORA-27041: unable to open file
Linux-x86_64 Error: 30: Read-only file system
此时我肯定的由Linux-x86_64 Error: 30: Read-only file system推断,磁盘阵列挂载出了问题
5.重新挂载磁盘
1)查看fstab
vi /etc/fstab --后得知有此磁盘的配置,那么只需要做如下操作即可
umount /u01/app/oracle/oradata/prod1/disk3
mount -a
6.重启数据库
SQL> startup
ORACLE instance started.
Total System Global Area 5.0508E+10 bytes
Fixed Size 2217504 bytes
Variable Size 2.5770E+10 bytes
Database Buffers 2.4696E+10 bytes
Redo Buffers 39710720 bytes
Database mounted.
ORA-01113: file 7 needs media recovery
ORA-01110: data file 7: '/u01/app/oracle/oradata/prod1/disk3/woreport03.dbf'
7.由上面可知道现在报错变了,可以读写了,就只需要恢复即可。
SQL> recover datafile 7;
Media recovery complete.
SQL> alter database open;
Database altered.
SQL> select open_mode from v$database;
OPEN_MODE
--------------------
READ WRITE
到此问题解决,希望大家遇到问题多多交流。谢谢!
ORA-01114: IO error writing block to file 7 (block # 1)
ORA-01110: data file 7: '/u01/app/oracle/oradata/prod1/disk3/womodel03.dbf'
ORA-27091: unable to queue I/O
ORA-27041: unable to open file
Linux-x86_64 Error: 30: Read-only file system
1.查看文件的权限
ls -lrth /u01/app/oracle/oradata/prod1/disk3/womodel03.dbf'
-rw-r----- 1 oracle oinstall 32G Aug 3 23:18 /u01/app/oracle/oradata/prod1/disk3/woreport03.dbf
2.首先在文件层面检查文件是否坏块
dbv file=/u01/app/oracle/oradata/prod1/disk3/womodel03.dbf' blocksize=8192--现在无记录了,但是得到的结果是没有坏块
3.因为紧急,所以想通过offline datafile 7后启动数据库,但是接下来竟然对datafile 11报同样的错误
alter database datafile 7 offline;
alter database open;
ORA-01114: IO error writing block to file 11(block # 1)
ORA-01110: data file 11: '/u01/app/oracle/oradata/prod1/disk3/womodel11.dbf'
ORA-27091: unable to queue I/O
ORA-27041: unable to open file
Linux-x86_64 Error: 30: Read-only file system
此时我肯定的由Linux-x86_64 Error: 30: Read-only file system推断,磁盘阵列挂载出了问题
5.重新挂载磁盘
1)查看fstab
vi /etc/fstab --后得知有此磁盘的配置,那么只需要做如下操作即可
umount /u01/app/oracle/oradata/prod1/disk3
mount -a
6.重启数据库
SQL> startup
ORACLE instance started.
Total System Global Area 5.0508E+10 bytes
Fixed Size 2217504 bytes
Variable Size 2.5770E+10 bytes
Database Buffers 2.4696E+10 bytes
Redo Buffers 39710720 bytes
Database mounted.
ORA-01113: file 7 needs media recovery
ORA-01110: data file 7: '/u01/app/oracle/oradata/prod1/disk3/woreport03.dbf'
7.由上面可知道现在报错变了,可以读写了,就只需要恢复即可。
SQL> recover datafile 7;
Media recovery complete.
SQL> alter database open;
Database altered.
SQL> select open_mode from v$database;
OPEN_MODE
--------------------
READ WRITE
到此问题解决,希望大家遇到问题多多交流。谢谢!
相关文章推荐
- AngularJS Tutorial(18)from w3school
- 说的特别好的一句话,送给每一个热爱编程的人
- Android进程与线程基本知识
- First Missing Positive
- AngularJS Tutorial(17)from w3school
- AngularJS Tutorial(16)from w3school
- gem5: 实现最后一级缓存LLC分区
- 创业之初需要的是人而不是钱
- SHell命令总结
- JSP的基本原理
- OKHttp源码解析(三)
- Node.js安装和入门
- 我们无法独立认证自我的存在,如同我们需要镜子才能看清自己的容貌一样,我们需借他人的赞叹而在心理上日益牢固我们的存在感。
- LINUX内核编译步骤详细介绍
- MFC的CFileDialog
- 使用python加密自己的密码
- Ultra-QuickSort(POJ 2299)
- cocos2d-x 在Mac上lua开发环境搭建
- Android开发之如何保证Service不被杀掉(broadcast+system/app)
- AngularJS Tutorial(15)from w3school