My Oracle Support Banner

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

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


This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process and therefore has not been subject to an independent technical review.
My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.