Segment shrinking, any influence on performance?

Hi all
I am using 10.2.0.2 64-bit on SLES 10. I am thinking of performing segment shrinking on production database. I did it on the test database and it was time and resource consuming process. Does segment shrinking has any influence on performance apart from gain in disk space? If yes, what?
Thanks for any suggestions.
Groxy

Groxy,
As others have mentioned already, with the defragmentation of the object with the shrink command, there would be surely the increase both in the space as well as in the complete scans of the object. But I would also like to point that doing this in a live system can be degrading the performance as well by marking the cursors in the shared pool invalid. So for this, if you are considering this , better would be to use it with the compact option and than later on doing the complete shrinking.
Just my 2 cents.
Aman....

Similar Messages

  • Segment Shrink Space Compact option in Oracle 10g

    Dear All,
    1. Is it Compulsory to run the Segment Shrinking Jobs advised by Segment Advisor?
    2. Running online will it affect the perfomance
    3. Is this same as table re organization
    Thanks in Advance

    1. NO. As with any "Advisor" it is your discretion and decision as to what action to take and when. I would schedule shrinks / rebuilds / reorgs during/without maintenance/outages. But first, I would evaluate the advice. In many cases, it wouldn't be worth the effort to rebuild/shrink. Also, you have to consider that the table/index may/will grow again.
    I do a shrink/rebuild only as part of any archival job which deletes a significant portion of the data. Not otherwise.
    2. Running it online will impact performance. Furthermore, the SHRINK actually generates a lot of Undo (as it runs as if it is normal DML) and, consequently, Redo and ArchiveLog.
    3. It is different. However, the "it" also depends on what you mean to be a "table reorganization". A reorganization that is done with an ALTER TABLE MOVE (and ALTER INDEX REBUILD) is quite a different operation from a SHRINK. A DBMS_REDEFINITION is also a very different operation.

  • I have a domain with 2 DCs (both virtual machines) in different Hyper-V Hosts. Dose this case make any influence on the time sync?

    As title,
    I have a domain with 2 DCs (both virtual machines) in 2 different Hyper-V Hosts, and one of the perform as a PDC Emulator.
    Dose this case make any influence on the time sync?
    i.e. Both of the VMs sync with Hyper-V host, instead the other host should sync with the PDC Emulator?
    I run w32tm command and get the following result:
    C:\Users\Administrator.DOMAIN8>w32tm /query /computer:dc8.domain8.local /source
    VM IC Time Synchronization Provider
    C:\Users\Administrator.DOMAIN8>w32tm /query /computer:hpvzh05.domain8.local /source
    VM IC Time Synchronization Provider
    HPVZH05.domain8.local works as PDC server.
    How can I make DC8 sync with HPVZH05?

    Awesome!
    It looks like your PDC is successfully pulling time from an external source.  DC8 is not longer pulling from Hyper-V so that is good.
    When you set a client to pull from a source ( and in this case DC8 is pulling from NT5DS, which tells it to pull from the PDC), and it CAN'T pull from that source, it will default to Local CMOS Clock.  This is likely an easy fix.
    First, check connectivity:
    - Method one- Download Portqry and run this command: portqry -n HPVZH05 -p both -e 123 and see if the results say listening, or
    - Method two- Run this command from DC8: w32tm /stripchart /computer:HPVZH05
    If you get any kind of error using method two, it's a connectivity issue.  (Maybe you have a firewall that's blocking access?)
    The other cause of this, and probably more likely in your case, is that your PDC isn't properly advertising as a reliable time source, so DC8 isn't 'allowed' to pull from it.
    Try running this command on your PDC: w32tm /config /reliable:yes
    Then go restart time on your PDC, THEN DC8 again.  (net stop w32time & net start w32time)
    Here's an article you can reference: http://technet.microsoft.com/en-us/library/cc794937(v=WS.10).aspx
    - As always, if you find my posts to be helpful, please mark it appropriately.  Thank you :)
    Chris Ream

  • Is there any advantage in performing a clean install?

    I'm curious... My 80GB internal hard drive is nearly full so I will be upgrading to a 250GB.
    Is there any advantage in performing a clean install of Tiger on the new HDD and then copying across files etc from the old one using migration tool? (the idea being it will cleanse any old files, code from the numerous OS upgrades as it originally had panther on)
    Or will the system be just as fast by using the disk utility to copy the contents (OSX and all) of the 80 GB across to the new 250GB and then set that as the boot drive?

    If you are asking if there is an advantage to doing an erase and install, then yes, you'll be able to ascertain any of the issues you've been having with Apple software are hardware related issues if before the migration assistant you have trouble with any Apple applications. Cloning one drive to another, you'll find yourself with whatever corrupted fonts, cache, preferences files you had before. I would though make a backup of your data to a second drive before attempting the move, simply because it is wise to have at least two copies of your data at all times.

  • Segment shrinking and UNDO tablespace

    When i issued
    alter table <table_name> shrink space cascade;
    I got the error 'Unable to extend UNDO ...by 8' . Does Segment shrinking consume space from UNDO tablespace?
    Message was edited by:
    for_good_reason

    As Jonathan said, shrinking segment generates redo and undo data.
    But, this phoenomenon of undo shortage is not normal case.
    Shrinking segment might invole continous DML(deleting and re-inserting),
    but it's transaction seems to be committed internally at regular intervals.
    For this reason, shrinking operation should not hold undo area that long.
    But have no knowledge on exact behavior of shrink operation.
    Someone else will shed a light.
    How big your table and indexes?
    Some cases are reorted that shrinkage on big segment generates really large amount of undo data.
    This might be related with your problem. But not sure.
    Visit metalink note# 3888229.

  • Which influence Java performance most -- processor speed, memory or cache

    Which influence Java performance under Windows most -- processor speed, memory or cache?
    I realize all three are importance. Adding memory is usually simple. But would you choose a slower P4 w/cache or a faster Celeron w/o cache. How much does 8KB of cache vs 32KB of cache effect Java.
    Thanks all!

    This is not strictly a Java issue - you are asking about the the realtive benefits to CPU bound programs of various CPU tradeoffs. There is no one right answer.
    More cache (level one and level two) is great, but the 'right' amount depends on the difference in memory access and bandwidth versus the ability of the CPU to digest data and code. If all things are equal (CPU speed, memory bandwidth, processor architecture), then more level one and level two cache is better. But I think there is not a great chance that more cache would make up for significant (>20%) difference in CPU clock rate (again with processor architecture and memory bandwidth held constant).
    Clock rates should not be used to compare processors of different designs. A 900MHz PA87xx is a lot faster (at some things) than a 1.6GHz P4. An AMD Athlon running at 1.5GHz gives a 2.0GHz P4 a good run for its money.
    The best bet would be to look for comparisions made against CPU bound benchmarks. www.spec.org's specJVM98 and specJBB2000 would be a great tool, but there isn't much existing data to compare. You could of course license and run the benchmarks yourself. You can also look to other benchmarks (look at the comparisons at www.tomshardware.com, etc.) to compare, there are plenty to choose from.

  • Why Segment shrink is not supported for tables with function-based indexes

    As we all know , Segment shrink is not supported for tables with function-based indexes.
    But i'm very confused .
    Why Segment shrink is not supported for tables with function-based indexes ?? what's its essential?

    Creating a function based index creates a hidden virtual column (you'll see it if you query user_tab_cols) and once you index a virtual column you can no longer shrink the table:orcl> create table t1(c1 number,c2 as (c1 * 2)) segment creation immediate;
    Table created.
    orcl> alter table t1 enable row movement;
    Table altered.
    orcl>
    orcl> alter table t1 shrink space;
    Table altered.
    orcl> create index i2 on t1(c2);
    Index created.
    orcl> alter table t1 shrink space;
    alter table t1 shrink space
    ERROR at line 1:
    ORA-10631: SHRINK clause should not be specified for this object
    orcl>so the issue is not with function based indexes per se, it is a level beneath that. Perhaps because the virtual column has no physical existance, when the row is moved there is no reason for Oracle to realize that an index needs updating? I haven't attempted to reverse engineer this, I would be interested to know if anyone else has.

  • Can archive log backup influence database performance?

    Hi,
    can archive log backup generally influence the database performance? I mean: users can view their query to go slowly during backup of archived redolog?

    Are you asking about backing up the archived redo logs via rman or directly to tape or the actual archive process where Oracle backs the online redo to disk?
    -- comments on archive process
    Normally the redo log archiving process should have no noticable effect on database performance. About the only way for the process to have a noticable performance impact while it is running is if you store all your online redo logs on the same physical disk. You would also want the backup to be on a different physical disk.
    Check your alert log to make sure you do not have error messages related to being unable to switch redo logs and checkpoint incomplete messages. These would be an indication that your online redo logs are defined too small and you are trying to cycle around before Oracle has finished archiving the older logs.
    -- comments on archived redo log backup
    Archived reodo logs should not be on the same disk as the database so using rman or an OS task to back these files up should not impact Oracle unless you server is itself near capacity and any additional task effects the server.
    HTH -- Mark D Powell --

  • Is there any API for performing Assembly Completion with LPN

    Hi,
    Is there any API available for performing Assembly Completion with LPN..??
    Thanks and Regards,
    Ramnish.

    We had looked into doing something similar, and this post is the closest we found.
    https://community.qualys.com/thread/11816
    Basically you will need a middle-man between Qualys and ConfigMgr to house the data. This may be a new database, or a whole seperate platform. I expect this could easily be done with SQL and SSRS.
    Also note, database edits to the ConfigMgr database are
    not supported  by Microsoft, I would recommend using a central system to pull data from Qualys and ConfigMgr without modifying either.
    Daniel Ratliff | http://www.PotentEngineer.com

  • Segment Shrinking script erroring out due to Function based indexes, lobs,.

    DB version:10gR2
    Following is a script i made for freeing up(SHRINK ing and resetting HWM) the space in Tables and its indexes. Due to the existence of LOB Segments and Tables with Function based indexes, this script was erroring out. So i was wondering if there is a way to find out the segments which are eligible/not eligible for Shrinking so that i could make necessary changes to the below script.
    create or replace procedure freeup_space
    is
    type v_segment_type is table of varchar2(30) index by binary_integer;
    v_segment v_segment_type;
    begin
    select segment_name bulk collect into v_segment
                   from user_segments
                   where segment_type in ('TABLE')
                     and segment_name not like 'BIN%';
    for i in v_segment.first..v_segment.last loop
    execute immediate 'alter table ' || v_segment(i) ||' enable row movement';
    dbms_output.put_line('Table '||v_segment(i)||'''s row movement enabled');
    execute immediate 'alter table ' || v_segment(i) ||' shrink space cascade';
    execute immediate 'alter table ' || v_segment(i) ||' deallocate unused';
    end loop;
    end;
    /

    You can use USER_LOBS views to look for LOB columns in the segments and ALL_INDEXES.INDEX_TYPE tells if the index is function based index or not.
    Message was edited by:
    Pierre Forstmann

  • Any tutorial for performing manual CRUD beside ADF faces and ADF BC ?

    Hi
    Thank you for reading my post
    is there any tutorial around which help me learn how to perform manual CRUD beside ADF BC ?
    in my application i have some complex DB operation which i need to perform them manually.
    an example is my login page :
    user enter user name and password and i should check it with database and after i checked that its correct then i can set session attributes that user is loged in.
    now the question is : how i perform that check for user name and password , does ADF-BC helps or i should get the connection and create an statement ...
    thanks

    Hi!
    You can do that with bind variables. Perhaps this thread will help you:
    Re: SQL statement problem!!
    Claus

  • Could a change in OS Service Pack in any way effect performance.

    I've got a strange issue and it seems to involve only AE CS5 and no other programs, I can re-install AE and try again, but as an academic that does not help me in any way, I need to know about such issues should they arise for a colleague or a student as well.
    Recently on my home system, I installed a new GPU, the GTX 560, I decided to do the whole shabang and get a 2nd hard drive for data storage and reinstall the OS from scratch.
    The result is an increased in performance in every single program, from the Autodesk Suite to games, everything is at least 40% better than before.
    I'm can't figure out what the issue is with AE, it's the only one which is producing slower results. Now my 6GB of RAM is probably the bare minimum for AE to work at a decent rate, but to the extend where I can get even 2 frames together for a RAM preview.
    More than resolving the problem I'd like to know what it is.
    So my question is, has anyone else suffered in performance if they upgraded their Service Pack after installing AE.

    Did you install the exact same graphics driver with the exact same settings? That would be the most likely cause, even if it seems illogical. The newest one must not necessarily be the one that works best with AE even if you see improvements in other apps....
    Mylenium

  • Segment Shrink

    Does anyone know if using the alter table SHRINK SPACE COMPACT will have any negative impact to the indexes? From what I have read, this will cause Oracle to re-assign the rowids to the table.

    A couple of points:
    1. The name of this forum is "Advanced Compression" and your question has nothing to do with the topic.
    2. You didn't post a version number (3 decimal places).
    3. You didn't post any DDL for the table, the indexes, or the shrink statement.
    4. You didn't define what you mean by "negative impact" in terms of whatever your topic actually is.
    I would suggest you repost this in the correct group "General Database" and when you do so include sufficient information that someone can help you.

  • When I open Facebook on either iPhone or iPad within 30 seconds it shrinks any suggestions

    When I open Facebook on either my iPhone or iPad within 30 seconds or so the app shrinks into the background but still on any suggestions ?

    http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf

  • Is there any Benefit in Performance of RAC to Pure VCP Environment.

    We are using VCP suite for Planning Purpose. We are using VCP environment (12.1.3) in Decentralized structure connecting to 3 differect source environment ( consisting 11i and R12). As per the Oracle Note {RAC Configuration Setup For Running MRP Planning, APS Planning, and Data Collection Processes [ID 279156]} we have implemented RAC in our test environment to get better performance.
    But after doing all the setups and concurrent programs assignment to different nodes, we are seeing huge performance issue. The Complete Collection which takes generally on an avg 180 mins in Production, is taking more than 6 hours to complete in RAC.
    So I would like to get suggestion from this forum, if anyone has implemented RAC in pure VCP (decentralized) environment ? Will there be any improvement if we make our VCP Instance in RAC ?
    any suggestion or feedback is appreciated.
    Regards,
    Arup

    What is your database version? OS?
    We are using VCP suite for Planning Purpose. We are using VCP environment (12.1.3) in Decentralized structure connecting to 3 differect source environment ( consisting 11i and R12). As per the Oracle Note {RAC Configuration Setup For Running MRP Planning, APS Planning, and Data Collection Processes [ID 279156]} we have implemented RAC in our test environment to get better performance.
    But after doing all the setups and concurrent programs assignment to different nodes, we are seeing huge performance issue. The Complete Collection which takes generally on an avg 180 mins in Production, is taking more than 6 hours to complete in RAC.
    So I would like to get suggestion from this forum, if anyone has implemented RAC in pure VCP (decentralized) environment ? Will there be any improvement if we make our VCP Instance in RAC ?Do you PCP enabled? Can you reproduce the issue when you stop the CM?
    Have you reviewed these docs?
    Value Chain Planning - VCP - Implementation Notes & White Papers [ID 280052.1]
    Concurrent Processing - How To Ensure Load Balancing Of Concurrent Manager Processes In PCP-RAC Configuration [ID 762024.1]
    How to Setup and Run Data Collections [ID 145419.1]
    12.x - Latest Patches and Installation Requirements for Value Chain Planning (aka APS Advanced Planning & Scheduling) [ID 746824.1]
    APSCHECK.sql Provides Information Needed for Diagnosing VCP and GOP Applications Issues [ID 246150.1]
    Thanks,
    Hussein

Maybe you are looking for

  • Attendant Console 6.1.2 (yeah, I know it is unsupported)

    So knowing full well that this is an unsupported software, I am reaching out anyway.  I find myself in a pickle at my new company.  We are still running Call Manager 6.1.5.11900-13 (don't ask) and we have many users using Attendant Console. Last week

  • How do I import all my photos from my iPhone into iPhoto?

    Following the directions for importing, iPhoto only shows 131 photos for importing which seems to be a random selection from my 21 different files containing almost 1100 photos.  I want to import all my photos and would prefer they import in the labe

  • Errors found retrieving data after SAP Patching

    Hi Team, I received the error "errors found retrieving data" when I try to click the 'Refresh' button to display data for my reports. Refer to the attached screen. I'm receiving it from trying to refresh data in 'Reports' and 'Input schedule' templat

  • Error #2046: The loaded file did not have a valid signature in flex 4

    As part of our CI build, the ant script that builds the client side (flex 4) projects also runs a set of FlexUnit4 tests on the deployed project. Most of the tests work but a few fail with this error RSL http://local.foo.com/bar/com/blah/components/s

  • Ue_filter in menu is not working pb7 window

    Friends, We have included ue_filter (pfc) option in a menu in all the windows. I got an issue in one window, that the ue_filter option is not working. when i click the filter icon in the toolbar its not working... i just compared with the working win