Query to check tablespace and free size

Hi all

I Googled, but obtained joins to query to check tablespace and free size that lists all tablesapces but

I want to check the free size, total and used size MB of a particular tablespace as "ZEUS". Only this tablesapce must be registered with the necessary details.

Any help?

Kind regards

Ritu

Try this one:

-ts_size.sql

all pages 49999 flax 120

Col nom_tablespace to tru a32

Col 'Total GB' for 999,999.9

Col 'Used Go' for 999,999.9

"GB" free pass to 99999,9

'Pct Free' pass to 999,9

Col 'Pct used' to 999,9

sum of model of 'Go Total' on the report

sum of model of 'Go' on the report

sum of model 'GB Free' on the report

break the report

Select A.Tablespace_Name, B.Total/1024/1024/1024 'Total GB. "

(B.Total-a.Total_Free)/1024/1024/1024 'Used Go',

Free A.Total_Free/1024/1024/1024 "GB."

(A.Total_Free/B.Total) * 100 "free Pct,"

((B.Total-A.Total_Free)/B.Total) * 100 "used Pct")

From (Select Tablespace_Name, Sum (Bytes) Total_Free

Of Sys.Dba_Free_Space

Group by Tablespace_Name) has

, (Select Tablespace_Name, Sum (Bytes) Total

Of Sys.Dba_Data_Files

Group by Tablespace_Name B)

Where A.Tablespace_Name LIKE '% of ZEUS '.

And A.Tablespace_Name = B.Tablespace_Name

Order by 1

/

PS: You can easily customize to "MB".

Tags: Database

Similar Questions

  • Need advice about merge and free up unused space

    Salvation of the experts;

    Merge here looking for advice and free unused space.

    I got this tablespace with 87% of full, one of the table in which tablespace has 1 150 325 records.  I'll remove 500,000 records to this table, but to free up the space used by these documents, that I understand that I need to run any other procedure. I was reading merge tablespace and free up unused space.

    I found that apparently the two processes can help me space. If you want to share with me your comments, on the advantages or disadvantages to their topic, in order, I can take the best solution?

    Thanks for your comments.

    Al

    cascade option will reduce the space without interruption of service. but HWM is not released.

    ALTER table cascade of narrowing of the space;

    to release the HWM after the use of cascade, you must run the command again below. This will reduce the time & releases the HWM

    ALTER table shrink space;

  • Hi, I tried to download the trial version free photoshops and after I sign in I get this pop up message saying ' unable to reach adobe servers, please check your firewall settings ", I checked the and there is nothing wrong with the firewall, is

    Hi, I tried to download the trial version free photoshops and after I sign in I get this pop up message saying ' unable to reach adobe servers please check your firewall settings ", I checked them and there is nothing wrong with the firewall, is there a problem with the adobe servers? can someone help me?

    Please try the steps mentioned in: https://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html

  • Script of VM inventory for VM name with the location, the name of the Cluster and data storing total size and free space left in DS.

    Hello

    I wanted to collect script inventory VM VM name with location, name of the Cluster and data store total size and free space left in Datastore.I have script but his mistake of shows during its execution. Any help on this will be apreciated.

    Thank you

    VMG

    Error: -.

    Get-view: could not validate the argument on the parameter "VIObject". The argument is null or empty. Provide an argument that is not null or empty, and then try
    the command again.
    E:\script\VM-DS-cluster.ps1:7 tank: 20
    + $esx = get-view < < < < $vm. Runtime.Host - name of the Parent property
    + CategoryInfo: InvalidData: (:)) [Get-view], ParameterBindingValidationException)
    + FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.DotNetInterop.GetVIView

    Get-view: could not validate the argument on the parameter "VIObject". The argument is null or empty. Provide an argument that is not null or empty, and then try
    the command again.
    E:\script\VM-DS-cluster.ps1:8 tank: 24
    + $cluster = get-view < < < < $esx. Parent - the name of the property
    + CategoryInfo: InvalidData: (:)) [Get-view], ParameterBindingValidationException)
    + FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.DotNetInterop.GetVIView

    Get-view: could not validate the argument on the parameter "VIObject". The argument is null or empty. Provide an argument that is not null or empty, and then try
    the command again.
    E:\script\VM-DS-cluster.ps1:9 tank: 24
    + += get-view $report < < < < $vm. Store data-name of the property, summary |
    + CategoryInfo: InvalidData: (:)) [Get-view], ParameterBindingValidationException)
    + FullyQualifiedErrorId: ParameterArgumentValidationError, VMware.VimAutomation.ViCore.Cmdlets.Commands.DotNetInterop.GetVIView

    It seems that your copy/paste lost some.

    I have attached the script

  • daafiles used and free space

    HII everyone,
    I want to check the space used and free of all my (10.2.0.3) database data files, 5,7 redhat platform.
    your help is very appreciated thanks.

    Published by: 938946 on December 31, 2012 04:38

    Your query is unnecessarily complicated and aggregation has messed up.

    View dba_data_files, dba_temp_files, and v$ temp_space_header all have one line per tablespace data file. So, you need to aggregate the values based on the name of the tablespace.

    Similarly, dba_free_space contains a line by "block" of the free space in the tablespace. So, if your tablespace apps_ts say 4 blocks of free space, then it will have 4 rows for the apps_ts tablespace. Yet once, you will need to overall based on tablespace name before anything else.

    The tablespace temp will almost never have any free space because if the Oracle way works. Once a measure is created in the temp tablespace that he is never deallocated. When the transaction who "created" the measure is finished using it, it is marked as being available for other sessions, but it is so more free space.

    The query below, that's what I think you are looking for regular storage space. If you really need to show the temp tablespace, then you can add a third request from the union to that all interview to watch dba_temp_files. If there is a free space in the tablespace temp it will appear in dba_free_space.

    select tablespace_name,
           round(sum(allocated_space) / 1024 / 1024, 2) "Size (MB)",
           round(sum(free_space) / 1024 / 1024, 2) "Free (MB)",
           round((sum(free_space)/sum(allocated_space)) * 100, 2) "% Free",
           round(((sum(allocated_space) - sum(free_space))/sum(allocated_space)) * 100, 2) "%Used"
    from (select tablespace_name, bytes allocated_space, 0 free_space
          from dba_data_files
          union all
          select tablespace_name, 0 allocated_space, bytes free_space
          from dba_free_space)
    group by tablespace_name
    Order by 4
    

    John

  • Space management and snapshot size

    Hi, guys.

    As I learned today deleting a snapshot can take fifteen or twenty minutes. From what I've read it can take much longer if he snapshot is extra-large.

    Here are my questions.

    When I have a virtual machine of the provisions, I could say that I am allocating 100 GB machine. The real op system can take 40 GB. Does this mean that I have 60 gigs of space left? If I take too many shots, saying, for example, 15 of them and each snapshot takes 4 gigs, I will crash the virtual machine because I filled my space? If so, do any kind of warning?

    My snapshots seem to be about 4 gigs each. What is 'normal' or not a size depend on the system operation and other factors?

    I don't see a way to browse my store of data and know how much free space is available for each virtual machine, if this notion is still relevant here. ..: -

    Thank you, as always.

    Mike Gallery

    Hello.

    As I learned today deleting a snapshot can take fifteen or twenty minutes. From what I've read it can take much longer if he snapshot is extra-large.

    Yes, this depends on the number of snapshots and the size snapshots.

    When I have a virtual machine of the provisions, I could say that I am allocating 100 GB machine. The real op system can take 40 GB. Does this mean that I have 60 gigs of space left?

    If you use a provisioning, then yes the 60 GB of space left at the start would remain.  Over time, the amount of space consumed will probably increase because of the way that writing consumes space and cuts back by them.  You use VMFS or NFS to your data warehouse?

    If I take too many shots, saying, for example, 15 of them and each snapshot takes 4 gigs, I will crash the virtual machine because I filled my space? If so, do any kind of warning?

    Snapshots are stored on the VMFS or NFS volume and do not depend on virtual disk (VMDK) files.  You have to worry is in the data store.  This can happen, and it would not be a good thing.  If you use vCenter you can set an alert when data warehouses comes to some capacity.

    My snapshots seem to be about 4 gigs each. What is 'normal' or not a size depend on the system operation and other factors?

    Size depends entirely on the amount of entries past in the virtual machine.  The snapshot is basically a differencing disk, so all new entries is written in it.  Snapshots can reach the same size as the VMDK file.

    I don't see a way to browse my store of data and know how much free space is available for each virtual machine, if this notion is still relevant here.<>

    Check your data for the amount of space available warehouses.

    Good luck!

  • No sound on DVD playback and the size can be reduced to half of its original size

    Hi, I have a few problems on my DVD player after you install the windows media player 11.
    No sound during playback and the size can be reduced to half of its original size.

    Can someone show me how to fix tat?

    Hello

    you have a codec pack and/or a DVD player separated installed on your system? If not, then try, because play DVD´s with MediaPlayer 11 is not very comfortable and
    you encounter errors, for example you have.

    I suggest you: download a codec pack (for example K-lite or something: http://www.free-codecs.com/download/Codec_Pack_All_in_1.htm) install it and maybe try to use another dvd as "Media Player Classic" player that plays almost every videofile/DVD/etc. that exist.

    Hope I could help you

    Welcome them

  • Satellite L505 - 10K - battery: "connected and free of charge.

    Hello

    I have a Toshiba Satellite L505 - 10K and I don't cool the battery, it says "connected and free of charge. My RS is Windows 7-64 bit. My laptop plugged in works fine, but if I disconnect goes out.

    I think that the cable and charger are fine, I think. And when connected, battery LED (orange) seconds and then on the way, so the battery no lights continues to collect.

    I apologize for my English, I'm Spanish.
    Thank you!

    Well, looks like a malfunction of the battery in my opinion you should check if new battery would solve your problem of load

  • How to improve the performance of your computer and free up space.

    Original title: the unwanted temporary files of windows is at the origin of the problems of proformanace

    According to a check of problem: the unwanted files temporary windows could take to improve the performance of your computer and free up space.

    Can anyone help with this simple problem.

    Angelo

    Hi Angelo,.

    1. which edition of Windows are you running?
    Example: Windows 7 Professional 32 bit.
    Please follow the below link to clean unwanted temporary files.
    Delete files using disk cleanup
     
    Microsoft at home.
    Slow PC? Optimize your computer for peak performance
    Make slate: how to remove the unwanted files and programs
     
    I hope this helps.
  • file and folder size

    Hi, I'm working on a new computer Sunrise and execution including obtaining my backups before day of the load on my new computer.  When comparing a few folders on the hard drive of my main computer, last night made backups don't always correspond to the size and number of files, at least in some cases, but not all.

    I use XP on the old system and my backup hard drive is a Seagate.  There are plenty of room on my Seagate for even more data.

    For example, my main computer indicates a file like: 168 concerts and 47781 files while the backup shows 167 concerts and 45623.  Another folder on my main computer will display: 657 megs and 45 files while the backup shows 647 megs and the same 45 files.

    Can you explain this for me and if there is a way to check that all my information is actually saved properly?  Also, would you recommend the reset of my program to select all the files I want to save as a new start and then, by running another backup backup?  Thank you

    There may be several things happening here.

    First, make sure you that you compare 'size' of the folder on a drive in the folder 'size' on the other disk and not "size of the folder on the drive."

    "Size on disk" is very often not the same as the 'size' (it's usually larger).  This is because the files are stored in "clusters" of a fixed number of bytes.  There is only one file per cluster and so there is almost always unused space.  This is called "soft"

    Cluster size represents the smallest amount of disk space that can be used to hold a file. When the size of the files does not come out to an even multiple of the cluster size, extra space must be used to hold the file (up to the next multiple of the cluster size). On the typical disk partition, the average amount of space that is lost in this way can be calculated using the equation (cluster size) / 2 * (number of files).

    For example, suppose that you have 12 ounces of water and only 10 ounces cups.  You need two cups - 20 ounces of "storage" - to hold all the water, and one of them is essentially empty.  On the other hand, if you had 4 oz. cups, you would need three cups - 12 oz of "storage" - and would have no unused space.

    Cluster size differs between the various files used by Windows systems.  Most use facilities XP NTFS file system, which has a cluster size default to 4 096 bytes (4 KB) for partitions up to 16 TB.  The FAT file system on the other hand, uses a clusters of 512 bytes and 1, 2, 4, 8, 16, 32, or 64 KB depending on the size of the partition.

    External number of readers is preformatted using the FAT file system.  So if you compare "size on disk" and the internal drive uses NTFS and the backup drive uses FAT, there almost certainly will be a different size "on the disc" between the two.

    In your first example (168 GB file), it seems that you can not have guaranteed some hidden or system files.  What software do you use to make the backup?

    Most of the good software backup has an option to "check".  Exactly what he is "verified" may be different for different applications, but if it is available in the software you have, you have to use.

  • I want to view the properties of folders of files and the size of the files used on the right by clicking on them and the properties of the workstation to see the disk space used. __

    I have trouble finding the disk space used by files and folders individually and when I try to know how much is consumed and free by right click on my computer.  This was easy in XP, but I can't get the answers I need to analyze which uses space, where and how.  What is happening with this?

    Hi NativeLegal Eagle,

    Usually, right-click on the file or folder and clicking the properties option will give the details of the file or folder. The details include, type, size, location, size of the file on the disc etc.

    Make a right click on my computer will not give the details of available disk space on the computer.

    If you want to know the amount of space consumed by a program, then it can be found in the Add/Remove Programs window.
    a. Click Start, click Run, type appwiz.cpl, and then click ok.
    b. in the list, we can find the total space used by individual program running on the computer.

    Note: If nothing is listed in the file properties window or a file, then provide us with more information, so that we can better help you.

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

  • Suggestions for a SECURE AND FREE Web site for screensavers? __

    This site is SECURE AND FREE Screensavers?

    I use a photo from my computer, but it won't be unlocked screen...

    SVC Pack 2 for Windows Vista

    pdrblb

    I wanted just a recommendation for SURE AND screensavers.

    Download.com is probably the safest bet.

    A recent survey showed that over 55% of sites "free screensaver" in fact included a Trojan horse hidden in the screen saver.

    Update your security software. Check anything you download before you install or run it and scan your pc regularly.

    Free WinPatrol program works better under Windows 7, but is always the best monitor optimized for Windows XP Vista &. http://www.WinPatrol.com/>

    SpywareBlaster works with Internet Explorer and Firefox. It will not uninstall spyware that is already on your pc, but it will prevent hijacks and other malicious changes to your browser.

    http://www.JavaCoolSoftware.com>

    http://www.SiteAdvisor.com>-Site Advisor warns against malware on websites, you are about to visit.

  • I want to upgarde my vista windows 7, so should I buy CDs or I can download and free upgarde?

    upgarde my vista windows 7

    I want to upgarde my vista windows 7, so should I buy CDs or I can download and free upgarde?

    Hello

    Windows 7 is not free; you have to buy.

    Microsoft sells more Windows 7; Try Amazon.com.

    @@@@@@@@@@@@@@@@@@@@@@@

    This offer is free years; long expired.

    How does the Windows 7 upgrade Option?

    The Windows 7 upgrade Option is available through participating PC manufacturers on some PC and Microsoft on any purchase of packaged product Windows Vista. The Windows 7 upgrade Option applies to Windows Vista Home Premium, Business and Ultimate editions. Your upgrade to Windows 7 will be the comparable version: so you will get either Windows 7 Home Premium, Windows 7 Professional (upgrade to Windows Vista Business) or Windows 7 Ultimate, respectively. The Windows 7 upgrade Option program works on June 26, 2009 through January 31, 2010. Some manufacturers may choose to shorten the time of upgrade Option.

    @@@@@@@@@@@@@@@@@@@@@@@@@

    Before purchasing Windows 7, follow these steps:

    Go to your computer / computer laptop manufacturer Web site and see if Windows 7 drivers are available for your make and model computer / laptop.

    If this is not available, Windows 7 will not properly work for you.

    Run the "Windows 7 Upgrade Advisor.

    http://www.Microsoft.com/en-US/Download/details.aspx?ID=20

    Check if your specifications are compatible for Windows 7:

    "Windows 7 system requirements"

    http://Windows.Microsoft.com/en-us/Windows7/products/system-requirements

    Windows 7 upgrade paths:

    http://TechNet.Microsoft.com/en-us/library/dd772579 (v = ws.10) .aspx

    See you soon.

  • Windows 7 spider solitaire and free cell

    accidentally deleted my windows 7 spider solitaire and free cell how can I download it again?

    Hello

    Please go to the Microsoft Community Forums.
     
    1. How did you delete the games?
    2. which version of the operating system is installed on the computer?
     
    Spider Solitaire is included in all versions of Windows 7. As such, it should appear in the Games folder.

    Method 1:
    Manually add the games.

    Reference:
    Install a game in the Games folder
    http://Windows.Microsoft.com/en-us/Windows7/install-a-game-in-the-Games-folder

    Method 2:
    Games can be disabled. To turn their back on the steps:
    a. click the Start button, select Control Panel, click programs and then under programs and features, click Turn Windows features turn on or off.
    b. Select the Games check box, and then click OK.

     
    I hope this helps.
     
  • DBA_EXTENTS and ONE SIZE

    Hi all

    I am confused with the value returned by dba_extents:

    In my case, I have a LMT with this definition of storage:

    MANAGEMENT UNIFORM LOCAL 40K SIZE MEASURE

    8K BLOCKSIZE

    SEGMENT SPACE MANAGEMENT MANUAL


    I'm waiting for my next extensions are with size 40K

    Yet, they are not:

    Select * from dba_extents a

    where A.TABLESPACE_NAME = 'X '.

    EXTENT_IDFILE_IDBLOCK_IDBYTESBLOCKS
    376726355484031078400492075
    366721282687385600328050
    3561791791590400218700

    ....

    ....

    And the same extent_id got multiple rows in dba_extents?

    EXTENT_ID, FILE_ID, BLOCK_ID BYTES BLOCKS RELATIVE_FNO

    17 321 121065 29491200 3600 321

    17 152 102422 29491200 3600 152

    17 152 58667 29458432 3596 152

    17 11 36432 29491200 3600 11

    17 308 45452 29491200 3600 308

    17 351 2240 29458432 3596 351

    17 152 52822 29491200 3600 152

    17 308 76952 29458432 3596 308

    17 152 98822 29491200 3600 152

    17 351 243306 29458432 3596 351

    17 308 69451 29458432 3596 308

    17 152 49222 29491200 3600 152

    No explanation for this?

    Thank you.

    I would have found the answer in Metalink note:

    ALLOCATION_TYPE in DBA_TABLESPACES tells the well-managed USER locally (Doc ID 182679.1)

    and

    Note: 120061.1 Size following measure after migration Tablespace to dictionary to locally managed

    QUESTION:

    Why the table continues with the next measure specified even if

    It is a locally managed tablespace.

    ANSWER:

    Migrated tablespaces are not subject to the UNIFORM/SYSTEM policy of newly

    created locally managed tablespaces. It would be too difficult to implement,

    Since storage space is likely to contain the existing objects already

    violate the new policy. For this reason, migrated tablespace support only the same

    policy as the dictionary of tablespaces. If you select from

    DBA_TABLESPACES, you should see "USER" value in the column ALLOCATION_TYPE for

    migrated tablespaces and UNIFORM or SYSTEM value in tablespaces that were

    also created locally managed.

    Therefore, the user does not receive the benefits of migration policy, but can

    still don't get the benefits of performance - no ST enqueue contention and more effective

    measurement operations.

Maybe you are looking for

  • Satellite Pro M500 - cut voltage for USB

    I have the Satellite M500 Pro with Windows 7 installed. Correctly detect several USB pen drive (led inside IT) but when to use 'remove the security apparatus' (bottom right) the led stays ON (never turn off). This for each Keystone model I (2, 4, 8GB

  • How can I display the partitions hidden in the new disk utility?

    Yosemite (10.10) and previous versions of disk utility, I was able to activate the debug mode display the partitions hidden recovery via a Terminal command.  However, in El Capitan (10.11) the terminal command does nothing.  So, how display/display t

  • Position of the taskbar

    I got the left vertical toolbar and do not remember how do get the taskbar down across the screen horizontally? If anyone can help? Thank you

  • Get an error: PCI. SYS - address F76130BF Base at F760C000, Datestamp 3b7d855C

    I had to repair windows XP home because of problems does not properly. Everything is well spent up to what I have turned off the PC & unplugged to replace the battery because she would not keep the time or date that the PC was unplugged. After that I

  • Create a group of users to ACS 3.3 - simple question

    Hello I have a simple question: How can I create a group of additional users at the ACS 3.3? I don't see the option to delete or create groups of users. Perhaps is it not possible? Thanks in advance