<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:10pt"><div><span>Thank you very much for your answers! With your help, I have managed to set up the connection and copy .sdf to Oracle from command line</span></div><div><br><span></span></div><div><span>Iulia<br></span></div><div><br></div><div style="font-family: times new roman, new york, times, serif; font-size: 10pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><font face="Arial" size="2"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> djonio &lt;DJonio@miami-airport.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> mapguide-users@lists.osgeo.org<br><b><span style="font-weight: bold;">Sent:</span></b> Thursday, November 17, 2011 5:44 PM<br><b><span style="font-weight: bold;">Subject:</span></b> [mapguide-users] Re: Fdo2Fdo tool<br></font><br>
As Dave notes you certainly require DB connectivity. I would recommend using<br>the latest instantclient. <br>This is how I go from Oracle TO sdf files...<br><br>Put something like these 3 lines in a bat/cmd file ... obviously fix'em for<br>your situation.<br><br>c:<br>cd \SDF_Conversions<br>"C:\FDO2FDO\7_7\Release\F2fcmd.exe" CopyTask test_copy_mv0_4.xml<br>------------------------------------<br>------------------------------------<br>The following are the contents of "test_copy_mv0_4.xml" shown above....<br><br>&lt;FdoCopyTask&gt;<br><br>&nbsp; &lt;SourceConnection&gt;<br>&nbsp; &nbsp; &lt;FdoProvider&gt;King.Oracle.0.1.1&lt;/FdoProvider&gt;<br>&nbsp;  <br>&lt;FdoConnectionString&gt;Username=GISMIA;Password=;Service=MAPGUIDE;OracleSchema=GISMIA;&lt;/FdoConnectionString&gt;<br>&nbsp; &lt;/SourceConnection&gt;<br><br>&nbsp; &lt;DestinationConnection&gt;<br>&nbsp; &nbsp; &lt;FdoProvider&gt;OSGeo.SDF.3.2&lt;/FdoProvider&gt;<br>&nbsp; 
 <br>&lt;FdoConnectionString&gt;File=C:\SDF_Conversions\mv0_4_floorplan.sdf;&lt;/FdoConnectionString&gt;<br>&nbsp; &lt;/DestinationConnection&gt;<br><br>&nbsp; &lt;ClassCopyDefinition&gt;<br>&nbsp; &nbsp; &lt;SourceClassName&gt;KingOra:GISMIA~MV0_4~GEOMETRY&lt;/SourceClassName&gt;<br>&nbsp;  <br>&lt;DestinationClassName&gt;KingOra:GISMIA~MV0_4~GEOMETRY&lt;/DestinationClassName&gt;<br>&nbsp; &nbsp; &lt;CopyFilter&gt;&lt;/CopyFilter&gt;<br>&nbsp; &nbsp; &lt;PropertyCopyDefinition&gt;<br>&nbsp; &nbsp; &nbsp; &lt;SourcePropertyName&gt;MVID&lt;/SourcePropertyName&gt;<br>&nbsp; &nbsp; &nbsp; &lt;DestinationPropertyName&gt;MVID&lt;/DestinationPropertyName&gt;<br>&nbsp; &nbsp; &lt;/PropertyCopyDefinition&gt;<br>&nbsp; &nbsp; &lt;PropertyCopyDefinition&gt;<br>&nbsp; &nbsp; &nbsp; &lt;SourcePropertyName&gt;ID&lt;/SourcePropertyName&gt;<br>&nbsp; &nbsp; &nbsp; &lt;DestinationPropertyName&gt;ID&lt;/DestinationPropertyName&gt;<br>&nbsp; &nbsp;
 &lt;/PropertyCopyDefinition&gt;<br>&nbsp; &nbsp; &lt;PropertyCopyDefinition&gt;<br>&nbsp; &nbsp; &nbsp; &lt;SourcePropertyName&gt;ALTKEY&lt;/SourcePropertyName&gt;<br>&nbsp; &nbsp; &nbsp; &lt;DestinationPropertyName&gt;ALTKEY&lt;/DestinationPropertyName&gt;<br>&nbsp; &nbsp; &lt;/PropertyCopyDefinition&gt;<br>&nbsp; &nbsp; &lt;PropertyCopyDefinition&gt;<br>&nbsp; &nbsp; &nbsp; &lt;SourcePropertyName&gt;VALIDFLG&lt;/SourcePropertyName&gt;<br>&nbsp; &nbsp; &nbsp; &lt;DestinationPropertyName&gt;VALIDFLG&lt;/DestinationPropertyName&gt;<br>&nbsp; &nbsp; &lt;/PropertyCopyDefinition&gt;<br>&nbsp; &nbsp; &lt;PropertyCopyDefinition&gt;<br>&nbsp; &nbsp; &nbsp; &lt;SourcePropertyName&gt;NAME&lt;/SourcePropertyName&gt;<br>&nbsp; &nbsp; &nbsp; &lt;DestinationPropertyName&gt;NAME&lt;/DestinationPropertyName&gt;<br>&nbsp; &nbsp; &lt;/PropertyCopyDefinition&gt;<br>&nbsp; &nbsp; &lt;PropertyCopyDefinition&gt;<br>&nbsp; &nbsp; &nbsp;
 &lt;SourcePropertyName&gt;FLOOR&lt;/SourcePropertyName&gt;<br>&nbsp; &nbsp; &nbsp; &lt;DestinationPropertyName&gt;FLOOR&lt;/DestinationPropertyName&gt;<br>&nbsp; &nbsp; &lt;/PropertyCopyDefinition&gt;<br>&nbsp; &nbsp; &lt;PropertyCopyDefinition&gt;<br>&nbsp; &nbsp; &nbsp; &lt;SourcePropertyName&gt;SRCNAME&lt;/SourcePropertyName&gt;<br>&nbsp; &nbsp; &nbsp; &lt;DestinationPropertyName&gt;SRCNAME&lt;/DestinationPropertyName&gt;<br>&nbsp; &nbsp; &lt;/PropertyCopyDefinition&gt;<br>&nbsp; &nbsp; &lt;PropertyCopyDefinition&gt;<br>&nbsp; &nbsp; &nbsp; &lt;SourcePropertyName&gt;LAYER&lt;/SourcePropertyName&gt;<br>&nbsp; &nbsp; &nbsp; &lt;DestinationPropertyName&gt;LAYER&lt;/DestinationPropertyName&gt;<br>&nbsp; &nbsp; &lt;/PropertyCopyDefinition&gt;<br>&nbsp; &nbsp; &lt;PropertyCopyDefinition&gt;<br>&nbsp; &nbsp; &nbsp; &lt;SourcePropertyName&gt;AREASQFT&lt;/SourcePropertyName&gt;<br>&nbsp; &nbsp; &nbsp;
 &lt;DestinationPropertyName&gt;AREASQFT&lt;/DestinationPropertyName&gt;<br>&nbsp; &nbsp; &lt;/PropertyCopyDefinition&gt;<br>&nbsp; &nbsp; &lt;PropertyCopyDefinition&gt;<br>&nbsp; &nbsp; &nbsp; &lt;SourcePropertyName&gt;PERIMETERFT&lt;/SourcePropertyName&gt;<br>&nbsp; &nbsp; &nbsp; &lt;DestinationPropertyName&gt;PERIMETERFT&lt;/DestinationPropertyName&gt;<br>&nbsp; &nbsp; &lt;/PropertyCopyDefinition&gt;<br>&nbsp; &nbsp; &lt;PropertyCopyDefinition&gt;<br>&nbsp; &nbsp; &nbsp; &lt;SourcePropertyName&gt;TXTCONTENTS&lt;/SourcePropertyName&gt;<br>&nbsp; &nbsp; &nbsp; &lt;DestinationPropertyName&gt;TXTCONTENTS&lt;/DestinationPropertyName&gt;<br>&nbsp; &nbsp; &lt;/PropertyCopyDefinition&gt;<br>&nbsp; &nbsp; &lt;PropertyCopyDefinition&gt;<br>&nbsp; &nbsp; &nbsp; &lt;SourcePropertyName&gt;GEOMETRY&lt;/SourcePropertyName&gt;<br>&nbsp; &nbsp; &nbsp; &lt;DestinationPropertyName&gt;GEOMETRY&lt;/DestinationPropertyName&gt;<br>&nbsp; &nbsp;
 &lt;/PropertyCopyDefinition&gt;<br>&nbsp; &lt;/ClassCopyDefinition&gt;<br><br>&nbsp; &lt;CopyTaskAttributes&gt;<br>&nbsp; &nbsp; &lt;ExecuteApplySchema&gt;TRUE&lt;/ExecuteApplySchema&gt;<br>&nbsp; &nbsp; &lt;ApplySchemaXMLFile&gt;&lt;/ApplySchemaXMLFile&gt;<br>&nbsp; &nbsp; &lt;CreateSpatialContext&gt;TRUE&lt;/CreateSpatialContext&gt;<br>&nbsp; &nbsp; &lt;SpatialContextXMLFile&gt;&lt;/SpatialContextXMLFile&gt;<br>&nbsp; &nbsp; &lt;MagicClassName&gt;TRUE&lt;/MagicClassName&gt;<br>&nbsp; &nbsp; &lt;MagicDataTypes&gt;TRUE&lt;/MagicDataTypes&gt;<br>&nbsp; &nbsp; &lt;DeleteDestinationData&gt;TRUE&lt;/DeleteDestinationData&gt;<br>&nbsp; &lt;/CopyTaskAttributes&gt;<br><br>&nbsp; &lt;CopyToSDFAttributes&gt;<br>&nbsp; &nbsp; &lt;SDF_CreateFileIfMissing&gt;TRUE&lt;/SDF_CreateFileIfMissing&gt;<br>&nbsp; &nbsp; &lt;SDF_OverwriteFile&gt;TRUE&lt;/SDF_OverwriteFile&gt;<br>&nbsp; &lt;/CopyToSDFAttributes&gt;<br><br>&nbsp; &lt;CopyToOracleAttributes&gt;<br>&nbsp; &nbsp;
 &lt;Oracle_SRID&gt;&lt;/Oracle_SRID&gt;<br>&nbsp; &lt;/CopyToOracleAttributes&gt;<br><br>&lt;/FdoCopyTask&gt;<br>---------------------------------------------------<br><br>.... this XML was produced from the GUI tool. I am way to lazy to write such<br>stuff myself.<br>r,<br>dennis<br><br>--<br>View this message in context: http://osgeo-org.1803224.n2.nabble.com/Fdo2Fdo-tool-tp7003610p7004527.html<br>Sent from the MapGuide Users mailing list archive at <a target="_blank" href="http://Nabble.com">Nabble.com</a>.<br>_______________________________________________<br>mapguide-users mailing list<br><a ymailto="mailto:mapguide-users@lists.osgeo.org" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a><br>http://lists.osgeo.org/mailman/listinfo/mapguide-users<br><br><br></div></div></div></body></html>