Import Modes Import and Export Concepts

19-8 Oracle Fusion Middleware Developers Guide for Oracle Data Integrator You must at least specify the Export Name. 4. Click OK. The object is exported as an XML file in the specified location.

19.2.2 Export Multiple ODI Objects

You can export one or more objects at once, using the Export Multiple... menu item. This lets you export ODI objects to a zip file or a directory, and lets you re-use an existing list of objects to export. A more powerful mechanism for doing this is using Solutions. See Section 18.4, Working with Solutions for more information. How to export multiple objects at once: 1. Select Export Multiple... from the Designer, Topology, Security or Operator Navigator toolbar menu.

2. In the Export Multiple Objects dialog, specify the export parameters as indicated

in Table 19–2 . The objects are either exported as .xml files directly into the directory, or as a zip file containing .xml files. If you want to generate a zip file, you need to select Export as zip file and enter the name of the zip file in the Zip file name field. 3. Specify the list of objects to export:

1. Drag and drop the objects from the Oracle Data Integrator Navigators into the

Export list. Note that you can export objects from different Navigators at once. 2. Click Load a list of objects... to load a previously saved list of objects. This is useful if you regularly export the same list of objects.

3. To save the current list of objects, click SaveExport List and specify a file

name. If the file already exists, it will be overwritten without any warning. To import multiple objects at once, you must use a Solution. See Section 18.4, Working with Solutions for more information.

19.2.3 Importing Objects

Importing and exporting allows you to transfer objects Interfaces, Knowledge Modules, Models,... from one repository to another. Importing an ODI object To import an object in Oracle Data Integrator: 1. In the Navigator, select the object or object node under which you want to import the object. Character Set Encoding specified in the export file. Parameter encoding in the XML file header. ?xml version=1.0 encoding=ISO-8859-1? Java Character Set Java character set used to generate the file Table 19–2 Cont. Object Export Parameters Properties Description ExportingImporting 19-9

2. Right-click the object, and select Import, then the type of the object you wish to

import. 3. In the Import dialog:

1. Select the Import Mode. Refer to

Section 19.1.3, Import Modes for more information.

2. Enter the File Import Directory.

3. Select the files to import from the list.

4. Click OK.

The XML-formatted files are imported into the work repository, and the imported objects appear in the Oracle Data Integrator Navigators. Note that the parent or node under which objects are imported is dependent on the import mode used. When using DUPLICATION mode, the objects will be imported into where the Import option was selected. For Synonym imports, the objects will be imported under the parent specified by the objects parent id in the import file. Importing a KM To import a Knowledge Module into Oracle Data Integrator: 1. In Designer Navigator, select the project into which you want to import the KM. 2. Right-click the project, and select Import Import Knowledge Modules.... 3. In the Import dialog:

1. The Import Mode is set to Duplication. Refer to

Section 19.1.3, Import Modes for more information.

2. Enter the File Import Directory.

3. Select the Knowledge Module files to import from the list.

4. Click OK.

The Knowledge Modules are imported into the work repository and appear in your project under the Knowledge Modules node. Importing a KM in Replace Mode Knowledge modules are usually imported into new projects in Duplication mode. When you want to replace a KM in a project by another one and have all interfaces automatically use the new KM, you must use the Import Replace mode.To import a Knowledge Module in Replace mode: 1. Select the Knowledge Module you wish to replace. 2. Right-click the Knowledge Module and select Import Replace... 3. In the Replace Object dialog, specify the Knowledge Module export file.

4. Click OK.

The Knowledge Module is now replaced by the new one. 19-10 Oracle Fusion Middleware Developers Guide for Oracle Data Integrator

19.3 Repository-Level ExportImport

At repository level you can export and import the master repository and the work repositories.

19.3.1 Exporting and Importing the Master Repository

The master repository exportimport procedure allows you to transfer the whole repository Topology and Security domains included from one repository to another. It can be performed in Topology Navigator, to import the exported objects in an existing repository, or while creating a new master repository. Exporting the Master Repository in Topology Navigator The objects that are exported when exporting the master repository are objects, methods, profiles, users, languages, versions if option selected, solutions if option selected, open tools, password policies, entities, links, fields, lookups, technologies, datatypes, datatypes conversions, logical agents, contexts and the child objects. To export a master repository: 1. From the Topology Navigator toolbar menu select Export Master Repository...

2. In the Export dialog, set the Export parameters as indicated in

Table 19–2 . The master repository and its topology and security settings are either exported as .xml files directly into the directory, or as a zip file containing .xml files. If you want to generate a zip file, you need to select Export to zip file and enter the name of the zip file in the Zip File Name field.

3. Select Export versions, if you want to export all stored versions of objects that are

stored in the repository. You may wish to unselect this option in order to reduce the size of the exported repository, and to avoid transferring irrelevant project work.

4. Select Export solutions, if you want to export all stored solutions that are stored in

the repository. You may wish to unselect this option for similar reasons.

5. Click OK.

The export files are created in the specified export directory. Importing the Master Repository To import the exported master repository objects into an existing master repository: 1. From the Topology Navigator toolbar menu select Import Master Repository...

2. In the Import dialog:

WARNING: Replacing a Knowledge module by another one in Oracle Data Integrator sets the options in the new module using the option name similarities with the old modules options. New options are set to the default value. It is advised to check the values of these options in the interfaces as well as the interfaces design and execution with the new KM. Refer to the Import Replace mode description in the Section 19.1.3, Import Modes for more information.