Find Base Table of the View

Views are created on the basis of base tables
What is the query to know the base table of the view? How to know the details of base table?

Questions by swathy.r   answers by swathy.r

Showing Answers 1 - 3 of 3 Answers

You find the details in dictionary tables

SELECT * FROM dba_views

WHERE view_name = <view name >

TEXT column contains the actual query which used while creating views and this will give details what are all tables used.

  Was this answer useful?  Yes

Prem_p

  • Apr 28th, 2011
 

Guys, 

you don't need a dba privilege for this.

Run the query:
select * from USER_DEPENDENCIES where  type='VIEW' and name=''

This will give you the dependent object information (name , type of the object and dependency type) .
i.e, if the view is created on 2 tables and 1 function and 1 proc, it'll show object name and type in four rows. 

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions