To get list of underlying tables in a view

To get a list of tables being used in a view use following SQL query. This query is specially useful when you have to do tyhe verification for many views:

select * from all_dependencies where referenced_type='TABLE' and type='VIEW' and owner='RSKVIEW'

No comments:

Ask Tom HOT ARTICLES

Oracle Technology Network Technical Articles