標籤: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錯誤[[email protected] ~]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Mon Nov 26 04:27:58 2012Connected to an idle instance.SQL> startupORA-09925: Unable to create audit trail fileLinux-x86_64 Error: 2: No such file or directoryAdditional information: 9925SQL> exit[[email protected] ~]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Mon Nov 26 04:18:28 2012Copyright (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 onEnter user-name: ERROR:ORA-01017: invalid username/password; logon denied解決思路1.首先確定$ORACLE_BASE目錄下的adump是否存在,檔案名稱,路徑是否正確,許可權是否正確admin下的格式是$ORACLE_SID/adump[[email protected] ~]$ cd $ORACLE_BASE[[email protected] oracle]$ lsadmin cfgtoollogs checkpoints diag fast_recovery_area oradata product[[email protected] oracle]$ cd admin/dupl/adump/ dpdump/ [[email protected] oracle]$ cd admin/dupl/[[email protected] dupl]$ ls -ld adump/drwxr-xr-x 2 oracle oinstall 4096 Nov 26 04:19 adump排除adump目錄有無問題,排除adump許可權問題2.檢查是否空間adump使用的分區是否已經過滿[[email protected] dupl]$ df -h Filesystem Size Used Avail Use% Mounted on/dev/sda1 34G 24G 8.0G 75% //dev/sda2 99M 5.8M 88M 7% /hometmpfs 1.0G 0 1.0G 0% /dev/shm/dev/sdb1 60G 4.6G 52G 9% /u01排除分區過滿問題3.檢查共用記憶體段是否被stuck,在作業系統層級查看[[email protected] ~]$ 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也啟動了相關進程[[email protected] dupl]$ ps -ef | grep ora_oracle 4977 1 0 04:28 ? 00:00:00 ora_pmon_duploracle 4979 1 0 04:28 ? 00:00:00 ora_psp0_duploracle 4981 1 0 04:28 ? 00:00:00 ora_vktm_duploracle 4985 1 0 04:28 ? 00:00:00 ora_gen0_duploracle 4987 1 0 04:28 ? 00:00:00 ora_diag_duploracle 4989 1 0 04:28 ? 00:00:00 ora_dbrm_duploracle 4991 1 0 04:28 ? 00:00:00 ora_dia0_duploracle 4993 1 1 04:28 ? 00:00:00 ora_mman_duploracle 4995 1 0 04:28 ? 00:00:00 ora_dbw0_duploracle 4997 1 0 04:28 ? 00:00:00 ora_lgwr_duploracle 4999 1 0 04:28 ? 00:00:00 ora_ckpt_duploracle 5001 1 0 04:28 ? 00:00:00 ora_smon_duploracle 5003 1 0 04:28 ? 00:00:00 ora_reco_duploracle 5005 1 0 04:28 ? 00:00:00 ora_mmon_duploracle 5007 1 0 04:28 ? 00:00:00 ora_mmnl_duploracle 5009 1 0 04:28 ? 00:00:00 ora_d000_duploracle 5011 1 0 04:28 ? 00:00:00 ora_s000_duploracle 5022 4912 0 04:28 pts/2 00:00:00 grep ora_由以上資料表明,系統分配了共用記憶體段,所以即使$ORACLE_BASE目錄下有adump,許可權也正確,但是共用記憶體和訊號量已經被卡住,仍會導致使用sqlplus時ORA-09925錯誤解決方案有兩種 1.重新系統作業系統,釋放共用記憶體段和訊號量,(重新啟動系統耗時間長度)2.在作業系統層級使用ipcsrm -m ,ipcsrm -s ***共用記憶體段和訊號量即可[[email protected] ~]$ ipcrm -m 3506182 [[email protected] ~]$ ipcrm -m 3538951[[email protected] ~]$ ipcrm -m 3571720[[email protected] ~]$ ipcrm -s 131073[[email protected] ~]$ sqlplus / as sysdbaSQL*Plus: Release 11.2.0.3.0 Production on Mon Nov 26 04:19:28 2012Copyright (c) 1982, 2011, Oracle. All rights reserved.Connected to an idle instance.
本文出自 “O Record” 部落格,請務必保留此出處http://evils798.blog.51cto.com/8983296/1420947