Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> How can that be (SQL, v$temp_space_header and dba_tablespaces)
Hi
It looks like I can't link DBA_TABLESPACES with V$TEMP_SPACE_HEADER with the TABLESPACE_NAME column
SQL> select dump(tablespace_name) from dba_tablespaces where tablespace_name
lik
e '%TEMP%';
DUMP(TABLESPACE_NAME)
DUMP(TABLESPACE_NAME)
SQL> select th.TABLESPACE_NAME, status from v$temp_space_header th, 2 dba_tablespaces t where th.tablespace_name=t.tablespace_name 3 /
no rows selected
The 2 views *cannot* be linked together.
Also,
SQL> select * from v$temp_space_header natural join dba_tablespaces;
no rows selected
SQL>
On the other hand,
1 select th.TABLESPACE_NAME, INCLUDED_IN_DATABASE_BACKUP
2 from v$temp_space_header th,
3* v$tablespace t where th.tablespace_name=t.name
SQL> /
TEMP Tablespace INC
--------------- ---
TEMP YES TEMP YES
2 rows selected.
Those 2 views *can* be linked together.
What's wrong ?
TABLESPACE_NAME (or NAME) is defined as VARCHAR2(30) in all 3 views...
Thanks
-- Syltrem OpenVMS 7.3-1 + Oracle 9.2.0.3 http://pages.infinit.net/syltrem (OpenVMS related web site, en français) ---zulu is not in my email address---Received on Thu Mar 11 2004 - 15:57:07 CST