Oracle报错篇 ORA-01378 磁盘扇区大小不兼容问题
欢迎关注“数据库运维之道”公众号,一起学习数据库技术!
本期将为大家分享“ORA-01378 磁盘扇区大小不兼容”报错的问题解决方案。
关键词:ORA-01378、_disk_sector_size_override、4K Online Redo Log /4K Sector Disks
近日,为了验证数据库备份的有效性,尊贵的DBA将rhel 7.4系统上的Oracle数据库备份通过异机恢复
方式还原到oel 6.8的操作系统上,其中控制文件、数据文件恢复还原都很顺利。但是当执行alter
database open resetlogs命令出现ORA-01378错误。报错内容为:ORA-01378: The logical block size
(4096) of file /u01/app/oracle/oradata/ywzd/ywzd/onlinelog/o1_mf_1_%u_.log is not compatible with
the disk sector size (media sector size is 512 and host sector size is 512)
(1)使用oerr命令查看错误编号对应具体的描述、原因和解决方式。这个错误表明redo日志文件
的块大小和磁盘扇区大小不兼容,两者之间存在一定的尺寸差距。进一步检查操作系统的磁盘逻辑和
物理扇区大小是否为512字节。
(2)根据上面的错误信息可以知道在线日志文件存放到/u01目录,而/u01/建在根目录下,进一步
定位到逻辑卷。然后通过fdisk命令看到这个磁盘的逻辑和物理扇区大小值为512 bytes。
$oerr ora 01378 1
01378, 00000, "The logical block size(%s) of file %s is not compatible 2
with the disk sector size (media sector sizeis %s and host sector size is %s)" 3
*Cause: One of the following occurred: 4
(1) An attempt was made to create a file. 5
(2) A file was moved to disks with different sector size.// 6
*Action: Create file or move file to the proper disk.7
文档被以下合辑收录
评论