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

Last updated on NOVEMBER 04, 2013

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:

[oracle@test] /bb/bin/oracle/dba: asmcmd find . *seq*
+FRA/test/ARCHIVELOG/2013_07_18/thread_1_seq_20759.456.821106583
+FRA/test/ARCHIVELOG/2013_07_18/thread_1_seq_20760.451.821106601
+FRA/test/ARCHIVELOG/2013_07_18/thread_1_seq_20761.446.821106827
+FRA/test/ARCHIVELOG/2013_07_18/thread_1_seq_20762.417.821110339
[oracle@test] /bb/bin/oracle/dba: echo $?
0
[oracle@test] /bb/bin/oracle/dba: asmcmd rm -rf +FRA/test/ARCHIVELOG/2013_07_18/thread_1_seq_20759.456.821106583
[oracle@test] /bb/bin/oracle/dba: echo $?
255
[oracle@test] /bb/bin/oracle/dba: asmcmd find . *seq*
+FRA/test/ARCHIVELOG/2013_07_18/thread_1_seq_20760.451.821106601
+FRA/test/ARCHIVELOG/2013_07_18/thread_1_seq_20761.446.821106827
+FRA/test/ARCHIVELOG/2013_07_18/thread_1_seq_20762.417.821110339
[oracle@test] /bb/bin/oracle/dba:

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms