Database Export/Import
For information
During database export, a copy of the data is created and saved in a file.
Via database export, this file can be read in a PLANTA system (requirement: The schema corresponds to the schema of the source system).
The database export/import is used by Customizing Deployment and Database Update.
Notes
The database connection, etc. from the PLANTA Server configuration is used.
The export has access to the PLANTA Data Dictionary and can therefore decide which schemas, tables, and columns are active.
If no specific data tables and/or schemas are selected, all active data is exported.
Since the schema export works analogously, exported schemas and data of the same customizing status match perfectly.
Application
Information
The tools can be called via a
commandin the docker compose and pose the same requirements to the system environment as the PLANTA Server itself, although the storage requirement is clearly lower.
ExportCall via
| ImportCall via
|
Parameter Details
The command line parameters for selection of the data amount are identical for export and import.
Parameter name | Parameter | Abbreviation | Explanation |
|---|---|---|---|
Schema filter |
| -s | Allow positive or negative lists of PLANTA schemas, e.g. |
Table filter |
| -t | Allow positive or negative lists of PLANTA schemas, e.g. |
License filter |
| -l | Allow positive or negative lists of PLANTA schemas, e.g. |
History |
| -H | Activates the transfer of the history tables and of the
|
Export file |
| -o | File in which the export is written. |
Import file |
| -i | File which is read during import. |
Jobs |
| -j | Specification of several parameter files that are processed consecutively
|
Truncate |
| Empties the table before import. | |
Help |
| -h | Shows a list of possible parameters. |
Differences in the treatment of filter options between import and export
For information
Schema, table, and history filters work identically in import and export, i.e. a complete export of a development system can. e.g., also be used for a Customizing Deployment in the corresponding productive system.
The general rule is: If the export contains the desired data, the import can process it selectively.
In opposite to that, license filters cannot be used for exported files in import.
All lines that are included in the export are processed in the import regardless of its license number.
I.e., the export must match the required import here, which applies, for example, to the customizing update.
(A complete export of all schemas and tables with correct license filter can, however, be used for a customizing update by making an adequate schema and table selection.)
The license filter in the import only defines which records are to be deleted (positive list by
--include-licenses) or not to be deleted (negative list by--exclude-licenses) before data is read into the respective tables, on the assumption that the export comes with exactly those licenses that are to be processed.
Import Specialties
Note
If, during import, records that have the same primary keys as the records to be imported are identified in the system, the existing records are deleted.
Parameter Files
For information
All command line options can be saved in parameter files for repetitive tasks and used with
@<file>syntax.For examples of use, see Customizing Deployment - as of now, parameter files are made available for this purpose in the first place.
When creating a parameter file, you have to take into account that the parser separates the arguments based on line breaks:
# works: --include-schemas Q1B Q2B # does not work: --exclude-tables DT345