cancel
Showing results for 
Search instead for 
Did you mean: 

How do I specify the -x option and the offline log file directory together in dbmlsync?

Former Member
0 Kudos
4,228

I'm trying to run the following dbmlsync command line:

dbmlsync -c uid=dba;pwd=sql -x c:\\my\\offline\\log\\directory

When I run it dbmlsync displays its help screen with a message that says,

Error in command near "c:\\my\\offline\\log\\directory"

What did I do wrong?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member

The problem here is that the command line is ambiguous.

The -x option can be followed by a size (for example -x 1024) or it can be specified on its own which is equivalent to -x 0.

Dbmlsync assumes that if the thing following a -x does not start with a - or a / then it is the size. This is the correct assumption unless the -x comes immediately before the offline log directory which is the only command line option that does not start with a - or a /.

So in the case above dbmlsync is trying to treat c:\\my\\offline\\log directory as the size parameter for the -x option. It cannot convert this value to an integer so it reports an error.

There are 2 ways to work around this:

  1. Replace -x with -x 0.
  2. Rearrange the options on the command line so that the -x option does not come immediately before the offline log directory. (ex dbmlsync -x -c uid=dba;pwd=sql c:\\my\\offline\\log\\directory
Breck_Carter
Participant

Try dbmlsync -c uid=dba;pwd=sql -x 0 c:myofflinelogdirectory