Reduce the space used on a large table

11 GR 2, I have a table that uses up to 50 GB (almost 600 million lines) and increases by about 1 GB (8 million lines) per week. He arrived at a point where we can just continue to add disk space to solve the problem.

There are two things we can do to reduce the amount of space: delete unnecessary lines and drop some deprecated columns.

I'm not sure is:

(a) is it too 'easy' that make the cuts/drops then ALTER TABLE TableName SHRINK the SPACE WATERFALL, or must he something else to do to actually free up space?

(b) assuming that it's that easy, how overheads is needed - how much space (temporary) disk is necessary to achieve this?

Narrowing of the space is going to be potentially very expensive. Essentially, Oracle will remove lines at the end of the table and insert them into the free space you created by removing the other lines. So you will potentially generate a ton of roll forward. Of course, you must activate the movement of the row in the first table. And the table must be in a tablespace SAMS.

It requires no additional disk space, and it does not lock the table with the exception of a short period of time at the end of the operation.

More details on the process of narrowing of the segments online.

Justin

Tags: Database

Similar Questions

  • New AOL e-mail: one quarter of the screen is blank on the right side, reducing the space for the e-mail subject line. Resize attempts do not work on the right side, so I can't expand the e-mail subject line

    The new AOL E-mail look, which yesterday began a quarter of the screen is blank on the right side, thus reducing the space for the e-mail subject line, which limits its usefulness. Resize attempts do not work on the right side, so I can't expand the e-mail subject line? Running XP pro and Mozilla Firefox 5. No problem with I.E.

    Thank you, these settings were already in place. AOL said now erase the cache, cookies and history... to solve, which worked. (I deleted the cache and a story time.)

  • Original (D) disk image hard is full, what can I do to reduce the amount used. Emptying trash, Defraged etc, any ideas please

    (D) original hard disk image is full, what can I do to reduce the amount used, I 1.36 MB of 7.43 GB free space. Emptying trash, Defraged etc, any ideas please?

    You're not supposed to be access the recovery partition or copying what anyone, unless you go actually to recover the PC as long as you plant. -ignore the msg.

    In the system properties > System Protection disable protection for the D drive

    BTW have you created your recovery disks, using the process described by the manufacturer of your PC, if you you do not need to do that now!

  • Calculate the space used by an individual/idebtifying partition in the partitions belonging to a partition - possible?

    Hello

    Using oracle 11.2.0.3 and have a partitioned table, some of the partitions use their own tablespace for to use WHERE user_segments but many partitions share the same tablespace.

    We wish to place each partition to a tablepsace of dedicatde and seek to identify the space used by a single partition.

    What is the best way to do this?

    See user_tatb_partitions ha snum_rows + blocks.

    Can see WHERE user_segments door secondary partition names.

    Is that a query can use for secondary idnentify belonging to a partition

    Thank you

    See halfway down the page below for SQL XML util to convert a string of high_value.

    http://OraStory.WordPress.com/2013/12/12/SQL-utils-using-XML/

  • How to reduce the space between text and Image

    I am trying to wrap text around an irregular shape in InDesign CS4. I used the pen tool to mark the outlines of the image, crop the image, then selected the outline of the pen and pasted the image into the outline. With parameters defined for the TextWrap is in this dialog box, text wrapping seems in good shape on the right side, but he has too much space on the left side.

    textwrap0.png

    If I try to reduce the space even further away, it is only on the right side of the image, not the left:

    textwrap1.png

    It's the same thing for all my irregular images where I try to wrap the text. How can I reduce the white space to the left of the picture?

    You can use direct selection and the pen tool to change the skin path in repositioning of anchor points and guidelines and adding more anchorpoints etc. In this way, you can move the path of the scarf to the inside a little more to allow the best fit of the text.  To lock breaks in a bit more on a line-by-line, take into account settings composer to composer Adobe single-line (Control Panel menu)

    You can also try to allow hyphenation. With the text aligned to the box on the left will always left a little look gappy I think. However allowing hyphenation will get InDesign to cut the breakpoint to the left of the object with the text, as well as at the end of the line wrapping.

    Also if you change the alignment for Justified, you will also get a better result.

    On a related side note, I had usually advice my trainees do not to wrap the text on the left and right sides, when the object with the scarf is placed in the middle of a sentence. It makes reading more difficult phrases.

    Hope this helps,

    CARI

    --

    Twitter.com/carijansen

  • automate the backup of the computer while limiting the space used

    Hello
    I would like to help by using the Task Scheduler to automate a "computer backup."  I also use the "back up files" to back up my data files.  I want to use the same destination for two backups drive, but must limit the space used for each utility half the destination drive.  for example, I have a 150 GB C: drive.  the backup destination, F: drive is 500 GB.  I would use 250 for backup of the computer and 250 GB for backup of files.  is there a command in Task Scheduler that will automate the backup of the computer while minimizing space used for 250 GB?  Thank you!

    moved the post to the backup – Windows and Windows Server forum: http://social.technet.microsoft.com/Forums/en-US/windowsbackup/thread/bbacc0df-3964-40ae-bf98-a3fe2c36314c

  • How to reduce the space between icons on the desktop?

    I want to reduce the space between icons

    Right-click on the desktop, select "Display", uncheck "auto arrange" and snap to grid "if they are checked, then move the icons in the desired position.
    I hope it works for you.

  • How to reduce the space between two lines in a panelformlayout who is lain in the panelbox?

    Mr President.

    I have a panelbox in which I put a panelformlayout which have two rows as below

    panelformspace.png

    I want to reduce the space between inputfield first and second inputfield.

    Thus, this second inputfield closer to the first inputfield

    Respect of

    You can define simple = true in the first entry field (name), sorround who on the ground with panelLabelAndMessage and add the second inputField (address) about to end of panelLabelAndMessage.

    In fact, you can add more or less space with spacer between them and panelGroupLayout with horizontal layout as a facet of the end child

  • How to reduce the space between the section number and title of section in TOC

    Hello

    I want to reduce the space between the section number and title of section in TOC.

    can someone guide me on how to do this:

    4.PNG

    Thank you

    Try to do it from the style of paragraph (bullets and numbering) options

  • What happens when the space used hits space put into service?

    I work for the first time with VMWare software and everything while browsing the virtual machines, I saw that the space used was about to hit the space provided. I was doing some research on the definition of these 2 and I don't get a solid and reliable definition. Does anyone can say exactly what they are and explain what happens when the space used hits the space provided?

    Thank you

    Welcome to the community - Itsounds like your virtual drive are configured as thin provisioned - their size increases as disk space is consumed - when you hit provisioned used equal is a machine virtual will be error if it tries to use multiple disks FEPs - usually with a disk space error output - your options are to add more data stores and move virtual machines to the new data store.

  • Why I don't see (created with my iPhone 5 s) forms in the creative clouds (for iOS) and the space used in CC is 0 MB? Where are they kept?

    I installed Adobe forms on my iPhone (iOS 8) and don't see, where the forms are stored.

    In CC app for iOS, there is no files (and the space used in CC is 0 MB). And I do not see my shapes in your other apps (for iOS: ideas, Photoshop Mix).

    How to export shapes for the storage of files?

    Content in your libraries CC is currently not available on the CC iOS app.  You can see it online.  But, not in the app native iOS... yet. I hope that the CC app will have this feature soon.

  • moved the file data, but the space used is always the same.

    Hi due to some problems of space I took the offline tablespace, then move the file to a location different and introduced the online storage space after renaming. After all this, the space used for the file system is always the same. How can I get the space freed up?

    Hello

    I'd be willing to bet that a core oracle process holds the lock (e.g. dbwr). use lsof (open list) command on each one and you should get the info or perhaps fuser.

    Paul

  • Calculate the space used in the database!

    Hi all

    I can calculate the space used by using one of the following ways:

    1. determine the size allocated by issuing

    SELECT SUM(d.bytes/1024/1024/1024)
    FROM dba_data_files;

    2 calculate the free space by issuing

    SELECT SUM(bytes/1024/1024/1024)
    from dba_free_space;

    Space used will be the value of the first statement - value of the second statement. This is manually!

    Is it possible to combine these two queries?

    Thank you!

    Dan.

    You can certainly combine queries

    SELECT (allocated.bytes - free.bytes )/1024/1024/1024 used_gb
      FROM (select sum(bytes) bytes from dba_data_files) allocated,
          (select sum(bytes) bytes from dba_free_space) free
    

    Normally, you could group tablespace as well.

    But if you want just the amount of space used, it is probably easier to just

    SELECT sum(bytes)/1024/1024/1024 used_gb
      FROM dba_segments
    

    Justin

  • Can someone show me an easy way to reduce the space between lines of text

    Hi, can someone show me an easy way to reduce the spaces in line in my text. Currently, they number about twice as big as I would like. I hope it's just a setting in the CSS that's easy to change even if I think I have tried everything. I hope you can help, thanks in advance. -Jason-

    Hi thanks to everyone for their contribution. I finally solved the problem thanks to a previous post. "Murray" posted this info and it worked like a charm.

    Open the page in DW. View the CSS with WINDOW Panel | CSS styles, click
    Click the new CSS rule at the bottom of the unified CSS panel, click
    the Middle option (Tag) button, enter "p" (without the quotes) in the tag: field,.
    Click this radio button at the bottom of the document, and then click OK.

    The margins are styles of box model, so select the category box and in the
    Margin field (you can leave the check box selected), enter a zero. Click OK,
    and you have created a rule of CSS stylesheet on the page that should look like
    -

    Geddit?

    Thanks again... until next time,.

    Jason

  • Resize the VARCHAR2 column on a large table

    Hello

    I need to resize a column VARCHAR2 with a large table (several hundred million lines).
    The column will be reduced from VARCHAR2 (40) to VARCHAR2 (50).
    Please check if someone has idea, will be this column resizing take a lot of time or a lot of resources that the table is highly accessible.
    Thank you.

    Kind regards
    Tarman.

    This should be an update of the dictionary: so it should very quickly because the existing data will not be changed.

    See http://asktom.oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:1542606219593 #1956714100346356542.

Maybe you are looking for