Storage Management (ASM ACFS DNFS ODM) (MOSC)

MOSC Banner

asmcmd find-command not behaving as expected

edited Jul 27, 2011 8:52PM in Storage Management (ASM ACFS DNFS ODM) (MOSC) 4 commentsAnswered ✓
Hi,

For a migrationprogress I want to run asmcmd from the commandline with -p.

The following in a shell-script works like a charm (Oracle 11gr2):

asmcd <<EOT

find --type DATAFILE +DG/db *

EOT

Outputted to a txt-file I get

ASMCMD> +DG/db/datafile/SYSTEM.312.1231232

+DG/db/datafile/SYSAUX.321.34423423

etc.

Now I would like to run;

asmcmd -p find --type DATAFILE +DG/db *

but then it prompts with :

usage: find [--type type] dir pattern
help:  help find

I can't figure out what's wrong. As

asmcmd -p ls +DG

works well, so it seems it hasn't anything to do with using backslashes before specialcharacters. I also tried

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

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

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center