What storage type is being used in your layer? If the storage is ST_GEOMETRY or SDO_GEOMETRY,
then you really shouldn't use 'sdetable -o create_view' (instead, create the view with SQL, and register
the result with 'sdelayer -o register').
What version of Oracle are you using (A.B.C.D notation)? I've seen extremely ugly query plans from
Oracle 10gR1 (10.1.0.2) servers on views over SDO_GEOMETRY layers that resulted in 8 minute
queries on a view with 2000 rows (with a 7M row base table), but haven't seen anything like that
with modern Oracle builds (unless the table was a remote view into another instance).
Keep in mind that views can generate unhealthy queries without a spatial component, but that some
spatial comparisons can be very expensive, so aligning the spatial comparison on the first table in
the join is much more likely to hit the right index. You should also explore the impact of hints and
various indexes, and of table join order.
- V