Find the used space in datafile on any specific date

Hi,
We have a datafile created on 2-11-2009.
I wish to find the used space in that datafile on 13-12-2009.
From v$datafile and dba_data_files from the "BYTES" column it wld give me the current used space in the datafile.
But how to find the used space in datafile on any specific date.
Thanks.

Hello,
It depends on your Oracle release, starting with Oracle 10.1, you have the View dba_hist_tpspc_space_usage which may give you an history of the space used by the Tablespaces:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/statviews_3195.htm#I1023456
You may have to pay for specific license to be allowed to access to this View which belongs to AWR (Automatic Workload Repository).
Hope this help.
Best regards,
Jean-Valentin

Similar Messages

  • How to find the Day on a Week for any given Date

    Hi..... I need your help to find out the Day on a Week for any given Date .
    Say if the Date is 31/12/2009 , what would be the Day on a Week for this Date.
    Are there any fucntions available to determine the same?
    Please let me know....Thanks in Advance
    Regards
    Smita

    Hi ,
    You can using the following peice of code to get the Day of a Week for the given date :
    Calendar now = Calendar.getInstance();   
    System.out.println("Current date : " + (now.get(Calendar.MONTH) + 1)  
         + "-" + now.get(Calendar.DATE) + "-" + now.get(Calendar.YEAR));
    //create an array of days  
    //Day_OF_WEEK starts from 1 while array index starts from 0        
    String[] strDays = new String[]{"Sunday",  "Monday", "Tuesday", "Wednesday",  "Thusday",   "Friday",  "Saturday" };   
    String day_of_week = strDays[now.get(Calendar.DAY_OF_WEEK) - 1];     
    System.out.println("Current day is : " + strDays[now.get(Calendar.DAY_OF_WEEK) - 1]  );
    Edited by: Ritushree Saha on Jun 4, 2009 1:09 PM

  • How to find out the used space and free space in the DB for attachments

    Hi,
    In CRM 5.2 web UI, we can save a transaction by saving attachments like work documents or text files.
    Could someone help me find out the used space, free space, maximum capacity on the CRM DB for these attachments.
    Thanks & Best Regards,
    Ramesh.

    Hi,
    check with  below table
    TNAPR   ---  Processing programs for output
    and NACE Transaction code
    NACE  --  out types
    Regards,
    Madhu

  • I have a 160GB Hard Drive in my MBP and use VMWare Fusion and had a 60GB Virtual Machine running Windows XP. Deleted the Virtual Machine and CANNOT find the 60GB space I desperately need!  Anybody out there with a similar problem?  Help!

    I have a 160GB Hard Drive in my MBP and use VMWare Fusion and had a 60GB Virtual Machine running Windows XP. Deleted the Virtual Machine and CANNOT find the 60GB space I desperately need!  Anybody out there with a similar problem?  Help!

    Thanks - Of Course the first thing I checked and did.
    Disc Utility reads as follows:
    Capacity : 159.18 GB (159,182,127,104 Bytes)
      Format : Mac OS Extended (Journaled)  Available : 11.47 GB (11,472,896,000 Bytes)
      Owners Enabled : Yes  Used : 147.71 GB (147,709,231,104 Bytes)
      Number of Folders : 139,540  Number of Files : 511,832
    Activity Monitor(Disc Usage) shows something quite interesting.  Mac HD and Ramanan (Main User) - My hard drive is only 160GB!  Would the retired engineer gentleman please note as well.  Many thanks. Rams

  • How to find the maximum of group sums within a specific column using report builder 3.0

    Hi
    For each part number I am trying to find out in which week of a month did the largest daily shipment occur... so using report builder 3.0
    in SSRS 2012 I can find daily, weekly and monthly totals for the units shipped but I am having a hard time thinking through the logic to find the daily max for each week.
    in my data I can have multiple orders/shipments for the same product on the same day.
    The ultimate goal is to set inventory levels
    So..
    In my matrix report I have
    Row groups:
    Classid => Product class
    InvtID => Item Part Number
    Column Groups:
    FiscYr=> Fiscal Year
    PerPost => Month or period the transaction occurred
    Week_period => the week the transaction occurred
    Day_period => The day that the transaction occurred
    The aggregations are 
    Sum(case_shipped) 
    Max(case_shipped)
    The Sum(case_shipped) is working as desired but the Max(case_shipped) is picking out the max amount shipped on any one order when looking
    at the week, month or fiscal period and that is not what I need.
    I have attached a screenshot since a picture is worth more than my words. I have also included some sample data
    I would very much appreciate any thoughts on this. I am guessing that the solution has something to do with using the inscope function but
    I can't wrap my head around how to use it
    Thank you 
    Tom D
    Here is some sample data for Product A
    Invtid Case_ship Trandate    FiscYr   PerPost   week_period        day_period
    A         10           1/1/2104    2014        1    
              1                           1
    A           3           1/1/2014    2014        1  
                1                           1
    A         50           1/2/2104    2014        1    
              1                           2
    A         30           1/3/2014    2014        1    
              1                           3
    A         20           1/9/2104    2014        1    
              2                           2
    A          5            1/9/2104    2014        1  
                2                           2
    A        20          1/10/2014    2014        1    
              2                           3
    A        60          1/10/2104    2014        1    
              2                           3
    On 1/1/2104 I shipped a total of 13 cases
    On 1/2/2104 I shipped a total of 50 cases
    On 1/3/2104 I shipped a total of 30 cases
    On 1/9/2014 I shipped a total of 30 cases
    On 1/10/2014 I shipped a total of 80 cases
    On 1/9 I shipped a total of 25 cases
    I would like to show that in week 1 the maximum number of cases shipped on any day is 50 (1/2/2014)
    I would like to show that in week 2 the maximum number of cases shipped on any day is 80 (1/10/2104)
    I would also like to show that in perpost (month) 1 the maximum
    number of cases shipped on any day is 80 (1/10/2104)

    Hi
    I was able to find a solution
    I built a new dataset in report builder using the same table as before but tried out the "Group and Aggregate" function and for the case_ship
    field I chose "Sum" as my aggregate.... In essence this gave me a very cool and easy daliy sum of the shipped cases. 
    When I used this new dataset and built my matrix report I was able to easily get the max daily shipment for each product by week, month and
    year.
    Tom

  • Need to find the free space on storage server

    Hi,
    I need to find the free space on storage server through Java code, and even find whether web server has access to the storage server.
    So please tell me how do i do that.

    This will be through an API for your "storage
    server". It would be helpful if you at least
    indicated what this "storage server" is: a NFS? an
    FTP site? something else?I forgot to mention that. Its NFS. Please let me know
    clearly, what APIs I need to use and in simple how.How am I supposed to clearly know this?
    Consult the documentation for your NFS system and figure it out. That's what to do.

  • Where can i find the "use audio port for" button?

    I am a Dj and am trying to record. All instructions I have seen, it says to plug my mixer into the line-in input and go to system preferences>sound>input, then change the "use audio port for" option to "sound input". I am not able to do find the "use audio port for" drop down menu, any help??? I have a MacBook Pro that is about six months old and I am running OS X 10 9 4.

    King_Penguin wrote:
    What are hoping to achieve via Bluetooth ? On iOS devices it's mainly for headphones and keyboards, not, for example, for copying content between the devices : supported profiles
    I was actually hoping to use my computer as a DHCP. I am in Iraq and have a very hard time getting a solid connection. However my computer has no issues. I am usualy able to use Safari but can not get to iMessage or Facetime servers. I have Windows 7 64bit a bluetooth compatibility. Not looking for any file transfers or special stuff. Just a ICS set up.

  • [solved] scritpt to check the used space of different file systems

    how to write a scritpt to check the used space of different file systems and print if any file system above 50%
    I used this command to get the different filesystem and their used space
    df -h | grep -v Filesystem |tr -s " " | cut -d" " -f1,5
    Thanks in Advance

    Please try this command:
    df -Ph | tr -s " " | cut -d" " -f1,5 | sed -n "s/\([5-6][0-9]%\)\|\([0-9]\{3\}%\)/&/p"
    It works for me. Good luck
    Tiger Zhang
    .

  • How to find the extra spaces from personal computer?

    I cannot update Adobe new items since the box window told me that there were no spaces from my computer. Who can teach me how to find the extra spaces from my computer? Besides, there are 1/3 spaces for IOS, 1/3 spaces for virtual computer and 1/3 spaces for Adobe in my computer. No any photos and movies  in my computer now.

    I do not understand the question... what do you mean by spaces?
    What size is your hard drive, and what does your system tell you about unused hard drive space?

  • Find the free space of autoextensible enabled tablespaces

    Hi All,
    I need to create a shell script to find the free space of an autoextensible tablespaces and send an alert when the free space is < 700MB.
    I tried checking with the dba_free_space, but I did not get the exact free space.
    Can someone tell me the logic to find the exact free space of autoextensible enabled tablespaces?
    Thanks,
    VBK

    You may want to look into dba_free_space_coalesced table.
    SQL> desc dba_free_space_coalesced;
    Name                                      Null?    Type
    TABLESPACE_NAME                                    VARCHAR2(30)
    TOTAL_EXTENTS                                      NUMBER
    EXTENTS_COALESCED                                  NUMBER
    PERCENT_EXTENTS_COALESCED                          NUMBER
    TOTAL_BYTES                                        NUMBER
    BYTES_COALESCED                                    NUMBER
    TOTAL_BLOCKS                                       NUMBER
    BLOCKS_COALESCED                                   NUMBER
    PERCENT_BLOCKS_COALESCED                           NUMBERTablespace Name - Name of tablespace
    Total Extents - Total number of free extents in tablespace
    Extents Coalesced - Total number of coalesced free extents in tablespace
    % Extents Coalesced - Percentage of coalesced free extents in tablespace
    Total Bytes - Total number of free bytes in tablespace
    Bytes Coalesced - Total number of coalesced free bytes in tablespace
    Total Blocks - Total number of free oracle blocks in tablespace
    Blocks Coalesced - Total number of coalesced free Oracle blocks in tablespace
    % Blocks Coalesced - Percentage of coalesced free Oracle blocks in tablespace
    so for getting the usage you can query like
    select     a.TABLESPACE_NAME,
      2     a.BYTES bytes_used,
      3     b.BYTES bytes_free,
      4     b.largest,
      5     round(((a.BYTES-b.BYTES)/a.BYTES)*100,2) percent_used
      6  from
      7     (
      8             select  TABLESPACE_NAME,
      9                     sum(BYTES) BYTES
    10             from    dba_data_files
    11             group   by TABLESPACE_NAME
    12     )
    13     a,
    14     (
    15             select  TABLESPACE_NAME,
    16                     sum(BYTES) BYTES ,
    17                     max(BYTES) largest
    18             from    dba_free_space
    19             group   by TABLESPACE_NAME
    20     )
    21     b
    22  where      a.TABLESPACE_NAME=b.TABLESPACE_NAME
    23  order      by ((a.BYTES-b.BYTES)/a.BYTES) desc
    24  ;I think this is what you were asking.

  • How do you find the difference in no. of days between 2 dates?

    How do you find the difference in no. of days between 2 dates ?

    There are 2 way to solve this: using java.util.GregorianCalendar or java.util.Date (like jesper1 suggested), depending what kind of solution You need:
            GregorianCalendar gc1 = new GregorianCalendar(2001, 01, 01, 23, 00, 00);
            GregorianCalendar gc2 = new GregorianCalendar(2001, 01, 03, 10, 00, 00);
            // 1st way using GregorianCalendar
            int diff1 = gc1.get(GregorianCalendar.DATE) - gc2.get(GregorianCalendar.DATE);
            System.out.println("Differnce: " + diff1);
            // 2nd way using Date
            int diff2 = (int)(gc1.getTime().getTime() - gc2.getTime().getTime()) / (24 * 60 * 60 * 1000);
            System.out.println("Differnce: " + diff2);Note: There are 2 days between the given dates, but exactly 1 day and 11 hours.
    The first solution returns "-2", the second returns "-1".
    (... and a 4th posting also won't help ...)

  • How do I find the frequency of numbers in a group of data strings?

    I have a set of data strings and I want to find the frequency of each number occuring in a data string. How do I do this?
    Here are the strings.
    28-29-43-51-53 7
    02-08-30-36-48 31
    09-10-27-36-42 11
    20-24-31-33-36 44
    16-29-48-52-54 5
    06-15-29-39-51 36
    01-16-18-25-27 3
    09-30-39-42-47 37

    The first part is to "break out" the values from your strings.  Columns B thru G take care of this:
    I assumed allvalues as 2 digits...
    B2=VALUE(MID($A2, 3*(COLUMN()-2)+1, 2))
    select B2 and fill to the right until column G
    then select B2 thru G2 and fill down as needed.
    For compactness of THIS presentation I added two additional columns for getting the Frequency... columns I and J.
    Column I contains an counting value and J contains the frquency of the corresponding value in I (of the same row).
    put a "1" in I2, a "2" in I3, then select both I1and I2, then grab (click and hold the little circle at the bottom right of the selection), and drag down until the value is the max number you expect (I assumed it was 99).
    J2=COUNTIF(B:G, "="&I2)
    select J2 and fill down

  • HOw do u find the total  space

    Hi
    I want some help from u guys to slove this problem
    I want the Total Space in the Disk using the Java Pogram .
    Atleast an idea how to solve this problem
    Please can uguys provide me any idea .....soon

    Search this board and you'll see that 43223 other persons had to find out that it's not possible in Java without using JNI.

  • How to find the Color Space name for a PDEElement

    Hi
    I am trying to find out the color space for each PDEElement in my PDF file. While doing this,
    I put some debug statements ( cout stmts ) that print the color_space as integer values. I gave this list
    after the code.  I belive the color spaces should be something like CMYK, DeviceRGB,DeviceGray..etc.
    How can I know the actual color space name coresponding to these numbers printed in Debug statements.
    Kindly please help me..
    void   ProcessElementDetails(PDEElement  element)
                    PDEGraphicState  gfx_state;
                    ASInt32  pdeType =  PDEObjectGetType(reinterpret_cast<PDEObject>(element));
        ofstream outfile("E:\\temp\\test.txt",ios::app);
        outfile<<"ProcessElementDetails\n";
        if ( pdeType == kPDEText )
          outfile<<"PDE Text type\n";
          PDEText pde_text = (PDEText) element;
          ASInt32 num_run,i;
              num_run = PDETextGetNumRuns(pde_text);
          outfile<<"Number of Runs for PDEText :"<<num_run<<"\n";
          for  (i = 0; i < num_run; i++)
            PDETextGetGState(pde_text,kPDETextRun,i,&gfx_state, sizeof (PDEGraphicState));
            ASAtom  color_space =  PDEColorSpaceGetName(gfx_state.fillColorSpec.space);
            outfile<<"Color Space :"<<color_space<<"\n";
        if (pdeType == kPDEImage )
          outfile<<"PDE Image type\n";
          PDEElementGetGState(element,&gfx_state,sizeof (PDEGraphicState));
          ASAtom color_space = PDEColorSpaceGetName(gfx_state.fillColorSpec.space);
          outfile<<"Color Space :"<<color_space<<"\n";
        if (pdeType == kPDEContainer)
          outfile<<"PDE Container type\n";
                            PDEContent  content =  PDEContainerGetContent(reinterpret_cast<PDEContainer>(element));
                            ASInt32  numElem =  PDEContentGetNumElems(content);
                            for  (ASInt32  i = 0; i < numElem; i++)
                                 element =  PDEContentGetElem(content, i);
                                 ProcessElementDetails(element);
    Debug statements with color numbers:
    ====================================
    ProcessElementDetails
    PDE Image type
    Color Space :700
    ProcessElementDetails
    PDE Text type
    Number of Runs for PDEText :63
    Color Space :388
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :388
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :388
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    ProcessElementDetails
    ProcessElementDetails
    PDE Text type
    Number of Runs for PDEText :38
    Color Space :389
    Color Space :700
    Color Space :390
    Color Space :388
    Color Space :390
    Color Space :388
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :390
    Color Space :389
    Color Space :700
    Color Space :700
    Color Space :700
    Color Space :700
    Color Space :700
    Color Space :700
    Color Space :700
    Color Space :700
    SeparateColorPlates
    PDF file exists
    Number of Pages:1
    Number of Elements:5

    As you may have noticed, the "numbers" you see are actually of type ASAtom -
    which is a type declared in the SDK to represent reused strings. You have to
    read the relevant documentation to learn how to use the SDK - there is no
    way around it. The Acrobat SDK is very powerful, but also a lot more
    complicated than most people expect when they start to work with it. Take
    your time to learn how to use it.
    In this particular case, you need to call this function to convert the
    ASAtom to a string:
    const char* ASAtomGetString<http://livedocs.adobe.com/acrobat_sdk/10/Acrobat10_HTMLHelp/API_References/Acrobat_API_Ref erence/AS_Layer/ASAtom.html#ASAtomGetString135%28%29>
    (ASAtom<http://livedocs.adobe.com/acrobat_sdk/10/Acrobat10_HTMLHelp/API_References/Acrobat_API_Ref erence/AS_Layer/ASAtom.html#ASAtom>atm)
    (from
    http://livedocs.adobe.com/acrobat_sdk/10/Acrobat10_HTMLHelp/API_References/Acrobat_API_Ref erence/AS_Layer/ASAtom.html
    Karl Heinz Kremer
    PDF Acrobatics Without a Net
    [email protected]
    http://www.khkonsulting.com

  • Where do I find the "use" pop-up menu to complete install

    I am installing HP Officejet Pro 6830.  Have followed all instructions and am in the "Add printer" step. I selected the "bonjour multifunction" entry and hit add.  It then did a quick progress bar and goes back to the Add Printer window.   Step 3 states "Open the Use (or Print Using) pop-up menu and choose your printer's Model name.   How do I get to the pop-up menu?

    Hi @Tricia10 ,
    I see that you are having issues adding the printer. I will do my best to assist you with this issue.
    I have provided a screen shot for where to click on the drop down to select the printer from the list.
    If it isn't listed, install the software for your operating system, you might need to run the Apple Updates.
    HP Officejet Pro 6830 e-All-in-One Printer Drivers.
    If you already have, Reset the Printing System on the Mac and try again.
    Reset the Printing System:
    Note: This will remove all printers in the print and Fax/Scan, any printer removed can be re-added later by clicking the plus (+) symbol.
    Click the Apple icon and then click System Preferences.
    Click Printers & Scanners.
    Right-click (or Ctrl +click) in the left white side panel, then click Reset printing system.
    Click OK to confirm the reset.
    Type the correct Name and Password.
    Click OK to reset the printing system.
    Then click the + sign to add the driver, highlight the printer. (you might have to click the drop down to select the printer's name) Then click on the Add button.
    What operating system are you using? Mac OS X: How Do I Find Which Mac OS X Version Is on My Computer?
    If you need further assistance, just let me know.
    Have a great day!
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

Maybe you are looking for

  • Ipod not recognized by computer or self

    Ipod touch shows the apple screen but will not start, I did the hold power button then hold home button etc didnt work. the apple does stay on screen and flashes here and there but still no changes. Also, is not recognized on computer.  Help??

  • What cause searching network problem after updating iphone 6 from iOS 8.1.2 TO iOS 8.1.3?

    what cause searching network problem after updating iphone 6 from iOS 8.1.2 TO iOS 8.1.3?

  • Can the specific changes/updates made to a customer be captured with the detail of changes?

    One of our 11i Customer placed the below requirement: We are creating a report that will extract customers that have changed or updated in Oracle. The user requested to include also the specific change made to the customer. Is there a way that we can

  • Well indented html code in DW

    hi, i use DW8 and i recently found out that DW does not make a well indented HTML code. earlier i ignored this. this problem surfaced recently when the asp programmers using visual studio said that every time i give them a html page, they have to ind

  • Sort by folder structu

    on the 6GB creative zen can i i hate it when palyers sort by artist or album. i have all my music divided into folders and would like to use it as it is without having to edit tags. is there any other mp3 palyer that can sort music by folder structur