DBCA***数据库所有实例后,本想用RMAN duplicate方式克隆DB,因此在$ORACLE_BASE目录下创建了相关的目录admin/dupl/adump ,admin/dupl/dpump

在使用sqlplus正常连接空闲实例,手贱却执行了startup命令,oracle果断出现ORA-09925错误

[oracle@tips ~]$ sqlplus  / as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Mon Nov 26 04:27:58 2012

Connected to an idle instance.

SQL> startup

ORA-09925: Unable to create audit trail file

Linux-x86_64 Error: 2: No such file or directory

Additional information: 9925

SQL> exit

[oracle@tips ~]$ sqlplus  / as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Mon Nov 26 04:18:28 2012

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

ERROR:

ORA-09925: Unable to create audit trail file

Linux-x86_64 Error: 2: No such file or directory

Additional information: 9925

ORA-01075: you are currently logged on

Enter user-name:

ERROR:

ORA-01017: invalid username/password; logon denied

解决思路

1.首先确定$ORACLE_BASE目录下的adump是否存在,文件名,路径是否正确,权限是否正确

admin下的格式是$ORACLE_SID/adump

[oracle@tips ~]$ cd $ORACLE_BASE

[oracle@tips oracle]$ ls

admin  cfgtoollogs  checkpoints  diag  fast_recovery_area  oradata  product

[oracle@tips oracle]$ cd admin/dupl/

adump/  dpdump/

[oracle@tips oracle]$ cd admin/dupl/

[oracle@tips dupl]$ ls -ld adump/

drwxr-xr-x 2 oracle oinstall 4096 Nov 26 04:19 adump

排除adump目录有无问题,排除adump权限问题

2.检查是否空间adump使用的分区是否已经过满

[oracle@tips dupl]$ df -h

Filesystem            Size  Used Avail Use% Mounted on

/dev/sda1              34G   24G  8.0G  75% /

/dev/sda2              99M  5.8M   88M   7% /home

tmpfs                 1.0G     0  1.0G   0% /dev/shm

/dev/sdb1              60G  4.6G   52G   9% /u01

排除分区过满问题

3.检查共享内存段是否被stuck,在操作系统级别查看

[oracle@tips ~]$ ipcs -a

------ Shared Memory Segments --------

key        shmid      owner      perms      bytes      nattch     status

0x00000000 3342337    root      644        80         2

0x00000000 3375107    root      644        16384      2

0x00000000 3407876    root      644        280        2

0x00000000 3506182    oracle    640        33554432   17

0x00000000 3538951    oracle    640        5016387584 17

0x0d99ce94 3571720    oracle    640        2097152    17

------ Semaphore Arrays --------

key        semid      owner      perms      nsems

0x59451e7c 131073     oracle    640        154

------ Message Queues --------

key        msqid      owner      perms      used-bytes   messages

尽管没有任何数据文件,参数文件,我们可以在系统中仍可以看到,系统确实分配了共享内存段和信号量,oracle也启动了相关进程

[oracle@tips dupl]$ ps -ef | grep ora_

oracle    4977     1  0 04:28 ?        00:00:00 ora_pmon_dupl

oracle    4979     1  0 04:28 ?        00:00:00 ora_psp0_dupl

oracle    4981     1  0 04:28 ?        00:00:00 ora_vktm_dupl

oracle    4985     1  0 04:28 ?        00:00:00 ora_gen0_dupl

oracle    4987     1  0 04:28 ?        00:00:00 ora_diag_dupl

oracle    4989     1  0 04:28 ?        00:00:00 ora_dbrm_dupl

oracle    4991     1  0 04:28 ?        00:00:00 ora_dia0_dupl

oracle    4993     1  1 04:28 ?        00:00:00 ora_mman_dupl

oracle    4995     1  0 04:28 ?        00:00:00 ora_dbw0_dupl

oracle    4997     1  0 04:28 ?        00:00:00 ora_lgwr_dupl

oracle    4999     1  0 04:28 ?        00:00:00 ora_ckpt_dupl

oracle    5001     1  0 04:28 ?        00:00:00 ora_smon_dupl

oracle    5003     1  0 04:28 ?        00:00:00 ora_reco_dupl

oracle    5005     1  0 04:28 ?        00:00:00 ora_mmon_dupl

oracle    5007     1  0 04:28 ?        00:00:00 ora_mmnl_dupl

oracle    5009     1  0 04:28 ?        00:00:00 ora_d000_dupl

oracle    5011     1  0 04:28 ?        00:00:00 ora_s000_dupl

oracle    5022  4912  0 04:28 pts/2    00:00:00 grep ora_

由以上数据表明,系统分配了共享内存段,所以即使$ORACLE_BASE目录下有adump,权限也正确,

但是共享内存和信号量已经被卡住,仍会导致使用sqlplus时ORA-09925错误

解决方案有两种

1.重新系统操作系统,释放共享内存段和信号量,(重新启动系统耗时长)

2.在操作系统级别使用ipcsrm  -m ,ipcsrm -s ***共享内存段和信号量即可

[oracle@tips ~]$ ipcrm  -m 3506182

[oracle@tips ~]$ ipcrm  -m 3538951

[oracle@tips ~]$ ipcrm  -m 3571720

[oracle@tips ~]$ ipcrm  -s 131073

[oracle@tips ~]$ sqlplus  / as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Mon Nov 26 04:19:28 2012

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

Connected to an idle instance.

oracle no such file or directory,ORA-09925 Linux-x86_64 Error: 2: No such file or directory相关推荐

  1. Mac pycharm运行文件 左下角提示error=2, No such file or director

    背景: 系统:MAC系统 问题:pycharm运行别人提供的python项目,项目中文件存在,却提示没有此文件 具体错误: Error:Cannot run program "/Users/ ...

  2. ORA -09925

    今天遇到了一个奇怪的现象,记录一下.在用sqlplus / as sysdba 连接oracle数据时,报了个错 :ORA-09925 unable to create audit trail fil ...

  3. oracle ora 604,ORA-01092:ORACLE实例终止,强制断开连接 ORA 00704 00604 00942

    天萃荷净 有网友咨询数据库启动报 ora-01092:ORACLE 实例终止.强制断开连接 数据库版本 Trace file d:\app\administrator\diag\rdbms\orcl\ ...

  4. oracle00205报错,[Oracle] 数据库启动失败报错 ORA-00205: error in identifying control file

    有同事问我,他的数据库启动失败,报错如下: ORA-00205: error in identifying control file, check alert log for more info 这种 ...

  5. Linux执行可执行文件提示No such file or directory的解决方法

    Linux执行可执行文件提示No such file or directory的解决方法 查阅资料后,原因是系统位数与该可执行文件需要的lib库位数不匹配. 用uname命令打印系统信息,发现系统是6 ...

  6. linux 内核编译错误 gcc: error: elf_i386: No such file or directory

    编译内核出现以下错误 CC arch/x86/mm/mmio-mod.oLD arch/x86/mm/mmiotrace.oLD arch/x86/mm/built-in.oCC arch/x86/c ...

  7. Angular报错-Error: ENOENT: no such file or directory, scandir '/Users/echo_hx/node_modules'

    2019-11-07   更新 我知道为啥报错了,自我好好反省一下!!! 所以,Mac的终端,不能用简写的命令,哭泣... 不过下面的,就可以看作安装卸载@angular/cli了 在全局安装angu ...

  8. 10.29 工作笔记 ndk编译C++,提示找不到头文件(ndk-build error: string: No such file or directory)...

    ndk编译C++.提示找不到头文件(ndk-build error: string: No such file or directory) 被这个问题弄得愁眉苦脸啊.心想为啥一个string都找不到呢 ...

  9. npm error enoent:no such file or directory...are-we-there-yet ; package.json文件和node_modules模相互转化

    vue-cli项目一段时间没有变动,几个星期后继续编辑安装 npm install vue-skeleton-webpack-plugin 插件时报错 npm error  enoent:no suc ...

最新文章

  1. iOS 开发者账号 到期续费问题
  2. 《实现模式(修订版)》—第1章1.2节那么,现在……
  3. 面对大规模AI集成,企业为何迟迟犹豫?
  4. solr服务器的查询过程
  5. Mac OS 如何连接windows 文件共享
  6. 5G可能和你想象的完全不同!(文末福利)
  7. [转]史上最全的后端技术大全,你都了解哪些技术呢?
  8. [Unity] FlowCanvas 使用注意事项
  9. java实时监控数据变化_服务数据实时监控平台
  10. DCMTK的Lib 引用顺序
  11. bind9局域网其他用户不能解析_linux dns server bind9 内网域名解析
  12. FreeRTOS 教程指南 学习笔记 第四章 队列管理
  13. java.sql.Date.valueOf处理日期格式IllegalArgumentException异常
  14. 中职计算机专业教程购买渠道,中职计算机论文精选
  15. FaceBook到底验证个啥?
  16. 德勤加拿大:在Flow链上创建NFT所消耗的能量比人们搜索或发布一个帖子还少
  17. RabbitMQ学习之旅
  18. 使用 jquery.wordexport.js导出的Word排版
  19. 添加、修改、删除以及查看本地git的用户名和邮箱
  20. 优化新闻管理系统(分层)+代码封装

热门文章

  1. java 多线程Callable和Runable执行顺序问题详解
  2. 只用jsp实现同样的Servlet功能
  3. 通过帧中继验证OSPF支持的不同网络类型
  4. js的arguments_javascript
  5. HTML学习感想(4)【密码输入框、单选、复选框】
  6. CentOS6.5最小化安装+自定义安装包
  7. 教你如何成为数据科学家(六)
  8. Word写博客-使用Word2013发布博文到博客园
  9. C#-WinForm-无边框窗体的移动和阴影-API
  10. 计算机专业的书普遍都这么贵,Github上的计算机电子书很多~~~