Hello everyone,
I try to load data from an Oracle Database but I've got an ORA-01747 error but I can't find where I did the mistake :
private void InitializeAdminLayer()
{
string connectString = "User ID=sebastien;Password=sebastien;Data Source=t_tosca;";
OracleFeatureLayer oracleLayer = new OracleFeatureLayer(connectString, "TEST_CARTO", "ID_UNIT");
oracleLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.Country1;
oracleLayer.ZoomLevelSet.ZoomLevel01.DefaultLineStyle = LineStyles.Utility1;
oracleLayer.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = PointStyles.City1;
oracleLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
LayerOverlay overlay = new LayerOverlay("Oracle");
overlay.Layers.Add("oracleLayer",oracleLayer);
if(!Map1.CustomOverlays.Contains("Oracle"))
Map1.CustomOverlays.Add(overlay);
string[] columns = new string[] {};
oracleLayer.Open();
int count = oracleLayer.QueryTools.GetCount(); // get 1 => good result (one entry in the DB)
Collection<Feature> collection = oracleLayer.QueryTools.GetAllFeatures(columns); // get ORA-01747 error
oracleLayer.Close();
}
And this is my database table :
ID_UNIT NUMBER(10,0)
GEOMETRY SDO_GEOMETRY()
Thanks in advance for your help