RMAN having trouble with spaces in file names.
504289May 16 2006 — edited May 19 2006Hi,
RMAN is complaining if cmdfile and log file names have space in them (even if they are quoted). This test is done on windows with 10g.
cmd> rman target / cmdfile rcmd.txt
This works fine. However,
cmd> rman target / cmdfile "E:\test dir\rcmd.txt"
complains about syntax. Something like:
Argument Value Description
-----------------------------------------------------------------------------
target quoted-string connect-string for target database
catalog quoted-string connect-string for recovery catalog
nocatalog none if specified, then no recovery catalog
cmdfile quoted-string name of input command file
log quoted-string name of output message log file
trace quoted-string name of output debugging message log file
append none if specified, log is opened in append mode
debug optional-args activate debugging
msgno none show RMAN-nnnn prefix for all messages
send quoted-string send a command to the media manager
pipe string building block for pipe names
timeout integer number of seconds to wait for pipe input
checksyntax none check the command file for syntax errors
-----------------------------------------------------------------------------
Both single and double quotes (' or ") are accepted for a quoted-string.
Quotes are not required unless the string contains embedded white-space.
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00552: syntax error in command line arguments
RMAN-01009: syntax error: found "identifier": expecting one of: "append, at, auxiliary, catalog, cmdfile, clone, checksyntax, debug, log, msglog, mask, msgno, nocatalog, pipe, rcvcat, script, slaxdebug, send, target, timeout, trace"
RMAN-01008: the bad identifier was: dir
RMAN-01007: at line 0 column 10 file: command line arguments
Am I missing something here? Any help is greatly appreciated.
Thanks,
Raghu.