Regarding tablespace and extents

hi there,
in what kind of situation we should need to increase or extend
1.size of tablespace
2.size of extent
3.size of table
Please write me the answer.
thank you.

Keep in mind that adding extents, etc. to a datafile is only a manual process if these are locally managed tablespaces. If not, all you can do is create additional datafiles for the tablespace, set the AUTOEXTEND parameters, and maybe set a disk quota for the tablespace.

Similar Messages

  • Tablespace and Extents : A Simple qn

    Hi,
    I have a simple qn. I need to understand in detail about extents in tablespace creation script.
    I want to create a new tablespace XXXYYYZZZ in my QA database, I can just get the syntax in google or oracle guide and execute.
    1. CREATE TABLESPACE "XXXYYYZZZ" DATAFILE '+DATAQA' SIZE 5120M
    2. REUSE AUTOEXTEND ON NEXT 8K MAXSIZE 8192M
    3. LOGGING
    4. EXTENT MANAGEMENT LOCAL UNIFORM SIZE 524288K
    5. SEGMENT SPACE MANAGEMENT MANUAL;
    I need to understand the following:
    (a). ON NEXT 8K on line 2 and UNIFORM SIZE 524288K on line 4
    (b). What are the factors should we consider before tablespace creation - the NEXT extent of 8K and/or UNIFORM SIZE of 524288K
    (c) If I created the above tablespace, Is there a way to change the storage parameters with respect to extents, if so how? How to do the change in minimum time.
    Thanks
    ~ Its never late to clear the doubts ~

    1. It's not 'on next'. It's actually "autoextend on... next Xk'
    In other words, you've switched on the data file autoextension feature. Then you specify what the datafile will grow by each time it decides it needs to autoextend. 8KB is a maniacally daft number to put in at this point: your datafile will be forever inching larger, causing waits as it does so. Instead, you want to bite the bullet: if you have to autoextend, make sure you do in decent-sized chunks. Something more like 'autoextend on next 100M', for example.
    The size a datafile grows by has nothing at all, automatically, to do with how the space inside the file is allocated to segments, which is what the uniform size clause controls. Your example syntax states that segments acquire space in chunks ("extents") of 512MB (if my maths is as good as I'd like to think it was!!) Which is certainly another reason why increasing the size of a datafile by a mere 8K a go when a segment is demanding a new 512MB chunk would be a very poor way to configure things.
    If the datafile is allowed to grow in 100M lots as I suggested, you'd still end up requesting 5 or 6 datafile extensions to meet the demands of one segment needing one extra 512MB extent that can't be accomodated in the existing space. So if you're going to have 512MB extents, you'd be better off with a NEXT 1024M sort of autoextension clause.
    There's a commonsensical relationship between the two clauses, in other words, but it's one you have to work out for yourself. If you demand 512MB extents and datafile growth in 8K increments, nothing in Oracle will stop you doing it, but it will result in poor performance later on.
    Once you've created a locally managed tablespace with a daft UNIFORM SIZE clause, there's nothing you can do to change that, except drop it and start again. Which is why I'd recommend not bothering with it at all. Just say on line 4, 'extent management local' and you'll get the default 'autoallocate' extent allocation policy, which works just fine in 9.2 and anything thereafter.

  • Installation of application express 3.0 and confusion regarding tablespaces

    Hi
    We are using the application express 2.0 till now.At the time of installation we used the tablespace sysaux to store the application express objects.Now we want to upgrade it to apex 3.0.I want to use a different tablespace apart from the sysaux.
    Can i go and create a new tablespace and store the application objects or shall i need to give the sysaux tablespace as previously it was the tablespace where the application express objects are defined.iF I go for the new tablespace will the application express will upgrade or will it create any problems
    i need your help in this
    Thanks

    HI,
    You can create a new tablespace and use this as the tablespace for the new installation. The upgrade that moves your existing apex objects (workspaces, applications etc) from the old install will still work because it will refer to existing db objects (tables etc) by their names independent of their storage characteristics, just like you would for any other database application.
    Andre

  • Administer datafiles, tablespaces and free space

    Hi all,
    Firstly i want to apologize if my English is not very good, and secondly for if there is such topic already. I tried the "search" but didn't find something that suits my requirements...
    We are using Oracle9i.
    Here is the (potential) problem:
    I noticed that the some of the filesystems soon will run out of space.
    Example:
    /dev/vg07/lv_data7 71671808 68657701 2825782 96% /var/application/oracle/data07
    /dev/vg07/lv_data6 71671808 58102994 12720766 82% /var/application/oracle/data06
    /dev/vg07/lv_data5 71671808 69448894 2084034 97% /var/application/oracle/data05
    /dev/vg07/lv_data4 71671808 67765635 3662100 95% /var/application/oracle/data04
    /dev/vg06/lv_data3 71675904 65840498 5470722 92% /var/application/oracle/data03
    /dev/vg05/lv_data2 71675904 65730929 5573472 92% /var/application/oracle/data02
    /dev/vg03/lv_data1 70656000 65924095 4436216 94% /var/application/oracle/data01
    /dev/vg10/lv_data10 292929536 7301210 267776605 3% /var/application/oracle/data10
    /dev/vg10/lv_data11 292929536 0 292929536     0% /var/application/oracle/data11
    Lets for example take a look at data05:
    /var/application/oracle/data05 > ls -l
    There are many tablespaces and some of their datafiles there.
    -rw-r----- 1 oracle dba 367005696 Jul 21 13:19 e1_data_d_d_11.dbf
    -rw-r----- 1 oracle dba 209719296 Jul 21 13:20 e1_data_d_d_12.dbf
    -rw-r----- 1 oracle dba 1022365696 Jul 21 13:19 m_data_d_07.dbf
    -rw-r----- 1 oracle dba 812650496 Jul 21 13:19 m_data_d_08.dbf
    -rw-r----- 1 oracle dba 707792896 Jul 21 13:19 m_data_d_09.dbf
    -rw-r----- 1 oracle dba 2097156096 Jul 21 13:19 e_data_d_30.dbf
    -rw-r----- 1 oracle dba 734007296 Jul 21 13:20 e_data_d_38.dbf
    -rw-r----- 1 oracle dba 629149696 Jul 21 13:20 e_data_d_39.dbf
    -rw-r----- 1 oracle dba 419434496 Jul 21 13:20 e_data_d_40.dbf
    -rw-r----- 1 oracle dba 812650496 Jul 21 13:25 m1_data_d_03.dbf
    -rw-r----- 1 oracle dba 393220096 Jul 21 13:27 m1_data_d_04.dbf
    -rw-r----- 1 oracle dba 209719296 Jul 21 13:20 m1_data_d_05.dbf
    -rw-r----- 1 oracle dba 2097160192 Jul 21 13:19 m1_data__03.dbf
    -rw-r----- 1 oracle dba 2097160192 Jul 21 13:39 m1_data__04.dbf
    -rw-r----- 1 oracle dba 2097160192 Jul 21 13:19 m1_data__05.dbf
    -rw-r----- 1 oracle dba 2097160192 Jul 21 13:39 m1_data__06.dbf
    -rw-r----- 1 oracle dba 2097160192 Jul 21 13:19 m3_data_d_d_03.dbf
    -rw-r----- 1 oracle dba 2097160192 Jul 21 13:42 m3_data_d_d_04.dbf
    -rw-r----- 1 oracle dba 1572872192 Jul 21 13:20 m3_data_d_d_05.dbf
    drwxr-xr-x 2 root root 96 Nov 21 2006 lost+found
    -rw-r----- 1 oracle dba 942678016 Jul 21 13:19 system02.dbf
    -rw-r----- 1 oracle dba 72359936 Jul 21 13:20 system04.dbf
    The situation is similar in the other filesystems - various tablespaces and a lot of datafiles.
    Perhaps you've noticed that /data10 and /data11 are empty.
    What is the best approach in this situation so that we start using those two filesystems .
    Is moving datafiles from heavily used filesystems to the empty ones there is a good solution?
    My idea is to make Oracle to automatically extend the tabespaces over the empty volumes and start creating the new datafiles there, but i am not sure how exactly to do that.
    Any help will be appreciated.
    Regards.
    /R
    Message was edited by:
    user648100

    Thanks for the quick reply.
    MYH,
    Yes, the tablespaces are autoextend on. Here is the information about one of them from the GridControl:
    Name e1_data_d_d
    Status ReadWrite
    Type Permanent
    Extent Management local
    Storage
    Allocation Type Automatic
    Segment Space Management Automatic
    Enable logging Yes
    Block Size (B) 4096
    I did not understand the second question - about partition a datafile?!? I can move datafiles but i'm still learning... never heard of partitioning a file, sorry.
    Yas, i think the datafiles are Oracle Managed and oracle, after filling up a file, creates the new datafile automatically. I can create new file within the empty filesystems, but isn't it dangerous.
    And with regards to same question - if i create a new datafiles, or move old datafiles - will Oracle start to use the new filesystems automatically?

  • Needs Clarification Regarding Segments and Datafiles

    Hi,
    I want clarification regarding Segments, Datafiles and extents.
    As we know that A segment is made of one or more extents and extents are composed of one or more datablocks in the HD.
    Since all data are store in Datafiles which are composed of extents and datablocks. I want to know weather a table(Segment) can span to multiple datafiles or in a sigle datafile.
    Regards,
    D.Abbasi

    And an easy way to check it by yourself :
    SQL> create tablespace abbasi_tbs
      2  datafile 'E:\ORADATA\DEMO111P\abbasi_01.dbf' size 1m autoextend off,
      3           'E:\ORADATA\DEMO111P\abbasi_02.dbf' size 1m autoextend off;
    Tablespace created.
    SQL> create table abbasi_tbl (id number)
      2  tablespace abbasi_tbs;
    Table created.
    SQL> insert into abbasi_tbl
      2  select rownum as rn
      3  from   dual
      4  connect by level <=10000;
    10000 rows created.
    SQL> commit;
    Commit complete.
    SQL> select distinct file_id
      2  from   dba_extents
      3  where  segment_name ='ABBASI_TBL';
       FILE_ID
             6
             7
    or...
    SQL> select distinct DBMS_ROWID.ROWID_RELATIVE_FNO(rowid)
      2  from   abbasi_tbl;
    DBMS_ROWID.ROWID_RELATIVE_FNO(ROWID)
                                       6
                                       7
    SQL> select file_name from dba_data_files where file_id in (6,7);
    FILE_NAME
    E:\ORADATA\DEMO111P\ABBASI_01.DBF
    E:\ORADATA\DEMO111P\ABBASI_02.DBF
    SQL>Nicolas.
    added the ROWID function usage
    Edited by: N. Gasparotto on Jun 21, 2009 11:02 AM

  • Temporary Tablespace and transactions

    Hi.
    I have a query regarding temp tablespace ,
    I am on 10gR2 version. with ONE TEMP tablespace and having one tempfiles.
    temp Tablespace TEMP1 = temp01.dbf (1 GB)
    + Let say I have executed a query-1 from Scott user , its runs for 30 min and let assume its consumed 900MB of tempspace during its completion .
    + And another query -2 from scott or another user fired ( let say Query 1 started earlier than Query 2 ) . and it needs around 500MB of tempspace
    == MY Question is
    Q .1 ) Will the Second Query waits until Query 1 completion ? As we have only one Temp file over here . IF both started executing both Queries will hit unable o extend temp space error .
    - Please provide your inputs and corrections.
    -Thanks.

    TEMP Tablespace size : 1GB NO AutoExtend
    First Query uses 900MB
    Second Query starts using space and will eventually need 500MB space
    Both queries will concurrently be allowed to use Temp Space
    If the first query completes before the second query usage hits 100MB, it will release all 900MB for usage by the second query.
    If the first query hasn't completed and is at 900MB, the second query will error out when it attempts to go beyond 100MB.
    If the first query needs more than 900MB and the second query has used 100MB -- i.e. both are growing in usage -- any one of the two queries wil fail.
    NOTE : If Resumable Space Allocation has been enabled either by setting RESUMABLE_TIMEOUT or by ALTER SESSION ENABLE RESUMABLE, the queries will not fail if the TEMP Tablespace is resized within the timeout period. Else, beyond the timeout, either of the queries will fail.
    Hemant K Chitale
    Edited by: Hemant K Chitale on Feb 13, 2013 4:17 PM
    Added Note on Resumable Space Allocation

  • Every time I start up Firefox, it always prompts me to reisntall the same pile of add-ons and extentions; I install them; still happens; why?

    Regarding Firefox 16.0.2. Every time I start up Firefox, especially after a period with my comp in standby mode, I am always asked to install several add-ons and extentions. Always the same ones, and always several. I install them, again and again, yet I am still always prompted to reinstall every time I start Firefox. I've always had this batch installed, but I don't know why it keeps telling me to reinstall them.

    Some security software has virtualization or sandbox features that may cause problems by protecting and restoring files in the Firefox profile folder.
    It is possible that there is a problem with the file(s) that store the extensions registry.
    Delete the files extensions.* (e.g. extensions.sqlite, extensions.ini, extensions.cache) and compatibility.ini in the Firefox profile folder to reset the extensions registry.
    *https://support.mozilla.org/kb/Profiles
    New files will be created when required.
    See "Corrupt extension files":
    *http://kb.mozillazine.org/Unable_to_install_themes_or_extensions
    *https://support.mozilla.org/kb/Unable+to+install+add-ons
    If you see disabled, not compatible, extensions in "Tools > Add-ons > Extensions" then click the Tools button at the left side of the Search Bar (or click the "Find Updates" button in older Firefox versions) to check if there is a compatibility update available.
    If this hasn't helped then also try to delete the addons.sqlite file.
    If you do not keep changes after a restart then also see:
    *http://kb.mozillazine.org/Preferences_not_saved

  • Import tablespace and index seperately

    dear gurus,
    i created two tablespace testtbs, and testtbs_idx. so when i try to import the dump file. so complete file is going to tablespace.
    can you suggest advised as starting or beginner level what best practice should i do. so that both goes seperately.
    there is user test/test@orcl. the file is also test.dump
    i am not using parameter file rather it is single file command line issue. i am using rhel 5.3 with 10.2.0.4 10gr2.
    confirm another thing, at the time of creation user i give user test to tablespace test permission already. but tablespce index i have not given any permission.
    look at below and confirm if i miss or wrong anything...advise accordingly
    CREATE USER test IDENTIFIED BY test DEFAULT TABLESPACE PREMIA QUOTA UNLIMITED ON test TEMPORARY TABLESPACE TEMP;
    GRANT CONNECT,RESOURCE,IMP_FULL_DATABASE,EXP_FULL_DATABASE TO test;
    REVOKE UNLIMITED TABLESPACE FROM test;
    ALTER USER test QUOTA UNLIMITED ON test_IDX;
    imp test/test@orcl file='D:/bkup_dump/test.dmp' log='D:/bkup_dump/test.log' ignore=y FULL=Y;
    regards
    salim

    hello,
    CREATE USER test IDENTIFIED BY test DEFAULT TABLESPACE PREMIA
    QUOTA UNLIMITED ON test TEMPORARY TABLESPACE TEMP;is it like that you are creating user test, default tablespace premia and quota on test???? you should allow quota to user on its default tablespace only so try
    CREATE USER test IDENTIFIED BY test DEFAULT TABLESPACE test
    QUOTA UNLIMITED ON test TEMPORARY TABLESPACE TEMP;before executing this
    ALTER USER test QUOTA UNLIMITED ON test_IDX;
    have you executed this???
    ALTER USER TEST DEFAULT TABLESPACE TEST;
    ?????? you should do that.
    and import complete dump in users default tablespace and then rebuild all indexes to index tablespace, that will be easiest way....experts please correct me...
    alter index <index_name> rebuild online tablespace <new_tablespace>;
    import command is looking fine
    imp test/test@orcl file='D:/bkup_dump/test.dmp' log='D:/bkup_dump/test.log' ignore=y FULL=Y;you might like to include fromuser and touser clause if the user exported is different...and why using full?? are you importing full database???
    HTH
    thanks and regards
    VD

  • Doubt with parameters creating a tablespace and a table

    I've created a tablespace and a table with these data:
    CREATE TABLESPACE "TAB_FILE"
    LOGGING
    DATAFILE 'C:\TAB_FILE.ora' SIZE 20M
    AUTOEXTEND ON NEXT 5M MAXSIZE 500M
    EXTENT MANAGEMENT LOCAL
    SEGMENT SPACE MANAGEMENT AUTO;
    CREATE TABLE FILE
    IDFILE NUMBER(16),
    VERSION VARCHAR2(5) NOT NULL,
    NAME VARCHAR2(40) NOT NULL,
    TABLESPACE TAB_FILE,
    PCTFREE 20,
    PCTUSED 40,
    INITRANS 6,
    MAXTRANS 12,
    STORAGE (INITIAL 1024K NEXT 1024K PCTINCREASE 0 MAXEXTENTS 8);
    Is it useless (or not advisable) to write the parameters
    PCTFREE,
    PCTUSED,
    INITRANS,
    MAXTRANS and
    STORAGE (INITIAL 1024K NEXT 1024K PCTINCREASE 0 MAXEXTENTS 8)
    if I've written in the tablespace creation
    EXTENT MANAGEMENT LOCAL
    SEGMENT SPACE MANAGEMENT AUTO?
    Thanks a lot

    I've read that autoallocate parameter is worse than uniform size:
    "Note - there is an autoallocate option for LMTs that can be used instead of uniform size X. This still slices the file up into uniform chunks (in this case always at 64K), and uses one bit per chunk. However, instead of equating one chunk with one extent, Oracle will consider past history and available gaps to decide what size extent to allocate. The extent will be one of a limited set of sizes - 64K, 1MB, 8MB, 64MB. For relatively small, simple systems where there isn't much information available about proper sizing requirements, this can be a minimum fuss mechanism to adopt; but in general I believe you should stick with uniform sizing.......But why is it so convenient to force every extent in the tablespace to be the same size ? (And at this point, you may appreciate my earlier comment about avoiding autoallocate LMTs, which allow for half a dozen sizes of extents). First, ease of monitoring space; secondly, convenience of data packing, and third, reliability of object rebuilds. "
    Is it right? If yes, could anyone tell me with size could be correct? Does it depend on the size of the table, for example? Is there any formula to get the uniform size?
    Message was edited by:
    user573997

  • Tablespace and Datafiles... HELP

    Hi, I3m new to Oracle, I3m trying to install Oracle 8.1.5 under
    Tru64 UNIX, I3m having a hard time creating the Tablespace and
    Datafiles to the oracle User... I cannot find documentation
    about it, can somebody here tell me how to do it????, it3s
    urgent, Please HELP mee!!!!
    null

    Hi Ruben,
    I'm an Ora admin working under NT.
    Use oracle server manager to create datafiles & tablespaces.
    You can find the executable file name for oracle server manager
    (svrmgr??.exe for NT) under BIN irectory of ORACLE HOME.
    Hope this will be tip for you.
    Regards
    Sukumar
    Ruben Gomez (guest) wrote:
    : Hi, I3m new to Oracle, I3m trying to install Oracle 8.1.5 under
    : Tru64 UNIX, I3m having a hard time creating the Tablespace and
    : Datafiles to the oracle User... I cannot find documentation
    : about it, can somebody here tell me how to do it????, it3s
    : urgent, Please HELP mee!!!!
    null

  • HTTP 404 error after changed tablespace and password of schema FLOWS_FILES

    Hi I have a problem of having HTTP 404 not found error for file upload in my apex app by submiting a page. When it goes to http://xxx.xxx.xxx:8080/apex/wwv_flow.accept after unlocked , changed password and change tablespace for the account FLOWS_FILES.
    Is there anyone can help ?
    Thanks in advance.

    Hi Scott,
    Yes, I have modified the bug tracker application to support file upload by using a file browser object and created a "file_upload" table under the workspace schema to keep the linkage with the table WWV_FLOW_FILE_OBJECTS$. The application works fine before but after I realize that the FLOWS_FILES schema can be unlocked and the free space in default tablespace SYSAUX has almost been used up more than 99%, so I first unlock the account FLOWS_FILES, then changed the password and move the table WWV_FLOW_FILE_OBJECTS$ to tablespace FLOW_1 and changed the default tablespace and then rebuilt the index. I have moved the table back to SYSAUX tablespace now and have rebuilt the index also. However, upload a file and then press 'apply change' in the 'create issue log details' page, it gets the error HTTP 404 but if I do not attach any file. It goes without an error. The only thing I changed is on the database side of the FLOWS_FILES schema, so I think the problem resides on it but I don't know why even I moved the table WWV_FLOW_FILE_OBJECTS$ back to SYSAUX, rebuilt the index but still it doesn't work.
    Is that good even explanation ?
    btw, I am using IIS and how can I see the webserver error ?
    Regards,
    Edward

  • Tablespace and datafiles

    I have 3 test databases with Oracle 11.2.3 on the same box
    data.dbf and index.dbf were deleted from 2 of the databases in SQL and now EP Manager can't get to any of the tablespaces.  when clicking on Server - Tablespace i get the following error:
    java.sql.SQLException: ORA-01116: error in opening database file 2 ORA-01110: data file 2: '/u02/oradata/LAWTEST/dev_data01.dbf' ORA-27041: unable to open file IBM AIX RISC System/6000 Error: 2: No such file or directory Additional information: 3 Additional information: 4 Additional information: 4194304
    I have tried dropping the tablespaces and refreshing the database from a Prod backup but no luck and have been searching the web for any info.
    Any help would be greatly appreciated.

    Hi,
    I would like to ask where is stored in the database
    the information regarding the tablespace and
    datafiles (for example for a tablespace which
    datafiles belong?). Is it in controlfile? I think no.
    Where is it?
    Thank you,
    MihaelaHi,
    You may query DBA_TABLESPACES or V$TABLESPACE to views to gain information on tablespaces. Similarly, DBA_DATA_FILES and V$DATAFILE views will list you the details related to the data files like tablespace name/id, file location ......etc..
    Regards

  • Online material for tablespace and backup

    Hi All,
    As i am a beginner, can anyone please suggest me any online link for better understanding about tablespace and backup for a beginner.
    Thanks in advance
    Arun

    Hi, follow down a resume did for me in my blog:
    Creating Tablespaces Permanent, Temporary and UNDO in ORACLE
    Tablespace Datafiles is a set that contains the physical structure of the data storage system Operacional.Sendo thus tablespace is an allocation of space used to store objects of a given user. To create a tablespace in a database, the user will have to have the grant (permission) of Tablespace and Create to create the SYSAUX tablespace (beside SYSTEM, are the most important database), should have the grant of SYSDBA. A tablespace is a logical unit of database and that is part of the following structure:
    Database> Tablespace (logical drive)> Datafile (physical file)> Segments (logical drive Example: Tables)> Extents (set of blocks, logical drives) >> Blocks Bank Data (logical unit, a smaller structure database)> Blocks Operating System.
    In this article we will be focused on the following types of tablespaces : The permanent tablespaces, the tablespace temporary tablespace and Undo. However, it also will be elucidated creating tablespace with multiple datafiles at once.
    - Permanent Tablespaces: Contains a user objects in a database. These objects are stored in physical structures called Datafiles.
    SQL> create tablespace TBSEXEBRUNORS
    logging
    datafile '/ dbbruno/datafiles/datafile1.dbf'
    size 64m
    autoextend on
    next 64m maxsize 2048m
    Local extent management uniform size 1m; 2 3 4 5 6 7
    Tablespace created.
    Creating a Tablespace with multiple Datafiles at once:
    SQL> create tablespace TBSMISCBRUNORS
    datafile '/ dbbruno/datafiles/datafile2.dbf' size 4M
    '/ Dbbruno/datafiles/datafile3.dbf' size 4M
    '/ Dbbruno/datafiles/datafile4.dbf' size 4M
    logging
    extent management site; 2 3 4 5 6
    Tablespace created.
    It follows a consultation in view DBA_TABLESPACES:
    SQL> SET PAGESIZE 180
    SQL> SET linesize 180
    SQL> SELECT * FROM WHERE DBA_TABLESPACES tablespace_name = 'TBSEXEMPLO' order by 1,2;
    Tablespace_name BLOCK_SIZE INITIAL_EXTENT NEXT_EXTENT MIN_EXTENTS MAX_EXTENTS MAX_SIZE PCT_INCREASE MIN_EXTLEN STATUS CONTENTS LOGGING FOR EXTENT_MAN
    ALLOCATIO PLU segments DEF_TAB_ RETENTION BIG PREDICA ENC COMPRESS_FOR
    TBSEXEMPLO 8192 65536 1 2147483645 2147483645 65536 ONLINE PERMANENT LOGGING NO LOCAL
    NO SYSTEM AUTO DISABLED NOT APPLY IN THE HOST
    - Clause for managing EXTENTS
    The autoallocate clause specifies that the tablespace is managed by ORACLE , and that users can not specify sizes. Moreover, this clause is not allowed to UNDO tablespaces or Temporary. However, the clause UNIFORM specifies that the tablespace is managed by a user (you can specify sizes) via byte sizes, the default 1M (megabyte) to use this clause. Already the LOCAL clause specifies that the tablespace is locally managed and some part of the tablespace is reserved for Bitmap, which is the DEFAULT option for the type of permanent tablespace. But the DICTIONARY clause specifies that you want the tablespace is managed using the data dictionary.
    - Management of SEGMENTS clause
    The AUTO clause specifies that you want the ORACLE control the free space of segments in the tablespace using BITMAPS. When making use of this option, ORACLE ignores any storage specification later this tablespace. ORACLE strongly recommends using this option. However, this option should only be used in permanent and never tablespaces in a tablespace SYSTEM. However, the clause MANUAL option is not recommended by Oracle, specifies that you want the ORACLE control the free space of segments in the tablespace using freelists (PCTUSED, FREELIST, FREELIST GROUPS).
    - Temporary Tablespaces: Contains temporary data for a given session for a given period of time. Furthermore, this type of tablespace tempfiles and have no, Datafiles. This tablespace is used when a user, to which was assigned temporary tablespace, begins operations. Thus, the tablespace temporary stores temporary data used in transactions of users.
    SQL> create temporary tablespace TEMPEXEBRUNORS
    tempfile '/ dbbruno/datafiles/tempfile1.dbf'
    size 128m
    autoextend on
    next 32m maxsize 2048m
    extent management site; 2 3 4 5 6
    Tablespace created.
    - UNDO Tablespaces or Tablespaces Undo: Tablespace used for operations redone, so that objects can not be created in this tablespace. When this tablespace is created, the ORACLE tablespace SYSTEM takes for you to make such operations. However, the default is to always create an UNDO tablespace when creating the database, so that it is in the mode of automatic undo management.
    SQL> create undo tablespace TBSUNDOBRUNORS
    datafile '/ dbbruno/datafiles/tbs_datafileundobrunors_1.dbf "
    size 200M; 2 3
    Tablespace created.
    It follows a consultation in view DBA_TABLESPACES:
    SQL> SET PAGESIZE 180
    SET linesize 180
    SELECT tablespace_name, STATUS, RETENTION, SEGMENT_SPACE_MANAGEMENT, EXTENT_MANAGEMENT, INITIAL_EXTENT DBA_TABLESPACES FROM WHERE tablespace_name = 'TBSUNDOBRUNORS' order by 1,2; SQL> SQL>
    STATUS tablespace_name RETENTION segments EXTENT_MAN INITIAL_EXTENT
    TBSUNDOBRUNORS NOGUARANTEE MANUAL ONLINE LOCAL 65,536
    - Clause for retaining segments
    The RETENTION GUARANTEE clause specifies that the data store should ORACLE undo expired, even though current operations return fails due to lack of space. This option can be useful in operations FLASHBACK (which is a "flashback" to obtain, for example, the value from a table that was deleted and it is necessary to know the value of that in a certain period). However, the provision RETENTION NOGUARANTEE (as above) specifies that the ORACLE data undo may replace expired undo by new data being processed due to the operations in the current environment, this being the provision pattern.
    I hope I helped, hugs!!
    References:
    http://brunors.com/?p=208

  • Drop tablespace and recreate a new one!

    Hello All,
    One of my database(oracle 10g, aix server ) has a tablespace called tools for xample. its size is nearly 16g, but current usage is around 170 mb only. So i want to resize the tablespace size to 2G
    So what i did is, took export of tools tablespace and full database export backup separately. so in my hand i have, tools tablespace backup(export file) and whole database backup(took using again exp utility)
    Now i tried to drop the tools tablespace and got this error
    SQL> DROP TABLESPACE TOOLS INCLUDING CONTENTS AND DATAFILES;
    DROP TABLESPACE TOOLS INCLUDING CONTENTS AND DATAFILES
    ERROR at line 1:
    ORA-29857: domain indexes and/or secondary objects exist in the tablespace.
    so i also planned, instead of dropping the tablespace, i thought of removing objects in the tablespace and resize it and import using the backup what i have.
    when i query the tablespace, i got 4 object. index, tables, lobindex and lobsegment.
    i wrote script to drop indexes and tables.but dint execute yet.
    how to remove/move lobindex and lobsegment, so that i can resize the tools tablespace?
    anyone has come across this issue? or any other method is there to over come this issue?
    Please provide detailed step if you have so.
    Regards,
    Pradeep. V

    Hi Nicolas,
    Kindly explain this point
    Step 2 above, move lob... check USER_LOBS to get the corresponding table/column from your lob_Segment...
    what query i need to use to find user_lobs,
    is this the query you saying about?
    select * from user_lobs where tablespace_name='TOOLS';
    it dint return any rows

  • Scripts on tablespaces and good documents for tablespaces

    i required real time scripts for tablespaces and also knowledge sharing documents on tablespaces please provide them
    thanks

    Hello,
    i required real time scripts for tablespaces and also knowledge sharing documents on tablespaces please provide them It depends on the Oracle Release:
    http://www.oracle.com/pls/db102/print_hit_summary?search_string=TABLESPACE
    Every Oracle Release has its news features. For instance LMT (Locally Managed Tablespace) was introduced in *8i*, ASSM (Automatic Segment Space Management) in *9i*, BIGFILE Tablespace in *10g*, ENCRYPTED and COMPRESSED Tablespace were respectively introduced in *11.1* and *11.2*,... and so on.
    The UNDO Tablespace appeared with Oracle *9.2* and the SYSAUX Tablespace with Oracle *10.1*.
    About the Scripts, the previous post give you many useful Notes from MOS.
    Else, you can also extract Report about Database Storage from Oracle SQL Developer which is a free tool:
    http://www.oracle.com/technetwork/developer-tools/sql-developer/overview/index.html
    Hope this help.
    Best regards,
    Jean-Valentin

Maybe you are looking for