Table of Contents

Search

  1. Preface
  2. Command Line Programs and Utilities
  3. Installing and Configuring Command Line Utilities
  4. Using the Command Line Programs
  5. Environment Variables for Command Line Programs
  6. Using infacmd
  7. infacmd as Command Reference
  8. infacmd aud Command Reference
  9. infacmd autotune Command Reference
  10. Infacmd bg Command Reference
  11. infacmd ccps Command Reference
  12. infacmd cluster Command Reference
  13. infacmd cms Command Reference
  14. infacmd dis Command Reference
  15. infacmd dps Command Reference
  16. infacmd edl Command Reference
  17. Infacmd es Command Reference
  18. infacmd ihs Command Reference
  19. infacmd ipc Command Reference
  20. infacmd isp Command Reference
  21. infacmd ldm Command Reference
  22. infacmd mas Command Reference
  23. infacmd mi Command Reference
  24. infacmd mrs Command Reference
  25. infacmd ms Command Reference
  26. infacmd oie Command Reference
  27. infacmd ps Command Reference
  28. infacmd pwx Command Reference
  29. infacmd rms Command Reference
  30. infacmd rtm Command Reference
  31. infacmd sch Command Reference
  32. infacmd search Command Reference
  33. infacmd sql Command Reference
  34. infacmd tdm Command Reference
  35. infacmd wfs Command Reference
  36. infacmd ws Command Reference
  37. infacmd xrf Command Reference
  38. infacmd Control Files
  39. infasetup Command Reference
  40. pmcmd Command Reference
  41. pmrep Command Reference
  42. Working with pmrep Files

Command Reference

Command Reference

Control File Examples for Model Repository Objects

Control File Examples for Model Repository Objects

You can filter the export of Model repository objects by time or user. You can filter the export or import of Model repository objects by object type or object name.
Export Model Repository Objects by Time
To export all objects in a folder named Folder1 that were created before 2011-02-01 16:00:00-0800, you might create the following control file:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<exportParams xmlns="http://www.informatica.com/oie/exportControl/9">
<folders>
  <folder path="/Folder1" createdBefore="2011-02-01 16:00:00-0800" /> 
</folders>
</exportParams>
Export Model Repository Objects by User
To export all objects in the project last updated by Administrator, you might create the following control file:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<exportParams xmlns="http://www.informatica.com/oie/exportControl/9"> 
<folders>
  <folder lastUpdatedBy="Administrator" />
</folders>
</exportParams>
Export and Import Model Repository Objects by Type
To export all mappings from a folder named Folder1, you might create the following control file:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<exportParams xmlns="http://www.informatica.com/oie/exportControl/9">
<folders>
  <folder path="/Folder1" />
    <objectList type="Mapping" /> 
  </folder>
</folders>
</exportParams>
You want to export all mappings created by user2 and export all remaining objects created by user1. The createdBy attribute defined for the child objectList element overrides the same attribute defined for the parent folder element. You might create the following control file:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<exportParams xmlns="http://www.informatica.com/oie/exportControl/9">
<folders>
  <folder path="/Folder1" select="all" createdBy="user1" />
    <objectList type="Mapping" createdBy="user2" /> 
  </folder>
</folders>
</exportParams>
You want to import all mappings from the export file. Some of the mappings exported from Folder1 contain dependent objects that existed in Folder2 in the source repository. To import dependent objects, you must include all dependent objects using folderMap elements in the import control file. You also want to map the connections in the source repository to connections in the target repository. You might create the following control file:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<importParams xmlns="http://www.informatica.com/oie/importControl/9">
<folderMaps>
  <folderMap sourceProject="DevProject" sourceFolderpath="/Folder1" targetProject="TestProject" targetFolderPath="/TestFolder1" resolution="reuse"> 
    <objectList type="Mapping" />  
  </folderMap>
  <folderMap sourceProject="DevProject" sourceFolderpath="/Folder2" targetProject="TestProject" targetFolderPath="/TestFolder2" resolution="reuse" />
</folderMaps>
<connectionInfo>
  <rebindMap>
    <rebind source="src_connection1" target="tgt_connection1" /> 
    <rebind source="src_connection2" target="tgt_connection2" />  
  </rebindMap>
</connectionInfo>
</importParams>
Export and Import Model Repository Objects by Name
You want to export a mapping named TestMapping that was created after 2010-11-11 23:59:59-0800. You want to export all remaining objects in the same folder. You might create the following control file:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<exportParams xmlns="http://www.informatica.com/oie/exportControl/9">
<folders>
  <folder path="/Folder1" select="all" />
    <objectList type="Mapping" createdAfter="2010-11-11 23:59:59-0800" >
      <object name="TestMapping" />
    </objectList> 
  </folder>
</folders>
</exportParams>
An export file contains flat file and relational data objects. You want to import the flat file data object named NewFlatFileDataObject and all relational data objects from the export file. You might create the following control file:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<importParams xmlns="http://www.informatica.com/oie/importControl/9">
 <folderMaps>
  <folderMap sourceProject="SampleProject" targetProject="SampleProject"
			targetFolderPath="/TestFolder">
   <objectList type="Flat File Data Object" resolution="replace" >
    <object name="NewFlatFileDataObject" />
   </objectList>
   <objectList type="Relational Data Object" resolution="replace" />
  </folderMap>
 </folderMaps>
</importParams>


Updated April 22, 2019


Explore Informatica Network