Command Reference > infacmd Control Files > Control File Examples for Domain Objects
  

Control File Examples for Domain Objects

You can filter domain objects to export by time. You can filter domain objects to export and import by object type or object name.
Export Domain Objects by Time
To export users created after 2010-12-25 10:00:00 +0530, 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">
<objectList type="user" createdAfter="2010-12-25 10:00:00 +0530" />
</exportParams>
Export and Import Domain Objects by Type
To export all users, groups, and roles but not connections from a domain, 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">
<objectList type="group"/>
<objectList type="role" />
<objectList type="user" />
</exportParams>
To import the users and groups but not roles into the target domain, 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">
<objectList type="group" resolution="merge"/>
<objectList type="user" resolution="replace" />
</importParams>
Export and Import Domain Objects by Name
You want to export all users and groups and the Developer and Analyst roles from the source domain. You want to export specific connections if they were created after 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">
<objectList type="group"/>
<objectList type="user" />
<objectList type="role">
<object name="Developer" />
<object name="Analyst" />
</objectList>
<objectList type="connection" createdAfter="2011-02-01 16:00:00-0800">
<object name="Connection1" />
<object name="Connection2" />
<object name="Connection3" />
</objectList>
</exportParams>
To import all users and groups and specific roles and connections into the target domain, 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">
<objectList type="group" resolution="reuse" />
<objectList type="user" resolution="reuse" />
<objectList type="role">
<object name="Developer" resolution="replace" />
<object name="Analyst" resolution="replace" />
</objectList>
<objectList type="connection">
<object name="Connection1" resolution="rename" renameTo="ProdConnection1" />
<object name="Connection2" resolution="rename" renameTo="ProdConnection2" />
<object name="Connection3" resolution="rename" renameTo="ProdConnection3" />
</objectList>
</importParams>