REORG table does not completely

Hello

I'm trying to re - org 2 tables but not able to claim the entire space. Please check the details below and tell me why I'm not able to get the required space full after re - org.

Before re - org result


OWNER Table-name Tablespace_name ACTUAL_MB OPTIMAL_MB CLAIMABLE_MB

YBWETL GOODS_RECEIPTS YBWETLDAT 1573 1218 * 355 *.
YBWETL INVOICE_RECEIVED YBWETLDAT 1408 1162 * 246 *.

After re - org result

OWNER Table-name Tablespace_name ACTUAL_MB OPTIMAL_MB CLAIMABLE_MB

YBWETL GOODS_RECEIPTS YBWETLDAT 1453 1218 * 235 *.
YBWETL INVOICE_RECEIVED YBWETLDAT 1383 1174 * 209 *.

Request used:
----------------
Select t.table_name, t.owner, s.tablespace_name,
Round(s.bytes/1024/1024) actual_MB,.
Round ((t.num_rows+1) * t.avg_row_len/1024/1024) optimal_MB,.
Round(s.bytes/1024/1024)-
Round ((t.num_rows+1) * t.avg_row_len/1024/1024) CLAIMABLE_MB
from dba_tables t, s dba_segments
where t.owner = s.owner and s.owner = '& owner_name'
and t.table_name = s.segment_name
(and round(s.bytes/1024/1024) - round ((t.num_rows+1) * t.avg_row_len/1024/1024) > 50
CLAIMABLE_MB desc order

Order of re - org:
----------------
ALTER TABLE YBWETL. GOODS_RECEIPTS SHRINK SPACE;
ALTER TABLE YBWETL. INVOICE_RECEIVED SHRINK SPACE;

Order ussed to collect statistics:
--------------------------------
exec dbms_stats.gather_table_stats ('YBWETL', 'GOODS_RECEIPTS', estimate_percent = > 100, granularity = > 'ALL', level = > 4);
exec dbms_stats.gather_table_stats ('YBWETL', 'INVOICE_RECEIVED', estimate_percent = > 100, granularity = > 'ALL', level = > 4);

Published by: 988104 on March 15, 2013 04:40

Published by: 988104 on March 15, 2013 04:47

Published by: 988104 on March 15, 2013 04:49

Published by: 988104 on March 15, 2013 04:50

Your formulas of "Optimal" and "Due" do NOT take into account
(a) PCTFREE
(b) general expenses fixed in each block
(c) the inputs ITL
(d) overhead of the chaining line

Normally, I use an adjustment factor of anywhere from 10 to 20%. So my BEST would be 10 to 20% lower than your BEST.

In addition, these calculations are not justification for rebuild / shrink a table if the table will 'grow up' again with the new pads and large updates.

Hemant K Collette

Tags: Database

Similar Questions

  • When playing a certain game in facebook, the box that opens with friends, the names does not completely open, cannot click on send down

    When I play fish world in FB and want to send gifts, the drop-down list with the names of my friends does not completely open, so I see not the SEND button at the bottom. It works fine if I use Chrome, but I have the latest version of Firefox and it does not work.

    Here is a picture of what looks like the box. Not able to scroll down.

  • I bought the new ipad and I run the install. I put passcod and it is locked. not affecting does not complete

    I bought the new iPad and I run the install. I put the code to access and it is locked. not affecting does not complete

    What should I do

    What do you mean it's locked? You have forgotten the password? If this is what happened, you have to connect to iTunes and restore it using the recovery mode.

    If you have forgotten the password for your iPhone, iPad or iPod touch, or your device is disabled - Apple supports

  • I've updated my macbookpro (2010) snow leopard at elcapitan but when I restart it does not complete the installation then is no longer able to use it. Help?

    I've updated my macbookpro (2010) snow leopard at elcapitan but when I restart it does not complete the installation then is no longer able to use it.

    I tried the following:

    1 start with the R command and using disk utility that did say he had problems but then appear all ok after completing.

    2 tried the Verbose mode and did not work

    3. I tried command mode S did not.

    4. tried to zap the pram was not working.

    5 a couple other things that I had read, but nothing helped.

    It starts up and the line begins to show the computer made his 'thing', but gets stuck about 3/4 quarters of and goes no further. Would appreciate any suggestions.

    PS: also tried boot from the original disks as well, but no luck.

    You said "PS: also starting from the original disks tried both but no luck."

    Exactly what happened when you tried?

    Have you tried formatting the HD?

    Have you started the installation of SL?

  • Recovery CD does not completely load.

    I just replaced the hard drive and the recovery CD does not completely load. After having ejected the second CD, the file loading process stops at 12%. There is no error message and I welcomed as much as 5 hours for the load file to complete, but it remains at 12% after the first 30 minutes. HP Pavilion dv7-4165dx, Windows 7

    Well - here I answer to my own problem in case someone else has the same problem.  The second disk files recovery finally finished loading after 20 hours of waiting!  I spoke to two different technicians to support HP on the phone and neither one of them told me that it could take a long time to load the files!  One of them had me arrested and again after about 40 minutes of waiting.  I found it totally by accident after having frustrated and leaving it just stay there all night. Amazing!  The rest of the restore procedure went well after that - I think.  I'm always load all other software, files and updates, 2 days later.  The hard drive on this dog only lasted a year.

  • Strange behavior with Report Generation Toolkit. Table does not table.

    We use a Word 2003 (.doc) document as a template for a summary of the report.  It works fine on the development PC.  It fills the fields in the document and fills the chart correctly, as shown in the picture below.

    However, he cannot even on another station.  Although the 2D table is identical and so is the software to investigate the matter, the table does not get filled correctly.  I studied using Word 2010 (.docx) as a model, with the same results.

    I was not able to understand what is different between stations 2 and why it does not work on the 2nd station.  I googled similar questions on the Web site of NOR and was only this article in the knowledge base concerning the new lines in the cell, which is not my case.

    That's what I have on the 2nd machine:

    The table that is sent to the table contains the appropriate data :

    I just found out this is a known bug, which obviously has not yet been resolved (finally... at least until LV2012SP1).

    See these threads:

    http://forums.NI.com/T5/LabVIEW/problem-with-append-table-and-Word-2010/TD-p/1268246

    and

    http://forums.NI.com/T5/LabVIEW/report-generation-MS-Word-table-bug/m-p/1605170

    I'll try the workarounds suggested and report back...

  • Windows backup does not complete

    Same as above

    every other day I get a msg on my windows backup does not complete. What's wrong? I have inserted SEVERAL CD and it never seems to have solved! What should I do?

    Hello
    • What type of files are you trying to backup?
    • What version of the Windows operating system do you use?
    • You receive an error code?
     
    Do not include the libraries while safeguarding and then check what is happening.
     
    Here are some articles that you can consider moving by before starting the backup.
     
    Back up your files
    http://Windows.Microsoft.com/en-us/Windows7/back-up-your-files
     
    Back up and restore: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows7/back-up-and-restore-frequently-asked-questions
     
    Back up your programs, files and system settings
    http://Windows.Microsoft.com/en-us/Windows7/back-up-your-programs-system-settings-and-files
     
    Should what backup settings I use to maximize my disk space?
    http://Windows.Microsoft.com/en-us/Windows7/what-backup-settings-should-I-use-to-maximize-my-disk-space
     
     
    Post back with the State for additional troubleshooting steps.
  • My Vista system trying to download the updates, and it does not complete the download. It is up to "Windowsupdate_00000646" and "windowsupdate_dt000" How do I clear this code to receive these updates?

    My Vista system trying to download the updates, and it does not complete the download. It is up to "Windowsupdate_00000646" and "windowsupdate_dt000" How do I clear this code to receive these updates?

    They are only updated office or all updates?

    For Office updates, usually to pick up the item at the: http://www.microsoft.com/downloads/en/default.aspx

    then manually download and install the same.

    If all updates, perhaps consider the following general tips-

    Option: File of Windows Update agent wups2.dll is incorrectly registered and the registry associated with the Wups2.dll file files are missing.

    Method 1: Save the Windows Update files

    1. Click Start and type notepad in the box start the search.
    2. click on Notepad in the list programs.
    3. copy the following commands, and then paste them into the opened Notepad window:
    REGSVR32 WUPS2. DLL/S
    REGSVR32 STINKS. DLL/S
    REGSVR32 WUAUENG. DLL/S
    REGSVR32 WUAPI. DLL/S
    REGSVR32 WUCLTUX. DLL/S
    REGSVR32 WUWEBV. DLL/S
    REGSVR32 JSCRIPT. DLL/S
    REGSVR32 MSXML3. DLL/S
    4. in Notepad, on the file menu, click Save as.
    5. in the file type list, click all files.
    6. in the file name box, type register.bat.
    7. save the Register.bat file to your desktop.
    8 right-click the Register.bat file, and then click Run as administrator. If you are prompted for an administrator password or a confirmation, type the password or click on continue.
    9. try to reinstall updates.

    http://support.Microsoft.com/kb/958053
    See: method 1: save the Windows Update files

    http://support.Microsoft.com/kb/326253
    Method 5: Registry Windows Update engine files

    http://support.Microsoft.com/kb/971058
    How to reset the Windows Update components?

    Method 2: Download and install Windows Update agent

    Windows Update Agent

    How to get the latest version of the Windows Update Agent to help manage updates on a computer
    http://support.Microsoft.com/kb/949104

    Information for network administrators about how to obtain the latest Windows Update Agent
    http://support.Microsoft.com/kb/946928

    Click Start, click run, click Browse, navigate to the file you saved and click Open.

    Add the switch /wuforce at the end of the command run and then click OK. For example, the command run might look like this: "C:\WindowsUpdateAgent30-x86.exe" /wuforce

    Click run.

    Follow the steps to complete the wizard.

    Important

    To reinstall Windows Update Agent - download the relevant file from one of the links provided above and save it to a drive where Vista is not loaded because the file cannot be launched directly from the root directory of the system.

    Click Start, run, type: "D:\WindowsUpdateAgent30-x86.exe /wuforce" (without the quotes) and press ENTER to install the Windows Update engine.

    Note: There is a space between "D:\WindowsUpdateAgent30-x86.exe" and "/ wuforce.

    D: is the drive where Windows is not installed (IE a flash drive or a 2nd hard drive etc.)

    TaurArian [MVP] 2005-2010 - Update Services

  • Outlook Express 6.0 when I send an email, it seems that it does not completely turn off but it does and everytime I open OE, it turns off again and again and again, etc. Any ideas? Thank you

    I send an email, it does not completely turn off. A message that says that the task had not been completed, but no error message appears. The email goes off, and whenever I open OE it turns off again and again and again, etc. Any suggestions?

    Thank you

    You have the apparent corruption of dbx files, but an easy solution.

    Spend most of your messages out of the Inbox and then create new folders to send and sent items box after having moved the messages you want to save to a local folder that you create.

    Tools | Options | Maintenance | Store folder will reveal the location of your Outlook Express files. Note the location and navigate on it in Explorer Windows or, copy and paste in start | Run.

    In Windows XP, Win2K & Win2K3 the OE user files (DBX and WAB) are by default marked as hidden. To view these files in Windows Explorer, you must enable Show hidden files and folders under start | Control Panel | Folder Options icon | Opinion, or in Windows Explorer. Tools | Folder options | View.

    With OE closed, find the DBX files for the items in the Outbox and sent and delete them.  New ones will be created automatically when you open OE.

    After you're done, followed by compacting your folders manually while working * off * and do it often.

    Click Outlook Express at the top of the the folder tree so no folders are open. Then: File | Work offline (or double-click on work online in the status bar). File | Folder | Compact all folders. Don't touch anything until the compacting is completed.

    General precautions for Outlook Express:

    Do not archive mail in the receipt or sent items box. Create your own user-defined folders and move messages you want to put in them. Empty the deleted items folder daily. Although the dbx files have a theoretical capacity of 2 GB, I recommend all a 300 MB max for less risk of corruption.

    Information on the maximum size of the .dbx files that are used by Outlook Express:
    http://support.Microsoft.com/?kbid=903095

    Disable analysis in your e-mail anti-virus program. It is a redundant layer of protection that devours the CPUs, slows down sending and receiving and causes a multitude of problems such as time-outs, account setting changes and has even been responsible for the loss of messages. Your up-to-date A / V program will continue to protect you sufficiently. For more information, see:
    http://www.oehelp.com/OETips.aspx#3

    Why you don't need your anti-virus to scan your email
    http://thundercloud.NET/infoave/tutorials/email-scanning/index.htm

    Note that for some AV programs, it may be necessary to uninstall the program and reinstall in custom Mode and uncheck analysis when the option is the result of e-mail messages.

    Compact often as specified above.

    And backup often.

    Outlook Express Quick Backup (OEQB Freeware)
    http://www.oehelp.com/OEBackup/default.aspx

    Bruce Hagen
    MS - MVP October 1, 2004 ~ September 30, 2010
    Imperial Beach, CA

  • Cannot install SQL Server Express on Vista - installation does not complete

    SQL Server 2008 R2 - does not complete the installation

    ASK THE QUESTION IN THE SQL SERVER FORUM:
    http://social.msdn.Microsoft.com/forums/en/category/SQLServer

  • Share of software Flip does not completely load due to not write the script of window installation package

    Part of Flip software does not completely load on windows vista... error message windows package install will not write script to complete the installation

    Hello hedubang,

    Thanks for posting on the Microsoft answers Forum.

    I suggest to try the safe mode and see if you can install it in safe mode or if there is a conflict.

    Start the program in safe mode

    1. reboot your computer and start pressing F8 on your keyboard. On a computer that is configured to start to multiple operating systems, you can press the F8 key when you see the boot menu.

    2. when the Windows Advanced Options menu appears, select Safe Mode, and then press ENTER.

    3 log on to Windows by using the administrator account or any account of a user with administrator privileges.

    Note: In Safe Mode, your display system and the Bureau will look and perform differently than in Normal Mode. This is only temporary. To return the system to Normal mode, we can simply restart the computer.

    To determine if the problem that occurs with the program is caused by another program that is running in the background, we recommend that you restart the computer in safe mode and then test the program. If the program runs correctly in safe mode, but does not properly run in normal mode, it probably is another program that is conflicting with the program in question.

    To determine which program is causing a conflict with the program in question, we recommend that you perform a "clean boot" of the computer. A clean boot is designed to disable programs and services in the background as much as possible. This helps determine which service or program can be the cause of the problem.

    For more information about how to perform a clean boot for troubleshooting, click the number below to view the article in the Microsoft Knowledge Base:

    929135 (http://support.microsoft.com/kb/929135/) how to solve a problem by performing a clean boot in Windows Vista and Windows 7

    I hope this helps.

    Sincerely,

    Marilyn
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

  • Partition table does not have a valid system partition

    I am working on a Dell XPS 420 computer for a customer.  She has Windows Vista installed on it (not sure what version of Vista).

    He's doing a loop, wherever it loads to the point where I can see the bottom and the mouse, but it stops there.  After 5 minutes of him sitting on this screen, it restarts, I can't access one of the Advanced menu F8.  I tried Safe Mode, and after that it loads the crcdisk it restarts, it does with Safe Mode, Mode safe mode with networking Mode and safe mode with command prompt.  I can't use the last known configuration because it will just try to load and eventually restart.

    Things I've tried is that I ran a diagnosis of hard drive and memory, and they both pass.

    I tried the repair with the regedit option and load the system hive in the registry.

    I tried the bootrec command.

    Well I put in a disk for Installation of Vista and choose the repair option.  I did the auto diagnosis and repair option (first choice I think) and I checked the report after he finished saying that it fixes itself and needed to restart (which he did not in fact)

    Well the result that came was that the Partition Table does not have a valid System Partition.

    I tried the bootrec command, and they all said it has repaired but it did not, when I tried to do the bootrec /rebuild he gave me the message "element not found".

    I ran a test diagnosis system and I received the following message

    System test
    error code 0146
    Msg error code 2000-0146
    MSG HDD 0 - self-test log contains previous errors. Given the code and can be used by the support message technology guide to help diagnose the problem.

    be honest, I just need to know if I need to replace the hard drive or not, it's for a customer.

    I did not see if the HDD is set to AHCI or SATA in the bios again, but I will when I get home today, but I would like some answers backup.

    Hi countryboyofal,

    I suggest that you contact Dell support for the outcome of the diagnostic system.

    http://support.Dell.com/support/topics/global.aspx/support/DellCare/contact_us?c=us&l=en&s=Gen&redirect=1

     

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Built with CCP by the package Adobe Acrobat does not completely settle

    Built with CCP by the package Adobe Acrobat does not completely settle.  It starts as if it's installing just fine then suddenly disappears without error.   I'm installing under the local administrator account and simply double-click on setup.exe created in the build folder.  Am I missing something?

    Hi rivera2u & TRU Software,.

    I think you're just double click on the deployer of Exception and not running the same command prompt. Below is the syntax that we use everything using the deployer of Exception on your machine (s).

    ExceptionDeployer

       --workflow=install

       --mode=pre|post

       --INSTALLDIR=

       --installLanguage=forAcrobat>

       --abortOnFail

       --help

    The same is mentioned in the link shared by Abhijit earlier.

    Please let us know if it works for you or not.

    See you soon,.

    Michael Sharma

  • Plan TOAD table does not exist

    Hello

    I use TOAD for Oracle queries normal and trying to see the execution plan. However it says plan table does not exist.

    Do you have someone encountered this error?

    Thank you

    You can create like below on your own pattern of GR 11, 2 If you created the private table.

    CREATE TABLE scott. TOAD_PLAN_TABLE
    (
    STATEMENT_ID VARCHAR2 (30 BYTE),
    NUMBER OF THE PLAN_ID ARGUMENT,
    DATE TIME STAMP,
    REMARKS VARCHAR2 (4000 BYTE),
    VARCHAR2 (30 BYTE) OPERATION,
    VARCHAR2 (255 BYTE) OPTIONS,
    OBJECT_NODE VARCHAR2 (128 BYTE),
    PROPRIETAIRE_OBJET VARCHAR2 (30 BYTE),
    OBJECT_NAME VARCHAR2 (30 BYTE),
    OBJECT_ALIAS VARCHAR2 (65 BYTE),
    OBJECT_INSTANCE INTEGER,
    OBJECT_TYPE VARCHAR2 (30 BYTE),
    OPTIMIZER VARCHAR2 (255 BYTE),
    NUMBER OF SEARCH_COLUMNS
    INTEGER ID,
    PARENT_ID INTEGER,
    INTEGER DEPTH,
    POSITION INTEGERS,
    COST INTEGER,
    CARDINALITY, INTEGER,
    BYTE INTEGERS,
    OTHER_TAG VARCHAR2 (255 BYTE),
    PARTITION_START VARCHAR2 (255 BYTE),
    PARTITION_STOP VARCHAR2 (255 BYTE),
    ID_PARTITION INTEGER,
    ANOTHER LONG,
    VARCHAR2 (30 BYTE) DISTRIBUTION,
    CPU_COST INTEGER,
    IO_COST INTEGER,
    TEMP_SPACE INTEGER,
    ACCESS_PREDICATES VARCHAR2 (4000 BYTE),
    FILTER_PREDICATES VARCHAR2 (4000 BYTE),
    PROJECTION VARCHAR2 (4000 BYTE),
    TIME AROUND,.
    QBLOCK_NAME VARCHAR2 (30 BYTE),
    CLOB OTHER_XML
    )
    TABLESPACE USERS;

    Kind regards
    Kerry

  • a key for the table does not exist in the table

    Hi guys,.

    I imported several tables of physical layer in the administration tool. So, I want to do new foreign key between tables join in the physical schema.
    Required fields for posting a link between these tables are set up. When I press the ok button, an error message is displayed:
    "a key corresponding to the table does not exist in the table blablabla. You want to create a? »

    In fact, what is this error? I don't have all the idea about it. The number of the type of the fields is the same, the names are also the same. I think that he should not have problems to make the new foreign key. But why is it happening?

    Thank you

    Hello

    It is the primary key of the first table. You might not have set this column as the primary key of this table at the level of the db.

    Thank you
    Imtiaz.

Maybe you are looking for