Milton Jonathan ha scritto: ... > 4.2 After solving that we were able to create a schema and see tables > being created OK in the Oracle database. However, we still got into some > trouble: although everything seems to be there, we keep getting a > SchemaNotFoundException when trying to get the FeatureSource back, I > don't know exactly why. Even stranger, calling > OracleDataStore.getTypeNames() gives me back 4292 (!) type names even > for an empty DataStore (4293 after the successful creation of a schema).
I've checked with the tests, you get that much feature types only if you forget to set the target database schema. In that case, the database metadata request that figures out what tables are there uses "null" as a value, and by spec, that has to return _all_ the tables in all the schemas. If you set the schema, either using a parameter, or by calling setDatabaseSchema(schemaName) manually, you'll get a lot less values. Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
