Find the tablespace usage for the last 6 months time.

I have an Oracle 9i database. Now, there is a requirement to find the tablespace usage for the last 6 months.
Can anyone please tell me, how can I achieve this? I do not have EM configured. So please lemme know if there is any script that can give these details?
Thanks.

878226 wrote:
I have an Oracle 9i database. Now, there is a requirement to find the tablespace usage for the last 6 months.
Can anyone please tell me, how can I achieve this? I do not have EM configured. So please lemme know if there is any s?cript that can give these details?
Thanks.refer the link:- http://www.dba-oracle.com/t_v_datafile_database_size.htm
note: i did not check the query and version. please check whether it is applicable to 9i database or not?
10g and above refer:http://maxwellmiranda.wordpress.com/2011/03/22/segmenttablespace-growth-details-script/
Edited by: rajeysh on Aug 28, 2011 12:14 PM

Similar Messages

  • How to find the last update date time and user of record field peoplecode

    how to find the last update date time record field peoplecode?
    Thank you.

    One can check the last update date time using the following query
    SELECT LASTUPDDTTM FROM PSPCMPROG WHERE OBJECTVALUE1 LIKE 'RECNAME' AND OBJECTVALUE2 LIKE 'FIELDNAME'

  • How to find the last executed date ,time and user of the quaery

    Hi,
    How to find the following information of the Query
    1. Where all the place these queries/web template used.
    2. When was it last executed.
    3. Who executed last.
    Regards,
    Hari

    hi Hari,
    you can try table /BI0/APERS_BOD00
    for query, first go to table RSRREPDIR, give field COMPID
    with query technical name and get GENUNIID, then go to table /BI0/APERS_BOD00, field TCTOBJNM = RSRREPDIR-GENUNIID, TCTUSERNM and TCTTIMSTMP -> user name and last executed.
    for web template, give field TCTOBJNM in table /BI0/APERS_BOD00 with web template name.
    hope this helps.

  • What constitutes data usage?  My data usage is over twice what it has been for the last several months.

    What constitutes data usage?  The data usage is over twice what it Has been the last 6 months. 
    thank you for the assistance.

    Downloading apps, listening to music(streaming) using social media apps, and multiplayer/online games. Email sending and receiving. 
    Icloud backups and there's a lot more. Imessages uses data and not SMS unless data connection is down.

  • My itunes won't update. It's looking for 10.6.0.40. Last time it tried to update, I downloaded the msi to my desktop and I deleted it within the last six months. Now I can't uninstall or update.

    The last time my iTunes couldn't update. I used support from Itunes and downloaded it my desktop. My mistake. Because without thinking, I deleted it within the last six months from my desktop, without thinking I'd need it later. For the past month I've needed to update my Itunes and it can't find the msi. Now, my Ipad, my kids' ipod touches and my iphone can't update. Especially the ipod touches, iphone and work ipad have already updated to the OS6. And, now they won't work with this outdated iTunes. Help.

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • How to find the last login details of a Sharepoint SSRS user

    How to /where to find the last login details of SSRS sharepoint user. Is there any table where we can check the last login details of user. This is because we are facing an issue of Subscription failure due to Sharepoint token expiration. If user logs in
    before 24 hours of his last login time, he is able to get his report subscription. If not, below error is thrown.
    The permission granted to user 'domainname\username' are insufficient to perform this operation.

    Hi,
    According to your post, my understanding is that you want to monitor the last login user’s details.
    There is no out of the box way to achieve it in SharePoint.
    We can use cookie to be a flag for checking whether there is an user just log in. After the page loaded, if the cookie is null, it suggests that there is an user just log in our site, then we
    can get this user’s information using JavaScript Object Model and add the information into a custom list. With this list, we can monitor user’s login details.
    Refer to the following link:
    https://social.technet.microsoft.com/Forums/en-US/0cd4d531-cb61-4d90-aa70-413267f4a735/how-to-know-login-and-logout-details-of-a-user-in-sharepoint-online-2013?forum=sharepointdevelopment
    Besides, here are two similar posts for your reference:
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/1a35283e-0f2a-49b8-b330-801a3cfcd890/programatically-get-all-current-logged-in-users-list-for-a-sharepoint-site?forum=sharepointdevelopmentprevious
    https://social.technet.microsoft.com/Forums/en-US/10953be3-cb1c-40c7-9454-545c8338b551/how-to-know-login-users-count-and-their-details-in-sharepoint-2010-web-application?forum=sharepointgeneralprevious
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • Function to find the Last Date of Month One Year Ago - RETURNS ERROR

    I've written sql code which takes a date and finds the Last Day of the Month one year ago. For example,  it takes the date '2015-04-17' and returns the date '2014-04-30'. The code works fine in a query. Now I'm trying to turn this into a function. However,
    when I try to create the function I get the error:
    Operand type clash: date is incompatible with int
    Why is this error being returned?
    Here is my function:
    CREATE FUNCTION dbo.zEOM_LY_D(@Input Date)
           RETURNS date
    AS
    BEGIN;
      DECLARE @Result date;
      SET @Result =  convert(DATE, DATEADD(s,-1,DATEADD(mm, DATEDIFF(m,0,dateadd(m, -11, @Input)+1),0)),101)
        RETURN @Result;
    END;
    Thanks for any help you can give.
                     

    Stan,
    Thanks very much- that does the trick. I should have said I am using SQL 2008 so EOMONTH is not available to me. I still don't get why I got an error though, since I was treating a date like a date and not like an int.
    Thanks, John
    I think i found the issue but i do not know why it is causing the issue. i think may be the way dates are treated/stored internally..i think dates are stored as no of days after 0001/01/01 but cannot see how this cwould effect..may be somebody else can through
    some light..... 
    if you make it as datetime it will work,
    if you leave it as date - eliminate adding 1...  you should prefer to use dateadd to add/substract dates.
    try this to understand..
    --removed the +1 in the code
    declare @input date
    set @input ='20150503'
    select
    convert(DATE, DATEADD(s,-1,DATEADD(mm,DATEDIFF(m,0,dateadd(m, -11, @Input)),0)),101)
    go
    --made the datatype as datetime
    declare @input datetime
    set @input ='20150503'
    select
    convert(DATE, DATEADD(s,-1,DATEADD(mm,DATEDIFF(m,0,dateadd(m, -11, @Input)+1),0)),101)
    Hope it Helps!!

  • Sir,how to find the last DML operations

    Hi,
    Please tell me how to find the last DML Operations at least minimum 30 queries.
    Thanks in advance,

    Shared Pool is a memory location in SGA that contains SQL Statement that are submitted to Oracle for execution. This area is common to the entire database. Its not specific to user.
    So what ever Unique SQL statement that is submitted to the SQL Engine will be available here. Shared Pool has a size limit. That is defined by the parameters SHARED_POOL_SIZE and SHARED_POOL_RESERVED_SIZE. So when the Shared pool becomes full the data needs to be removed from it. That is done in FIFO basis.
    Oracle provides a visibility to this area through dictionary view V$SQLAREA. So this view will not only contain the SQL executed by you but also by every one. Even the one executed by oracle itself.
    So in my opinion what you are asking is not possible to get. You must have some logging mechanism in your application to get this information.

  • Find the last character in an aplhanumreic string

    Hi guys first time poster long time hiding in the shadows,
    hopefully someone can help me
    I have set of username stored and I need to find the last
    character before the number for example
    abc123 I would want to find c
    ab123 I would want to find b
    any suggestions as to how I would do this?
    Thanks in advance

    Here's one way:
    <CFSET YourString = "abc123")>
    <CFSET LastChar = "">
    <CFSET Pos = 1>
    <CFSET CharLen = Len(YourString)>
    <CFLOOP from="1" to="#CharLen#" step="1">
    <CFSET Char = right(left(YourString,Pos),1)>
    <CFIF Not IsNumeric(Char)>
    <CFSET LastChar = Char>
    <CFSET Pos = Pos + 1>
    <CFELSE>
    <CFBREAK>
    <CFIF>
    </CFLOOP>

  • How to find the last string value in dynamic object?

    Hi All,
    I am trying to find the last string value in dyanamic objects,Any one have solution for this.
    Ex:
    my data :12347-ebjdone-525-ecgfjf-25236-defdafgdeg
    And i want to show the output is :defdafgdeg
    Any ideas:
    Thanks
    Srini

    For oracle try using oracle function.
    e.g.
    SELECT  reverse(substr(reverse('12347-ebjdone-525-ecgfjf-25236-defdafgdeg'),1,instr(reverse('12347-ebjdone-525-ecgfjf-25236-defdafgdeg'),'-','1'))) from dual
    Object definition might look like:
    reverse(substr(reverse({ObjectName}),1,instr(reverse({ObjectsName}),'-','1')))
    Regards,
    Kuldeep
    Edited by: Kuldeep Chitrakar on Feb 12, 2010 8:12 AM

  • Help find the Last run date from previous month

    Hi all
    I am stuck trying to find the Last Run Date from the previous month.
    select distinct(date_ran) from TABLE X where date_ran like '%/11-%' order by date_ran desc gives
    "03/30/11-06:19
    "03/25/11-03:01
    "03/24/11-03:00
    "03/23/11-03:00
    "03/22/11-03:00
    "03/21/11-03:00
    "03/18/11-03:00
    "03/17/11-00:00
    "03/16/11-06:31
    "02/15/11-07:42
    "02/15/11-06:00
    "02/14/11-08:19
    Here the result I am trying to acheive is 02/15/11-07:42 ;Note the column date_ran is a VARCHAR2(255) and not a TIMESTAMP
    I tried
    select ADD_MONTHS(to_date(max(date_ran), 'MM/DD/YYYY-HH24:MI'),-1)
    from daily_tests_a
    where date_ran like '%/11-%'
    order by date_ran desc
    which returns 2/28/0011 6:19:00 AM and that is not the result I am looking for
    Regards
    SMK

    Welcome to the forum!
    user2931503 wrote:
    Hi all
    I am stuck trying to find the Last Run Date from the previous month.
    select distinct(date_ran) from TABLE X where date_ran like '%/11-%' order by date_ran desc gives
    "03/30/11-06:19
    "03/25/11-03:01
    "03/24/11-03:00
    "03/23/11-03:00
    "03/22/11-03:00
    "03/21/11-03:00
    "03/18/11-03:00
    "03/17/11-00:00
    "03/16/11-06:31
    "02/15/11-07:42
    "02/15/11-06:00
    "02/14/11-08:19
    Here the result I am trying to acheive is 02/15/11-07:42 ;Note the column date_ran is a VARCHAR2(255) and not a TIMESTAMPThat's a very bad idea. Points in time should always be stored in DATE (or maybe TIMESTAMP) columns. If not, you're going to waste resources converting them to DATEs whenever you need them to behave like DATEs, and risk run-time errors because of bad data.
    Normally, the "previous" month means the month before the current month. In April, the previous month is March.
    By "previous" month, do you mean the 2nd latest month in the table? That is, this data contains data from February and March, 2011; March 2011 is the latest of those months, February 2011 is the next-to-last, and so is that why you want a date from February?
    I tried
    select ADD_MONTHS(to_date(max(date_ran), 'MM/DD/YYYY-HH24:MI'),-1)
    from daily_tests_a
    where date_ran like '%/11-%'
    order by date_ran desc
    which returns 2/28/0011 6:19:00 AM and that is not the result I am looking for
    Regards
    SMKTry this:
    WITH   got_real_date   AS
         SELECT     TO_DATE ( SUBSTR (date_ran, 1, 14)
                   , 'MM/DD/RR-HH24:MI'
                   )     AS real_date
         FROM     table_x
    --     WHERE     ...     -- If you need any filtering, put it here
    SELECT     TO_CHAR ( MAX (real_date)
              , 'MM/DD/RR-HH24:MI'
              )     AS last_date
    FROM    got_month_num
    WHERE     real_date     < (
                               SELECT  TRUNC (MAX (real_date), 'MONTH')
                         FROM    got_real_date
    ;Edited by: Frank Kulash on Apr 5, 2011 3:59 PM

  • Finding the last valid value in a date range

    The data I am working with represent readings from different instruments. One field keeps track of a running summation so this number is steadily increasing. I need to look at the data for a given date, however the problem is that sometimes the instrument is turned off. In this case there would be no data for that date, however since all I am interested is the sum total for the signal on that instrument, I need to keep going back until I find the last valid data in the database which would represent the sum up to this point. How can I design a query or procedure that would handle this contingency? Here is some sample data:
    PV_ID                  SMPL_DTE                  INTEG_SINCE_VAL
    271                    20-JUL-08 12.05.00 AM     6172.0387459767
    271                    20-JUL-08 12.06.00 AM     6172.0387459767
    271                    21-JUL-08 12.05.00 AM     6172.0387459767
    271                    21-JUL-08 12.06.00 AM     6172.0387459767
    271                    21-JUL-08 08.43.00 AM     6172.0387459767
    271                    21-JUL-08 08.45.00 AM     6172.0387459767
    271                    22-JUL-08 12.05.00 AM     6172.0387459767
    271                    12-AUG-08 04.45.00 PM     6172.0387459767
    271                    12-AUG-08 04.50.00 PM     6172.038748687284 So if for instance I ran a query for July 30th, I'd need to actually get the result from July 22nd since it is the last valid number. PV_ID represents the instrument ID and INTEG_SINCE_VAL is the accumulated total for signal readings on that instrument.
    Edited by: Solerous on Mar 16, 2009 7:23 AM
    Edited by: Solerous on Mar 16, 2009 7:25 AM

    Hi,
    Connected to Oracle Database 10g Enterprise Edition Release 10.2.0.1.0
    Connected as hr
    SQL>
    SQL> SELECT *
      2  FROM   (WITH data AS (SELECT 271 AS PV_ID,
      3                               (SYSDATE - 5) AS SMPL_DTE,
      4                               23 AS INTEG_SINCE_VAL
      5                        FROM   dual
      6                        UNION ALL
      7                        SELECT 271 AS PV_ID,
      8                               (SYSDATE - 4) AS SMPL_DTE,
      9                               40 AS INTEG_SINCE_VAL
    10                        FROM   dual
    11                        UNION ALL
    12                        SELECT 271 AS PV_ID,
    13                               (SYSDATE - 1) AS SMPL_DTE,
    14                               50 AS INTEG_SINCE_VAL
    15                        FROM   dual)
    16             SELECT data.*,
    17                    rownum
    18             FROM   data
    19             WHERE  PV_ID = 271
    20             AND    SMPL_DTE <= SYSDATE -- your date goes here
    21             ORDER  BY smpl_dte DESC)
    22             WHERE  rownum = 1;
         PV_ID SMPL_DTE    INTEG_SINCE_VAL     ROWNUM
           271 3/15/2009 1              50          3
    SQL> Regards,

  • How to find the Last logon detail of a deleted user?

    I need to find the last logon detail of a deleted user.I have tried with SM20 i got the details,but i coildnt get for few users.Is there any other way to get this?

    Hi Eva,
    Follow below:-
    1. Go to Se16
    2. table name either USH02 or USH04
    3. provide BNAME row as your user name then execute it
    4. you will get all the entries for that user in the next output screen
    5. Check the Column names like
    MODDA 
    MODTI
    MODBE   
    TCODE REPID
    For the Details which you need.
    The descriptions of this columns are as below:-
    MANDT                        
    Client
    BNAME                        
    User
    MODDA                        
    Modification date
    MODTI                        
    Modification time
    MODBE                        
    Changed by
    TCODE                        
    Not More Closely Defined Area, Pos
    REPID                        
    Program Name
    BCODE                        
    Initial password
    GLTGV                        
    Valid from
    GLTGB                        
    Valid through
    USTYP                        
    User Type
    CLASS                        
    User group
    UFLAG                        
    User Lock Status
    ACCNT                        
    Account number
    PASSCODE                     
    Password Hash Val.(SAH1, 160 Bit)
    CODVN                        
    Password Code Vers.
    PWDINITIAL                   
    Indicator: Password Is Initial
    Let me know if you need further help in this.
    Regards,
    Ram

  • TS2518 I opened Aperture and all my projects and albums for the last 4 months have gone. Where can I recover them from?

    I have lost the last 4 months of photos on Aperture and have no idea why. Can anyone tell me how to recover them? I don't find Mac software that intuitive after using MS for 30+ years.

    We will need to know more, to be able to help you to find and restore your images.
    What exactly do you mean by "lost 4 month of photos". Are earlier projects still visible in Aperture or are all your projects missing?
    What is your Aperture version and your MacOS X version?
    And what were the last action you did on your mac, before the photos went missing? Did you install something, update something, run some cleaning tools?
    Did you move your aperture library to a different location?
    Please tell us anything you think that might help to understand what happenend.
    Sometimes images appear to be missing, but are only hidden.
    Have you looked in Aperture's Trash? And the Trash on your Desktop?
    Have you looked at the searchfields in the browser and Inspector if they are cleared and are showing "All Items" or "Showing all"?
    Have you opened the correct  Aperture Library? If you type ".aplibrary" into the Spotlight searchfield in the upper right corner of your screen, do you see more than one Aperture library?
    Regards
    Léonie

  • How can I find all my photos instead of the just the last six months?

    I need help finding all my photos, instead of just the last six months.

    Which PSE version ?
    The last six month option is generally one of the choices for 'smart albums', now called 'saved searches'.

Maybe you are looking for

  • Error while saving the Sales Order

    Hi experts,     i am getting a runtime error while saving a sales order stating: SAPSQL_EMPTY_TABNAME. It says the field T681-KOTAB could be empty. I would give in more inputs. Someone plz help. Thanks.

  • Bridge CC / How to use all cores to generate JPEG images?

    Hi! Is there anyway to tell Bridge, that it should use all my cores to generate the JPEG images out of RAWs? Actually it uses less then 25% of my CPU performance. I've a Intel Core i7-2600 CPU @ 3,4 GHZ, with four cores and enabled hyperthreading, al

  • Is it possible to add name to subject line when submitting a pdf form

    Hi, I have created a form with Live Cycle and added a button which submittingthe form as PDF. I was wondering is it possible to add staff name to the subject line just after Leave Request as seen in the picture below? Regards

  • Advice needed on some package quirks...

    Hi all, I'm fairly new to Arch (a week or two) and I'm working on creating my first real package.  I came from Slackware and I'm used to using a utility called superformat to format DOS floppies and stuff, I know I can use fdformat/mformat but I real

  • Image zoom

    hii expert, i want to zoom image at rumntime. image is showing in display image item. how can do this situation in apex