Reduction of size of the Tablespace SYSTEM or adding data file?

Hello

I read the MOS notes on aud$ table, etc and the purge it (truncation). But what happened in this situation. Please take a look. # Oracle Database 11 g Release 11.2.0.2.0 - 64 bit Production
 ## size in MB
TS Name                                 Total_size   Free space     %age_free    %age_free

SYSTEM                               2000       409.875              20         80
SYS@AP AS SYSDBA> select owner, segment_name, segment_type, bytes/1024/1024 "MB" from dba_segments
  2  where tablespace_name = 'SYSTEM' AND rownum <=20 AND bytes/1024/1024 > 1 order by bytes desc;

OWNER                      SEGMENT_NAME                                              SEGMENT_TYPE              MB
------------------------------ --------------------------------------------------------------------------------- ------------------ ----------
SYS                      OBJ$                                                   TABLE                   25
SYS                      I_OBJ2                                                   INDEX                   22
SYS                      I_OBJ5                                                   INDEX                   22
SYS                      DEPENDENCY$                                              TABLE                   15
SYS                      C_OBJ#                                                   CLUSTER              14
SYS                      I_OBJ1                                                   INDEX                   11
SYS                      I_OBJ4                                                   INDEX                   11
SYS                      I_SYN2                                                   INDEX                   10
SYS                      SYN$                                                   TABLE                    8
# System Tablespace has a data file:
/Oracle/oradata/AP/datafile/o1_mf_system_6l9549kc_.dbf

What are the possibilities for me here, please? Can I purge/truncate above segments, or add a data file?

Thank you

Concerning

ALTER database... datafile autoextend on next maxsize 64M

So yes, you can change this. Easily!

--------
Sybrand Bakker
Senior Oracle DBA

Tags: Database

Similar Questions

  • the tablespace temp in oracle10g data file

    I use oracle10g R2. I voluntarily deleted the data file from the temporary tablespace at the OS level. Then I restart the database. When I restart the database, he started and DB is opened successfully. I went and the server. The temporary file is re-created. Is this something new in oracle10g? I don't think, I see this in oracle9i. I you'd be grateful if someone could clarify this...

    govindts wrote:
    Thank you all... This is my last question. Once I have the answer, then I will mark this as answer

    Is this new avaible only feature for the database that runs RMAN? My database is automatically re-create the temporary files when I restart the database. But my DB recorded with RMAN catalog. It works for any database that is not registered with the RMAN catalog?

    Govind,

    Databases are not registered with RMAN. Its a tool that there always in binary database stack, its up to you to use it or not. Database part of the RMAN catalog or not, also makes no difference in the creation of temporary storage space. This feature is there in 10g databases out of the box. Here is my db, no newspaper archive, no rman catalog configured.

    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Connected to an idle instance.
    
    SQL> startup
    ORACLE instance started.
    
    Total System Global Area  167772160 bytes
    Fixed Size                  1247900 bytes
    Variable Size              75498852 bytes
    Database Buffers           88080384 bytes
    Redo Buffers                2945024 bytes
    Database mounted.
    Database opened.
    SQL> archive log list
    Database log mode              No Archive Mode
    Automatic archival             Disabled
    Archive destination            USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence     41
    Current log sequence           43
    SQL> archive log list
    Database log mode              No Archive Mode
    Automatic archival             Disabled
    Archive destination            USE_DB_RECOVERY_FILE_DEST
    Oldest online log sequence     41
    Current log sequence           43
    SQL> select * from dba_temp_files;
    
    FILE_NAME
    --------------------------------------------------------------------------------
       FILE_ID TABLESPACE_NAME                     BYTES     BLOCKS STATUS
    ---------- ------------------------------ ---------- ---------- ---------
    RELATIVE_FNO AUT   MAXBYTES  MAXBLOCKS INCREMENT_BY USER_BYTES USER_BLOCKS
    ------------ --- ---------- ---------- ------------ ---------- -----------
    E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\TEMP01.DBF
             1 TEMP                             20971520       2560 AVAILABLE
               1 YES 3.4360E+10    4194302           80   19922944        2432
    
    SQL> shut immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    
    E:\Documents and Settings\aristadba>cd E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\
    
    E:\oracle\product\10.2.0\oradata\orcl>rename TEMP01.DBF TEMP01.DBF.old
    
    E:\oracle\product\10.2.0\oradata\orcl>sqlplus / as sysdba
    
    SQL*Plus: Release 10.2.0.1.0 - Production on Sun Jun 7 10:26:15 2009
    
    Copyright (c) 1982, 2005, Oracle.  All rights reserved.
    
    Connected to an idle instance.
    
    SQL> startup
    ORACLE instance started.
    
    Total System Global Area  167772160 bytes
    Fixed Size                  1247900 bytes
    Variable Size              75498852 bytes
    Database Buffers           88080384 bytes
    Redo Buffers                2945024 bytes
    Database mounted.
    Database opened.
    SQL>
    

    And here is the excerpt of the alert log, you can see the message of the temp being created.

    Sun Jun 07 10:26:54 2009
    ALTER DATABASE OPEN
    Sun Jun 07 10:26:54 2009
    Thread 1 opened at log sequence 43
      Current log# 3 seq# 43 mem# 0: E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\REDO03.LOG
    Successful open of redo thread 1
    Sun Jun 07 10:26:54 2009
    MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
    Sun Jun 07 10:26:54 2009
    SMON: enabling cache recovery
    Sun Jun 07 10:26:55 2009
    Successfully onlined Undo Tablespace 1.
    Sun Jun 07 10:26:55 2009
    SMON: enabling tx recovery
    Sun Jun 07 10:26:55 2009
    Re-creating tempfile E:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\TEMP01.DBF
    Database Characterset is WE8MSWIN1252
    replication_dependency_tracking turned off (no async multimaster replication found)
    Starting background process QMNC
    QMNC started with pid=15, OS id=3828
    Sun Jun 07 10:26:59 2009
    Completed: ALTER DATABASE OPEN
    Sun Jun 07 10:27:00 2009
    db_recovery_file_dest_size of 2048 MB is 0.33% used. This is a
    user-specified limit on the amount of space that will be used by this
    database for recovery-related files, and does not reflect the amount of
    space available in the underlying filesystem or ASM diskgroup.
    

    Update:

    Just to prove that the file has been created, I write the contents of the oradata folder

    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    
    E:\oracle\product\10.2.0\oradata\orcl>ls
    'ls' is not recognized as an internal or external command,
    operable program or batch file.
    
    E:\oracle\product\10.2.0\oradata\orcl>dir
     Volume in drive E has no label.
     Volume Serial Number is 5449-27B9
    
     Directory of E:\oracle\product\10.2.0\oradata\orcl
    
    06/07/2009  10:26 AM              .
    06/07/2009  10:26 AM              ..
    06/07/2009  10:29 AM         7,061,504 CONTROL01.CTL
    06/07/2009  10:29 AM         7,061,504 CONTROL02.CTL
    06/07/2009  10:29 AM         7,061,504 CONTROL03.CTL
    06/07/2009  10:24 AM       104,865,792 EXAMPLE01.DBF
    06/07/2009  10:24 AM        52,429,312 REDO01.LOG
    06/07/2009  10:24 AM        52,429,312 REDO02.LOG
    06/07/2009  10:24 AM        52,429,312 REDO03.LOG
    06/07/2009  10:24 AM       272,637,952 SYSAUX01.DBF
    06/07/2009  10:24 AM       513,810,432 SYSTEM01.DBF
    06/07/2009  10:26 AM        20,979,712 TEMP01.DBF
    06/06/2009  12:59 AM        20,979,712 TEMP01.DBF.old
    06/07/2009  10:24 AM        31,465,472 UNDOTBS01.DBF
    06/07/2009  10:24 AM         5,251,072 USERS01.DBF
                  13 File(s)  1,148,462,592 bytes
                   2 Dir(s)  63,850,295,296 bytes free
    

    HTH
    Aman...

    Published by: Aman... on June 7, 2009 10:29
    added the last section of code.

  • How to reduce the size of the tablespace (space reover) if the schema is remov

    Hello

    I have a large tablespace user for diagrams 3 and 4. I needed emergency of space on the hard drive so I had to remove one of the schema (fall of the user). Now this tablespace is shown as filled to 70%. I want to reduce the space allocated to it. I use the console manager oracle. Try to reduce the allocated size for the tablespace but it does not.
    It has undotbs available free size is very good, but who also is not reduced.

    Is it possible so that I can assign less space for these tablespace so that I can recover from the physical space.

    Thanks for the reply.

    Hello

    You can only free space at the end of the data file if it's free. It is likely that this space has been allocated by a rollback segment.
    If this is the case, then your alternative is to create a new UNDO tablespace and the point of the database to use.

    Create a new UNDO tablespace.
    CREATE UNDO TABLESPACE undo_ts2
    DATAFILE ' / directory/undo_ts2_01.dbf ' SIZE xxxM;
    Change the database to use the new UNDO tablespace.
    ALTER SYSTEM SET undo_tablespace = undo_ts2 SCOPE = BOTH;

    New transactions will begin using the new undo tablespace. After a certain time passes (at least the number of seconds specified by the UNDO_RETENTION initialization parameter), you can drop the old UNDO tablespace. The disadvantage of this approach is that for a short period of time, your database will be two UNDO tablespace

    Kind regards
    Deepak

  • Increase the size of the tablespace: which of the data file for the tablespaces ine that I have to increase?

    Hello

    I need to increase the size of the tablespaces in EBS R12 Database 11.2.0.3.0:

    APPS_TS_TX_IDX

    APPS_TS_SEED

    APPS_TS_TX_DATA

    But they all have multiple datafiles:

    Example for APPS_TS_SEED:

    [data oracle@ebs122dev] $ of the hs - a_ref0 *.

    1, 5G a_ref01.dbf

    1, 2G a_ref02.dbf

    508M a_ref03.dbf

    2, 0G a_ref04.dbf

    2, 0G a_ref05.dbf

    2, 0G a_ref06.dbf

    Many of the datafiles should I resize to increase the size?

    Thank you

    Luis

    Hello

    It does not matter what file you resize.

    Personally, I prefer to start with the first file and reach the largest file size and resize then the following.

    In addition, having the files with a size that is a multiple of 1 GB is a good practice for me.

    Another option is to activate the autoextend for data files option.

    You can set the maximum size of 4 GB for example all files in storage areas that are growing rapidly.

    Kind regards

    Bashar

  • alert on the size of the tablespace

    RDBMS 11.2.0.4

    EM 12.1

    Someone at - it a rule of thumb on the size of the tablespace

    lets say I'm 2 datafiles, max size 32 gb autoincrement on.  total of 64 GB

    How do you manage your space, do alert you when it arrives to the % of the size of 64 GB.  How get oracle automatically adds a file?  Id want to do or not?  I can handle alerting on start it then.

    Edit (yes I know auto adding files could be a bad thing if something went bump in the night but another of that)

    Select * from DBA_TABLESPACE_USAGE_METRICS where USED_PERCENT > 85 and nom_tablespace! = "undo."

    This method works.

  • How to check the size of the tablespace by query?

    How to check the size of the tablespace by query?

    Run this query...

    SELECT
    A.tablespace_name 'space ',.
    A.bytes / (1024 * 1024) "Total_Size (MB).
    Sum (B.bytes) / (1024 * 1024) "free_space (MB).
    NVL (Round (Sum (B.bytes) * 100 / A.bytes), 1) "%Free."
    Round ((A.bytes - SUM (B.bytes)) * 100/A.bytes) '% Used_Space '.
    FROM dba_free_space B,.
    (SELECT tablespace_name, SUM (bytes) bytes
    FROM dba_data_files
    A GROUP BY nom_tablespace)
    WHERE B.tablespace_name (+) = A.tablespace_name
    GROUP OF A.tablespace_name, A.bytes
    UNION ALL
    SELECT
    A.tablespace_name 'space ',.
    B.bytes / (1024 * 1024) "Total_Size (MB).
    Sum (A.bytes_free) / (1024 * 1024) "free_space (MB).
    NVL (Round ((Sum (B.bytes) - A.bytes_used) * 100 / B.bytes), 1) "%Free."
    Round ((Sum (B.bytes) - A.bytes_free) * 100 / B.bytes) '% Used_Space '.
    FROM dba_temp_files B,.
    (SELECT tablespace_name, bytes_free, bytes_used
    V $ temp_space_header
    GROUP BY tablespace_name, bytes_free, bytes_used) has
    WHERE B.tablespace_name (+) = A.tablespace_name
    GROUP OF A.tablespace_name, B.bytes, A.bytes_free, A.bytes_used
    ORDER BY DESC 4;

  • Estimate the size of the tablespace

    Hello

    I am scheduled to insert the 10580000 around a table. Based on this number I'll be able to calculate the size of the tablespace.


    Thank you
    SC

    Hello

    Simple calculations; excluding overhead costs

    DB_BLOCK_SIZE/avg_row_len = approx. number of lines per block
    Total number of lines / approx. number of lines per block = approx. number of blocks
    Number of blocks * db_block_size = approx. number of bytes
    About the number of bytes / (1024 * 1024) = size in MB

      8192 = db_block_size
      173  = avg_row_len
    
       select 8192/173 from dual;
    
       select ( (10580000/47)*8192) / ( 1024 *1024) from dual;
    
      
    

    Concerning

  • How do I reduce the data file after the moving images to another data file

    All,

    I did a test of simepl to see how should I reduce my data file after the transfer of the objects thereof.

    I had an image in my data file USER_image, which is about 9 GB in size. I created the new data under the new tablpespace file and moved all the images in this new space of tables. So my old tablespace of image with its data file is now empty. At least there is not all user objects.

    Now I tried to resize the old datafile (USER_image) to a smaller value, but I keep this error
    "ORA-03297: file contains data beyond the value required to RESIZE.

    The file size is 9 GB and I tried to resize to 8 GB but it still does not allow me.

    Is it possible to resize a data file after moving all its purpose?
    I'm something wrong or missing something?

    Thanks in advance.

    If you old image tablespace is indeed empty (you need to run a statement against DBA_SEGMENTS to check) then you can bring it, data files included.
    After this, you can create a 'new' tablespace with the old name and desired data file sizes.

  • ORA-1655: impossible to extend the cluster SYS. C_TS # 8 in the tablespace SYSTEM ORA-1655: impossible to extend the cluster SYS. C_TS # 8 in the SYSTEM tablespace

    Hi all

    Oracle version 11.2.0.2 XE edition, OEL 5.6

    I am facing error during the creation of tablespace that my system tablespace is full. Although the system tablespace is autoextend and there is space available on the hard disk what preventing the system tablespace not capable to autoextend. I checked and there is no space in the system tablespace.

    I encountered a similar problem earlier for one of the could not tablespace autoextend even though autoextend is on and enough free space on hard disk (in a different environment)

    ulimit is unlimited for this.

    What could be the reasons that although if autoextend is the tablespace not power autoextend.

    Thank you.

    Fahim5 wrote:

    Hi all

    Oracle version 11.2.0.2 XE edition, OEL 5.6

    I am facing error during the creation of tablespace that my system tablespace is full. Although the system tablespace is autoextend and there is space available on the hard disk what preventing the system tablespace not capable to autoextend. I checked and there is no space in the system tablespace.

    I encountered a similar problem earlier for one of the could not tablespace autoextend even though autoextend is on and enough free space on hard disk (in a different environment)

    ulimit is unlimited for this.

    What could be the reasons that although if autoextend is the tablespace not power autoextend.

    Thank you.

    Autoextend would also have a maximum limit of how much of the data file would be able to expand. So, what is the value of that? I don't see other reasons except that you made out of the maximum space allowed for the data file extend and which is prohibiting him from extends.

    Aman...

  • Size of the disk system comments more

    Hello - looked through the FAQ and found the answer to this question. If I missed this point just me to a resource if it is a pain I tell myself that this has probably been asked before.

    I'm under vmware version 3.1.3

    Space for comments system has been upgraded with 40 GB. I was getting messages that I was running out of space of previous system disk, dumped some files and I saw free space on system of vm disk to grow as as expected.

    Since then, traveling abroad, I have a need to empty a few photos, etc. I want to grow the VM disk space if it has increased by stopping the prompt. Then I went to VM hard drive tool has slipped to the bar to resize to 140 GB, filled time I restarted the prompt, but that he does not see its system disk space increase. Stop the VM/comments down then went to the VM disk and checked the case tool to pre-allocate and let that complements.

    Restarted the guest and still don't see the VM system disk with the any added space.

    Someone can direct me to the right process to increase the comments/VM system drive so that I can increase the amount of available space or let me know what I am doing wrong?

    Thank you

    OK, didn't post screenshots. Wanted to take the time and review everything first. I managed has increased the size of the virtual disk to 140 GB, and it is seen by the Windows operating system. Windows now detects this virtual drive as 140 GB. The virtual machine still sees as 40 GB.

    Now, I want to increase the size of the existing VM/comments system drive sector, so he can use it.

    I did some research and found this method and have the intention to use steps 2 and 3 to change the BIOS, start it newly created iso CD/Gparted and runs from there.

    http://communities.VMware.com/docs/doc-9765

    If there is a better/more method that will allow me to increse/increase the size of the virtual disk sector please let me know.

    It is an old document obsolete and has been replaced by: resizing of the ramdisks with step by step Instructions

    However to resize a virtual hard disk is at least a two-step process.  First increase the size of the virtual hard drive through its settings and then second is to increase the file system partition.

  • Option "Reconfigure" in vCenter 4.1 to enlarge the size of the partition system on WIndows 2003

    I had just noticed this and I was wondering if I could use this option to expand the system (c) on a Windows 2003 Server partition.

    I know there are several ways to do this but, in the past, I was always a V2V, change the size of the C: volume during conversion and once checked... delete the original virtual machine.

    The "reconfigure" appears it can accomplish the same thing faster. Is this true?

    vmproteau wrote:

    I know for the VM helper method but use the V2V method because it offers a simple uninstall. Had not used the GRET, but I'm not like all the other suggestions, it works fine. I think that it is not well supported by Microsoft.

    Here's how a good to use a helper VM.  Hower, be very careful that your VM is not no matter what instant assets.

    http://vmprofessional.com/index.php?content=2k3resize

    To my question, 'reconfigure' offers another option for extension of partition for the WIndows 2003 System. I'll try it in the lab, but I was wondering if someone has already done this successfully.

    No, it reconfigures option does not increase the volume in the guest operating system.

  • Reduce the size of the Tablespace Temp

    Hello
    On 10g Release 1 o Linux, how to decrease the size of the temp tablespace, without re-creating a new? Should I just resize the temp file?

    Thank you.

    Hello
    to do this

    ALTER DATABASE TEMPFILE '/ora01/temp_01.dbf' RESIZE 2048M;
    

    concerning

  • Reduction in size of the swf by looping is not songs?

    Hello

    I created a file that has several songs and these songs are 3 minutes in length each. Currently, these songs are looped forever. If I do not loop, which would decrease the size of the file?

    Playing the song several times should not affect filesize. Planting of the song file into the SWF instead of streaming it will have an impact considerably the size of the file.

  • Reduction in size of the SWF file

    Can anyone help me to reduce the size of the SWF file generated by Flex? When I used HTTPService, file lay more large (250 KB). really bad. I've been to limit myself to the use of some components. Help please?

    THE BIG ANSWER IS HERE:

    http://labs.Adobe.com/wiki/index.php/Flex_3:Feature_Introductions:_Flex_3_RSLs

  • Why the size of the picture changed when adding effects trans ect

    Hello

    I have a project with a few clips

    project settings 1024 x 768 15 fps

    and images is 1024 x 768 15 fps

    now what happened after changing the clips when I add the change of speed, transitions, or effects

    the used clip changes size in the monitor and loses quality,

    OK this happens ONLY AFTER that I have support on enter to return, until I made that they play very well on the timeline.

    Add to this that I have a work around, which is to place a keyframe of the movement at the beginning of the clip,

    and when I export the project as avi full image is fine.

    While a problem during the time line, but I just sometimes makes it difficult when you add more effects ect

    Any idears

    see you soon

    You can change the codec of rendering for custom sequences.  It's in the sequence settings.

Maybe you are looking for

  • Write data to text file generates the error

    Hi all I need to write data to a file using TestStand and I configired the entrance and outside like below, but I get the error message like ' an error occurred 'Write' calling in 'ITextStream' of 'Microsoft Scripting Runtime' [error Code:-2146828234

  • sampling frequency of DAQ assistant for pulse width measurment

    Hi all. I want to measure the pulse width of a digital signal of about 1 kHz, via digital DAQ vi assistand pulse width. I need to measure the pulse width approximately 100 Hz. I put 1 sample on request and in one of the other method of as implicit sy

  • Free applications appears do not?

    Hello. I bought my Z2 in May and when buying I was told that a selection of free applications, including the Garmin Navigation system would be available for me to download as a user of the Xperia lounge Z2. I checked several times and never seen avai

  • BlackBerry store contacts from the phone to the memory card

    Hi all I'm new to cascades of blackberry development. I want to develop an application where I can store all contacts from the phone to memory card, then plugin this memory card to another blackberry phone and retrieve. Development must be done using

  • Is the path of voice broken with the 10.9.9.339 version of the OS?

    Hello! Can anyone confirm if the voice path and the 'voice' PCM device are broken in the current SDK / OS releases? I can not all sounds in the earpiece and microphone when running the new operating system. I tested it in my own application and the A