oracle no such file or directory,ORA-09925 Linux-x86_64 Error: 2: No such file or directory
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相关推荐
- Mac pycharm运行文件 左下角提示error=2, No such file or director
背景: 系统:MAC系统 问题:pycharm运行别人提供的python项目,项目中文件存在,却提示没有此文件 具体错误: Error:Cannot run program "/Users/ ...
- ORA -09925
今天遇到了一个奇怪的现象,记录一下.在用sqlplus / as sysdba 连接oracle数据时,报了个错 :ORA-09925 unable to create audit trail fil ...
- oracle ora 604,ORA-01092:ORACLE实例终止,强制断开连接 ORA 00704 00604 00942
天萃荷净 有网友咨询数据库启动报 ora-01092:ORACLE 实例终止.强制断开连接 数据库版本 Trace file d:\app\administrator\diag\rdbms\orcl\ ...
- oracle00205报错,[Oracle] 数据库启动失败报错 ORA-00205: error in identifying control file
有同事问我,他的数据库启动失败,报错如下: ORA-00205: error in identifying control file, check alert log for more info 这种 ...
- Linux执行可执行文件提示No such file or directory的解决方法
Linux执行可执行文件提示No such file or directory的解决方法 查阅资料后,原因是系统位数与该可执行文件需要的lib库位数不匹配. 用uname命令打印系统信息,发现系统是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 ...
- Angular报错-Error: ENOENT: no such file or directory, scandir '/Users/echo_hx/node_modules'
2019-11-07 更新 我知道为啥报错了,自我好好反省一下!!! 所以,Mac的终端,不能用简写的命令,哭泣... 不过下面的,就可以看作安装卸载@angular/cli了 在全局安装angu ...
- 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都找不到呢 ...
- 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 ...
最新文章
- iOS 开发者账号 到期续费问题
- 《实现模式(修订版)》—第1章1.2节那么,现在……
- 面对大规模AI集成,企业为何迟迟犹豫?
- solr服务器的查询过程
- Mac OS 如何连接windows 文件共享
- 5G可能和你想象的完全不同!(文末福利)
- [转]史上最全的后端技术大全,你都了解哪些技术呢?
- [Unity] FlowCanvas 使用注意事项
- java实时监控数据变化_服务数据实时监控平台
- DCMTK的Lib 引用顺序
- bind9局域网其他用户不能解析_linux dns server bind9 内网域名解析
- FreeRTOS 教程指南 学习笔记 第四章 队列管理
- java.sql.Date.valueOf处理日期格式IllegalArgumentException异常
- 中职计算机专业教程购买渠道,中职计算机论文精选
- FaceBook到底验证个啥?
- 德勤加拿大:在Flow链上创建NFT所消耗的能量比人们搜索或发布一个帖子还少
- RabbitMQ学习之旅
- 使用 jquery.wordexport.js导出的Word排版
- 添加、修改、删除以及查看本地git的用户名和邮箱
- 优化新闻管理系统(分层)+代码封装