Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: SQL query to determine the users of undo tablespace
On Fri, 06 Apr 2007 06:54:49 +0200, Michel Cadot wrote:
> Yes, rollback segment names are meaningless but the question was about
> undo tablespace, so I join with dba_rollback_segs to get undo tablespace
> name of used rollback/undo segments. It was just to complete the answer
> used blocks/tablespace/user.
I was under the impression that you can only have one undo tablespace per instance? Nevertheless, V$TRANSACTION also has UBAFIL column which contains the file for the undo block:
QL> delete from scott.emp;
14 rows deleted.
SQL> select ubafil from v$transaction;
UBAFIL
2
SQL> select tablespace_name from dba_data_files where file_id=2;
TABLESPACE_NAME
-- http://www.mladen-gogala.comReceived on Fri Apr 06 2007 - 01:06:36 CDT
![]() |
![]() |