Find the largest tables (disk space) in a database

Our problem: customers who have problems that we cannot recreate are asked to export their data as a dmp and then we download the dmp to investigate to import locally and to implement were the problem is.
Some customer data sets are too large to download (3-4 GB - I know that this shouldn't be a problem but some customers have very slow connection speeds and it would take a lifetime).
To work around this, they put on a DVD and send (which takes a few days).
The thing is, that these data sets are probably around 400 MB with a table showing the rest with blobs (and this table is probably not the cause of the problem). So indeed, we can it exclude from the export.

What we want to achieve:
There are potentially some of these tables that could be large so we would like to produce a script to determine which tables are the largest disk space. We then (if the problem that the customer experiences is nothing to do with these tables) will not include these export on the DMP. Which means we can get their faster data and subsequently solve their problem in a shorter time.

Where to start any help will be much appreciated. We use db 10g

You can query s/n | WHERE user_segments, ordered by decreasing bytes.
http://download.Oracle.com/docs/CD/B19306_01/server.102/b14237/statviews_4097.htm#REFRN23243
Something like:

select segment_name
,      segment_type
,      bytes
from ( select segment_name
       ,      segment_type
       ,      bytes
       from  dba_segments
       where owner  = user
       order by bytes desc
     )
where rownum <= 10 

For the 10 largest segments.

Tags: Database

Similar Questions

  • How can I find the largest table in a schema?

    Is there a query to determine the largest table in a schema?
    select table_name, num_rows from user_tables
    where num_rows = (select max(num_rows) from user_tables)
    

    To get accurate information, table statistics need to be updated

  • How to find the largest contiguous free space in windows xp

    Hi, I have two machines, one running Win7, XP running.  I know how my highest contiguous free space is great under w7, using "defrag c: - one" in a prompt "administrator-started":

    C:\Windows\System32>defrag c: - one
    Microsoft Disk Defragmenter
    Copyright (c) 2007 Microsoft Corp.

    Citing analysis on OS (C :)...)

    The operation completed successfully.

    Post report of defragmentation:

    Volume information:
    Volume size = 283,40 GB
    Space free = 60.49 GB
    Fragmented space total = 0%
    More large size of free space = 46,29 GB

    But, by using the same command in XP does not have the same statistics (I tried 'defrag c: - a - v' for a detailed report, but it does not always give this stat.)  Anyone know how to find out what is the largest contiguous amount of free space on a XP computer?

    TIA

    K

    Hey man follow my link http://us.generation-nt.com/answer/how-find-largest-contiguous-block-free-memory-help-27343152.html , and it explains how to find this information. so, this should be your answer

  • PC is slow and get the message insufficient disk space

    my PC is slow and I get a continious pop up indicating "you run low disk space on the local disk C:.

    What should I do?

    Do a house cleaning and the dust of this hard drive:

    You can free up disk space (will also help get rid of the things that you do not use) through the following steps:

    Windows XP should take between 5 and 10 GB * with * an Office suite, editing Photo software, alternative Internet browser (s), various Internet plugins and a host of other things installed.

    If you are comfortable with the stability of your system, you can delete the uninstall of patches which has installed Windows XP...
    http://www3.TELUS.NET/dandemar/spack.htm
    (Especially of interest here - #4)
    (Variant: http://www.dougknox.com/xp/utils/xp_hotfix_backup.htm )

    You can run disk - integrated into Windows XP - cleanup to erase everything except your last restore point and yet more 'free '... files cleaning

    How to use disk cleanup
    http://support.Microsoft.com/kb/310312

    You can disable hibernation if it is enabled and you do not...

    When you Hibernate your computer, Windows saves the contents of the system memory in the hiberfil.sys file. As a result, the size of the hiberfil.sys file will always be equal to the amount of physical memory in your system. If you don't use the Hibernate feature and want to reclaim the space used by Windows for the hiberfil.sys file, perform the following steps:

    -Start the Control Panel Power Options applet (go to start, settings, Control Panel, and then click Power Options).
    -Select the Hibernate tab, uncheck "Activate the hibernation", and then click OK. Although you might think otherwise, selecting never under "Hibernate" option on the power management tab does not delete the hiberfil.sys file.
    -Windows remove the "Hibernate" option on the power management tab and delete the hiberfil.sys file.

    You can control the amount of space your system restore can use...

    1. Click Start, right click my computer and then click Properties.
    2. click on the System Restore tab.
    3. highlight one of your readers (or C: If you only) and click on the button "settings".
    4 change the percentage of disk space you want to allow... I suggest moving the slider until you have about 1 GB (1024 MB or close to that...)
    5. click on OK. Then click OK again.

    You can control the amount of space used may or may not temporary Internet files...

    Empty the temporary Internet files and reduce the size, that it stores a size between 64 MB and 128 MB...

    -Open a copy of Microsoft Internet Explorer.
    -Select TOOLS - Internet Options.
    -On the general tab in the section 'Temporary Internet files', follow these steps:
    -Click on 'Delete the Cookies' (click OK)
    -Click on "Settings" and change the "amount of disk space to use: ' something between 64 MB and 128 MB. (There may be many more now.)
    -Click OK.
    -Click on 'Delete files', then select "Delete all offline content" (the box), and then click OK. (If you had a LOT, it can take 2 to 10 minutes or more).
    -Once it's done, click OK, close Internet Explorer, open Internet Explorer.

    You can use an application that scans your system for the log files and temporary files and use it to get rid of those who:

    CCleaner (free!)
    http://www.CCleaner.com/
    (just disk cleanup - do not play with the part of the registry for the moment)

    Other ways to free up space...

    SequoiaView
    http://www.win.Tue.nl/SequoiaView/

    JDiskReport
    http://www.jgoodies.com/freeware/JDiskReport/index.html

    Those who can help you discover visually where all space is used. Then, you can determine what to do.

    After that - you want to check any physical errors and fix everything for efficient access"

    CHKDSK
    How to scan your disks for errors* will take time and a reboot.

    Defragment
    How to defragment your hard drives* will take time

    Search for malware:

    Download, install, execute, update and perform analyses complete system with the two following applications:

    Remove anything they find. Reboot when necessary. (You can uninstall one or both when finished.)

    Search online with eSet Online Scanner.

    The less you have to run all the time, most things you want to run will perform:

    Use Autoruns to understand this all starts when your computer's / when you log in. Look for whatever it is you do not know usingGoogle (or ask here.) You can hopefully figure out if there are things from when your computer does (or connect) you don't not need and then configure them (through their own built-in mechanisms is the preferred method) so they do not - start using your resources without reason.

    You can download and use Process Explorer to see exactly what is taking your time processor/CPU and memory. This can help you to identify applications that you might want to consider alternatives for and get rid of all together.

    Cleaning the components of update on your Windows XP computer

    While probably not 100% necessary-, it is probably a good idea at this time to ensure that you continue to get the updates you need. This will help you ensure that your system update is ready to do it for you.

    Download and run the MSRT tool manually:
    http://www.Microsoft.com/security/malwareremove/default.mspx
    (Ignore the details and download the tool to download and save to your desktop, run it.)

    Reset.

    Download/install the latest program Windows installation (for your operating system):
    (Windows XP 32-bit: WindowsXP-KB942288-v3 - x 86 .exe )
    (Download and save it to your desktop, run it.)

    Reset.

    and...

    Download the latest version of Windows Update (x 86) agent here:
    http://go.Microsoft.com/fwlink/?LinkId=91237
    ... and save it to the root of your C:\ drive. After you register on theroot of the C:\ drive, follow these steps:

    Close all Internet Explorer Windows and other applications.

    AutoScan--> RUN and type:
    %SystemDrive%\windowsupdateagent30-x86.exe /WUFORCE
    --> Click OK.

    (If asked, select 'Run'). --> Click on NEXT--> select 'I agree' and click NEXT--> where he completed the installation, click "Finish"...

    Reset.

    Now reset your Windows with this FixIt components update (you * NOT * use the aggressive version):
    How to reset the Windows Update components?

    Reset.

    Now that your system is generally free of malicious software (assuming you have an AntiVirus application), you've cleaned the "additional applications" that could be running and picking up your precious memory and the processor, you have authorized out of valuable and makes disk space as there are no problems with the drive itself and your Windows Update components are updates and should work fine - it is only only one other thing youpouvez wish to make:

    Get and install the hardware device last drivers for your system hardware/system manufacturers support and/or download web site.

    If you want, come back and let us know a bit more information on your system - particularly the brand / model of the system, you have - and maybe someone here can guide you to the place s x of law to this end. This isn't 100% necessary - but I'd be willing to bet that you would gain some performance and features in making this part.

  • How to find the largest

    DECLARE

    Num_tab_ty TYPE TABLE IS NUMBER;

    num_tab num_tab_ty: = num_tab_ty (6,4,8,7);

    BEGIN

    -How to find the largest and the lowest number in a collection

    END;

    DECLARE

    Num_tab_ty TYPE TABLE IS NUMBER;

    num_tab num_tab_ty: = num_tab_ty (6,4,8,7);

    number of l_greatest_value;

    BEGIN

    Select max (column_value)

    in l_greatest_value

    table (num_tab);

    END;

    /

    HTH

  • Error message Microsoft Word "Word could not create the work file. Check the amount of disk space on your startup disk. »

    I have a MacBook Pro, retina 13inch OS X el Capitan Version 10.11.1 with 16 GB of memory. It's brand new and I have recently installed Microsoft Word/Powerpoint etc. a disc that I bought a few years to my previous MacBook. It seems to work very well, but whenever I want to open a word document a message comes up saying "Word could not create the work file. Check the amount of disk space on your startup disk '. However, once I click 'OK' this message disappears and my word file opens without a problem. I have 16 GB of memory on this laptop and it's new I have not reached anywhere near the maximum amount of storage so I'm puzzled as to what this message means. How can I avoid that this message popping up everytime I open Microsoft Word? Any help would be appreciated!

    This has nothing to do with memory - it's the SSD. Word tries to create a temporary file to use as a backup if the program crashes while you are working. First, run the Microsoft Update program to see if there are updates you have missed. Second, Microsoft currently supports only versions 2011 and 2016, so if yours is older, you should consider the upgrade. Thirdly, I suspect that the temporary file is not get created so that you have fewer cancellations (maybe any) and that if the program crashes you have to restore.

  • my windows vista computer is to download a lot of updates which will create the lack of disk space in my hard C drive? Please help...

    my windows vista computer is to download a lot of updates which will create the lack of disk space in my hard C drive? Please help...

    You already have disk cleanup?

    Please use this tutorial:
    http://www.Vistax64.com/tutorials/76073-disk-cleanup.html

    The Atlantic tutorial has 2 parts:
    Step 1 to 11 is for the classic disk cleanup which will give you back some disc FEPs.
    Step 12 until the end (more), is to delete all except the most recent restore points. This will give bring you a ton of disk space.
    ATTENTION: Make sure that your computer works OK because you delete restore points.
    You have no past point to fall up to restore more new restore points are created.

  • Windows Update is the cause of disk space in drive c

    Windows Update is the cause of disk space in drive c

    Hello, Josée Talukdar,.

    Thank you for your message.  Please see delete files using disk cleanup for the means to recover space on your hard drive.  Let us know if it did or did not help to solve your problem.  We can't wait to hear back on your part.

    See you soon

  • The system restore disk space allocation

    Separated from this thread.

    I have a 1 TB hard drive and the folder of the system volume contains 291 G I know you said it should not be recommended, but I really need the space on my pc anyway around it?

    Select Start, Control Panel, system, System Protection, place the cursor on your C partition (under Protection settings - disks available), click on the Configure button. Move the slider under disk space to the left so that the percentage is 2%. Click apply and then click OK and restart your computer.

  • Consecutive date grouping and find the largest number of consecutive group

    Hi all

    I have given dates and I want to find the largest number of consecutive dates

    WIN_DATE_DATA

    2015-09-22

    2015-09-23

    2015-09-27

    2015-09-28

    2015-09-29

    2015-09-30

    2015-10-1


    In this example, there are 2 group of consecutive dates

    Group 1

    2015-09-22

    2015-09-23

    Group 2

    2015-09-27

    2015-09-28

    2015-09-29

    2015-09-30

    2015-10-1


    The OUTPUT should 5 which is the largest grouping of consecutive number.


    Thanks in advance for the help!




    Please take a look at the Community document: 101 PL/SQL: grouping sequence ranges (method Tabibitosan)

    will allow you to do.

  • Where can I find the vertical and horizontal spaces of you or margins on CC Version?.

    Where can I find the vertical and horizontal spaces of you or margins on the CC Version? I need to leave a few spaces pixels around an image, but I can't find it on this new version.

    Thanks in advance

    In the CSS designer under window > CSS designer or SHIFT + F11

    Choose the item that you are working with and press on the + in the selectors of section

    Then in the Properties section, make sure that the first tab is selected (Layout) and scroll down to the margin

    Set it to a number of pixels that you want (for example, 10px)

  • Check the ESX host disk space

    Is there a tool available that can control the ESX host disk space on a daily basis?  I was monitoring manually by typing df - h, but having more than 25 guests is tedious, so I wonder if there is any tool available which can monitor the disk space on the ESX host?  Thanks in advance.

    Check cela http://bash.cyberciti.biz/monitoring/shell-script-monitor-unix-linux-diskspace/, put it in the crontab and run it as offen, as you want.

    eP4P

  • How know what the largest table of my oracle database?

    How know what the largest table of my oracle database?

    SELECT * FROM
    (
    SELECT
    NOM_SEGMENT,
    SEGMENT_TYPE,
    BYTES/1024/1024 MB
    TABLESPACE_NAME
    Of
    DBA_SEGMENTS
    WHERE
    SEGMENT_TYPE = 'TABLE '.
    ORDER BY DESC 3
    )
    WHERE
    ROWNUM<=>

  • TEMPRO v2 - changing the threshold of disk space alert

    Hello

    I downloaded and installed Tempro v2 on a Satellite A200. It works well.

    However, tempro was a problem that was present in version 1.x.

    Disk space alert low value trigger, much, much too early to the disk space of 25% on any partition. On a modern drive, it is around 15 GB. It's average, far too early to say a problem. I swiched disable this alert - I don't want to do. There seems to be no way (that I can find) to activate this alert to raise to a more reasonable value - 10% left of disk space or a given amount of space left - say 2 GB.

    Y at - it a fix for this or have I missed how to set this value, because I don't want to run without knowing that I'm under low disk space? This alert to 25% is irritating.

    Thank you

    Clive

    Hello

    I don t think you can change this value or parameters
    TEMPRO sends notifications about the status of the entire HARD disk and it is why you received this message.

    I have this tool on my laptop too but didn t find settings that would disable the notification on simple partitions on the HARD drive

  • The TMS low disk space warning level

    Anyone know what the threshold is TMS warn of low disk space?  I can't find it in the documentation.

    Mine me gives this warning now and I wonder how much space I must give before being happy, probably by increasing the size of the virtual disk, so it would be good to know my target, since this kind of thing requires certain formalities and I would prefer not to do twice.

    Thank you.

    Depending on the size of the deployment, it is recommended for the hard drive to be around 60-80 GB by the installation Guide for TMS.  You can move your SQL database on the server, if it is hosted on the same server as MSDS, as well as the removal of old server logs.  Here are a few suggestions on how you can free disk space on the server TMS.

    TMS - low disk space

    TMS-space drive-bass

    free-space-tms-windows-server

Maybe you are looking for

  • My memory of the iphone is always full

    my iphone keeps showing memory full message. Most of the time I am unable to take pictures or videos. I contacted apple to many times, but they never understood what the problem is. I even got a new iphone but still facing same problems. I did a rese

  • lack the option 'enable javascript' on the content tab of the options

    When I go in the options to activate java, I go to the content tab and it is supposed to have a box for the activation of javascript. I don't have this option. Down, I loaded the latest firefox. the firefox I had, I tried to remove my system in Contr

  • Passing an array via one RT FIFO network shared Variable, Code error-1950679034

    This should be simple.  I'm just passing through a table via a single RT FIFO network shared Variable element.  And yet I get nothing.  How could - not working?  What is this error?

  • HP Compaq nc8430 and Windows 7

    Hello. I have a computer notebook nc8430, installed Windows XP SP2. I want to install Windows 7. Can I install Widnows 7 (x 86), when I next laptop specifications: Core Duo T2500 2.00 GHz processor, 1 GB of RAM, ATI Radeon x 1600 256 MB? And yet I ca

  • Back button (ESC key) works at a low level only

    Hi all I have an application with several screens. In the last screen (say 2 screen) I have different buttons, click which I push same screen (screen 2) with a different constructor called. But when I press screens a lot of screens, I can't go back t