Tablespace, data file auto-extension

Hi gurus!

I'm new here, I have a dout.

What you recommend me, generate a data file auto-étend or generate more data for a tablespace file?

Is there a problem with the performance?

Rigth now I a tablespace with a self-aggrandizing data file ' extends, with an increment of 10240KB, it of a table with a level of transaction gran space every day, allowed the size of increace?

Thanks in advance

879411, I'm not sure I understand everytihing say, but in general you want that data files are rarely extend to 100%. You do not want to set the next is large enough that the file would extend only rarely. You would balance against if at some point, you expect the items being supported in the tablespace to each stop growing or the rate of growth slows down significantly.

Choose a file size which would become perhaps once a week might be a good size to start.

At least the file extend the size should match the object to the extent that is required. In the case of a managed tablespace locally allocated by self, this could be 64 M.

HTH - Mark D Powell.

Tags: Database

Similar Questions

  • How to move a specific tablespace data file from one directory to another

    Database: 10.2.0.1
    OS: generic
    Description of the problem: how to move a specific tablespace data file of one directory to another account of the database that is on the installer of Oracle Dataguard

    * Oracle is working on this issue, but at the same time opens the topic community so that community members can add their views, experience, or knowledge. This will strengthen again all the knowledge bases, including My Oracle Support and My Oracle Support Communities *.

    Published by: ram_orcl on August 16, 2010 21:21

    Dear ram_orcl,

    Please follow the procedures here;

    http://download-UK.Oracle.com/docs/CD/B19306_01/server.102/b14239/manage_ps.htm#i1034172

    8.3.4 Renaming a Datafile in the Primary Database
    
    When you rename one or more datafiles in the primary database, the change is not propagated to the standby database. Therefore, if you want to rename the same datafiles on the standby database, you must manually make the equivalent modifications on the standby database because the modifications are not performed automatically, even if the STANDBY_FILE_MANAGEMENT initialization parameter is set to AUTO.
    
    The following steps describe how to rename a datafile in the primary database and manually propagate the changes to the standby database.
    
       1.
    
          To rename the datafile in the primary database, take the tablespace offline:
    
          SQL> ALTER TABLESPACE tbs_4 OFFLINE;
    
       2.
    
          Exit from the SQL prompt and issue an operating system command, such as the following UNIX mv command, to rename the datafile on the primary system:
    
          % mv /disk1/oracle/oradata/payroll/tbs_4.dbf
          /disk1/oracle/oradata/payroll/tbs_x.dbf
    
       3.
    
          Rename the datafile in the primary database and bring the tablespace back online:
    
          SQL> ALTER TABLESPACE tbs_4 RENAME DATAFILE      2> '/disk1/oracle/oradata/payroll/tbs_4.dbf'
            3>  TO '/disk1/oracle/oradata/payroll/tbs_x.dbf';
          SQL> ALTER TABLESPACE tbs_4 ONLINE;
    
       4.
    
          Connect to the standby database, query the V$ARCHIVED_LOG view to verify all of the archived redo log files are applied, and then stop Redo Apply:
    
          SQL> SELECT SEQUENCE#,APPLIED FROM V$ARCHIVED_LOG ORDER BY SEQUENCE#;
          SEQUENCE# APP
          --------- ---
          8 YES
          9 YES
          10 YES
          11 YES
          4 rows selected.
    
          SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE CANCEL;
    
       5.
    
          Shut down the standby database:
    
          SQL> SHUTDOWN;
    
       6.
    
          Rename the datafile at the standby site using an operating system command, such as the UNIX mv command:
    
          % mv /disk1/oracle/oradata/payroll/tbs_4.dbf /disk1/oracle/oradata/payroll/tbs_x.dbf
    
       7.
    
          Start and mount the standby database:
    
          SQL> STARTUP MOUNT;
    
       8.
    
          Rename the datafile in the standby control file. Note that the STANDBY_FILE_MANAGEMENT initialization parameter must be set to MANUAL.
    
          SQL> ALTER DATABASE RENAME FILE '/disk1/oracle/oradata/payroll/tbs_4.dbf'
            2> TO '/disk1/oracle/oradata/payroll/tbs_x.dbf';
    
       9.
    
          On the standby database, restart Redo Apply:
    
          SQL> ALTER DATABASE RECOVER MANAGED STANDBY DATABASE
            2> DISCONNECT FROM SESSION;
    
    If you do not rename the corresponding datafile at the standby system, and then try to refresh the standby database control file, the standby database will attempt to use the renamed datafile, but it will not find it. Consequently, you will see error messages similar to the following in the alert log:
    
    ORA-00283: recovery session canceled due to errors
    ORA-01157: cannot identify/lock datafile 4 - see DBWR trace file
    ORA-01110: datafile 4: '/Disk1/oracle/oradata/payroll/tbs_x.dbf'
    

    Hope that helps.

    Ogan

  • How to reduce the temp tablespace data file

    Dear all,

    I'm using Oracle 11 g on Windows 2003. Due to a SQL select query my temp tablespace data file size has increased significantly. How can I reduce the data temp file?

    Thank you

    http://download.Oracle.com/docs/CD/B28359_01/server.111/b28310/tspaces007.htm#CFHJFBBJ

  • Undo tablespace/data files

    Oracle 9i

    In production, we get the undo data files:

    SUM (MAXBYTES) SUM (USER_BYTES)
    33554432000 12823953408

    This table has 90 million records

    I estimated the size of the table:
    Num_Rows * avg_row_len = 12875211284

    We need to insert records to the new table 55 million. When insert, I want to just run insert in... . Select statement once, only to commit only once.
    do you think that undo tablespace is large enough to contain 55 million records based on the data above undo files?
    Thank you
    S.

    Also add don't work with it selects only works with INSERT, and you have already created a table in nologging mode. If you are on 10 and your management measure is set to auto, then use it.

    create table st.order_temp
    TABLESPACE USER_DATA
    NOLOGGING
    NoCache
    noparallel
    in select
    ...
    ...
    all columns
    ...
    ...
    of st.order_temp
    When trunc (insert_date) > = add_months (trunc (sysdate, 'MONTH'),-12);

    Published by: OrionNet on December 9, 2008 02:19

  • Users tablespace - data file is 24.5 GB, only 1.2 GB used - what should I do?

    Hi all

    In my database I have users tablespace and its data file is users01.dbf. File size is 24.5 GB, but the data used are of 1.2 GB. I got this information from OEM, see image below:
    https://picasaweb.Google.com/100555146235257804098/Oracle_a1#5759303022195932370

    How I can free unused space of 23GB?

    Just to let you know to my knowledge, I am a developer of report OBI.

    Thank you!

    >
    I executed the script sql on your link http://www.oracle-ckpt.com/how-to-shrink-datafiles-adjusting-hwm/

    It gives only 7 GB. If I can save only 7 GB so it will not help me. This is the maximum possible savings, you can do.

    Do you mean if I load 20 GB of data now in the post above, the database uses the current data file to increase the size of the file? Or it adds to the size of the file, that is to say 25 + 20 = 45 GB?

    It seems CanGrow is enabled for the USERS tablespace: CANGROW - YES

    If it uses the size of the file, then I can deal with the current structure. If we add to the file so I can't move forward.

    Your data file already occupied 23 GB, if you load another 20 GB of data. Of course, it can take another 20 GB, if all 23 GB already existing aid. Have you talked about the link that is mentioned by Sir Jonathan Lewis?

  • How to move a segment in the SYSAUX tablespace data file

    Hello

    I had a problem with my tablespace SYSAUX growing due to the history of Stats being not properly purged (lots of hits and articles against this known issue). I have since corrected this problem and I did my SYSAUX tablespace so that it is now less than 3 GB. However, the data file unique original behind this tablespace is still 10 GB and I want to reduce again to below 6 GB.

    However as a suspect when I try to reduce the data return file I get ORA-03297 file contains data beyond the requested value of RESIZING.

    I checked the table dba_extents for this tablespace, which reveals there are approximately 765 segments over my desired fix of 6 GB.

    Q1. If there is only 1 or 2 segments above this mark of 6 GB, how would manually move their bottom?

    Q2. I gave have 765 segments above this 6 GB brand, what are the recommendations to achieve the mass movement required of these segments?

    Thank you
    Jim

    The Alter Table or Alter Index statement will pass all these types of segment?

    Lol some are special items.

    Here is what I make sure you test something you care to.

    And the double test. Frankly, I would like to change the least possible and if I didn't do it, I would avoid.
    It might be easily really much, much more trouble than its worth.

    LOBINDEX

    ALTER table move lob () store (tablespace );

    NESTED TABLE

    A nested table can be moved to a different tablespace only by moving his table containing storage target.
    (Move the parent table, which is only necessary.)

    PARTITON TABLE

    ALTER partitioned table move partition part_2 tablespace ;

    LOB SEGMENT

    ALTER TABLE owner.table_name MOVE LOB (column_name) STORE AS (nom_tablespace);

    CLUSTER

    I'm not sure.

    INDEX PARTITION

    example of

    ALTER INDEX SYS. I_STREAMS_APPLY_SPILL_MSGS_PT1 CHANGE DEFAULT USERS TABLESPACE ATTRIBUTES;

    PARTITION OF LOB

    ALTER table

    partition of moving lob () store as (tablespace );

    See also - online redefinition of tables

    http://Oracle.Su/docs/11g/server.112/e10595/tables007.htm

    Oracle Database 10 g Release 2 online data reorganization & redefinition

    http://www.Oracle.com/technetwork/database/features/availability/HA-10gR2-online-reorg-TWP-131644.PDF

    http://jhdba.WordPress.com/2009/05/19/purging-statistics-from-the-SYSAUX-tablespace/

    Best regards

    mseberg

  • Tablespace, data file, Schmeas in 10 gr 2

    Hello

    What are v$ views or tables instances where I can join their data files tablepspaces performs and tablespaces to their corresponding schemas?

    I need to prepare a report for having overview of all data files and its elements, and I need this information in order to complete the report.

    Thank you
    R

    dba_ts_quotas DESC
    DESC DBA_DATA_FILES

  • associated tablespace data file

    Hello
    How can we find out what all the data file associated with a tablespace?

    Select file_name in dba_data_files where nom_tablespace = «...» » ;

  • Loss of all control files and two independent of the system tablespace data files.

    Hello


    Loss of the controlfile and 2 data files: February 25, 2010... 15:00

    Database: in Archivelog mode

    Backup: controlfile and all (6) datafiles on February 20, 2010 and all archive logs are available up to the failure

    -Wanted to recover.

    Even if the controlfiles are restored from a backup, as long as the archive + online redo logs are available, you can make a FULL recovery.
    At the end of the recovery, an OPEN RESETLOGS would update the controlfile with correct information about SNA sequence # and headers of files.
    (Of course, the RESETLOGS would mean a new incarnation is created and log sequence numbers start from 1 - if you perform a backup as soon as possible after the RESETLOGS).

    Hemant K Collette
    http://hemantoracledba.blogspot.com

  • Lost in the SYSTEM tablespace data file

    Version: 10.2.0.5
    Platform: AIX 6.1

    The only data in the System tablespace file is lost. The DB has crashed.
    We have the RMAN backup and the newspaper archive since the last backup of level 1.
    With RMAN, where should we go

    a. restore, Recover Database
    or
    b. restore, recover any SYSTEM tablespace?

    Your database must be mounted State.

    RMAN > run {}
    allocate channels ch1 disc type;
    system restore of tablespace;
    recover the system tablespace.
    SQL 'ALTER DATABASE OPEN;
    }

    Talip Hakan Öztürk
    http://taliphakanozturken.WordPress.com/

  • drop tablespace/data file

    version 817 / Solaris 8 operating system
    There is request the user to disconnect the tablespace and then slide it and its file of data... I'll be able start db without problem after that?

    Published by: DBA2011 on March 27, 2012 14:11

    DBA2011 wrote:
    version 817 / Solaris 8 operating system
    There is request the user to disconnect the tablespace and then slide it and its file of data... I'll be able start db without problem after that?

    Published by: DBA2011 on March 27, 2012 14:11

    I expect the answer is YES!

  • CAN I RECOVER DELETED DATA FILE AND ITS TABLESPACE BY USING FLASHBACK DATABASE

    Hello!

    I CREATED THE TABLESPACE WITH ITS DATA FILE.

    SQL > create tablespace usmantbs datafile 'E:\oracle\product\10.2.0\oradata\orcl\usman.dbf' recording petit_fichier the size of 10 M extent management local segment space management auto;

    THEN, I CREATED A USER AND HIM ENTRUST THIS TABLESPACE.

    SQL > create default profil_utilisateur identified by Neil Leal Microsoft account unlock default tablespace usmantbs;
    SQL > grant connect, resources for Neil;

    I CONNECTED WITH Neil as USER AND CREATED a TABLE.

    SQL > conn Leal/Leal
    SQL > create table baseball (id number (9));

    SQL > select current_scn from v$ database;

    CURRENT_SCN
    ---------------------
    545863

    Then I deleted the tablespace including contents and data files...

    SQL > drop tablespace usmantbs including content and data files;

    I have no backup of this data file, but my database is in archive log...

    So I can... .flashback database to the SNA 545863 as it was before the fall... to get back my along its tablespace data file
    Wil I get my datafile back or not? Help, please...

    You can test it by yourself easily :) You will not be able to open your database
    After getting the error, just rename this data file and flashback again. Then open your database

    C:\Documents and Settings\Administrator>sqlplus "/as sysdba"
    
    SQL*Plus: Release 10.2.0.1.0 - Production on Sat Aug 1 14:20:34 2009
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    
    Total System Global Area  293601280 bytes
    Fixed Size                  1248624 bytes
    Variable Size              96469648 bytes
    Database Buffers          192937984 bytes
    Redo Buffers                2945024 bytes
    Database mounted.
    
    SQL> alter database archivelog;
    
    Database altered.
    
    SQL> alter database flashback on;
    
    Database altered.
    
    SQL> alter database open;
    
    Database altered.
    
    SQL> create tablespace tb datafile 'c:\tb.df' size 1m;
    
    Tablespace created.
    
    SQL> create user tb identified by tb;
    
    User created.
    
    SQL> grant dba to tb;
    
    Grant succeeded.
    
    SQL> alter user tb default tablespace tb;
    
    User altered.
    
    SQL> create table tb (id number);
    
    Table created.
    
    SQL> select current_scn from v$database;
    
    CURRENT_SCN
    -----------
         547292
    
    SQL> drop tablespace tb including contents and datafiles;
    
    Tablespace dropped.
    
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup mount
    ORACLE instance started.
    
    Total System Global Area  293601280 bytes
    Fixed Size                  1248624 bytes
    Variable Size              96469648 bytes
    Database Buffers          192937984 bytes
    Redo Buffers                2945024 bytes
    Database mounted.
    
    SQL> flashback database to scn 547292;
    flashback database to scn 547292
    *
    ERROR at line 1:
    ORA-38795: warning: FLASHBACK succeeded but OPEN RESETLOGS would get error
    below
    ORA-01245: offline file 5 will be lost if RESETLOGS is done
    ORA-01111: name for data file 5 is unknown - rename to correct file
    ORA-01110: data file 5: 'C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\UNNAMED00005'
    
    SQL> alter database open resetlogs;
    alter database open resetlogs
    *
    ERROR at line 1:
    ORA-01245: offline file 5 will be lost if RESETLOGS is done
    ORA-01111: name for data file 5 is unknown - rename to correct file
    ORA-01110: data file 5: 'C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\UNNAMED00005'
    
    SQL> select name from v$datafile;
    
    NAME
    --------------------------------------------------------------------------------
    
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\SYSTEM01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\UNDOTBS01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\SYSAUX01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\USERS01.DBF
    C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\UNNAMED00005
    
    SQL> alter database create datafile 'C:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\UNNAMED00005' as 'c:\tb.dbf';
    
    Database altered.
    
    SQL> flashback database to scn 547292;
    
    Flashback complete.
    
    SQL> alter database open resetlogs;
    
    Database altered.
    
    SQL>
    
    SQL> select * from tb;
    
    no rows selected
    
    SQL> select name from v$datafile;
    
    NAME
    --------------------------------------------------------------------------------
    
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\SYSTEM01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\UNDOTBS01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\SYSAUX01.DBF
    C:\ORACLE\PRODUCT\10.2.0\ORADATA\TEST1\USERS01.DBF
    C:\TB.DBF
    
    SQL> select name from v$tablespace;
    
    NAME
    ------------------------------
    SYSTEM
    UNDOTBS1
    SYSAUX
    USERS
    TEMP
    TB
    
    6 rows selected.
    
    SQL>
    

    - - - - - - - - - - - - - - - - - - - - -
    Kamran Agayev a. (10g OCP)
    http://kamranagayev.WordPress.com
    [Step by step installation Oracle Linux and automate the installation by using Shell Script | http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

    Published by: Kamran Agayev, a., July 27, 2009 14:38

  • Data files

    Hi all
    IM new to oracle. I had a situation where I have two under USERS tablespace data files. Question is former datafile that users01.dbf has enough space to use, without checking this correctly, I added a data file called another USERS02.dbf extension and 100 MB. Now USERS02.dbf in use I want to drop this USERS02.dbf and use USERS01.dbf. What is the recommended way to do this?


    Thanks in advance.

    Salvation;

    I agree with EdStevens, you don't need to remove your dbf, there will not be a problem for you.

    Respect of
    HELIOS

  • growth of data files

    Hello

    11 GR 2, OS is not serious, the DSO is excluded in this case - only FS

    I wonder what the algorithm behind the growth of the data files that belong to a tablespace, but for example for performance reasons, are placed on 2 different physical volumes.

    Do you know if the Oracle Server always takes advantage of spread of these files?

    What happens if we only have one huge table? -It spreads extended this tables consistently in these 2 data files?

    example:
    my_huge_table is located in the USERS tablespace which consists of 2 data files:
    e:\users1.dbf
    f:\users2.dbf

    My observation is that it is not expected that users evaluations1 is filled and using the file mobiles2 in parallel. However I don't know if it is reliable where performance is concerned. Please share your verified knowledge.

    When you add a second data file to a tablespace after segments have already allocated punctuated in the first data file - these extensions will remain in the first data file - there is no measure of rebalancing mechanism on this layer. The new data file will then prefer to allocate extensions, if, so sooner or later, the two data files will have a fill. This behavior is independent of the type of storage to that of data files.

    Kind regards
    Uwe Hesse

    http://uhesse.WordPress.com

  • ORA-01111 name for the 10 data file is unknown

    Hello
    I created two new areas of storage (11 and 12) with 1 data file in each of them in my primary database,
    I forgot to set the parameter in the server backup standby_file_management = AUTO,
    auto standby server to create tablespace data file in D:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\UNNAMED00010 11,
    Although there is no "UNNAMED00010" in D:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\ file.
    in the tablespace $ v and v$ datafile, I can see that the entry was created in the control to the standby server file.
    Here is the list of the data file in my backup server

    TS # name
    ----- --------------------------------------------------------
    G:\OFSDB\OFS4\ORADATA\OFS4\SYSTEM01 0. DBF
    1 G:\OFSDB\OFS4\ORADATA\OFS4\UNDOTBS01. DBF
    G:\OFSDB\OFS4\ORADATA\OFS4\SYSAUX01 2. DBF
    G:\OFSDB\OFS4\ORADATA\OFS4\USERS01 4. DBF
    6 G:\OFSDB\OFS4\ORADATA\OFS4\DATA_SE. ORA
    7 G:\OFSDB\OFS4\ORADATA\OFS4\INDEX_SE
    8 G:\OFSDB\OFS4\ORADATA\OFS4\FLOW_1.DBF
    G:\OFSDB\OFS4\ORADATA\OFS4\CJHIT01 9. DBF
    G:\OFSDB\OFS4\ORADATA\OFS4\DBMON_TS 10. DBF
    11 D:\ORACLE\PRODUCT\10.2.0\DB_1\DATABASE\UNNAMED00010

    Someone knows how to fix this problem?

    Thank you

    Another way try this,

    1 put the tablespace that holds the database without name begin backup mode.

    SQL > alter tablespace mytbs begin backup;

    2 copy the missing data (copy of the OS) file to the location of the files of pending data.

    3. run the end backup command.

    SQL > alter tablespace mytbs end backup;

    4. create a controlfile for the use of the database pending,

    SQL > alter database create standby controlfile as ' / D:/oracle/stdcontrol.ctl';

    5. move the alos for standby server.

    In the standby mode,

    1 cancel the recovery mode.
    2 stop and change the controlfile.
    3. start the day before db in the editing phase.
    4 restore database pending.

    Thank you

Maybe you are looking for

  • Bluetooth on Satellite P100 - how can I put it to "always receive"?

    Evening chaps - I have never posted on these boards before because I've never really had the need, I've done very well solve the problems in the past by looking around. The people here seem pretty useful and all the advice was clear and useful. But n

  • How to change the Microsoft Account in parental control

    I installed Microsoft's parental control for more than 1 year in my PC at home - which is used by my children-. The MS Account was @hotmail, but recently I changed it by @outlook.com account, so I need to update the credentials used MS Family Safety

  • Questions about a difficulty of time XP.

    A few questions come to mind regarding this issue. Installed the "fix", but really try to understand "what was the threat? What mattered as long as MS was forced to publish this "pay once"? It would be useful to decide how to proceed, to know the ans

  • How can I make windows media player display on all monitors at the same time?

    Hello world I hope that you all had a great Christmas and a happy new year.  I just installed a new graphics card and now have a 3 monitor configuration, everything works fine, however, I would like the visualizations for windows media player on all

  • Windows Vista using Media Player

    Under Vista Home Premium and would like to load all my CD on an external drive, but still be able to play them with Windows Media Player. Also how can I off load them on an IPOD or in the car for portability thumb. Thank you