two ways to get the freespace in an oracle database show different values

Hello

I tried to get the freespace in a tablespace with different methods.

R: first method

1 Select tablespace_name, sum (bytes) /(1024*1024) MB dba_data_files group by tablespace_name;   # to get the totalspace (divided) of storage space

TBS1 13312 MB

2. Select tablespace_name, sum (bytes) /(1024*1024) dba_segments MB group by tablespace_name;   # to get used space in the tablespace

TBS1 13231,625 MB

3. calculate the free space: totalspace - used space = free space

13312 - 13231.625 = 80,375 MB of space in the tablespace TBS1

B: second method

1. Select tablespace_name, sum (bytes) /(1024*1024) MB dba_free_space group by tablespace_name;  # to get the free space in the tablespace

TBS1 3888,25 MB

where is my mistake?

which is correct?

best regards george

It can help u

http://kpkarthickumardba.blogspot.in/2011/12/size-difference-dbasegments-vs.html

Tags: Database

Similar Questions

  • Problem of the printer, I get "the computer is unable to establish two-way communication with the device.

    Original title: printer problem

    "The computer is unable to establish two-way communication with the device. I have pluged a all cables and pluged in that they return.

    Hello
     
    1. What is the brand of your printer?
    2. when the question is is produced?
    3. you remember to make changes to your computer before the problem?
    4. when exactly you get this error?
     
    I would temporarily disable all security software and check if the problem persists.
     

    http://Windows.Microsoft.com/en-us/Windows-Vista/disable-antivirus-software
     
    Note: Antivirus software can help protect your computer against viruses and other security threats.  In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.
     
    If you have an HP printer, you can consult the links below.
     
     

    Aziz Nadeem - Microsoft Support

    [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • The most elegant way to get the difference between two tables - not least!

    Hello


    Simplified example of what I'm trying to achieve - I have two tables ORIGINAL and REVISED.


    My aim is to compare the two, such as; -


    When there is data in the two tables I get the difference between the Budget column, and if there is no difference, so I don't want no lines.

    When data exists in the ORIGINAL, but not in review, I want to the inverse of the current value of the Budget column.

    Where the data exist in REVISED I want the REVISED value.

    I can see how I can do this, see below, but is there a more elegant solution?




    Data for the ORIGINAL table
    select '801040' entity, '2186' expense_type, 234000 budget
    from dual
    union all
    select '801040' entity, '3001' expense_type, 1000 budget
    from dual
    union all
    select '801040' entity, 'P132' expense_type, 34000 budget
    from dual
    union all
    select '801040' entity, 'P135' expense_type, 43000 budget
    from dual
    Data for the REVISED table
    select '801040' entity, '2186' expense_type, 235000 budget
    from dual
    union all
    select '801040' entity, 'P132' expense_type, 34000 budget
    from dual
    union all
    select '801040' entity, 'P139' expense_type, 56000 budget
    from dual
    Desired output



    ENTITY EXPENSE_TYPE DIFFERENCE
    ------ ------------ ----------
    801040 2186 1000
    801040 3001-1000
    801040 P135-43000
    801040 P139 56000

    5 selected lines.



    Code current to achieve this, is there a better way?
    select original.entity
    ,      original.expense_type
    ,       (nvl(revised.budget,0) - original.budget) as difference
    from   original
    ,      revised
    where  original.entity = revised.entity(+)
    and    original.expense_type = revised.expense_type(+)
    and   (nvl(revised.budget,0) - original.budget) != 0
    union all
    select  revised.entity
    ,       revised.expense_type
    ,       revised.budget as difference
    from   revised
    where  not exists
    (select 'x'
    from   original
    where  original.entity = revised.entity
    and    original.expense_type = revised.expense_type)
    and    revised.budget != 0
    Thanks a lot for your comments,.


    Robert.

    Published by: Robert Angel on January 17, 2012 03:31 to change is not equal to! = - Thanks for the heads up
    SQL> with original
      2  as
      3  (
      4    select '801040' entity, '2186' expense_type, 234000 budget
      5    from dual
      6    union all
      7    select '801040' entity, '3001' expense_type, 1000 budget
      8    from dual
      9    union all
     10    select '801040' entity, 'P132' expense_type, 34000 budget
     11    from dual
     12    union all
     13    select '801040' entity, 'P135' expense_type, 43000 budget
     14    from dual
     15  )
     16  , revised
     17  as
     18  (
     19    select '801040' entity, '2186' expense_type, 235000 budget
     20    from dual
     21    union all
     22    select '801040' entity, 'P132' expense_type, 34000 budget
     23    from dual
     24    union all
     25    select '801040' entity, 'P139' expense_type, 56000 budget
     26    from dual
     27  )
     28  select *
     29    from (
     30          select nvl(o.entity, r.entity) entity,
     31                 nvl(o.expense_type, r.expense_type) expense_type,
     32                 nvl(r.budget,0) - nvl(o.budget,0) budget
     33            from original o
     34            full join revised r
     35              on o.entity = r.entity
     36             and o.expense_type = r.expense_type
     37         )
     38   where budget <> 0
     39  /
    
    ENTITY EXPE     BUDGET
    ------ ---- ----------
    801040 2186       1000
    801040 P135     -43000
    801040 3001      -1000
    801040 P139      56000
    
    SQL>
    
  • Is there a way to get the image out of my iPod 4th generation without knowing / being able to enter the password

    I've had my iPod for about 6 years. About 2 years ago, the screen broken to the point of not being able to enter my password, and since then, I forgot it all together. The power button does not work. I was wondering if there is a way to get the pictures off of it and on my computer.

    Thanks for your help.

    Additional info, the power button does not work.

  • Is there a way to get the text to reformat then I Zoom in to read an article.

    Is there a way to get the text to reformat then I Zoom in to read an article, so I can't do a pan on?

    Unfortunately not - this is one of the disadvantages of pinch to zoom - makes the biggest full page

  • I'm doing a script that takes a list of e-mail from a text file and then allow me to select a save as a string. I found some ways to get the path of the file, but I'm in check by pulling the list

    I found some ways to get the path of the file, but I am defeated by pulling the list from that. the function of the path get gives me the path as "Macintosh Users:: Documents: extractedb.txt (myUsername).

    What I can't understand is how to get a dialog box to display a list that represents the content in the text file, I need to change the contents of the text file, I need the box to show me what I chose and I want to save my selection as a single string.
    e '.

    example of extractedb.txt information:

    [email protected]

    [email protected]

    [email protected]

    * has a random number of emails as well *.

    I want this is to pull those emails from the text file and turn them into a list so I can get to be a selection in my dialog box.

    Any help would be great = D

    Assuming you have a text file with your example e-mail addresses, the following AppleScript will read this file in a list (mf_List) and then use this list as input to choose among the list. Because multiple selection is allowed (control button), the output is sent to a list (sel_addr). We check if the Cancel button was pressed by testing for false and if this condition is met, we the script error.  Based on a single or multiple list item content of the list, display accordingly.

    game of mf to ((path to the folder as text) & "mail_list.txt")

    the value mf_List to {}

    the value sel_addr to {}

    the value mf_List to paragraphs of (read file mf)

    the value sel_addr to (choose from the list mf_List with title ¬

    ('Mail list' with multiple selections allowed without empty selection allowed)

    If sel_addr is equal to false then

    Error number-128

    return

    end if

    If length of sel_addr is equal to 1 then

    sel_addr display dialog box as text

    on the other

    the value Point to the text of TID to AppleScript delimiters

    the value Point text in AppleScript return delimiters

    display the dialog box elements of sel_addr in the text

    the value Text of point AppleScript delimiters to TID

    end if

    return

  • Is the another way to get the download from the support section

    Is there another way to get the download from the support section?

    Because the download speed is very slow. For example, in the new version of the value-added packaging and its 116 MB big need. A normal download time would be approximately 5-10 minutes. But when I download from Toshiba I need 2 to 6 hours. Not good for a company that manufactures laptops and high-performance computers.

    And the worst thing is that the connection is reset after a few hours... so I'll never get the update.

    Does anyone know help?

    Gruss
    Thomas

    Unfortunately, he has no other way to get the Toshiba drivers from the European pilot of Toshiba page.
    You are right at this moment that the file transfer is too long.
    I get about 10-19KO/s. That s is really very slow.
    Maybe the server is overloaded who knows I hope this will be resolved in the next time.

    Best regards

  • Error "Unable to establish two-way communication with the device" Windows 8 with c309g

    Operating system: windows 8, 64 - bit

    computer: desktop

    Home network: network, the computer is on a wired connection, printer is on a wireless connection

    error message: "the computer is unable to establish two-way communication with the device.

    • When you install first of all my husband's new computer, we were able to install the software and connect the printer very well, and the printed test page.
    • A few days later, I installed the HP ePrint app on my iPad, found our printer and tried to print a page of a Web site. Printing failed, and the iPad app gave a message something like "the Word document may be printed." I cancelled again tried the iPad app, print work, and has not yet. I had not heard of AirPrint, so I did that on my iPad.
    • We tried to print the page of the computer instead, but the task has failed.
    • We looked at the parameters of the printer through the computer of windows 8 and found that there are two differently named c309g printer now displayed in the printer list.
    • My husband uninstalled the printer software, the computer restarted and reinstalled and then got the "the computer is unable to establish two-way communication with the device.

    any ideas on what to do next?

    My brilliant husband fixed it. Power cycling the router.

  • I try to install vista on my laptop but a letter of the key is not visible, all the other parts are very well including the serial code, is there another way to get the key of the other information?

    Taché product key

    Hello

    I try to install vista on my laptop but a letter of the key is not visible, all the other parts are very well including the serial code, is there another way to get the key of the other information? The laptop currently has non-OS I've tried to reinstall.

    Thank you

    Scott

    Product keys are bit-agnostic - they don't care if it's 32-bit or 64-bit.

    However, cannot legally use the recovery disk from one computer to a different constructor machine - as other licenses are not properly paid..

    There is nothing nonetheless to try all possible variations on the absence of character (there are only 25, after all the )

    Other than that, your best option is to contact the manufacturer and order a set of recovery disc for the machine. I do no download available for Vista with SP2 - but you can download Vista with SP1 and create the disc.

    http://www.heidoc.NET/Joomla/technology-science/Microsoft/57-Windows-Vista-direct-download-links

  • Has anyone invented a way to get the emails that went to the wrong email address until the wrong person reads?

    Has anyone invented a way to get the emails that went to the wrong email address until the wrong person reads?

    To answer your question, you have to assume that once you have sent the email that it cannot be recovered. Think of it as dropping an old letter in a message box - you can't get it back once it is in the message box.

    The reasons are not only technological - it security, privacy, legal and political might be too (e-mail can cross multiple international borders).

    One hand practice also, what you want would be difficult because the emails will usually quickly reach their destination server and so can be collected by the recipient of email from this server as soon as sound here.

    By ensuring that you are writing your emails correctly in first place is the best.

  • Is there a way to get the key on the dvd?

    I have one of the signature of windows 7 dvd sets complete the house party promotion my system which featured 64-bit died and I would like to install it on my new drive, but could not find the dvd cover with the product key to this issue is there a way to get the key on the dvd?

    Nope. There is no key on the DVD. Without the lid, you are out of luck.

  • Is there a way to get the old Office mate (Clippy) in Windows 7?

    I hate to be "Clippy" (or is this Clippie?) of XP and I would like to know if there is a way to get the old Office Assistant in Win7.

    They were actually disabled in 2001 with the implementation of 'Microsoft Office XP' and completely deleted for good at the end 2002 with the release of Microsoft Office 2003.

    You can restore to 2003 with some changes to the system registry and the replacement of prudent file, but it is not supported.  And this can be done at all in Office 2007 with impatience.
  • Is there a way to get the data for submission of form of eloqua using the REST API?

    I was wondering if there is a way to get the data for submission of form of eloqua using the REST API?

    Thank you

    On the page that egan related, there is a 'RawData' field for FormSubmit activities. In this area, the raw sending the form query string is returned.

    Whatever it is, you can get this info from the activities of the API block, or the endpoints data Rest API.

  • No way to get the serial number Photoshop elements 13. Is it possible to study of the "getserialcode" prepaid card download.

    Hello, I bought a code to purchase Photoshop Elements, I never managed to install the software that is not saved in my account. No way to get the serial number. Is it possible to study of the "getserialcode" prepaid card download.

    When I tried again to exchange with the serial code, the message was that it was already used.

    I have the proof of purchase and the card, and I am puzzled not having is not the product that has been a major investment for me.

    Is the customer able to advise and help support Office.

    Best regards

    Customer service does not help with purchases made elsewhere nor do they help with installation problems product aged.  If the indication is that you have already used the number, it is likely, you have done but never made use of it, in which case is is you keep it for you.  Your only recourse would be with the one who sold you the card.

  • Is there a way to get the first Pro CS6 with still now I can't find the previous, offered versions with the subscription of the CC 2015?

    Is there a way to get the first Pro CS6 with still now I can't find the previous, offered versions with the subscription of the CC 2015? What is recommended for creating DVDs with interactive menus?

    Instructions again, cloud or version https://forums.adobe.com/thread/1992717 serial number
    -a of notes on different versions of cloud and step by step on these differences
    -contains information about the separate library download which is necessary
    -CS6 is the last reminder, see here #8 why http://forums.adobe.com/thread/1337952?tstart=0

    Still and 10 Windows https://forums.adobe.com/thread/2015461 use the compatibility mode of Windows 8
    problem/solution to install Encore CS6 https://forums.adobe.com/thread/1934087

Maybe you are looking for