My Oracle Support Banner

asmcmd 'rm -rf' Returns 255 even Upon Successful Executions (Doc ID 1597271.1)

Last updated on JANUARY 24, 2020

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.3 and later
Information in this document applies to any platform.

Symptoms

 Using 'asmcmd rm -rf <FILE>' returns 255 even when it succeeded in removing the file.

See transcript below for example / details:

[<USER>@<DBNAME>] : asmcmd find . *seq*
+<DGNAME>/<DBNAME>/ARCHIVELOG/2013_07_18/thread_1_seq_20759.456.821106583
+<DGNAME>/<DBNAME>/ARCHIVELOG/2013_07_18/thread_1_seq_20760.451.821106601
+<DGNAME>/<DBNAME>/ARCHIVELOG/2013_07_18/thread_1_seq_20761.446.821106827
+<DGNAME>/<DBNAME>/ARCHIVELOG/2013_07_18/thread_1_seq_20762.417.821110339
[<USER>@<DBNAME>] : echo $?
0
[<USER>@<DBNAME>] : asmcmd rm -rf +<DGNAME>/<DBNAME>/ARCHIVELOG/2013_07_18/thread_1_seq_20759.456.821106583
[<USER>@<DBNAME>] : echo $?
255
[<USER>@<DBNAME>] : asmcmd find . *seq*
+<DGNAME>/<DBNAME>/ARCHIVELOG/2013_07_18/thread_1_seq_20760.451.821106601
+<DGNAME>/<DBNAME>/ARCHIVELOG/2013_07_18/thread_1_seq_20761.446.821106827
+<DGNAME>/<DBNAME>/ARCHIVELOG/2013_07_18/thread_1_seq_20762.417.821110339
[<USER>@<DBNAME>] :

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.