Tablespace Growth

Hi All,
Can any one provide the Script or Sql query to find the Tablespace growth per day and Per one hour?

DBA Learner wrote:
Hi All,
Can any one provide the Script or Sql query to find the Tablespace growth per day and Per one hour?Here is the scripts
SQL> set heading on
SQL> set linesize 5500
SQL> SELECT TO_CHAR (sp.begin_interval_time,'DD-MM-YYYY') days
2 , ts.tsname
3 , max(round((tsu.tablespace_size* dt.block_size )/(1024*1024),2) ) cur_size_MB
4 , max(round((tsu.tablespace_usedsize* dt.block_size )/(1024*1024),2)) usedsize_MB
5 FROM DBA_HIST_TBSPC_SPACE_USAGE tsu
6 , DBA_HIST_TABLESPACE_STAT ts
7 , DBA_HIST_SNAPSHOT sp
8 , DBA_TABLESPACES dt
9 WHERE tsu.tablespace_id= ts.ts#
10 AND tsu.snap_id = sp.snap_id
11 AND ts.tsname = dt.tablespace_name
12 AND ts.tsname NOT IN ('SYSAUX','SYSTEM')
13 GROUP BY TO_CHAR (sp.begin_interval_time,'DD-MM-YYYY'), ts.tsname
14 ORDER BY ts.tsname, days;
above scripts give you growth per day.
--neeraj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • DBMS_SPACE(9i) for tablespace growth trend..?

    Hello,
    for 10G, dbms_space.object_growth_trend() can expect table's growth....
    for 9i (9.2.0.6 in Sun9) database, is there any friend has experience know how to do for the following purpose:
    1. How to expect tablespace growth? say, to accommodate new data for the next 30 days we have to increase tablespace A by X GB, tablespace B by Y GB, … etc
    2. How to expect database level growth? say, we need XXX GB more to accommodate new data for the year YYYY
    3, Is there any way to Initialize (if possible) Segment Advisor with the information about segment trends we have already collected in 9i
    Thank you in advance
    Jerry

    Hi..
    AFAIK in 9i you can't find the Subprograms like object_growth_trend() package in dbms_space.
    How to expect tablespace growth? I think that you will have to maintain a sheet of the tablespace usage.Daily you will need to maintain the tablespace size, used and free size of tablespace.Ans after few days of observation you can predict the approximate amount of size being filled up in a day.
    You can use the below query to know the used and the free space in the tablespace.
    select df.tablespace_name tspace,
        df.bytes/(1024*1024) tot_ts_size,
      (df.bytes/(1024*1024) -sum(fs.bytes)/(1024*1024)) Used_ts_size,
      sum(fs.bytes)/(1024*1024) free_ts_size,
            round(sum(fs.bytes)*100/df.bytes) free_pct,
      round((df.bytes-sum(fs.bytes))*100/df.bytes) used_pct1
    from dba_free_space fs, (select tablespace_name, sum(bytes) bytes from dba_data_files  group by tablespace_name ) df
    where fs.tablespace_name = df.tablespace_name
      group by df.tablespace_name, df.bytes
    order by 1
    2. How to expect database level growth? Again same, you need to maintain a sheet for it.Use the below query
    select sum(bytes/1024/1024/1024) Physical_size_gb from dba_data_files;
    select sum(bytes/1024/1024/1024) Actual_size_gb from dba_segments; 3, Is there any way to Initialize (if possible) Segment Advisor with the information about segment trends we have already collected in 9iNo.
    HTH
    Anand
    Edited by: Anand... on Jan 6, 2009 4:17 AM

  • Tablespace growth monitoring script

    Hi,
    I am done with tablespace growth monitoring script.
    But I doesnot know how to configure it in WINDOWS to send alert MAIL.
    Is there any utility for mail configuration in windows.
    Please suggest any solution ASAP.
    Regards,
    Thiru

    It is called OEM alerts. I think we can have configuration in oracle eneterprise manager grid control for automated warnings for tablespace growth. You just have to read below link :
    http://download.oracle.com/docs/cd/B19306_01/server.102/b25159/monitor.htm#i1007180
    Something near to :
    Enterprise Manager Configuration--Management Services and Repository--Agent
    Regards
    Girish Sharma

  • Tablespace growth in DB02

    Hi,
    is there by any chance to veiw my all the tablespace growth for the last 2 months from db02 transaction.
    Thanks
    Sarat chandra

    <a class="jive_macro jive_macro_thread" href="" __jive_macro_name="thread" modifiedtitle="true" __default_attr="2105685"></a>
    Duplicate post
    Read and Follow the forum rules

  • Tablespace growth  from db02 transaction.

    Hi,
    is there by any chance to veiw my all the tablespace growth for the last 2 months from db02 transaction.
    Thanks
    Sarat chandra

    Dear Sarat,
    You can check out in the following way:
    DB02
    Space -> History -> Tables and Indexes
    Filters =
    Tablespace = *
    Table abd Index *
    Table or index size > *
    order by growth and data will be dispalyed.
    This would resolve your purpose.
    Regards,
    Abhishek

  • Past Tablespace Growth Each month

    Hi All,
    Is their any script to find past tablespace growth for each month.
    Regards

    user13364785 wrote:
    Hi All,
    Is their any script to find past tablespace growth for each month.
    RegardsHow about read the docs:
    http://lmgtfy.com/?q=tablespace+growth+query

  • Unusual Temp Tablespace Growth

    Hi ,
    We have noticed unsual temp tablespace growth when concurrent users are accessing OLAP cube through BI Bean crosstabs.
    On an average 3 to 4 GB temp tablespace is consumed for each new user. OLAP cube has 7 dimensions and 1.2 million records and is fully precalculated.
    This causes the system to fail as a result of temp tablespace getting full.
    Can somebody please let me know what can be the root causes?.
    Thanks in advance.
    Harry

    Hi there,
    It is not unusual for OLAP queries to make significant use of temp tablespace. 3-4GB doesn't sound unreasonable to me. The actual amount used depends on factors such as the type of activity and the number of users.
    There is a brief description of how OLAP uses temp tablespace here :- http://download.oracle.com/docs/cd/B28359_01/olap.111/b28124/admin.htm#sthref442
    Note the lower than standard setting 'EXTENT MANAGEMENT LOCAL UNIFORM SIZE 256K' - if you are not already using this setting then you may find that it lowers temp space usage as the default setting is usually 1024K or even 4096K
    I hope this helps
    Stuart

  • Undo tablespace growth

    Hi ..
    My undo tablespace is Growing rapidly from 1gb to 10 gb with an Hour.
    Is there any ways to find out which operation Generates More Undo ..
    Can i able to restrict it...

    hi,
    there is parameter that control the aging out of undo blocks that leverages size of UNDO tbs:
    UNDO_RETENTION
    You can guarantee that unexpired undo data is not overwritten even if it means that future operations that need to generate undo data will fail. This is done by specifying the RETENTION GUARANTEE clause for the undo tablespace when it is created by either the CREATE DATABASE or CREATE UNDO TABLESPACE statement. Alternatively, you can later specify this clause in an ALTER TABLESPACE statement.
    more: UNDO RETENTION GUARANTEE

  • SYSAUX tablespace growth

    I am running streams in 10.2.0.1 environment. After a large update (68,000 rows), the sysaux tablespace filled up. It was set to 500 MB, which I thought was adequate. I know that LOGMINER is using sysaux in version 10g. Is there any way to prevent this tablespace from growing? CHECKPOINTFREQUENCY is set to 100.

    You can use DBMS_LOGMNR_D.SET_TABLESPACE to move the logminer tables to another tablespace.
    Also, you can lower the retention policy for logminer checkpoint, wich is 60 days by default by using:
    dbms_capture_adm.alter_capture(
    capture_name => v_capture_name,
    CHECKPOINT_RETENTION_TIME => 8 --Days
    );

  • Dbacockpit  (tablespace statistics, growth/day)

    We use new dbacockpit according to note 1028624 and have implemented the corrections of note 1042725, 1046668, 1052909, 1076147, 1081265, 1066044.
    In difference to the old DB02 (DB02OLD) , I don't see detailed information about the tablespace growth per day:
    In new DB02: tablespaces -> Overview, Summary History  I see only one line per tablespace with
    Begin date End date   Tablespace name   Size(MB) Chg.size/day  Free(MB) Chg.free/day Used(%) Chg.Used/day(%/day) Autoextend Total size(MB),  etc.....
    but I can't see detailed growth for EACH day like in DB02OLD, when double-clicking  on the specific tablespace:
    DB02OLD:
    29.08.2007             4.608.000 1462.272    1.398.240   3.209.760    138.240     69     28-    242        0        910        12          
    28.08.2007             3.145.728        0       74.208   3.071.520    927.120     97     29     242        0        898        39          
    27.08.2007             3.145.728 1048.576    1.001.328   2.144.400    102.200     68     29-    242        0        859         6              
    26.08.2007             2.097.152        0       54.952   2.042.200    186.880     97      9     242        0        853        13              
    Is this normally ? Sometimes it's very important to know , when the growth exactly took place and not see the average growth per day....
    Kind regards,
    Uta

    Thanks a lot. The handling of the new db02 is not very intuitive...
    Unfortunately the new DB02 doesn't supply the same functions than the old db02.
    I hope, that the functionality of the new DB02 will be better with the next supportpackages....
    I see following disadvantages:
    1) you have to SELECT the tablespaces explicitly (also * possible ) to see history data
    2) no sort of tablespaces by changes/month possible, because thes data is only on the detail screen and history tab available, but not in the overview of selected tablespaces
    3) if different tablespaces selected, the last selected tab is not memorized.  To see the detailed history for several tablespaces, you have to click 3 times (name of tablespace, history tab, months tab)
    Perhaps the developpers also read this forum.....;-)
    Regards,
    Uta

  • Scripts To Check Database Growth in Oracle 10g

    Hi All,
    I need your help developing a script to find out the database growth in Oracle 10G on daily, weekly and monthly basis.
    In our production database tablespace growth is huge and we are adding data files frequently. Management is asking about the database growth report and I need to present it. Is there any such script which will suffice the purpose.
    My database version is 10.2.0.5.
    Please help.
    Regards,
    Arijit

    1000103 wrote:
    Hi All,
    I need your help developing a script to find out the database growth in Oracle 10G on daily, weekly and monthly basis.
    In our production database tablespace growth is huge and we are adding data files frequently. Management is asking about the database growth report and I need to present it. Is there any such script which will suffice the purpose.
    only the report that you create
    How do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • Unable to shrink undo tablespace... Help!

    Hi,
    I have problems to shrink the system undo tablespace, which has grown up to 14 GB.
    I use 9.2. Table space owner is 'SYSTEM', undo_management = AUTO.
    I tried to shrink the greatest rollback segments by the commands
    ALTER SESSION SET UNDO_SUPPRESS_ERRORS = TRUE;
    ALTER ROLLBACK SEGMENT "_SYSSMU6$" SHRINK TO 20 M;
    Oracle confirmed these commands, but nothing happened.
    What am I doing wrong?
    Hermann Mueller

    You have seen the discussion about the undo segments, on the temporary tablespaces, you should be aware that the sort segment of a given temporary tablespace is created at the time the first sort operation takes place. The sort segment continues to grow by means of extent allocation until the segment size has reached the total storage demands of all of the active sorts running on the instance. Oracle will keep on allocating temporary space on demand unless the physical limit states otherwise.
    Temporary segments are produced each time a sort operation (explicit -order by- or implicit -aggregation, reindexing-) requires to sort a set that cannot fit into memory. So if you detect excesive sort usage you should aim your monitors towards the sort operations (reports, reindexing, max, min, aggregations, order by ...). If your system has a DDS behaviour, this kind of operations are frequent as a massive sorting has to be peformed against millions of rows.
    A Temporary tablespace will almost always appear to be near 100% full, that's because once oracle has allocated temporary space it doesn't release it back to the free space, it keeps it allocated even when the sort operation has finished. Criteria behind this fact is similar to the one oracle used to have when the rollback segments were in use, Oracle only allocated space and the dba should perform manual actions to release space, and the criteria is performance. Once it has allocated space this big, there are possibilities that the same circumstances that raised the temporary usage high water mark to this level are repeated, so if oracle keeps the mamimum allocated space, it won't have to allocate the same storage once more.
    Main concern with temporary tablespace growth is not free space itself, but the reasons why this amount of space was allocated, so I suggest you to track the sql statements with sort operations. If you are certain the circumstances that motivated this amount of temporary resources to be allocated won't be repeated again, then you could think of resizing down your temporary tablespace. I suggest you to create a new temporary tablespace with the desired size, and alter the default tempoary tablespace to point to this newly crated temporary tablespace, and finally get rid of the original temporary TS.
    ~ Madrid

  • Tablespaces reach 100 percent even though limit is higher and Autoextend ON

    I am working as an APPS DBA and am running the E-Business Suite in a production environment. The problem is that sometimes when I check the tablespace growth some of the tablespaces reach 100%, and available space showing zero (e.g APPS_TS_MEDIA) even though there is a higher limit set for that tablespace. AUTOEXTEND is also ON. Could anyone please let me know what causes that to happen?

    To add to what Nick said, it also possible that immediately after extending that the tablespace will still show near 100% used based on the file extension size and the next extent size as is 64M for both. Plus a second object could extend consuming left over space soon after the file extension.
    If you use extendable files measure space used as the total used space / total available to allocate based on maxsize and not on what is used out of what is currently allocated.
    HTH -- Mark D Powell --

  • How to query the tablespace size increment speed?

    Hello,
    Do you have any directions or ideas on how to know the tablespace size increments history. or how to know the frequency of tablespace size increment.
    when I went into new database, I never managed this database before, i want to know the tabelspace size increments speed for do the reasonable space extend.
    so could you please give us a guide thanks!

    RLUO wrote:
    Hello,
    Do you have any directions or ideas on how to know the tablespace size increments history. or how to know the frequency of tablespace size increment.
    when I went into new database, I never managed this database before, i want to know the tabelspace size increments speed for do the reasonable space extend.
    so could you please give us a guide thanks!Hi, there good way is using DBMS_SPACE.OBJECT_GROWTH_TREND as Rajesh mentioned that.But also you can use some AWR views to getting this information.Seee below link.
    tablespaces' growth trend

  • Growth PSAPBWPODS

    Hi Gurus, a few months ago we was create a Z process chain in our SAP BI system that is execute daily for improve performance. The PC do this 5 steps for some BPS infocubes:
    1. Load Mode On
    2. Create DB Statistics
    3. Delete DB Indexes
    4. Create Indexes
    5. Plan Mode On
    The problem is that our tablespace PSAPBWPODS is full. I checked that since we are running this process chain, the tablespace was growth 2.000 Mb per month, but before of this was only 200 Mb per month.
    How is possible to clean up this tablespace? I think that stadistics are the cause of this problem, is possible to delete it?
    Thanks.

    Neo wrote:
    > Hi,
    >
    > In DB02old query all tables and sort them by size.
    >
    > Have you got lot of these type tables /BIC/B0000<nr>
    >  
    >
    > If yes are these in you ODS tablespace ???
    >
    > And if you query /BIC/000<nr>* does this account for a lot of tables taking alot of space ?
    >
    > Mark
    > -
    >
    > Yes Mark when I check in tablespace PSAPBWPODS, the tables that have more size are like /BIC/B0000* (table part and index part)... What´s that mean??
    >
    > Thanks.
    > NEO
    Hi neo,
    I have had similar tablespace growth and queried this with the functional people as it looks like that PSA was not being deleted
    What we found out was since  upgrading  from BW 3.5 to BI 7.0 earlier in the year some characteristics of the process chains has changed.
    The problem that we overlooked in BI 7.0 was that change logs were not being deleted.
    Have a word with your functional people to go over the process chains.
    In my case after we deleted the change logs and reorganizing the /BIC/B000260 and other tables  I got 200GB back!!
    Mark

Maybe you are looking for

  • IN expression in finder method

    is it possible to define a CMP bean to include a custom finder method to retrieve records that satisfy an IN expression, like in: SELECT * FROM CUSTOMERS WHERE IDCUST IN( $1 ) If so? How should I code the finder method in orion-ejb-jar.xml? I am usin

  • Timestamp in Run PL/SQL

    Hello everyone, Oracle 11gR2 SQL Developer 3.2.09 We have a stored procedure in a package that returns a refcursor. One of the columns (say XYZ) is timestamp with local time zone. When I right click on the package and select Run I get the Run PL/SQL

  • FRM-92102: A network error has occurred. on Windows 2003 Server

    I had installed Oracle APPS R12 on Windows 2003 server. I use the same (System) as Server and Client. When trying to open the Forms I am thrown with below error: FRM-92102: A network error has occurred. The Forms Client has attempted to reestablish i

  • External Datasource Creation

    Hi All, I have created an external datasource to sql server from BAM (Version is 11g- 11.1.1.5). Datasource test was successful. Configuration ========== Owner --- Weblogic type --- JDBC Driver --- weblogic.jdbc.sqlserver.SQLServerDriver User --- <us

  • Best Practices - CUEAC

    Hi - Anyone out there using CUEAC in a switchboarding environment to direct inbound customer calls?  We are using CUEAC and I regularly monitor operator performance using the built-in administrator system reporting. I would like to connect with other