You can automate data comparison and synchronization using the command line.
Type cmd in the Search programs and files text box and press the ENTER button.
Note
To run the Command Line in Windows 10:
From the Desktop Mode
- Move the mouse cursor to the exact lower left corner until the desktop shortcuts menu appears.
- Right-click to see the shortcut menu and then click Run.
From the Charms Bar
- Move your mouse to the upper right corner until the Charms Bar appears.
- Select Apps from the list and type run in the search box.
- Click Run from the search results.
Use Windows + R Shortcut Keys
- In desktop mode, press the Windows + R keys, to show the Run command line.
- In the window that opens, type cmd and press Enter.
C:\Program Files\Devart\dbForge Studio for Oracle\dbforgeoracle.com
Note
The path to the executable file will differ depending on how you have installed the Studio - as a standalone tool or as part of the dbForge Edge bundle. Make sure that you have specified a correct path. If you have installed the Studio as part of dbForge Edge, change the path accordingly:
C:\Program Files\Devart\dbForge Edge\dbForge Studio for Oracle>dbforgeoracle.com
For example, specify the type of the operation.
C:\Program Files\Devart\dbForge Studio for Oracle>dbforgeoracle.com /datacompare /?
C:\Program Files\Devart\dbForge Studio for Oracle>dbforgeoracle.com /datacompare /compfile:"D:\mycompdoc.dcomp"
C:\Program Files\Devart\dbForge Studio for Oracle>dbforgeoracle.com /datacompare /compfile:"D:\mycompdoc.dcomp" /sync:"D:\mysync.sql"
Note
To synchronize data automatically, use /sync without file name specification:
C:\Program Files\Devart\dbForge Studio for Oracle>dbforgeoracle.com /datacompare /compfile:”D:\mycompdoc.dcomp” /sync
C:\Program Files\Devart\dbForge Studio for Oracle>dbforgeoracle.com /datacompare /compfile:"D:\mycompdoc.dcomp" /sync:"D:\mysync.sql" /log:"D:\mylog.log"
C:\Program Files\Devart\dbForge Studio for Oracle>dbforgeoracle.com /datacompare /compfile:"D:\mycompdoc.dcomp" /sync:"D:\mysync.sql" /log:"D:\mylog.log" /report:"D:\myreport.html"
C:\Program Files\Devart\dbForge Studio for Oracle>dbforgeoracle.com /datacompare /compfile:"D:\mycompdoc.dcomp" /sync:"D:\mysync.sql" /log:"D:\mylog.log" /report:"D:\myreport.html" /reportformat:HTML
Tip: To execute the synchronization script, use the /execute switch:
C:\Program Files\Devart\dbForge Studio for Oracle>dbforgeoracle.com /execute /connection:"User Id=yourusername;Server=dboracle;Unicode=True;Connection Timeout=0;Direct=True;Service Name=orcl1120;" /inputfile:"D:\mysync.sql"
To generate a file with command line arguments, open the Data Comparison wizard.
To access the Data Comparison Wizard, on the Comparison menu, click .
Select Source and Target for comparison. Go through other wizard pages to tune the data comparison.
On the Options tab, click Save settings to a command line arguments file and specify the file name and location to save the file. The selected Source and Target connection strings along with comparison options will be saved as command line arguments in the file. You can edit the values of comparison options in the file.
Note that the generated file does not contain password information for security purposes. You should edit the file and enter the passwords manually.
You can see available additional arguments and learn how to use them in the Additional /datacompare Arguments topic.
The command line string with /argfile parameter will be written as follows:
C:\Program Files\Devart\dbForge Studio for Oracle>dbforgeoracle.com /argfile:file_name.txt