ASMCMD-8002: entry ‘ARCHIVELOG’ does not exist in directory ‘+FRA/EXDBX/’

Cause:

I deleted archivelog files in archive directory, and the corresponding parent directory also deleted

ASMCMD> cd ARCHIVELOG
ASMCMD> ls
2021_05_11/
2021_05_12/
2021_05_18/
2021_05_21/
2021_05_22/
2021_05_23/
ASMCMD> rm -rf *
ASMCMD> cd ..
ASMCMD-8002: entry 'ARCHIVELOG' does not exist in directory '+FRA/EXDBX/'

Workaround:

Open a new asmcmd session and create the parent directory

ASMCMD [+FRA/EXDBX] > mkdir ARCHIVELOG
ASMCMD [+FRA/EXDBX] > ls
ARCHIVELOG/
BACKUPSET/
CONTROLFILE/
ONLINELOG/
ASMCMD [+FRA/EXDBX] > exit

Now move to different directories from previous session

ASMCMD> cd ..
ASMCMD> ls
ARCHIVELOG/
BACKUPSET/
CONTROLFILE/
ONLINELOG/
ASMCMD>

Leave a Reply