Reorganization of the table

All,

I found a few tables are very fragmented in our database of production and continues to re - organize. I intend to use 'change the method of displacement of the table '.

Database version: 11.2.0.3

Name of the table: Test Tablespaces: users, tools - they already have enough space for the move.

During the race, this database of impact will this order?  This will allow DML and DDL operations?  Please let me know what has be to consider other things.

SQL> alter table test move tablespace tools;


Table altered.


SQL>  select status from dba_objects where object_name='TEST_INDX';


STATUS
-------
VALID


SQL>  alter table test move tablespace users;


Table altered.


SQL> select status from dba_objects where object_name='TEST_INDX';


STATUS
-------
VALID

Thank you

Why do you feel compelled to do something?

If you regularly remove 'huge', and then nothing else to do.

If "SHRINK you" the size of the table, you force only Oracle to expand yet; before the next deletion.

What you propose would be similar to replace the gas tank on your car you consume gasoline in order to eliminate all the space as 'wasted' in there.

The problem arises when you want to fill. You develop the tank; just to keep more gasoline.

Tags: Database

Similar Questions

  • Move the table in same tablespace is not reorganize the data

    Hello.

    I am facing a problem that I have not used to have.  First of all, a description of our envorinnement:

    We have a few large tables partitioned and performance optimization, our ETLs use bluk, add notes, parallelism and so on.  This create several holes of unused space in tablespaces/data files as well a kind of leak of space on our drives.

    A complete correction would re-create the tablespaces move everything is of opposes another.  It would be impratical, because there are about 15 who are top of 100 GB; the time and effort to recreate everything is not affordable for the Business.

    Instead, we have a single proc that comes to calculate the actual amount of used space (converted to blocks) and makes a move of all objects above this block_id.  Just after this operation, there is a dynamic shrink based on the new HWM (given that the objects have been moved) on the data file freeing disk space.  As we have a datafile by tablespace and a tablespace by schema, we would like to keep this body, if we make a single movement for objects, like 'ALTER TABLE' | owner: '. ' || nom_segment | "MOVE; "(the complete query works with all types of data such as partitions of table objects, the index partitions and the subpartions).  This will move the object in the same space for the first freespace on the tables and free up space at the end of the file to shrink.  In theory.

    This unique proc used to work properly.  In a 650 GB GB 530 tablespace in use moving about 20 that Go (the amount of data beyond the HWM 530 GB) is simpler than to create a new file/TBS and the displacement of 20 GB is faster than Go 530.

    But suddenly things changed when some TBS refused to be narrowed.  What I found out: the command move doesn't fail, it works very well and Oracle really moves the object.  But for reasons that I don't know, he's not moving it at the beginning of the file, it keeps the object at the end.  So the da calculates the new HWM, but because some objects that were in the tail of the queue, the shrink is done with a very high HWM, if no real space is reclaimed.

    So, the main question: How does the ALTER TABLE FOO MOVE really works?  I thought that it would be always to move the object to the beginning of the file thus reorganize, but I analyzed the last objects that gave me this problem (block_id before and after the move, compared to block_ids empty and everything) and actually, I see that they were moved at the end of the file, although there is enough space to accommodate initially.

    Okay, I think I found the problem.  Before that I just pulled the script as posted, but then I had the good idea to improve its performance with parallelism, so I added:

    ALTER SESSION FORCE PARALLEL QUERY 16 PARALLELS;

    ALTER SESSION FORCE PARALLEL DDL PARALLEL 16;

    ALTER SESSION FORCE PARALLEL DML PARALLEL 16;

    Returning to prallel not running, that I could reuse the freespace on the beginning of the file, and then narrow it down.

    Obviously, each writing data in parallel mode reuse freespace, I just forgot that a TABLE ALTER MOVE is also a data write operation.  I fell a bit ridiculous, caught in the same trap that I was trying hard.

    Thank you all for the comments and advice.

  • Reorganize the table WF_JAVA_DEFERRED

    Hi all

    OS: OUL5x64

    EBS 12.1.3

    DB 11.2.0.3

    I rearrange workflow (WF) and FND tables every 1 or 2 months (rearrange tables, rebuild indexes run fnd_stat) but never include this table WF_JAVA_DEFERRED

    Question: I have to reorganize the table (no queue). the size of this table is more and don't know everything reorganize it or not.

    Can someone please give me and advice or a note of oracle for this question.

    Thanks in advance.

    Please see:

    Rebuild WF_JAVA_DEFERRED queue and Table queue preserving Transactions not processed - 11i. ATG_PF. H RUP3 and above (Doc ID 804876.1)

    How Dequeue Messages old WF_JAVA_DEFERRED without rebuild it? (Doc ID 1495799.1)

    Thank you

    Hussein

  • Questions about the reorganization of the rows in the table by drag-and - drop feature

    I am referring to the demo: 106. Drag-and-drop the reorganization of the rows of the table in aCorner of Code DF to implement my case.

    I am facing some problems:

    1. the view object (bound to the table) is read only and it is created directly by very complex SQL queries, without entity objects. When it is run the code: dragRow.removeAndRetain () in the method: DnDAction processDrop (DropEvent dropEvent), it throws the error so that a guest view object is read-only. I want to know if there is another way to delete the moved collection line?

     public DnDAction processDrop(DropEvent dropEvent) {
    ...       
           CollectionModel collectionModel = (CollectionModel) table.getValue();        
            JUCtrlHierBinding treeBinding = (JUCtrlHierBinding) collectionModel.getWrappedData();
            
            //get access to the ADF iterator binding used by the table and the underlying RowSetIterator.
            //The RowSetIterator allows us to remove and re-instert the dragged row
            DCIteratorBinding departmentsIterator = treeBinding.getDCIteratorBinding();               
            RowSetIterator rsi = departmentsIterator.getRowSetIterator(); 
    
            int indexOfDropRow= rsi.getRangeIndexOf(dropRow);
           //get access to the oracle.jbo.Row instance represneting this table row
           Row dragRow = (ViewRowImpl)table.getRowData(draggedRowKey);
           //remove dragged row from collection so it can be added back
           dragRow.removeAndRetain();
           rsi.insertRowAtRangeIndex(indexOfDropRow, dragRow);
          ...
    }
    

    2. When you click on a button, I need to save the command results in the database using the command update # of each rank. Here it is the handler method for the event of the action (in MB) button.

    I want to use RowSetIterator table for encode it from all ranks and update the value # order of each rank.   I call a data control method to run sql update. is it ok? any suggestion?

        public void processSaveOrder(ActionEvent actionEvent) {
            CollectionModel collectionModel = (CollectionModel) mytable.getValue();        
            JUCtrlHierBinding treeBinding = (JUCtrlHierBinding) collectionModel.getWrappedData();
            
            //get access to the ADF iterator binding used by the table and the underlying RowSetIterator.
            //The RowSetIterator allows us to remove and re-instert the dragged row
            DCIteratorBinding iterator = treeBinding.getDCIteratorBinding();               
            RowSetIterator rsi = iterator.getRowSetIterator();
            Row row =rsi.first();
            System.out.println(0+"="+ row);
            int i = 1;
            while(rsi.hasNext()){
                row = rsi.next();
                System.out.println(i+"="+ row.getKey());
                i++;
            }
    
        }
    

    A workaround solution was found:

    In ADF 12 c, it can be solved by changing Updatable "Always" in the details tab of each attributes to read-only view object without entity object.

  • reorganization of the data in the table

    This has probably been asked and answered before, but I can't seem to find it anywhere.

    I'm saving a bunch of data in a file of lvm in the form of a 1 d table. When I open the worksheet the data appears in this format

    0 2.525174
    1 0.390727
    2 4.00143
    3 0.020132
    0 2.525174
    1 0.390727
    2 4.00143
    3 0.020132
    0 2.525174
    1 0.390727
    2 4.00143
    3 0.020132
    0 2.525174
    1 0.390727
    2 4.00143
    3

    0.020132

    0-3 is my four analog channels. I want the data to look like this when I open the file in excel:

    0 2.525174 2.525174 2.525174 2.525174
    1 0.390727 0.390727 0.390727 0.390727
    2 4.00143 4.00143 4.00143 4.00143
    3 0.020132 0.020132 0.020132 0.020132

    This way I can easily see which data points belong to which channel.

    Otherwise, it would be even better:

    0 1 2 3
    2.525174 0.390727 4.00143 0.020132
    2.525174 0.390727 4.00143 0.020132
    2.525174 0.390727 4.00143 0.020132
    2.525174 0.390727 4.00143 0.020132

    I'm pretty new to LV and can't seem to find a way to re - format the data before moving my "write.vi".

    Just in case this is helpful somehow, I enclose my vi.

    Thanks in advance!

    EDIT: accidentally attached the wrong file. This is the one.

    Hello.

    You can use the Decimate array with 4 outputs function to automatically create a single table for each channel, you can then use build array to merge all channels as an array of unique 2D (which would look like the second picture you posted). Finally, you can convert the table to format as in your third example. I hope that helps!

    Best regards.

  • Coloring items in the table of clusters

    Hello

    I have an array of clusters.

    My goal is that each element (cluster) in the table will have a different background color.

    I tried to use the color property node, but it changed the color of all clusters (not only the desired element).

    How is it possible?

    (cliché of the attached table)

    Thank you

    Leonid

    Select the color box visit the reorganize (kind of refreshment of the icon, or press Ctrl + J ) and select move to the rear. You are finished.

  • Reorganization of the JSON data

    Hi all

    I need help, reorganizing the data I receive from a JSON Unflatten.
    I have a JSON string of a call to API (JSON unflatten) that contains a name (String), a digital and a channel (also a string).
    The JSON Unflatten automatically directs the data it receives in order, the data is provided.  The data is information on the channels.  The problem arises when not all channels are provided.  If out of 12 channels, the JSON receives information on only 4 channels, he ordered the 1 to 4 in the table.  However, 1 may not correspond to channel 1 and can actually be channel 5 and 3 might not correspond to channel 3 so on and so forth.  I want to reorganize the JSON based on reading channel (a channel named canal).  So, if in the table that Channel 4 is actually 12 (based on the channel of the channel, i.e., channel-12), I would link data from Channel 4 to profile 12 in a new table, so that the order of the channels still dependent on chain channel and not according to the order of unflatten of JSON.

    Please help as I am running out of ideas on how to solve this problem.

    Thank you.

    That's what is lying to you?

    PS: Try to avoid the multiple index table - it is preferable to use arrays and loops

  • Windows Movie Maker-how hide the images in the table of Storyboard

    Windows Movie Maker

    I used windows movie maker repeatedly to do movies and had a lot of luck.    I'm now trying to start one and cannot find the option to 'hide' imported media images after that that they were placed on the table of Storyboard.  HELLLLLLLLLLLLP!

    RE: Hide parts of the clips you want
    Assuming you are using the version of Windows Movie maker 6.0

    Open Windows Movie Maker > above, help > Help topics > scroll to learn more about Windows Movie Maker, click on it > click Trim, reorganize and copy audio imported video clips > start reading and roll of trim (hide) a clips video. That shows you how to hide parts you want. For the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • Interruption of the compression of the table

    Hi all

    Could someone describe to me what happens if I interrupt the compression of the table on a halfway?

    Everything will be compressed a half table or all previos actions will be supported roller?

    It doesn't work that way you. This,

    orclz >

    orclz > alter table emp store compress line advanced;

    Modified table.

    orclz >

    is just a DOF, instant and does not compress anything. You must reorganize the table to achieve any compression.

  • Add the new column to the desired location in the table through customization?

    Hello world

    I made a few standard on oaf page customizations.
    I added 2 new columns to the existing table, but they were added at the end of the table.
    But I want a column to be the first and a column in the middle of the table.

    How can I achieve this?

    Please give me your valuable suggestions...

    Thank you.

    Hello

    Customize page, there is another icon for just before reorganization create icon.

    You can use and organize all the elements in the region of the table according to your requirement.

    Sushant-

  • Confusion about the use of the tables [was: tables]

    I was told, at some point by someone, that the new web site design uses no tables. I'm so confused that I just read in the Help Guide of Dreamweaver Reference Guide, Chapter 5 page layout and Design, there is a whole section for tables. Many help sites, I was told that my site does not even because it is built in the tables. I built it using the ancient DW in 2002. I don't know which version, but the most recent version was Dreamweaver 4 back then. I am trying the trial of 2015, making many tutorials to learn the latest that has completely changed what I learned 14 years ago.

    So, what I can, or may not, use arrays? Please see the reference guide for DW 2015, 5 ml

    Thank you, Deb

    Oh, my site is mainemadestuff.com

    [Edited by moderator subject line]

    Dreamweaver reference Guide is desperately obsolete. Because Dreamweaver is now updated several times per year, new features have been added, but the old material has not been removed. For example, Chapter 5 contains 12 pages on executives. Dreamweaver can't stand frames.

    Advice than a website "shouldn't even work because it is built in the tables" are nonsense. Your site does not, and will continue to work for many years to come.

    The problem with the page layout using tables, it's that it is rigid. The content is not redistributed when the site is displayed on a mobile device. Tables is also bad for technology assistance for the blind. A blind person trying to access your site would have great difficulty of navigation on every page.

    Tables should be used these days for their original purpose: to display data, such as sports or statistical results in tables of trade. Modern web design uses CSS to control page layout and styles. But do not worry about your existing site stop suddenly work. Spend the time learning the latest techniques and reorganize your site when you feel more comfortable with CSS. But forget the so-called Dreamweaver reference Guide. It will be much more to enlighten confused them.

  • Given CLOB not allowing the size of the table cut!

    Hi Experts,

    Environment: 11.2.0.3. on Solaris 10.

    We have a table that contains the CLOB data and this table takes about 111 GB!

    SQL > desc INFO_MESSAGES

    Name                                      Null?    Type

    ----------------------------------------- -------- ----------------------------

    CLNT_OID NOT NULL VARCHAR2 (16)

    USR_OID NOT NULL VARCHAR2 (16)

    LAST_client_msg_ID VARCHAR2 (36)

    LAST_client_msg_DATE DATE

    LAST_client_msg CLOB

    LAST_USR_MSG_BOD_ID VARCHAR2 (36)

    DATE OF LAST_USR_MSG_DATE

    CLOB LAST_USR_MSG

    Select * of dba_segments order by bytes DESC;

    MIGRTN SYS_LOB0000111131C00008$ $ LOBSEGMENT SAMS DATA1 20690 6 1963 14528000 119013376000 <-the top row

    This segment is to table INFO_MESSAGES. I confirmed by joining in ALL_LOBs.

    This segment: SYS_LOB0000111131C00008$ $ belong to this column: LAST_USR_MSG

    The column LAST_USR_MSG were originally from huge text data, each line having approximately 4 MB in size. To reclaim the space, we have put this column of small as "data truncated" data using an update statement for the half of the rows in the table.

    as:

    Update INFO_MESSAGES set LAST_USR_MSG = "data truncated" where rownum < 25001 (this where clause was based on other criteria on a real mission but he updated 25000 lines - half of the table).

    Now after having done that, the size of the table has not changed!

    The table is still 120 GB. So what should he do to recover the space here? Should we export, truncate, and import the table - or can it be reconstructed (without causing locks and allowing application to access it or there at - it other better options?)

    Thank you

    OrauserN

    You must use dbms_redefintion, at the same time, change BASICFILE (have you been to) to SECUREFILE

    The latter LOBs will reorganize automatically.

    Demo at http://www.morganslibrary.org

    -----------

    Sybrand Bakker

    Senior Oracle DBA

  • stop the email addresses in the table in the spreadsheet to launch mail

    I am compiling of data in a worksheet Numbers and many cells in the table into them from the e-mail addresses.

    Whenever I tap on the cell that contains an e-mail address, he jumps to my Mail application and launches a new mail with the email address. It's so irritating cos I have to type on any address in the table and I DON'T WANT my Mail App to launch. How can I stop this madness? Help, please!

    Hi helix.

    Drag the column wide (or Panel Format > table > column)

    Click on the white space to the right of the link to select this cell without activating the link

    Now, edit

    Tested on a MacBook Pro with numbers under Mac OS X El Capitan 10.11.5 3.6.2

    Kind regards

    Ian.

  • How can I display the table of contents for the iPod Touch to 6

    When I opened first of all iPod Touch Users' Guide, I used the table of contents (TOC) to locate and access sections in the manual. But, after looking through the manual for awhile, I tried to return to the table of contents, but it wasn't there! I have tried various things to see if the table of contents are being hidden, or if in some way, it has been deleted. Anyone can shed light on this mysterious event?

    What is the version of iBooks that you speak? There is an online version here: https://help.apple.com/ipod-touch/9/ Aha, I see the table of contents on the left disappears if you zoom before or make the narrow window and reappears if zoom you out or make it larger.

    TT2

  • How can I create a custom button to format the table borders?

    I often paste to Excel in a message e and would like a button or a context menu for the PROPERTIES of TABLE FORMAT it takes 2-3 clicks each time to access. Is there such a thing? I searched the Add-ons nothing helps. There may be a change in config I can do which would have the table to stick with borders already in place (I have to change the thickness of the border on '1' each and every time that she missed to '0' - maybe there is a place to have it by default on '1'?)

    I have attached a picture of the menu on that I wonder.

    I don't know of a setting for this...

    It would be easier to click on, but based on underscores bit indicating the keys Accelerator, the keyboard sequence would be:

    • ALT + o b o
    • ALT o b o

Maybe you are looking for