[Geoserver-devel] [jira] (GEOS-5514) Oracle table list has too many "tables".

Jonathan Moules created BugGEOS-5514
Oracle table list has too many “tables”.

Issue Type:

BugBug

Assignee:

Andrea Aime

Created:

19/Dec/12 4:29 AM

Description:

(Asked on the mailing list, but no-one replied, so reporting it here. Unsure whether it should be considered a bug or “enhancement”.)

I’ve created an Oracle store using Oracle NG. This works, however when I go to layers and use this store, it lists 2098 items. There are only 928 tables that the user has access to.

It seems to have included all manner of system tables, such as “ALL_COL_PRIVS” etc. I can’t conceive of why anyone would want to publish those sorts of things via GeoServer, so shouldn’t it just list the actual tables that user has access to?

http://stackoverflow.com/questions/205736/oracle-get-list-of-all-tables - advises how to get all tables. I’d suggest using a slightly amended version of the second one:

select TABLE_NAME from all_tables where TABLE_NAME NOT LIKE ‘MDRT_%’

Tables beginning MDRT_ are Oracle spatial indices and can be ignored safely.

Project:

GeoServer

Priority:

MajorMajor

Reporter:

Jonathan Moules

This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your [JIRA administrators](https://jira.codehaus.org/secure/ContactAdministrators!default.jspa). For more information on JIRA, see: [http://www.atlassian.com/software/jira](http://www.atlassian.com/software/jira)