Skip to main content
Solved

Use DatabaseJoiner to link Oracle Spatial View?


pmcpherson
Contributor
Forum|alt.badge.img+9

I'm trying to use the DatabaseJoiner transformer to link to an Oracle Spatial view (not table), but the SDO column is not appearing, nor is the geometry showing up in the resulting joined features. Can this transformer be used for this purpose?

Best answer by david_r

It is possible that you'll have to manually add the spatial view metadata in the "user_sdo_geom_metadata" table, e.g.:

insert into user_sdo_geom_metadata 
using select 'RT43495_VIEW', column_name, diminfo, srid 
from all_sdo_geom_metadata 
where owner = 'DEV' and table_name = 'RT43495';

See also this article for more information: https://knowledge.safe.com/articles/782/adding-metadata-entries-for-oracle-spatial-tables.html

View original
Did this help you find an answer to your question?

2 replies

david_r
Celebrity
  • Best Answer
  • January 3, 2018

It is possible that you'll have to manually add the spatial view metadata in the "user_sdo_geom_metadata" table, e.g.:

insert into user_sdo_geom_metadata 
using select 'RT43495_VIEW', column_name, diminfo, srid 
from all_sdo_geom_metadata 
where owner = 'DEV' and table_name = 'RT43495';

See also this article for more information: https://knowledge.safe.com/articles/782/adding-metadata-entries-for-oracle-spatial-tables.html


pmcpherson
Contributor
Forum|alt.badge.img+9
  • Author
  • Contributor
  • January 3, 2018
david_r wrote:

It is possible that you'll have to manually add the spatial view metadata in the "user_sdo_geom_metadata" table, e.g.:

insert into user_sdo_geom_metadata 
using select 'RT43495_VIEW', column_name, diminfo, srid 
from all_sdo_geom_metadata 
where owner = 'DEV' and table_name = 'RT43495';

See also this article for more information: https://knowledge.safe.com/articles/782/adding-metadata-entries-for-oracle-spatial-tables.html

David, thanks for your response. In my situation, I do not wish to make any changes to the database itself. I was able to use the SQLExecutor transformer to solve the problem a different way, however.

 

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings