今天上午有同事反映应用数据库连接不上;于是排查数据库:

[oracle@db ~]$ sqlplus / as sysdba
SQL*Plus: Release 10.2.0.4. - Production on Thu Dec ::
Copyright (c) , , Oracle. All Rights Reserved. ERROR:
ORA-09925: Unable to create audit trail file
Linux-x86_64 Error: 30: Read-only file system
Additional information: 9925
ORA-: Unable to create audit trail file
Linux-x86_64 Error: : Read-only file system
Additional information: Enter user-name:
ERROR:
ORA-: invalid username/password; logon denied Enter user-name:
ERROR:
ORA-: invalid username/password; logon denied SP2-: unable to CONNECT to ORACLE after attempts, exiting SQL*Plus

上网查了,说数据库命令权限不对,解决办法如下:

-rwx------  oracle oinstall       Jan    onsctl
-rwxr-xr-x oracle oinstall Nov oracg
-rwsr-s--x 1 oracle oinstall 112468376 Jan 15 2013 oracle
-rwxr-x--- oracle oinstall Mar oracleO
-r-sr-s--- 1 root oinstall 14931 Mar 11 2008 oradism
-rwxr-x--- oracle oinstall Mar oradismO
[oracle@db bin]$ chmod  /u01/app/oracle/product/10.2./bin/oracle
chmod: changing permissions of `/u01/app/oracle/product/10.2./bin/oracle': Read-only file system
[oracle@db bin]$

改变权限,但提示read-only file system。

再排查系统:

[root@db ~]# mount
/dev/mapper/LVMgroup-root on / type ext3 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=,mode=)
/dev/sda1 on /boot type ext3 (rw)
tmpfs on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) mount: warning /etc/mtab is not writable (e.g. read-only filesystem).
It's possible that information reported by mount(8) is not
up to date. For actual information about system mount points
check the /proc/mounts file. [root@db ~]# cat /proc/mounts
rootfs / rootfs rw
/dev/root / ext3 ro,data=ordered
/dev /dev tmpfs rw
/proc /proc proc rw
/sys /sys sysfs rw
/proc/bus/usb /proc/bus/usb usbfs rw
devpts /dev/pts devpts rw
/dev/sda1 /boot ext3 rw,data=ordered
tmpfs /dev/shm tmpfs rw
tmpfs /dev/shm tmpfs rw
none /proc/sys/fs/binfmt_misc binfmt_misc rw
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw
/etc/auto.misc /misc autofs rw,fd=,pgrp=,timeout=,minproto=,maxproto=,indirect
-hosts /net autofs rw,fd=,pgrp=,timeout=,minproto=,maxproto=,indirect

root根目录变成read-only,无法写文件系统,Oracle因为无法写audit文件也无法正常登陆 。

[root@db ~]# dmesg
EXT3-fs error (device dm-) in ext3_reserve_inode_write: Journal has aborted
EXT3-fs error (device dm-) in ext3_reserve_inode_write: Journal has aborted
sd :::: timing out command, waited 1080s
sd :::: SCSI error: return code = 0x06000008
end_request: I/O error, dev sda, sector
EXT3-fs error (device dm-) in ext3_reserve_inode_write: Journal has aborted
************
***********
**********

通过dmesg发现EXT3 文件系统存在问题。

网上有资料说可以通过使用fsck命令修复文件系统,命令也执行不了(fsck可能会导致数据块损坏,最好是不做fsck,重启一下服务器)。

[root@db ~]# fsck
fsck 1.39 (-May-)
e2fsck 1.39 (-May-)
/dev/LVMgroup/root: recovering journal
fsck.ext3: Bad magic number in super-block while trying to re-open /dev/LVMgroup/root
e2fsck: io manager magic bad!
[root@db ~]# 

通过命令重启服务器也不可行。

[root@db ~]# df -h
-bash: df: command not found
[root@db ~]# reboot
-bash: reboot: command not found

到此,问题已经很明了,Linux系统出问题了,咨询运维,服务器确实出问题。

幸好这是一个临时环境,数据库重新安装即可。

如果是正式环境,麻烦大了。切记,数据库要定期在其他系统上做备份!!

Oracle:ORA-09925 and linux Read-only file system error的更多相关文章

  1. Linux出现Read-only file system错误的解决方法

    造成这个问题的解决办法大多数是由于非正常关机后导致文件系统受损引起的,在系统重新启动之后,受损分区就会被Linux自己主动挂载为仅仅读.解决办法是通过fsck来修复文件系统,然后重新启动就可以,下面是 ...

  2. Android(java)学习笔记152:Android运行时异常“Binary XML file line # : Error inflating class”

    在原生Android下编译APK,编译没有问题,但是在运行的时候经常出现如标题所描述的异常:"Binary XML file line # : Error inflating class&q ...

  3. Android(java)学习笔记95:Android运行时异常"Binary XML file line # : Error inflating class"

    在原生Android下编译APK,编译没有问题,但是在运行的时候经常出现如标题所描述的异常:"Binary XML file line # : Error inflating class&q ...

  4. Sharing The Application Tier File System in Oracle E-Business Suite Release 12.2

    The most current version of this document can be obtained in My Oracle Support Knowledge Document 13 ...

  5. chattr lsattr linux file system attributes - linux 文件系统扩展属性

    我们使用 linux 文件系统扩展属性,能够对linux文件系统进行进一步保护:从而给文件 赋予一些额外的限制:在有些情况下,能够对我们的系统提供保护: chattr命令用来改变文件属性.这项指令可改 ...

  6. linux c语言 rename的用法-rename() does not work across different mount points, even if the same file system is mounted on both

    最近在一个项目上执行文件的搬移功能时发现总是失败,临时录像文件存放于emmc的/tmp/目录下,当录像完成时候则调用rename企图将此文件搬到/mnt/sdcard/mmcblk1p1/(这是外置的 ...

  7. Oracle 11g Windows 迁移至 Linux

    OS: windows server 2008 R2 enterprise DB: 11.2.0.1.0 数据库配置: ORACLE_BASE=D:\app\Administrator ORACLE_ ...

  8. 献给初学者:谈谈如何学习Linux操作系统

    本文出自 “技术成就梦想” 博客,请务必保留此出处http://ixdba.blog.51cto.com/2895551/569329. 为了能把这篇不错的文章分享给大家.所以请允许我暂时用原创的形式 ...

  9. 基于Linux的oracle数据库管理 part1( 准备及linux基础 )

    主要内容 1. 安装VMware tools (好处, 显示效果增强, 从虚拟机出来不需要alt+ctrl 切换) 2. Linux 启动过程, 方便以后oracle 自动启动与关闭 3. Linux ...

随机推荐

  1. ZOJ 3717 二分+2-sat判定。

    好久没有2-sat了,此题当复习之用,二分求最大值+2-sat判断可行,此题主要跪于题意:The results should be rounded to three decimal places. ...

  2. Google解决跨域

    1.添加   --disable-web-security --user-data-dir=D:\tmp 2.在D的根目录新建tmp文件夹

  3. raspberry pi系统安装

    1.格式化SD卡,用SDFormatter 2.解压下载的操作系统 3.复制操作系统到SD卡(要放在根目录,把最外面的文件夹路径去掉) 4.把SD卡插入raspberry pi,接上电源 5.在启动界 ...

  4. LVM创建

    LVM介绍 PV(Physical Volume) - 物理卷 物理卷在逻辑卷管理中处于最底层,它可以是实际物理硬盘上的分区,也可以是整个物理硬盘,也可以是raid设备 VG(Volume Group ...

  5. 笨鸟不乖 是这么设计Android项目架构的

    项目地址:https://github.com/benniaobuguai/android-project-wo2b部分效果图        项目结构当前项目只是其中一个例子,wo2b-common- ...

  6. 【hdu】Mayor's posters(线段树区间问题)

    须要离散化处理,线段树的区间改动问题. 须要注意的就是离散化的时候,由于给的数字是一段单位长度,所以须要特殊处理(由于线段的覆盖和点的覆盖是不一样的) 比方:(1,10)(1,4) (6,10) 离散 ...

  7. ditaa - 把ascii图形转成图片

    ditaa ditaa是一个把ascii图形转成图片的工具. 在查看zguide时看到这个文档是用gitdown生成的.zguide文档格式排版非常不错,以后要抽时间好好学习一下. 每章写一个txt文 ...

  8. iOS清理WebView的缓存

    NSHTTPCookie *cookie; NSHTTPCookieStorage *storage = [NSHTTPCookieStorage sharedHTTPCookieStorage]; ...

  9. Lily HBase Indexer同步HBase二级索引到Solr丢失数据的问题分析

    一.问题描述二.分析步骤2.1 查看日志2.2 修改Solr的硬提交2.3 寻求StackOverFlow帮助2.4 修改了read-row="never"后,丢失部分字段2.5 ...

  10. quilt

    1 什么是quilt quilt是一个patch管理工具,特别适合于对多个patch进行管理. quilt是基于gnu patch和diff的. 2 使用quilt创建一个patch 第一步,quil ...