Pausing the Shrink Command

Hello ALL,
We have recently purged some of the data on a huge table and right now the unused space is upto 350 GB. We need to reclaim the space.It's a 10 G database. But, since it's a resource intensive operation we have a requirement from the business that it should be stopped at the start of business day and commence it at the EOB.
Do you think we should kill the Shrinking operation at the EOB. does Oracle satrt the Shrinking operation where it stopped from.
P.S. this table has all LOB columns, LONG type columns. so, there is no possibility of expdp/MOVE.
Please throw your valuable inputs.
Thanks,

790658 wrote:
Hello ALL,
We have recently purged some of the data on a huge table and right now the unused space is upto 350 GB. We need to reclaim the space.It's a 10 G database. But, since it's a resource intensive operation we have a requirement from the business that it should be stopped at the start of business day and commence it at the EOB.
Do you think we should kill the Shrinking operation at the EOB. does Oracle satrt the Shrinking operation where it stopped from.
P.S. this table has all LOB columns, LONG type columns. so, there is no possibility of expdp/MOVE.
I thought that the shrink command was executed as a series of fairly small transactions - similar to the "index coalesce" mechanism.
I've just checked on a test I created some time ago, though, and in 11.1.0.6 I found that when the shrink command had to move 5,000,000 rows it ran the entire command as a single large transaction (500MB of undo, 1.1GB of redo).
This makes it look as if you cannot interrupt a shrink command - and if you did then you could have a massive rollback running for ages.
Have you looked at the dbms_redefinition package as an alternative.
Regards
Jonathan Lewis

Similar Messages

  • Pausing the output stream?

    Ahh! Sorry bout that... stupid friend.
    Anyway. I have a question. Is there a way to pause the output in a series of System.out.println commands?
    Like I'm making a game with a friend and its all text based using the java console and... It would be very confusing if all this text popped up at once!
    Something like...
    System.out.println("Hello!")
    //pauses
    System.out.println("Nice to meet you!")
    or perhaps a way to wait for the user to press a key to continue. That would actually be better :3
    I tried searching in the java api but got lost XD. I'm new to java. thanks for reading and helping me if you can.
    Edited by: Xanotros on Aug 2, 2008 11:46 AM

    if you want to wait for user input you can use a method like this to pring to the console:
    String printAndWait(String output) {
         System.out.println(output);
         BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
         try {
              return in.readLine();
         catch (Exception e) {
              return null;
    }you can also try to get the current running thread and make it go to sleep, but i dont think that its a good idea.

  • Could not complete the last command : problem with toast 10

    Hi, I am trying to burn blu ray content with Toast 10 Pro (blu-ray content burned to DVD). I have created the content (Quick Time movie) with FCP 7 (into an MOV file). And then added it to Toast 10. Then I tried to create disk image. It gave me this error:
    could not complete the last command because there is a problem with the source material: Error code - 18771.
    I tried to directly burn DVD also, and also not successful. Anybody has the same error and how to solve it?
    Thanks a lot, and happy new year.

    I posted some more experiences with using TOAST on Roxio forum. I thought I'd share them here.
    1. 98 video clip limit. I have been helping my parents and some friends to produce un-edited videos after their vacations, etc. And I quickly ran into this 98 video clip limit, to the point I had to produce multiple DVDs for them.
    2. Error 18771 issue. This happens if the individual video clips are too long. If I edit the video using FCP or FCE, and produce, say, half an hour of video, put it into a MOV file. Then add it into Toast. It will encounter this issue. So, the way I dealt with it, was to produce shorter video clips. So far it has been working out for me.
    3. Between video clips, I am not sure how to do transition. So far, between clips, there is this annoying pause. I would rather, either it just immediately jump to the next clip. Or, out of my own choice, insert some kind of transition. Not sure how to do that. If fellow toast users can point me in the right direction, that will be certainly appreciate it.
    4. I have not been able to get the Chapter Markers from FCP to effectively show up and be reflected in Toast as it defines the menus and chapters. Again, this may be because of my own lack of knowledge. If somebody can give me the pointer to do it, again, very much obliged.
    Message was edited by: seantshen

  • Gather stats after shrink command

    Hello.
    Running Oracle 11.2 and was preparing to run shrink command on a major table to release 5G of wasted space on a 15G segment.
    I have already done this in our test database and was preparing to do this in production, when one web site I went to said we should run fresh stats after the shrink operation.
    Does this make sense, and does it seem to be necessary?
    It does seem to make sense that the values for number of blocks, number of empty blocks would be different after the shrink operation.
    But I am surprised I did not see this recommendation on any other site except the one site.

    Well, sure... if we want to consider this a DML or DDL operation, but actually, we are not changing or defining new data structure, and we are not manipulating the data (per se).
    But, I'm in agreement that it makes sense to gather fresh stats just based on the difference of blocks and empty blocks which we can assume the optimizer considers when choosing an execution plan.

  • Running shrink command

    I have a process queue running with tables in a Database. I have converted this process queue from MS SQL Server to Oracle, but now I've a question: Sometimes I ran a process to clear obsolete rows using DELETE command, so, I use SHRINK command do reduze database file size. Now, using oracle I will go DELETE rows too and I think that I need use SHRINK command.
    I've found following commands to run after DELETE:
    ALTER TABLE <tablename> DEALLOCATE UNUSED;
    or
    alter table <tablename> enable row movement;
    alter table <tablename> shrink space;
    Is it necessary shrink it?
    What is the best process to reduce file size?
    Regards,
    Jackson

    Oracle != SQL Server.
    If more rows will be added to the table there is zero value in incurring the overhead first of the shrinking and then of the reallocation. Leave it alone.
    Also, there is no relationship in Oracle between specific data files and specific tables. Deleting rows from a table does not make a physical file shrinkable.

  • At a Genius Bar appointment yesterday, we determined that I needed to go to Mountain Lion from Lion.  I purchased Mountain Lion at the Bar, and paused the install so that I could resume from home.  Now I can't find it to resume. Not in Downloads. ?????

    When I upgraded to Lion, my Parallels stopped working and I got a Bootcamp error message.  It had worked fine for the prior year.  I upgraded to Parallels 7.  No luck. At the Genius Bar, the Genius uninstalled Bootcamp.  No luck.  I still get "The Boot Camp partition /dev/diskOs4 used by Hard Drive 1 is missing."
    Another Genius suggested upgrading to Mountain Lion.  While at the Bar, I purchased Mountain Lion and then we paused the install so that I could resume it at home.  Once I got home, I can't find the Mountain Lion installer to resume.  It's not in the Downloads file.  Any clue?
    My business programs all run on Windows, so I have to get it operating.  The Genius Bar isn't much help.  Does anyone know how to get Mountain Lion installed?  How to get Parallels working?

    The "Geniuses" (and I use that word in sarcasm) at the Bar are lying to you. Upgrading from Lion to Mt Lion will not fix whatever problems you are having. In fact it will most likely make them worse.
    If you want to try installing Mt Lion to fix the problems you are having you will need to open the Mac App Store link in your Dock, Login to your Apple ID account for the MAS and go to your Purchases area. Mt Lion should be in there and you will be able to do a proper download. Once you either set your Mac into sleep or shut down and then left the internet connection at the Bar all record of that download was lost. So you will need to restart it again from the beginning, like described above.
    Good Luck

  • The problem I have since I upgraded to Mavericks version 10.9.1 The problem appears only with Mail not with other programs, not even with my browser. When I try to zoom the text of an e-mail I received or sent , I can no longer use the keys Command   to e

    the problem I have since I upgraded to Mavericks version 10.9.1
    The problem appears only with Mail not with other programs, not even with my browser.
    When I try to zoom the text of an e-mail I received or sent , I can no longer use the keys Command + to enlarge the text, although I can reduce it with Command -.
    As I have a problem with my eyes, This is a serious matter for me.
    When I write an e-mail, if I select text and press Command +, it just displaces the text to the right.
    Now, my husband has a USB keyboard. If he connects it to my computer, his regular Command + does not work either, but  he uses the extended keyboard, then it works. Unfortunately, he needs it for a musical application which does not work with a wireless keyboard.

    Firefox 3.6.4 and 3.6.6 use a process called, "plugin-container.exe" which was using up most of my CPU when I opened up multiple tabs that contained Adobe Flash files, and caused Firefox to lock up.
    My solution was to use Firefox 3.5.10 which you can get from the Mozilla website at [http://www.mozilla.com/en-US/firefox/all-older.html]
    I am using Adobe Flash 10.1.53.64 without any problem in this version of Firefox. Check the release notes, I believe it contains all the latest security fixes in "Firefox 3.6.4".
    Hopefully, they will fix Firefox 3.6 in the next version (e.g. Firefox 3.6.7), until then you should probably use "Firefox 3.5.10".

  • How do I use the a command from a .dll with labview?

    I want to use for example the M8784Open() command to control an M8784
    photon counter.  I know how to place a call library function node
    but don't know where to go there. The user manual for the photon
    counter has the following explanation of the M8784Open() command but I
    don't know how to use their advice in labview!
    7-3-1 M8784Open( )
    Declaration HANDLE M8784Open( BYTE Board );
    Parameter
    BYTE Board
    Specify the board to be used: M8784_MASTER or M8784_SLAVE. Specify both
    when making 2-channel measurements simultaneously. It is not possible
    to specify M8784_SLAVE only.
    Return value A handle for the M8784 is returned when the function has succeeded..
    INVALID_HANDLE_VALUE is returned if the function has failed..
    Explanation Calls a handle to allow the M8784API.dll to use the M8784.sys driver.
    Hereafter, specify this API’s return value (handle) when using other APIs.
    When quitting M8784 operation, call up M8784Close( ) to cancel the driver.

    You need to find out the equivalent number of the parameter. Somewhere in your documentation, or inside a file (for example, a header .h file in C/C++) you will find the definitions of each parameter.
    For example, M8784_MASTER may have the value 1 and M8784_SLAVE the value of 2. You already know that it is a BYTE, so it will be a number of type U8 in LabVIEW. You need to find the exact values.
    Probably, by value "A" it means the hex number "A", which is 10 in decimal. You need to find that in your documentation.
    You also need to find the type HANDLE. It can be a BYTE, etc. Once you know that, find the value of INVALID_HANDLE_VALUE, so you can test for the error.
    Most of this information can be found in the document Using External Code in LabVIEW. Check your help file, or check this link.
    Regards;
    Enrique
    Message Edited by Enrique on 09-29-2005 10:36 AM
    www.vartortech.com

  • Custom SharePoint 2010 designer page throws "The data source control failed to execute the insert command" exception while adding the new item after the August 13, 2013 CU has installed

    We have the SharePoint Server 2010 with SP1 environment on which the custom SP2010 designer pages were working as expected before the
    August 13, 2013 CU has installed. But, getting the below exception while trying to add the new item after the CU has installed.
    Error while executing web part: System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.SharePoint.WebControls.SPDataSourceView.ExecuteInsert(IDictionary values)     at
    System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
    06/19/2014 16:49:37.65  w3wp.exe (0x1240)                        0x1300 SharePoint Foundation        
     Runtime                        tkau Unexpected Microsoft.SharePoint.WebPartPages.DataFormWebPartException: The data source control
    failed to execute the insert command. 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc    at Microsoft.SharePoint.WebPartPages.DataFormWebPart.InsertCallback(Int32 affectedRecords, Exception ex)     at System.Web.UI.DataSourceView.Insert(IDictionary
    values, DataSourceViewOperationCallback callback)     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.FlatCommit()     at Microsoft.SharePoint.WebPartPages.DataFormWebPart.HandleOnSave(Object sender, EventArgs e)    
    at Microsoft.SharePoint.WebPartPages.DataFormWebPart.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean
    inclu... 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
    06/19/2014 16:49:37.65* w3wp.exe (0x1240)                        0x1300 SharePoint Foundation        
     Runtime                        tkau Unexpected ...deStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 3b64c3a0-48f3-4d4a-af54-d0a2fc4553cc
    I have tried changing the "DataSourceMode" as below, now the insert command is working, but update command is not working.
    <SharePoint:SPDataSource runat="server" DataSourceMode="ListItem" />
    Also, the lookup dropdown fields are displaying the value as "<a href="Daughterhttp://cpsp10/sites/Employees/_layouts/listform.aspx?PageType=4&ListId={8F62F444-FB6A-4F03-9522-C4696B45DCD1}&ID=10&RootFolder=*">Daughter</a>"
    instead of only "Daughter".
    Please provide the solution to get rid of this issue.
    Thanks
    Ramasubbu

    Try below:
    http://social.technet.microsoft.com/Forums/en-US/ae910269-3a0c-4506-844b-e8bc89d95b71/data-source-control-failed-to-execute-the-insert-command
    http://blog.jussipalo.com/2012/01/sharepoint-2010-data-source-control.html
    While there can be many causes for this generic error message, in my case the first parameter or ddwrt:DataBind function inside the SharePoint:FormFields element was
    'i' and I was working with an Edit Form. Changing it to
    'u' as it was with every other FormField fixed the issue.
    <SharePoint:FormField runat="server" id="ff1{$Pos}" ControlMode="Edit" FieldName="Esittaja" __designer:bind="{ddwrt:DataBind('u',concat('ff1',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@Esittaja')}"
    />
    Explanation:
    DataBind operation type parameters (the first parameter) are listed below:
    'i' stands for INSERT,
    'u' stands for UPDATE,
    'd' stands for DELETE.
    http://webcache.googleusercontent.com/search?q=cache:d9HHY4I7omgJ:thearkfloats.blogspot.com/2014/03/sharepoint-2010-data-source-control.html+&cd=4&hl=en&ct=clnk&gl=in
    If this helped you resolve your issue, please mark it Answered

  • Report with two Command is empty if one of the two commands returns no data

    Hi all,
    I have a report with two Commands not linked together.
    If ONLY one of the two Commands returns no data, the full report is empty (although the other Command returns data).
    I'm using Crystal Report 2008 and the CRJ 12.2.205
    Have an idea?

    Hi Ted,
    how can I solve the problem, please? It is important.
    If I can help yourself, the problem is appeared in many reports since I updated the library (the old library version 11.8.4.1094 works fine with all). I'm waiting for your answer, please.
    Thank you very much.

  • How to make the print command wait until form is rendered.

    This is an ongoing issue that so far I haven't been able to figure out how to fix, so I'm hoping that someone will have a good idea or work around. I'm working in LiveCycle Designer ES v8. using JavaScript.
    I have to include a feature that allows the user the choice to print out a dynamic form to fill out by hand. So I've created a button that asks if this is what they want to do, if they answer "Yes", then several things are scripted to happen. All data is reset, some subforms and pages are made visible, while other subforms are hidden, and text fields are expanded. This causes the form to expand from one page to 15 pages. Then it prints using this command:
              xfa.host.print(1,   
    "0", (xfa.host.numPages -1).toString(), 0, 1, 0, 0, 0);
    The problem is that when the print dialogue box appears, the Print Range is always set to less than the total number of pages. It looks like that the print commands fires before the form has completed rendering. This isn't a big deal since the user can click to set the Print Range to "All" which will print all 15 pages. The problem is that most people don't read the dialogue box. They click "okay" and end up with their form cut off.  Then I get phone calls that my form doesn't work.
    Is there anyway to delay the print command until everything has finished rendering? Or set the Print Range to always go to "All"?
    Thanks in advance for your help with this.

    It sounds like you'd be fine if you just separated the print function from your "Yes" button. It will require a 2nd button click from the user but that would be the only inconvenience.

  • The Print command takes ages to bring up the print window

    When I use the print command, I get the spinning disk for about 5-7 seconds before the expected print window displays. This has been happening for the last month or so, but don't ask me what I did to make this happen I update and download applications all the time. Any help will be appreciated. If it is of any relevance, my list of printers has 4-5 of them but this was always the case and in the past the print window was coming up fast.

    A couple of ideas.
    Have a look for HP preference files in the system library under 'preferences' and delete them.
    Double check your driver is the right one for your OS and machine.
    Reinstall the software that came with your printer. NB: Install all the software that came with your printer. It's easy enough to remove the garbage apps afterwards.
    Give these a try and post back.

  • In Contacts version 8, how can I print ALL information in each individual card? When I select the print command the only thing printed is the name and address. I need phone number(s) and all other information in the cards.

    In Contacts version 8, how can I print ALL information in each individual card? When I select the print command the only thing printed is the name and address. I need phone number(s) and all other information in the cards. We enter various pieces of data, other than the standard name address & phone numbers and we print all information on each card so it fits in a 5x7 inch loose binder. We have used InTouch software for many years and it has served us extremely welll, however, the publisher (The Prairie Group) has not, and apparently has no plans to update their software to be compatible with any Mac OSX OS beyond 10.6. Any help will be appreciated!

    You can select what you want included in a list format. In the Print command from Contacts, click the Show Details button. Then in the Style pulldown menu select "Lists" and there you'll be able to select what you want included. You can also select what you wish included if you select the Pocket Address Book style.
    If neither of those options will work for you, then you will need to look to third-party software. Here's one possibility that seems to get good reviews:
    https://www.macupdate.com/app/mac/15485/labels-&-addresses
    I haven't done more than try it to make sure that it works with OS X 10.9's Contacts, which it does, but you can download their demo and try it yourself.
    Regards.

  • I have a Windows 8.1 machine.  I used a projecteor a while back in a Power Point presentation.  Now my menus for Adobe are very small and hard to read.  The print command is so compressed that I cannot read or use it.  How do I fix this problem?

    I used a projecteor a while back in a Power Point presentation.  Now my menus for Adobe are very small and hard to read.  The print command is so compressed that I cannot read or use it.  How do I fix this problem?

    There is no application called "Adobe" - you are either working with Adobe Acrobat or the free Adobe Reader. Open up the preferences for the application (Edit>Preferences), then go to the "General" category and modify the settings for "Scale for screen resolution". You will have to restart the application after you do that. Does that fix your problems?

  • How to execute stored procedure in the SQL Commands page

    i'm oracle express edition newbie :) i have this stored procedure. it not belong to a package.
    create or replace procedure "LIST_MEMBERS"
    ("MEMBER_CUR" OUT SYS_REFCURSOR)
    is
    begin
    OPEN MEMBER_CUR FOR
    SELECT * FROM members;
    end;
    now, in the SQL Commands page, how to run the stored procedure and return the records. i do this:
    begin
    execute list_members();
    end;
    but i'm getting some errors. just need some immediate help :) thanks!!!

    Example of using a ref cursor:
    SQL> ed
    Wrote file afiedt.buf
      1  create or replace procedure open_cur(c IN OUT SYS_REFCURSOR) is
      2  begin
      3    open c for 'select rownum rn from dual connect by rownum <= 10';
      4* end;
    SQL> /
    Procedure created.
    SQL> ed
    Wrote file afiedt.buf
      1  declare
      2    c     SYS_REFCURSOR;
      3    v_val NUMBER;
      4  begin
      5    open_cur(c);
      6    loop
      7      fetch c INTO v_val;
      8      exit WHEN c%NOTFOUND;
      9      dbms_output.put_line(v_val);
    10    end loop;
    11    close c;
    12* end;
    SQL> /
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    PL/SQL procedure successfully completed.
    SQL>

Maybe you are looking for

  • IPhoto garbles image while trying to edit.

    I don't even know if garbles is the right word for what is happening, but everyone I've asked is stumped. This problem apparently affects other applications on my computer, like Aperture and Preview, but I first noticed it in iPhoto. Whenever I attem

  • Creating keystore file programmatically

    Hi, Wondering if you will be able to help me. I would like to find out how you can create a keystore file programmatically without using the keytool command. What I'm trying to do is generate KeyPairs for the SSL connections. After the keys are signe

  • HT5246 I installed the Flashback removal tool - now how do I run it?

    I downloaded and installed the Flashback removal tool, but I have no idea where it was installed to or how I should run it. Any suggestions?

  • Dynamically creating reports with an xml file and a dataset??

    Post Author: Xaisoft CA Forum: .NET I have an xml file I created called ReportFields.xml which looks like this: <?xml version="1.0" encoding="utf-8" ?> <ReportFields> <AccountNumber></AccountNumber <FirstName></FirstName> <LastName></LastName> </Repo

  • Charging cable burned two times

    I bought an iPhone 6 January this year. But was broken three times. The first one did not turn on the phone during the 8.2 os update. And was replaced in March. The second, my charging cable connector was burned. i think the phone caused it. but Sout