Tablespace growth

Hi all

We are 11 GR 2 2 node RAC in win2008r2. I want to get report growth tablespace in good months for the last 6 months. I would be grateful if someone can help out me. The following query gives me a month only. I want month wise. Help, please

SELECT TO_CHAR (sp.begin_interval_time,'DD-MM-YYYY "") days

ts.tsname

, max (round ((tsu.tablespace_size* dt.block_size) /(1024*1024), 2)) cur_size_MB

, max (round ((tsu.tablespace_usedsize* dt.block_size) /(1024*1024), 2)) usedsize_MB

OF DBA_HIST_TBSPC_SPACE_USAGE tsu

DBA_HIST_TABLESPACE_STAT ts

DBA_HIST_SNAPSHOT sp

Dt DBA_TABLESPACES

WHERE tsu.tablespace_id = ts.ts #.

AND tsu.snap_id = sp.snap_id

AND ts.tsname = dt.tablespace_name

AND ts.tsname NOT IN ('SYSAUX', 'SYSTEM')

GROUP OF TO_CHAR (sp.begin_interval_time,'DD-MM-YYYY ""), ts.tsname

ORDER BY ts.tsname, days

/

Can you please send the output you get.

The above query that generate the day wise result (and not wise months).

For the report month wise, you must use TO_CHAR (sp.begin_interval_time, 'MM-YYYY') instead of TO_CHAR (sp.begin_interval_time, 'DD-MM-YYYY') or use trunc (begin_interval_time, 'MM') instead of TO_CHAR (sp.begin_interval_time,'DD-MM-YYYY "")

If you want data day wise but you have found only 1 month data, this means that older data is purged from your database.

You can check this by using query below to see how old instant you have.

Select min (sp.begin_interval_time) DBA_HIST_SNAPSHOT sp.;

Concerning

Anurag.

Tags: Database

Similar Questions

  • keeping track of the tablespace growth

    Hi all

    10g on solaris 10


    We want to keep track of the tablespace growth in our production database?

    Any idea hw to do this?


    Kai

    Better to keep the data in a table of data instead of the old email so you can find and process.
    Best database dbms_scheduler than cron schedule.

    for example, something like
    create table xxx_datafile_history (date of collect_date, varchar2 (30) nom_tablespace, whole file_id, number of bytes).

    -can schedule a monthly job to do the following: -.

    Select sysdate into double currdate;
    insert into xxx_datafile_history select currdate, nom_tablespace, file_id bytes from dba_data_files;

  • Unexplained Tablespace growth then shrinks in 11g

    Is there something in the automated jobs that cause a tablespace to show growth, then shrink within 10-15 minutes?  We alerted through OEM of a WARNING, followed shortly after by a time CLEAR.  I remember reading something on this time, but couldn't find this documentation again.  Can anyone help?

    FBahr wrote:

    John - work Advisor automatic segment running, cause this situation?

    Yes, it could... did you read my response? The Advisor of Compression is part of employment Advisor auto segment.

  • Projection of tablespace growth

    Hi all

    I want to understand if there is a way to predict the growth of a tablespace, I used dbms_space that predicts the upward trend in a specific table not a tablespace.

    Thanks in advance

    refer to this link: hope, what can help you
    http://www.DBA-Oracle.com/t_database_growth_reports.htm

  • Temporary tablespace growth

    Hello guys,.

    I have an Oracle (10g version 10.1.0.5.0) database that is not too big, but my phase of temporary tablespace (LMT) too (20 GB)
    How can I save a normal or more regular size?

    Kind regards.

    There are reasons of servral why your app (has nothing to do with the size of the database) is using a lot of temporary space. Get your temporary tablespace to small size can not solve. It will still grow after that.

    You might want to take a look at these discussions on the parameters of the PGA, etc.

    Re: Problem with memory PGA - Oracle 10.2.0.4 on windows 2003
    Re: Details on using in the memory of the PGA

    If you must reduce the size of your tablespace temp of smaller size, an option is to create a new temp tablespace, change username for this tablespace, drop the old temp tablespace and re-create for small size chosen, then switch users back.

    Avoid creating your temporary tablespace with temporary file extension. The size of your tempfiles properly and not use AUTO EXTEND on creating temp tablespace.



    Oracle database FAQ

  • How to find a tablespace of growth on a daily basis

    Hi team,

    How can we find a tablespace of growth on a daily basis for a 11.2.0.2 database?

    OPERATING SYSTEM: AIX 6.1

    ###########################
    !!! Tablespace growth
    ###########################

    Change your name of the Tablespace TBS1.

    SELECT TO_CHAR (sp.begin_interval_time,'YYYY-MM-DD') days
    , ts.tsname
    , max(round((tsu.tablespace_size* dt.block_size )/(1024*1024),2) ) cur_size_MB
    , max(round((tsu.tablespace_usedsize* dt.block_size )/(1024*1024),2)) usedsize_MB
    FROM DBA_HIST_TBSPC_SPACE_USAGE tsu
    , DBA_HIST_TABLESPACE_STAT ts
    , DBA_HIST_SNAPSHOT sp
    , DBA_TABLESPACES dt
    WHERE tsu.tablespace_id= ts.ts#
    AND tsu.snap_id = sp.snap_id
    AND ts.tsname = dt.tablespace_name
    AND ts.tsname IN ('TBS1')
    GROUP BY TO_CHAR (sp.begin_interval_time,'YYYY-MM-DD'), ts.tsname
    ORDER BY ts.tsname, days;
    

    Please keep forum clean marking your Post as answer or relatively useful if your question is answered.

    Thank you best regards &,.
    SID

    (StepIntoOracleDBA)

    E-mail: [email protected]

    http://stepintooracledba.blogspot.in/

    http://www.stepintooracledba.com/

  • How to find the history of Tablespace in Oracle database?

    Hello

    I need to find which data was inserted on the weekly basis in the particular tablespace.

    Because we need to find which tables update very frequently, and also we didn't have plenty of space in the server.

    If we can find it, it would be useful for us to communicate with the developers.

    Thank you

    Shiv.

    For tablespace growth

    ==================

    Select

    TO_CHAR (sp.begin_interval_time,'dd-mm-yyyy "") days.

    TS.tsname,

    Max (round ((tsu.tablespace_size* dt.block_size) /(1024*1024), 2)) cur_size_mb,.

    Max (round ((tsu.tablespace_usedsize* dt.block_size) /(1024*1024), 2)) usedsize_mb

    Of

    dba_hist_tbspc_space_usage tsu,

    dba_hist_tablespace_stat ts,

    dba_hist_snapshot sp,

    dba_tablespaces dt

    where

    Tsu.tablespace_id = ts.ts #.

    and

    Tsu.snap_id = sp.snap_id

    and

    TS.tsname = dt.tablespace_name

    and

    TS.tsname not in ('SYSAUX', 'SYSTEM')

    Group

    TO_CHAR (sp.begin_interval_time,'dd-mm-yyyy ""), ts.tsname

    order of ts.tsname, days;

    To check the tablespace free sapce

    ================

    Select nom_tablespace, sum (bytes) /(1024*1024*1024) from dba_free_space where nom_tablespace = group 'LARGE_DATA' order by 2 desc nom_tablespace

    To check the size of tables

    =================

    Select sum (bytes) in dba_segments where nom_segment = "XYZ";

    Thank you

    Harman

  • Database health check and monitoring

    Hello world
    Hello.

    I'm looking to get the suite in our Oracle databases. I need some advice on what should be.

    (1) weekly health check report to all DBA database

    Here, I need metrics on what different from last week, which needs to be addressed parameters
    (for example, processes and sessions have limit max and if our databases has already reached near this value)
    Next, we need to come back to the reason why we have more connections.
    DB_FILES is the maximum number of files in a database, we can create. If we've reached the maximum value, we can not create new data files).

    So there are some parameters that can "t be replaced without stopping and restarting DB and if we can grasp these details by every Friday, we can determine how to remedy.


    (2) hours, daily, weekly, followed by data bases

    Locks on the contention, tablespace growth, growth of the object, databases, etc, etc.


    I'm looking for help on above. If someone already has a control, you might like
    Let me know.

    Thank you
    Delphine

    user13312943 wrote:
    Hello world
    Hello.

    I'm looking to get the suite in our Oracle databases. I need some advice on what should be.

    (1) weekly health check report to all DBA database

    Here, I need metrics on what different from last week, which needs to be addressed parameters
    (for example, processes and sessions have limit max and if our databases has already reached near this value)
    Next, we need to come back to the reason why we have more connections.
    DB_FILES is the maximum number of files in a database, we can create. If we've reached the maximum value, we can not create new data files).

    So there are some parameters that can "t be replaced without stopping and restarting DB and if we can grasp these details by every Friday, we can determine how to remedy.

    (2) hours, daily, weekly, followed by data bases

    Locks on the contention, tablespace growth, growth of the object, databases, etc, etc.

    I'm looking for help on above. If someone already has a control, you might like
    Let me know.

    Thank you
    Delphine

    "What different last week" is not the same as "what important thresholds crossed." It is easily controlled with OEM. In fact, OEM has most of what most people find useful already monitored. All you need to do is activate the built in its notification, send an email to all the interested parties when these events occur or thresholds are crossed.

    And integrated into OEM thresholds are easily modified to meet your own needs.
    And OEM can also be configured for additional control in addition to what comes "out of the box.

  • Truncate FND_LOG_MESSAGES

    Hi all

    I would like to know if it will be a problem if I truncated the table fnd_log_messages. Due to a problem of competing application our fnd_log_messages table marched in two days, and we could notice it only when he gave the error of space. In two days, 10 GB of data and index of almost 10 GB have been created. The competitor to serve this end table with the error. I'll look into it, but I would also like to learn more about the truncation.

    Thank you
    Burak

    Hello

    There are some indexes is usually stored in the tablespace.if tablespace growth until the index will grow also accordingly.the extreme growth of fnd_log_messages may affect the size listed indexes:

    FND_LOG_MESSAGES_N4
    DR. FND_LOBS_CTX$ I
    FND_LOG_MESSAGES_N8
    FND_LOG_MESSAGES_N7
    CST_RCV_ACQ_COST_DETAILS_N1
    DR.$ FND_LOBS_CTX$ X
    CST_RCV_ACQ_COST_DETAILS_U1
    FND_LOG_MESSAGES_N5
    AX_RULE_LINES_N2

    you have to study a lot to know what table is responsible for this main reason of growth.the quite normal in all cases is debug FND is set at level.so site the whole work should be like:

    purge 1) obsolete alert system and save messages.

    check the size of the tablespace apps_tx_ts_idx again if it is still not reduced
    (* 2) truncate table applsys. FND_LOG_MESSAGES; *
    It is also recommended by oracle (ID 759359.1).

    Thank you.

  • ASMCMD Free_MB & free Tablespace MB are different?

    Hello Experts-

    I am trying to understand how much free space I have left on the data plan.

    ASMCMD > lsdg-> gives a MB free different value compared to the use of space tablesapce.

    Should what value be addressed?

    I want to ASMCMD will be more accurate but I still need to understand why they are different.

    Thank you

    SQL> column dummy noprint
    column  pct_used format 999.9 heading "%|Used"
    column  name format a16 heading "Tablespace Name"
    column  Kbytes format 999,999,999 heading "Total_GB"
    SQL> SQL> SQL> SQL> column  used format 999,999,999 heading "Used_GB"
    column  free    format 999,999,999 heading "Free_GB"
    SQL> SQL> column  largest    format 999,999,999 heading "Largest"
    break   on report
    compute sum of kbytes on report
    compute sum of free on report
    compute sum of used on report
    
    
    select nvl(b.tablespace_name,
    nvl(a.tablespace_name,'UNKOWN')) name,
    SQL> SQL> SQL> SQL> SQL> SQL>   2    3  kbytes_alloc kbytes,
    kbytes_alloc-nvl(kbytes_free,0) used,
    nvl(kbytes_free,0) free,
    ((kbytes_alloc-nvl(kbytes_free,0))/
    kbytes_alloc)*100 pct_used,
      4    5    6    7    8  nvl(largest,0) largest
    from ( select sum(bytes)/1024/1024/1024 Kbytes_free,
    max(bytes)/1024/1024/1024 largest,
    tablespace_name
    from  sys.dba_free_space
      9   10   11   12   13  group by tablespace_name ) a,
     14  ( select sum(bytes)/1024/1024/1024 Kbytes_alloc,
     15  tablespace_name
    from sys.dba_data_files
     16   17  group by tablespace_name )b
     18  where a.tablespace_name (+) = b.tablespace_name
    ; 19
    
    
                                                                 %
    Tablespace Name      Total_GB      Used_GB      Free_GB   Used      Largest
    ---------------- ------------ ------------ ------------ ------ ------------
    SYSTEM                      4            1            3   25.1            0
    SYSAUX                      6            4            2   69.4            2
    UNDOTBS1                   16            0           16    2.2            4
    USERS1                    237          224           13   94.4            4
                     ------------ ------------ ------------
    sum                       263          229           34
    
    
    
    
    
    
    
    
    
    ASMCMD> lsdg
    State    Type    Rebal  Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  Voting_files  Name
    MOUNTED  EXTERN  N        1024   4096  1048576    307200     4636                0            4636              0             N  DATA/
    MOUNTED  EXTERN  N        1024   4096  1048576    204800   159010                0          159010              0             N  FLASH_RECOVERY/
    
    
    
    
    
    
    
    

    Storage spaces are a subset of the ASM starts they are created in.

    Segments in storage are a subset of the Tablespaces.

    You might have a DG ASM to 100 GB with a 32 GB that has Tables and the indexes Tablespace that adds up to 10 GB.

    Looking to 68 or 22 GB as free space?  The 68 GB means that the tablespace can * growth * by an another 68 GB by adding new data files or the extension of existing data files.

    The 22GB guess never add new data files or expand existing data files (resize).

    68GB becomes more complicated when you have Normal or high redundancy and several FailureGroups of the DG of the DSO.

    Hemant K Collette

  • DB too fast growth during the migration to AIX 12 c

    Hi all

    Please, help me understand why db growing so fast.

    I have an older server (Win2003) table with 11g, which contains 400 000 000 rows and receives 79 GB tablespace

    This table is sous-partitionnée and contains number and varchar2 datatypes (up to 50 bytes)

    After copying the data to the new table (which places on AIX 12 DB) with the same structure (I used INSERT + DBLINK) size of the table takes 118 GB!

    Please, help me to understand the reasons for this growth.

    Parameters of NLS Win2003 11g:

    AL32UTF8 NLS_CHARACTERSET

    NLS_NCHAR_CHARACTERSET AL16UTF16

    AIX 12 c NLS settings:

    CL8MSWIN1251 NLS_CHARACTERSET

    NLS_NCHAR_CHARACTERSET AL16UTF16

    The reason is in default size of the measure. http://m.blog.ChinaUnix.net/uid-22948773-id-3873997.html

  • Maintenance of the EBS tablespaces

    Hi all

    EBS 12.1.3

    RHEL5.3

    I want that our database to have all its tablespaces auto extend, so that doesn't meet table of error like 'cannot extend error. "

    Is this right? There is a drawback with it?

    Thank you very much

    JC

    Hello

    The only drawback comes from the misuse of this feature.

    You must specify a limit to the size of the file.

    Each OS has a limit on the size of the files. For 64-bit file systems, the maximum file size for normal tablespaces is 32 GB.

    You should avoid very large file sizes.

    You must also make sure that there is sufficient disk space to accommodate the growth of the database.

    This does not mean that you should not monitor the database from time to time.

    Kind regards

    Bashar

  • Growth of DB per Segment for the last days

    Greetings,


    Our Prod database has grown fast enough for the last 2 weeks, I have a question which gives me the current database size, but I'm trying to run a report to get the size of database/trend for the last 7 days or so which segment (Table or Index, etc.) who have contributed to the growth of the database.

    Thank you.

    @AJ

    Thanks LonutC! Unfortunately this is not what I want, I don't have the means to get the size of the database / total space free etc... on level tablespace, datafile, and object, but the main thing I was looking for is to find the size of the table over time (IE how much a XYZ in MB/GB table has increased during the last 14 days?) The closet script that I've found so far is below the Berloson site.  As you can see in my previous discussions, I could see how much in terms of MB a table set increases every hour in a day and 7-day window as well. I think that will suffice for now, I'll go ahead and close this thread and thank you to all WHO helped

    Please note that you can modify this script to report on any object and not just a Table. But, ALWAYS run any script that you encounter on your Test Env first... just a heads-up...

    > This script displays "total used spaced ' (total size) for a specific table to the Oracle, basically computing the size of the Oracle tables over time:

    a15 col c1 format topic ' snapshot | date'

    a25 col c2 format topic ' table. name '

    format header 999 999 999 c3 col ' space. used | total"

    Select

    TO_CHAR (begin_interval_time, ' dd/mm/yy hh24:mm') c1,

    object_name c2,

    space_used_total c3

    Of

    s dba_hist_seg_stat,

    dba_hist_seg_stat_obj o,

    sn dba_hist_snapshot

    where

    o.Owner = "SCHEMA_07".

    and

    s.obj # o.obj = #.

    and

    SN.snap_id = s.snap_id

    and

    object_name like '% objecname '.

    order by

    begin_interval_time;

    > My results Exp
    > 08/10/15 [HR_EMP_LOG] table has increased to about 8.9 MB to 27.7 MB

    10/08/15 09:08 HR_EMP_LOG 8 914 010

    08/10/15 01:08 HR_EMP_LOG 12,687,676

    10/08/15 12:08 HR_EMP_LOG 20,247,050

    08/10/15 14:08 HR_EMP_LOG 27,776,769

    > On 11/08/15 the table [HR_EMP_LOG] has increased by about 2.9 MB 42 MB

    08/11/15 03:08 HR_EMP_LOG 2 967 158
    08/11/15-06:08 HR_EMP_LOG 10,190,002
    11/08/15 11:08 HR_EMP_LOG 17,068,289
    08/11/15 13:08 HR_EMP_LOG 24,868,673
    11/08/15 17:08 HR_EMP_LOG 30,767,601
    11/08/15 18:08 HR_EMP_LOG 35,149,608
    11/08/15 20:08 HR_EMP_LOG 42,113,748
  • Doubt in the creation of Tablespace

    Hello world

    Good evening

    Statements of fact the following two are the same when the tablespace created?

    1 Autoextend on next 10 m

    2 extent management local uniform size 10 m

    If this is not what is the difference between these 2

    thanking you in advance,

    Prakash

    Prakash T Soundappan says:

    Hello world

    Good evening

    Statements of fact the following two are the same when the tablespace created?

    1 Autoextend on next 10 m

    To allow the file to grow automatically if necessary.  Expand it in segments of 10 m.

    2 extent management local uniform size 10 m

    When assigning a measure of a segment, are all extensions 10 m in size.

    If this is not what is the difference between these 2

    Autoextend controls the growth of the data file

    Measure management controls the size of the scopes.

    Autoextend controls how many square feet to add to your home

    Management measure controls how large to make the rooms in the House.

    thanking you in advance,

    Prakash

  • Tablespace in expansion.

    Hi all

    I used all my space for a database table, formed following files.

    users01.DBF (32 GB)

    USERS02.DBF (32 GB)

    USERS02.DBF (32 GB)

    I can add another file to the table space by publishing the following...

    ALTER TABLESPACE USERS add DATAFILE ' /u02/oradata/dbnameusers04.dbf' SIZE 32 G autoextend on next maxsize 50 m 60 G;

    that will add a new file with auto-growth up to 60 GB.

    My question is - can't I just add autoextend to existing files, rather then by adding a new?

    ALTER DATABASE DATAFILE ' /u02/oradata/dbnameusers01.dbf' resize 45 GM autoextend on next maxsize 50 m 60 G;

    ALTER DATABASE DATAFILE ' /u02/oradata/dbnameusers02.dbf' resize 45 GM autoextend on next maxsize 50 m 60 G;

    ALTER DATABASE DATAFILE ' /u02/oradata/dbnameusers03.dbf' resize 45 GM autoextend on next maxsize 50 m 60 G;

    If it's false, what is the correct format to do?

    Thanks in advance.

    Dave

    Dave, the maximum file size is limited by the operating system and the size of blocks Oracle tablespace in use.  With Oracle 8 K block and a small file tablespace, the maximum file size is 32G.  See the reference in version # Oracle manual.  Attention, in the past, it was possible to allocate the files which exceeded the size that Oracle could deal with and I know DBA that still limit their allocations of file to something less than the official limit just because of these past mistakes.  You almost always include the full version of Oracle on any ad.

    - -

    HTH - Mark D Powell.

Maybe you are looking for

  • USB-6501 is and Off is on

    Hello I have a USB-6501. When I send the value True to the writing DAQmx digital VI the signal from the equipment turns off, and when I wire a false material passes. The same thing happens with an entry. Causes a short circuit between the terminals a

  • Although it is the dell DELL SAS business class model, can I buy a 600 GB 15.7 k sas 3.5 Cheetah? I could put any 15.7 k sas model in a dell and it is not compatible.

    can I buy a 600 GB 15.7 k sas 3.5 Cheetah without having the business class dell model?  I could put any 15.7 k sas model in a dell and it is not compatible. any help would be greatly appreciated as im new too servers.

  • The mouse loses accuracy when running VMware Fusion in Unity view

    When I try to select items on the screen after the execution of the unit for a minute, the things I would not choose are selected.  It almost seems as if the precision of the mouse is at a loss.  Everyone knows this, and if so, do you have a solution

  • CS5.5 on multiple computers

    HelloI have the above version of Photoshop on my main computer, but I also have a laptop and a mobile tablet pc that I use for work on the go (currently without PS on which is installed).I need Photoshop that I do my job; am I allowed to install it o

  • Uninstall Siebel

    Hello, I have a Siebel 8.0 on Windows 2003 installation that fails systematically. In fact, I detected 4 servers, which were 3 failed to install tent and one that the term 'right '. My idea is to completely eliminate the Siebel installation to start