For organizations with production and test databases (you do have a test environment, don't you?), copying updated production data into the test environment can be cumbersome. Rather than having to back up the production data and restore it into the testing database, you can use the datapump
command line tool.
Simple Datapump
VSys.exe
and VSys.ini
are located.VSys.exe datapump:source,target
source
is the production database's name or nickname, and target
is the test database's name or nickname. VSys.exe datapump:source,target,table1,table2,table3
source
is the production database's name or nickname, target
is the test database's name or nickname, and the tableX
options (one or more of them) are the names of the tables to be copied. If no tables are specified then all tables are copied.-
". For example,VSys.exe datapump:source,target,-trace,-voxilogs,-zips
trace
, voxilogs
and zips
.Datapump with a settings file
Datapump can also be launched using a specially-formatted XML file. The command prompt syntax is:
VSys.exe datapump:settings:c:\VSys\filename.xml
or, to include the source and target connection names on the command line, VSys.exe datapump:source,target,settings:c:\VSys\filename.xml
The settings XML should be formatted as in:<DATAPUMP Source="sstemp2" Target="temp2">
<TABLES>address, appFields, applications, assignments, attachments, availability, availGroups,awards, blacklist, certifs, comments, courses, creds, entries, events, groups, hours, interviews, letters, lists, locations, mandates, memberships, money, nindex, notifications, options, optionValues, people, relationships, reports, schedule, slots, surveys, tags, trace, training, transitions, webapps, webpends</TABLES>
<FILTER Table="trace" MinDate="2014-01-01"/>
<FILTER Table="letters" MinDate="2014-01-01"/>
</DATAPUMP>
Source
and Target
, if provided, override the equivalent command line parameters.<TABLES>
to indicate the table names to be pumped, separated by commas. If none are provided, all tables will be processed; does not support the "-
" (exclude) syntax.<FILTER>
elements limit the records moved from specific tables to only those on or after the given date. Tables supporting date-based filtering are: attachments
, letters
, trace
, notifications
, transitions
and voxilogs
. Filters specified for any other tables will be ignored.