Professional Documents
Culture Documents
PURPOSE
-------
This document explains why a new type of tablespaces in a 10g version database
and the precautions to be taken when using BIGFILE type tablespaces.
--> Database administrators to know about the new type of BIGFILE tablespaces,
how to use this new type
--> Developers to be aware of incorrect results they can retrieve when using
inappropriately the new type of tablespace for objects stored in different
types of tablespaces
The same rowid addressing an object stored in a new BIGFILE tablespace uses
the . 9 bytes to store the Block# within the unique file:
there is no purpose to use the 3 bytes for the Relative File# since
there is only one file in that tablespace.
1 of 8 2018-09-04, 10:27
Document 262472.1 https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=4re575r7s_82&id=26...
Using BIGFILE tablespaces on platforms that do not support large file sizes
is not recommended : it limits tablespace capacity.
B. Both types of BIGFILE and SMALLFILE tablespaces can coexist within a database.
Tablespace created.
TABLESPACE_NAME BIG
------------------------------ ---
SYSTEM NO
UNDOTBS1 NO
SYSAUX NO
TEMP NO
USERS NO
TEST_BIG YES
C. The fact that only one data file is attached to a tablespace makes it easier
to manage: the tablespace becomes the unit of administration.
The following commands are to be used on data files with SMALLFILE
tablespaces, whereas they can be used at tablespace level with a BIGFILE
tablespace :
E. You can change the TYPE of tablespace used when creating new tablespaces :
2 of 8 2018-09-04, 10:27
Document 262472.1 https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=4re575r7s_82&id=26...
Tablespace created.
TABLESPACE_NAME BIG
------------------------------ ---------
...
USERS NO
TEST_BIG YES
TEST_BIG2 YES
F. There is a performance benefit on startup, checkpointing and DBWR operations in bigfile tablespaces over traditional (smallfile) tablespaces.
A bigfile tablespace has only one data file whose relative file number is 1024 :
3 of 8 2018-09-04, 10:27
Document 262472.1 https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=4re575r7s_82&id=26...
DBMS_ROWID.ROWID_RELATIVE_FNO(ROWID)
------------------------------------
7
But, the example below shows that the interpretation can be incorrect if
you give an incorrect type for the tablespace the segment is stored in :
DBMS_ROWID.ROWID_RELATIVE_FNO(ROWID,'BIGFILE')
----------------------------------------------
1024
DBMS_ROWID.ROWID_RELATIVE_FNO(ROWID)
------------------------------------
0
But, the example below shows that the interpretation is correct if you
give the correct type for the tablespace the segment is stored in :
DBMS_ROWID.ROWID_RELATIVE_FNO(ROWID,'BIGFILE')
----------------------------------------------
1024
DBMS_ROWID.ROWID_BLOCK_NUMBER(ROWID)
------------------------------------
15
4 of 8 2018-09-04, 10:27
Document 262472.1 https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=4re575r7s_82&id=26...
DBMS_ROWID.ROWID_BLOCK_NUMBER(ROWID,'BIGFILE')
----------------------------------------------
29360143
DBMS_ROWID.ROWID_BLOCK_NUMBER(ROWID)
------------------------------------
31
DBMS_ROWID.ROWID_BLOCK_NUMBER(ROWID,'BIGFILE')
----------------------------------------------
31
--> Both results are identical, but you should rely only on the second one
where the TS_TYPE_IN is set ot the right value.
The TS_TYPE_IN does not need to be declared, since the row number is always
relative to the block it is in:
DBMS_ROWID.ROWID_ROW_NUMBER(ROWID)
----------------------------------
0
1
DBMS_ROWID.ROWID_ROW_NUMBER(ROWID)
----------------------------------
0
1
5 of 8 2018-09-04, 10:27
Document 262472.1 https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=4re575r7s_82&id=26...
6 of 8 2018-09-04, 10:27
Document 262472.1 https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=4re575r7s_82&id=26...
Restrictions
------------
This new type is only supported for
RELATED DOCUMENTS
-----------------
Note:243245.1 10G New Storage Features and Enhancements
Note:1057891.6 HOW TO USE DBMS_ROWID PROCEDURE AND FUNCTIONS
7 of 8 2018-09-04, 10:27
Document 262472.1 https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=4re575r7s_82&id=26...
8 of 8 2018-09-04, 10:27