GeekInterview.com
Series: Subject: Topic:
Question: 112 of 251

how to find which tablespace belongs to which datafile ?

Asked by: Interview Candidate | Asked on: Oct 30th, 2007
Showing Answers 1 - 3 of 3 Answers
chintu414

Answered On : Oct 30th, 2007

select d.name , t.name from v$datafile d, v$tablespace t where d.ts#=t.ts#;

  
Login to rate this answer.
ravichandiran

Answered On : Nov 16th, 2007

run this query in the sql prompt

sql> select tablespace_name,file_name from dba_data_files;

  
Login to rate this answer.
cmanne

Answered On : Sep 2nd, 2009

View all answers by cmanne

select file_name, tablespace_name
from
dba_data_files;

  
Login to rate this answer.

Give your answer:

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

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.