日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

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

發布時間:2025/4/17 linux 68 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。