| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.server -> Re: dba_free_space missing a tablespace???
Temporary tablespace most certainly DOES show up in dba_free_space, although in ordinary use, you can expect the entire thing to be full of temporary segments, and thus not have any free space (and hence not show). But when a database is freshly started, and no users have started doing sorts, temporary tablespace WILL be listed.
The following is off my test system:
SVRMGR> select * from dba_free_space;
TABLESPACE_NAME FILE_ID BLOCK_ID BYTES BLOCKSRELAT
------------------------------ ---------- ---------- ---------- ---------- -
SYSTEM 1 30073 589824 72
1
SYSTEM 1 30049 65536 8
1
RBS 2 8770 1564672 191
2
RBS 2 3650 524288 64
2
RBS 2 2754 524288 64
2
USERS 3 2 20963328 2559
3
TEMP 4 250 18931712 2311
4
TOOLS 5 2 10477568 1279
5
INDX 6 2 20963328 2559
6
DRSYS 7 490 16965632 2071
7
TEMP2 8 9 10420224 1272
8
And from DBA_TABLESPACES:
SVRMGR> select * from dba_tablespaces;
TABLESPACE_NAME INITIAL_EX NEXT_EXTEN MIN_EXTENT MAX_EXTENTPCT_I
------------------------------ ---------- ---------- ---------- ---------- -
WHACKO is proper TEMPORARY tablespace, locally managed, using tempfiles. That ISN'T in FREE_SPACE (but since there are no sorts going on, I might have expected it to be).
So it appears to be true is that temporary tablespace created with the "tempfile" keyword instead of the old "datafile" one is not listed, but good old-fashioned temporary tablespace most definitely is.
Incidentally, and something I wasn't aware of, it's fairly easy to issue the command 'alter tablespace blah TEMPORARY' to turn it into proper temporary tablespace -but the command won't work on locally managed tablespaces that were created using the 'datafile' keyword. As ever, the error message is a master of obfuscation: 'invalid option for create/alter tablespace'. I can't think why it should be so hard to turn datafile-locally managed tablespace into temporary tablespace.
Regards
HJR
<hailey_kyle_at_my-deja.com> wrote in message
news:94ptdc$tv4$1_at_nnrp1.deja.com...
> Good points, but the tbs could be a temporary type tablespace
> temporary tablespace don't show up in
> v$datafile
> dba_data_files
> dba_free_space
> but do show up in
> dba_tablespaces
> v$tempfile
> dba_temp_files
>
>
> >
> >
![]() |
![]() |