What are the things need to be considered while creating tablespace

oracleoracle-11g-r2

I am creating temporary/permanent tablespace on Oracle. As I am going to create an application that is transactional there will be traffic. I bumped into concept called tablespace in oracle. What kind practial things should I consider while creating tablespace?
Should I create temporary table or should I use default temp tablespace?
Are there any resource that I can study except theory?

I have though to create tablespace as:

 CREATE TEMPORARY TABLESPACE OPTIMADATA_TEMP TEMPFILE
    '/opt/app/oracle/oradata/orcl/test01.dbf' SIZE 1024M reuse autoextend on,
    '/opt/app/oracle/oradata/orcl/test02.dbf' SIZE 1024M
    reuse
    autoextend on
    extent management local;

Do I create multiple files or Single file is sufficient?

CREATE TABLESPACE OPTIMADATA DATAFILE '/opt/app/oracle/oradata/orcl/test.dbf' size 2000M AUTOEXTEND ON
EXTENT MANAGEMENT LOCAL; 

Do I always do Autoextend on ??

Best Answer

While creating a tablespace, you need to consider few things like

i) Type of the tablespace either permanent or temporary or undo (default is permanent)

ii) Extent management whether it is managed locally or dictionary based

iii) Segment space management whether it is automatically managed or manually managed

Always you can use temporary tablespace since it is the best practice. You can create multiple files and mainly it depends on your application.

We have two types of tablespaces like small file and big file. Small file tablespaces can have multiple datafiles. Each file with maximum size of 1024 bytes. Big file tablespaces should contain only one file with maximum size of 8 Hexabyte.

Related Question