Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: How to tell which datafile a table is in.

Re: How to tell which datafile a table is in.

From: Matthias Gresz <GreMa_at_t-online.de>
Date: Thu, 25 Feb 1999 13:25:26 +0100
Message-ID: <36D54136.80B4587D@t-online.de>

tim.mcconechy_at_runtime.dk schrieb:
>
> How can I tell which datafile a table is created into...
>
> Can i control this.
> I hvae windows NT
> but would like to know the answer for UNIX too.
>
> I thought it was v$sqlare but can't seem to extract the datafile name...

Wonna try:

SELECT

	T.OWNER,
	T.TABLE_NAME,
	D.FILE_NAME
FROM
	ALL_TABLES T,
	SYS.DBA_DATA_FILES D
WHERE
	D.TABLESPACE_NAME=T.TABLESPACE_NAME
ORDER BY
	T.OWNER,
	T.TABLE_NAME

;?

HTH
Matthias

--
grema_at_t-online.de

Es gibt nichts Neues mehr.
Alles, was man erfinden kann, ist schon erfunden worden. Charles H. Duell, Leiter des US Patentamtes bei seinem Rücktritt 1899 Received on Thu Feb 25 1999 - 06:25:26 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US