What do I do after shrink space

Hi,
Do I need to do anything after shrink space?
After I shrink the tables and indexes spaces, I saw the significent space saving. question is do I need to re-collect statistic after shrink? would query plans changed after shink space? if I have outlines defined to freeze query plan, should I re-generated outlines?
anything else should I consider after shrink space?
Thank you

asanga wrote:
no need to do anything for outlinesThank you !. so, this would imply that query plan won't be changed after shrink? is my understanding correct?

Similar Messages

  • I installed an ancient version, photoshop element 2, on PC under Windows 7 after change of computer station and it is impossible to register modification made; error message: impossible because saturated disc ....what is not the case: many space on the di

    I installed an ancient version, photoshop element 2, on PC under Windows 7 after change of computer station and it is impossible to register modification made; error message: impossible because saturated disc ....what is not the case: many space on the disc. How to repair this error please?

    Hello
    Thank you for your answer which is interesting because it is a disk of 2 TB... If I create a partition do you think it can solve my problem? I prefer this old version of Photoshop, very practical to use...

  • Alter SHRINK SPACE in oracle 10g

    Hello,
    My table PRICE_T table gets deleted and inserted almost 50 million records everyday.
    Now it takes too much time to perform this operation because of TABLE fragmented.
    i can use "CREATE table as select” option to remove fragmentation from table.
    but i dont want to use this option.
    so i hv tried ALTER TABLE SHRINK SPACE as i m using ORACLE 10g
    alter table price_t enable row movement;
    alter table price_t shrink space
    alter table price_t disable row movement;
    and i have applied following query to check table gets remove free space but still having free space after applying ALTER SPACE COMMAND
    select table_name,round((blocks*8),2)||'kb' "size1",round((num_rows*avg_row_len/1024),2)||'kb' "size"
    from DBA_tables
    where table_name = 'PRICE_T';
    Tablespace in PRICE_T table fall into is SEGMENT SPACE MANAGEMENT AUTO
    please help me to remove fragmentation from table using SHRINK command.
    Thanks.

    Now it takes too much time to perform this operation because of TABLE fragmented.How do you define "fragmented"?
    Why do you believe that your table is fragmented?
    Why do you believe that the fragmentation is causing performance problems?
    select table_name,
           round((blocks*8),2)||'kb' "size1",
           round((num_rows*avg_row_len/1024),2)||'kb' "size"
      from DBA_tables
    where table_name = 'PRICE_T'; - What is the output of this query before and after you shrink the table?
    - Are your statistics up to date? NUM_ROWS, BLOCKS and AVG_ROW_LENGTH provide information to the optimizer-- they are estimates gathered when object statistics are gathered. They are not maintained by Oracle in real time and may be substantially out of date.
    - I don't see any attempt to account in this query for overhead like PCTFREE.
    - Is there a reason that you aren't using the DBMS_SPACE package? This query seems highly suspect.
    Justin

  • Impact to production if I shrink space on table...

    Hello experts.
    I am running Oracle 11.2 and saw in OEM that I have a table that is candidate for shrinking space.
    According to OEM, I can gain 5G by shrinking the table.
    The table is 16G, so if I shrink the table, then it should reduce to approx. 11G, right?
    This table is the primary table used by our application, so impact to production is very important.
    Okay, so I'm wondering what the impact to production is on the table while I shrink the space on the table.
    I am testing it now in my test environment.
    First, I found I had a function based index which has to be dropped before I can shrink the table.
    So I ran dbms_metadata to get the syntax to recreate the FBI, then dropped the FBI.
    Next, i ran alter table owner.tablename enable row movement;
    Then, I ran alter table owner.tablename shrink space cascade;
    While I am running the shrink table command, I opened another session and I queried the table and even did updates on the table.
    I was quite surprised in that the table is not locked and is still accessible for update and select statements.
    In fact, I do not see any noticeable impact by the shrink table command.
    Obviously, I am not in the production environment with hundreds of concurrent users, but my question is what kind of impact should I expect to see if I do this in production with people hitting this table? (No, this is not an IOT.)
    Any ideas?
    Edited by: 974632 on Feb 19, 2013 5:54 AM
    NOTE: The table shrink command took: Elapsed: 00:43:17.19
    Recreating the function based index took: Elapsed: 00:00:28.80

    Uwe Hesse wrote:
    What you observe is standard behavior.
    A potential impact comes from the massive internal DELETE & INSERT during the shrink operation.
    Will generate lots of redo & undo therefore.
    That's is not necessarily a problem, though.
    Kind regards
    Uwe Hesse
    "Don't believe it, test it!"
    http://uhesse.com
    Uwe,
    Correct me if I'm wrong, but my thought on reading the OP is that he could very well see a performance degradation during the shrink operation, but I'd also expect to see some overall improvement after the operation due to a large decrease in the number of blocks that would have to be scanned during any FTS, and possibly some cascading of that effect back through any indexes on that table.

  • Shrink space of datafile

    Oracle 11.1.0.7:
    I need to give some space back to the storage. I am trying to figure out what process should I follow to shrink the datafiles and drop the datafiles.
    1. Should I first do shrink space on tablespace and then drop few datafiles?
    2. How do I know how much space can be shrunk?
    3. How do I know if after shrinking which datafiles are ready for drop?
    Is there any other better way?

    I"ve just gone through a very similar procedure.
    First i had to identify the high water mark in each datafile, and then shrink it back to that or just above that value.
    NOTE: It's best to do this when your DB is not in use, specifically growing or if it is some of the commands might fail saying that there is data beyond that size.
    Now most likely your data is spread across the datafiles in some sort of "optimal" way by oracle, so it's unlikely that you'll be able to get any "clean" datafiles that you can just drop.
    So what i did was to create a new tablespace big enough to hold the objects, MOVED the tables and REBUILT the indexes in the new TS.
    Now one option here is to just keep the new TS's and drop the old ones, if needed you can even rename your tablespace (10g and above)
    ALTER TABLESPACE old_ts RENAME TO new_ts;
    However, you must follow the rules when renaming a tablespace (also need to separetly rename the df if you want to keep your naming standard) :
    You cannot rename the SYSTEM or SYSAUX tablespaces.
    You cannot rename an offline tablespace.
    You cannot rename a tablespace that contains offline datafiles.
    Here we wanted to keep the file names locations so i ended up copying everything back into the originals, but before i did that , i could querried dba_segments to get the minimum size required, and I then I shrunk and dropped the datafiles in the original TS as appropriate.
    To get the hight water mark, i used this script :
    SELECT 'ALTER DATABASE DATAFILE ''' || FILE_NAME || ''' RESIZE ' || HWMM || ';' CL_DYN_SQL
    FROM (
    SELECT DF.FILE# FILE_ID, DF.NAME FILE_NAME, NVL(DFD.MAX_BLOCK_COUNT,1)*DF.BLOCK_SIZE HWM,
    DECODE(SIGN((1024)-(CEIL(NVL(DFD.MAX_BLOCK_COUNT,1)*DF.BLOCK_SIZE/(1024*1024)))),
              1,1024, CEIL(NVL(DFD.MAX_BLOCK_COUNT,1)*DF.BLOCK_SIZE/(1024*1024))) || 'M' HWMM,
              DF.BYTES
    FROM V$DATAFILE DF, V$TABLESPACE TS,
    SELECT FILE_ID, MAX(BLOCK_ID+BLOCKS-1) MAX_BLOCK_COUNT
              FROM DBA_EXTENTS DE
              WHERE DE.TABLESPACE_NAME IN ('TS_D', 'TS_I')
              GROUP BY FILE_ID
    ) DFD          
    WHERE DF.FILE# = DFD.FILE_ID (+)
    AND DF.TS# = TS.TS#
    AND TS.NAME IN ('TS_D', 'TS_I')
    WHERE HWM < BYTES
    ORDER BY 1;

  • How do I find what is taking up all the space in my iMovie library?

    If I find the my iMovie library in Finder, it's total size is a reported 15.59GB and, as far as I can tell, I cannot open it in Finder to see what files are taking up that space.
    If I look at my iMovie library in iMovie, it apparently contains one event, which contains one movie.
    If I select the move as then go to File -> Reveal in Finder, I can see all the folders and files associated with the event and they come to a grand total of 5.95 GB.
    So, how do I find out what movies, clips or projects are taking up the other ~ 10GB in the iMovie library folder?
    I'm using iMovie 10.0.5

    When I did that, I could still only see the same contents as shown in the third screenshot above. However, minutes after doing the "Show package contents", iMovie seems to have figured out that it didn't have 15GB of data in its library after all and updated its size accordingly. So, problem solved for now but I still find iMovie to be painful to use and I will probably avoid doing so as much as I can.

  • How to determine what's using data store temp space?

    How can one determine what's using data store temp space? We are interested to know what structures are occupying space in temp space and if possible what pid/process connected to TimesTen created them.
    Also, is there a procedure that will work if temp space is full?
    Recently one of our data stores ran of space. We we're unable to run commands like "monitor", "select * from monitor", "select count(*) from my_application_table", etc. These commands failed because they required temp space to run and temp space was full. We killed the application processes, this in turned freed up temp space, then we were able to run these queries.
    Ideally, we'd like to have a procedure to figure out what's using temp space when temp space is full.
    The other thing we could do is periodically monitor temp space prior to it filling to determine what's using temp space.

    That was my original thought, but once you click the slider track or thumb, and then enter a value in the text control, the clickTarget on the change event envoked by the change to the bound data (after entering a value in the text control) will be whatever slider element had last been clicked. If you've never clicked the slider, clickTarget=null. But once you've clicked the slider the clickTarget always has a value of "thumb" or "track", regardless of what triggered the change event.

  • What is taking up all my space?

    I have an 16 GB iPad mini that says its using 6 GB of space, but my apps don't even come close to that amount of space. How can I find out what is taking up all my space? I know people will say to back up my iPad and restore, but I don't want to upgrade to iOS 7, so that is not an option for me. Thanks so much in advance!

    If you are still on iOS 6 on your mini, you may have gotten the auto-pushed iOS 7 update download on your device. Check your device under Settings>General>Software Update. If you have a button there labeled "Install" for the iOS 7 update, the update has been pushed to your device by Apple without your knowledge or permission, then extracted from an approx 1GB download file to a ~3.1GB installation package which is now using ~3.1GB of your storage space. It happened to my iPad mini along with an 8GB iPhone 4 (~2.5GB - 3GB of space robbed from an 8GB device) as well. The actual size of the update after extracted can vary between ~2.5GB to over 3.1GB depending on the device.
    See the following topics & links:
    *Auto-pushed iOS 7 @ CNET
    http://news.cnet.com/8301-13579_3-57604701-37/ios-6-holdouts-complain-about-larg e-unwanted-ios-7-download/
    *How do I delete auto download of ios7 (linked work-around on page 2)
    https://discussions.apple.com/thread/5379403?start=0&tstart=0
    *How do I stop my iPad 3 from automatically downloading iOS upgrades (work-around)
    https://discussions.apple.com/thread/5385718?start=0&tstart=0
    *Apple Forced iOS7 update on my iPad2 !
    https://discussions.apple.com/thread/5378130?start=0&tstart=0

  • Flashback table after shrink

    Situation:
    we deleted all rows from table, then alter table <> shrink space, that worked without any errors.
    Now we decided to flasback that table to a timestamp before delete happend and of course before shrink too.
    Flashback table <> to timestamp....... ended without any errors messages.
    BUT only a few rows are now in table. Timestamp definitly has been correctly set to a point before delete happend:
    WHAT MISTAKE DID WE MAKE??????
    I NEED not to know how to get those rows back i only want to know if anyone has a clue why flashback didn't work correctly.
    Tanks to all
    Joachim Kreimes

    There are two table Flashback technologies in Oracle:cFlashback to SCN or Timestamp is Flashback Table using Undo. Flashback to before drop uses the Recyclebin.
    The following DDL operations change the structure of a table, so that you cannot subsequently use the TO SCN or TO TIMESTAMP clause to flash the table back to a time preceding the operation: upgrading, moving, or truncating a table; adding a constraint to a table, adding a table to a cluster; modifying or dropping a column; adding, dropping, merging, splitting, coalescing, or truncating a partition or subpartition (with the exception of adding a range partition).

  • My ipad says storage full what do l do after accessing settings

    My ipad says storage almost full what do l do after going to settings?

    Hello  Viv Holt100,
    Thank you for using Apple Support Communities.
    I am glad to help you.
    What to do if your storage is almost full:
    Method 1:
    Go to settings>General>Usage>Show all apps. Now you can see all the apps that hog up your space. To delete apps for there, click the app you want to delete, and click "Delete app"
    Method 2:
    Delete unnecessary photos. These always mud up my space. And I have a lot of useless photos. If you have a lot of photos, do a cleanup and lookmaround and start deleting some. This indeed gives me space, as I only have 16GB and your iPad loses 4 GB automatically. So technically it is 12... Thanks Apple...
    Those are some helpful tips for you to use. Hope I helped!
    Regards,
    Ab

  • SHRINK SPACE - How do you monitor progress?

    Does anyone know how to monitor the progress of a SHRINK SPACE command ?
    Session_Longops view shows nothing for that SID.

    you may customize the columns selected or the filters of the below query and monitor who is doing what, and if necessary you may start event 10046 level 8 trace - http://tonguc.wordpress.com/2006/12/30/introduction-to-oracle-trace-utulity-and-understanding-the-fundamental-performance-equation/
    SELECT sq.sql_text,
           se.status,
           se.username,
           se.osuser,
           se.terminal,
           se.machine,
           'ALTER SYSTEM KILL SESSION ''' || se.sid || ', ' || se.serial# ||
           ''' IMMEDIATE ;',
           se.sid,
           se.serial#,
           pr.spid,
           se.saddr,
           se.schemaname,
           se.program,
           se.logon_time,
           sq.hash_value,
           sq.address,
           sq.buffer_gets,
           sq.disk_reads,
           sq.executions,
           sq.fetches,
           sq.rows_processed,
           io.block_gets,
           io.consistent_gets,
           io.physical_reads,
           io.block_changes,
           io.consistent_changes,
           se.module,
           se.action,
           se.client_info,
           sw.event,
           sw.p1text,
           sw.p1,
           sw.p2text,
           sw.p2,
           pr.pga_used_mem,
           pr.pga_alloc_mem,
           pr.pga_freeable_mem,
           pr.pga_max_mem,
           'exec dbms_support.start_trace_in_session(' || se.sid || ', ' || se.serial# || ', ' ||
           'waits => TRUE' || ', ' || 'binds => TRUE);',
           'exec dbms_support.stop_trace_in_session(' || se.sid || ', ' || se.serial# || ');'
      FROM v$session se, v$sqlarea sq, v$process pr, v$session_wait sw, v$sess_io io
    WHERE status IN ('ACTIVE', 'KILLED', ' INACTIVE', ' CACHED', ' SNIPED')
       AND TYPE = 'USER'
       AND se.sql_hash_value = sq.hash_value(+)
       AND se.sql_address = sq.address(+)
       AND se.paddr = pr.addr
       AND se.sid = sw.sid
       AND se.sid = io.sid
    ORDER BY sq.sql_text, se.username, se.schemaname, se.osuser, se.program, se.sid

  • I am transfering my stuff from my lap top to my desk top (both Mac). I cannot get my CS4 to open. It gives me a 150:30 error, licencing thing. I have no idea what to do and after hours of searching none of what I found helps. I don't know anything about t

    Sorry didn't know that the first step was just supposed to be "subject".
    So here it is again.
    "I am transfering my stuff from my lap top to my desk top (both Mac). I cannot get my CS4 to open. It gives me a 150:30 error, licencing thing. I have no idea what to do and after hours of searching none of what I found helps. I don't know anything about this stuff so please don't answer with "maybe this willl work, or maybe that."  I need a real answer please and I cannot find a way to actually contact Adobe. I also don't have a disk drive on this Mac. Thanks"
    Also please feel free to e-mail the answer because I hate looking for these answers online. It takes me forever to find this section. Not that I have even even gotten a real answer.
    [email protected]

    Hi Sonia,
    While transferring Adobe from laptop to PC the licensing files got corrupt and the right way to use Adobe Applications is to install first as transferring from a different machine can give you problems.
    You can try steps from this article if that helps otherwise you have to reinstall and manually delete some files , everything is mentioned.
    http://helpx.adobe.com/x-productkb/global/error-licensing-stopped-mac-os.html
    You can download CS4 from here:
    Download CS4 products

  • HT201269 When I try to setup my new iPad air, I go through all the steps for the iCloud sign-in and choosing security questions and what not. But after I hit the agree to the terms and conditions... It says Apple ID could not be created because of a serve

    When I try to setup my new iPad air, I go through all the steps for the iCloud sign-in and choosing security questions and what not. But after I hit the agree to the terms and conditions... It says Apple ID could not be created because of a server error. Have no clue what to do... I've restarted the iPad and get the same message. But my internet works just fine.

    1. Turn router off for 30 seconds and on again
    2. Settings>General>Reset>Reset Network Settings

  • TS1538 What do I do after step 6 in "If the Apple Mobile Device USB Driver is not listed"?

    i'm very confused about step 5, "Verify that the Apple Mobile Device USB Driver is installed" > "If the Apple Mobile Device USB Driver is not listed", what do I do after step 6? I looked for and found the entry that recognizes the device as a camera, "Apple iPhone, now what? I'm trying to resolve an issue. After an iTunes upgrade in July 2012, I have not been able to get my iTunes to recognize any of my devices. I have uninstalled/reinstalled iTunes, all the steps. Now I'm on this one and I don't know what to do after this step 6. I looked and found the entry.... now what??? I am out of room on my phone because everything I buy on iTunes on the computer mysteriously appears on my iPhone 4, and everything I buy on my iPhone mysteriously uploads onto my iTunes the next time I open it. My phone will charge when connected to the computer, and Windows recognizes it and asks how I want to open pictures, etc. But in iTunes it will not show up under Devices. This is getting beyond ridiculous and I have to get some of this music off of my phone!

    Found a possible solution for me.
    While the phone was plugged into my computer and iTunes is CLOSED.
    1. I went to Services in Windows.
    2. I selected Apple Mobile Device and right clicked and selected "Stop".
    3. Then I right-clicked again and selected "Start".
    4. Then I went to Device Manager and right clicked my iPhone with the yellow alert icon and selected "Uninstall".  You will get a warning about uninstalling the device.  Click OK.
    5.  At the top of Device Manager I clicked the Action menu and selected "Scan for Hardware Changes".
    This re-installed the iPhone and everything started working again.

  • How do I find what's using my hard drive space

    My wife has a 14" iBook. How do I find what's using all the hard-drive space? It only has a 40GB hard-drive (it's one of the older G3 models) but there isn't a lot loaded onto the HD. There is only 3GB space left. I've gone through every application and utility and document and every folder (document, movie, etc.) and the largest space-hogging folder is iTunes which uses 15GB because of the music. I can't find any singular folder that uses any sizeable HD space. I recently loaded Tiger so I don't know if Tiger uses the rest of the space or if it's just a combo of all the other applications.

    You could download and use WhatSize to see what may be eating up the space.
    With a 40 GB hard drive, you need to keep at least 6 GB free in order to avoid problems.

Maybe you are looking for

  • How can I download version 10.7 of itunes for my 10.5.8 OS X Macbook?

    I can't transfer music from my Mac OS X Macbook (which has version 10.5.8) to my new iPod touch 5th gen because it requires iTunes 10.7.  But because my computer is 10.5.8 (and can't get any updates for later versions), I don't think I can even downl

  • Use boolean array to perform set operations

    I am currently taking a computer science class that uses Java as the language of choice. I have no prior experience with Java. We have a homework assignment in which we are supposed to use a boolean array to implement set operations. We have to creat

  • Is my iPhone 5 4g ready

    Is my iPhone 5 4g ready

  • News page without using blog theme

    Hi, I would like to add a news page on my iweb site where i can write small texts. I want to display the title and a few lines with a "read more" feature Using the blog theme is not what I want because I don't want people to have access to the archiv

  • Torch 9810 error 80002 after updating App World

    Hey after I updated Blackberry App World to 7.0, it prompted me to update my blackberry I.D, and I recieved error 80002. It said that there wasn't a compatible version of Blackberry I.D. for the newest app world. You would think that if RIM sent me a