Skip to main content
Question

Oracle Spatial Schema Extraction

  • March 11, 2019
  • 3 replies
  • 29 views

Forum|alt.badge.img+1

Hi,

I was wondering if there is any way to write from an Oracle Spatial Object to Excel, the following attributes:

- Column Names

- Data Types

- Nullable

- Triggers

- Dependencies

- Constraints

- Indexes

- SQL

and so on?

Perhaps this is more of a question of knowing in Oracle where these tables are stored?

 

I am using FME desktop 2018.1

Thanks,

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • March 11, 2019

This information can be found in the Oracle data dictionary tables.

Use the Non Spatial reader and read from:

USER_TAB_COLUMNS (for column information)

USER_TRIGGERS (for triggers)

USER_CONSTRAINTS (for dependencies and constraints)

USER_INDEXES and USER_IND_COLUMNS (for indexes)

And more tables/views are available.

Replace USER with ALL if you need information from other schema objects (those tables/views will contain an OWNER attribute).

Hope this helps.


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • March 11, 2019

@aquamarine

 

Yes it is a Oracle sql question. And there are a lot of good answers

 

There are for instance (for users) user_tables, user_tab_columns, user_constraints etc.

user and dba versions are dependent on your privileges.

all_triggers and all_constraints are independent of your privileges.

 

For instance to find info on 'yourtable' and you have relevant privilges:

select user_columns,constraint_name, constraint_type

from user_constraints uc,user_tab_columns utc

where table_name = 'yourtable'

and utc.TABLE_NAME =uc.TABLE_NAME


Forum|alt.badge.img+1
  • Author
  • March 11, 2019

Thank you both for your answers! They are both very helpful and exactly what I was looking for :)