Tablespace Size Monitoring

Hello,
can anyone tell me if it is possible that I can set up OEM to send alerts for tablespaces which reach > 20 gigabtyes. I know very little about PL/SQL, so If anyone can provide a sample of how to code this in a windows environment, I would be very appreciative,
Regards
user563613

Check this:
[http://download.oracle.com/docs/cd/B19306_01/server.102/b14196/montune001.htm#CACCIHAB]

Similar Messages

  • Tablespace size monitoring in Oracle 10g

    Hello
    Our environment: Oracle 10.2.0.3 3-node RAC, ASM, Linux x86-64
    We are using EM Grid Control as a monitoring tool for RAC databases.
    We have "tablespace SPACE USED (%)" metric configured for all RAC databases.
    For some reason this metric does not work all the time and it does not alert dba when warning or critical threshold reached.
    I'd like to hear from people how they monitor tablespace size in Oracle RAC environment with files in ASM.
    Thank you,
    Yelena

    Yelena,
    Your problem is realted to GC and it seems it's not configured properly. Kindly check and verify schedule also. May possible it's notifying to other person also..

  • MTE class for total tablespace size

    Hi,
    We start a monitoring over the solutionmanager and i asked myself, if it's possible to show the total size of a tablespace.
    I only see the free and used space, but not the total.
    In moment we calculate the total space with these 2 results, but it is possible to have large difference in total. But i need these data for the reporting.
    Thanks in Advance

    It is a very good thing to use the command line queries to understand these things.  But it is also good to know your tools.  You should check tablespace size with dbconsole, it shows nice little pictures of how much space is used.  Note that your system tablespace is autoextend, and this is a good thing, since as Sybrand noted, that's where the PL/SQL is stored.  As a practical matter, unless you are adding a lot of new code, that tablespace tends to expand to a steady size and just stay there.  You don't want to fix it there, because you might add new code in the future.
    On the other hand, sysaux and your data may need some watching.  If you are curious, you can use the tablespace map function in dbconsole to see what is where in tablespaces (and there are scripts floating about to see it command line style).  But don't stress over it, Oracle is really good about doing things right.  What you have to watch out for is things like auditing or plan maintenance becoming space hogs in sysaux, and some apps, sometimes combined with some bugs, can use too much data space.  But really, you shouldn't bother with it too much unless you see something using way more space than you would reasonably expect. 
    If you want to obsess over something, consider patching.  11.2.0.1 is not a good sign.

  • Alert, if the tablespace size reached 80%

    Hi friends,
    Can i get the alert, if the tablespace used size reached to 80%.
    Because i handles 25 Databases, going to each databases and checking the tablespace size is really painfull.
    Is there any third party free tool available to check the tablespace size OR can we do it in database itself...pls help
    Rgds,
    Pravin...

    >
    Can i get the alert, if the tablespace used size reached to 80%.
    Because i handles 25 Databases, going to each databases and checking the tablespace size is really painfull.
    Is there any third party free tool available to check the tablespace size OR can we do it in database itself...pls help
    >
    1 Best option is using Grid Control. It may cost.
    2 Another option is to write a check space procedure on your favorite language - PL/SQL, Java, Perl .... that will send an alert to you.
    3 Another option is to use some generic monitoring framework like Sysmon.
    If you do not already have one, and you do not have money for #1 and #3, and time for #2 you can use a free monitoring framework like Nagios.
    There are couple of Oracle plugins for Nagios that you can download for free from Internet. They check not only tablespace free space, but also other important Oracle metrics and alert log. Also you can write your own checker on any language and plug it into Nagios.

  • Amount of temporary tablespace size used for index rebuild

    Hi All,
    I want to know approximate amount of temporary tablespace size used for index rebuild. I need this information to avoid the insufficient temporary tablespace error during the huge index rebuild.
    Is there a query or procedure to find it out.
    Thank you.

    Hi,
    While creating the index, the temporary segment is created in the permanent tablespace. So permanent tablespace must have sufficient space.
    http://www.oracle-base.com/articles/10g/SpaceObjectTransactionManagement10g.php
    http://aprakash.wordpress.com/2010/01/05/numeric-segment-name/
    Anand

  • How to see the tablespace size

    hi
    how to get the tablespace size??
    thx

    Hello,
    select SUM(bytes)/1024/1024 MB from dba_data_files
    where tablespace_name = 'xxxxxx';
    works fine.
    I am trying to build a function for that:
    select SUM(bytes)/1024/1024 MB
    from dba_data_files
    where tablespace_name=upper('&user')
    However, I need to make some enhancements:
    1. how to make comments in sql files?Refer to the REM statement in the sqlplus reference manual
    2. a lot of outputs are generated:
    SQL> @get_size
    Enter value for user: tts1
    old 3: where tablespace_name=upper('&user')
    new 3: where tablespace_name=upper('tts1')
    MB
    2048
    how to avoid that so that only the size is
    displayed.
    for example:
    SQL> @get_size
    Enter value for user: tts1
    MB
    2048
    Refer to set verify off in the sqlplus reference manual.
    >
    3. how to let the function accept a parameter such
    as:
    SQL> @get_size tts1
    Refer to the define command in the sqlplus reference manual.
    >
    4. how to include a usage (help) to that function
    such as:
    SQL> @get_size
    usage: get_size <tablespace name>
    Many thanksRefer to the prompt statement in the sqlplus reference manual.
    Sybrand Bakker
    Senior Oracle DBA

  • Tablespace size. System data vs user data.

    Hi,
    I have Oracle 11.2.0.1 on Solaris 11 x86_64. Software using SYSTEM tablespace. The free space on this tablespace is allmost end,
    When i check what amount of data is collected in database i get strange value:
    select SUM(qq.MB) from (select table_name,(num_rows*avg_row_len)/(1024*1024) MB, num_rows, avg_row_len from user_tables) qq;
    SUM(QQ.MB)            
    6,43802738189697265625
    So i suppose that data using only 6.4MB.... But statistic for this tablespace is
    Tablespace                     Used MB                Free MB                Total MB               Pct. Free             
    SYSAUX                         655                    35                     690                    5                     
    UNDOTBS1                       27                     18                     45                     40                    
    TQTBS                          11                     489                    500                    98                    
    USERS                          0                      5                      5                      100                   
    SYSTEM                         707                    93                     800                    12              
    What is using 700MB?!

    It is a very good thing to use the command line queries to understand these things.  But it is also good to know your tools.  You should check tablespace size with dbconsole, it shows nice little pictures of how much space is used.  Note that your system tablespace is autoextend, and this is a good thing, since as Sybrand noted, that's where the PL/SQL is stored.  As a practical matter, unless you are adding a lot of new code, that tablespace tends to expand to a steady size and just stay there.  You don't want to fix it there, because you might add new code in the future.
    On the other hand, sysaux and your data may need some watching.  If you are curious, you can use the tablespace map function in dbconsole to see what is where in tablespaces (and there are scripts floating about to see it command line style).  But don't stress over it, Oracle is really good about doing things right.  What you have to watch out for is things like auditing or plan maintenance becoming space hogs in sysaux, and some apps, sometimes combined with some bugs, can use too much data space.  But really, you shouldn't bother with it too much unless you see something using way more space than you would reasonably expect. 
    If you want to obsess over something, consider patching.  11.2.0.1 is not a good sign.

  • Tablespace size report for SQL and oracle servers

     
       Hi All
      is it possible to get tablespace size for all sql and oracle server in the form of report in SCOM.
      Regards
      Madhavi

    Oracle: Table size report of Oracle is depend on the MP which yu imported into SCOM
    SQL :
    1) Create a group which contains folowing dynamic rule
    2) Reporting workspace --> Microsoft Gneric Report --> Performace Detail
    3) in the parameter area, create a new series, add group which create in step 1) and select the rule: MSSQL XXX: Collect Database Allocated Size(MB)
    4) Run the report
    5) In the report, click actions and select "Performance details for every object"
    Roger

  • How to exclude UNDO and temp tablespace using monitoring template

    hi,
    as per MOS note id 816920.1 undo and temp tablespace is excluded from monitoring starting version 11G onwards.It says that thresholds will need to be explicitly set if undo and temp needs to be monitored
    we have grid 12C implemented now with monitoring templates which sets thresholds for all tablespaces. does it apply that thresholds to undo and temp too?? we are receiving alerts for undo and temp tablespaces and we wish to disable them. We have undo tablespaces with different names in many databases as per naming conventions for that line of business.
    How can i exclude undo and temp tablespaces from monitoring using grid 12C monitoring templates. is there a way through templates where i can set thresholds of permanent tablespaces only???

    In EM12c, go to the 'Enterprise' menu, then 'Job', then 'Library'. There should be an out-of-the-box job called "DISABLE TABLESPACE USED (%) ALERTS FOR UNDO AND TEMP TABLESPACES" that you can run against your database targets, and that job will disable database-generated alerts.
    If a previous admin has set up EM12c-generated alerts for undo and temp, then yes, a monitoring template will take care of disabling them. Either remove those alerts from the existing monitoring template and apply them to your targets, or create a new monitoring template based on one database's current settings, remove those warning/critical thresholds for your undo and temp tablespaces, and apply it to your targets.

  • How to see tablespace size in data dictionary

    How can I see the tablespace size, and used tablespace size in data dictionary view?
    it is not in dba_tablespaces, and v$tablespace
    Thanks.

    I like this little piece of code of mine:
    SQL> SELECT
      2          TABLESPACE_NAME,
      3          RPAD(RPAD('|',100-PCT_FREE,'X'),100) || '|' USED
      4  FROM (SELECT TABLESPACE_NAME,
      5    100 -
      6      ROUND(100 -(SUM(BYTES)/1024/1024/1024)*100/
      7                  (SELECT SUM(BYTES)/1024/1024/1024
      8                   FROM DBA_DATA_FILES DF
      9                   WHERE DF.TABLESPACE_NAME=FS.TABLESPACE_NAME),2
    10            ) PCT_FREE,
    11    ROUND(SUM(BYTES)/1024/1024/1024,2) GIBFREE
    12  FROM DBA_FREE_SPACE FS
    13  GROUP BY TABLESPACE_NAME) TABLESPACE_SPACE
    14* ORDER BY TABLESPACE_NAME;
    TABLESPACE_NAME                USED
    ARCHDATA                       |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX      |
    DATBIGGX                       |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                  |
    DATGX                          |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                                                      |
    DATLOWGX                       |XXXXXXXXXXXXXXXXXXXXXX                                                                             |
    IDXBIGGX                       |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                 |
    IDXLGX                         |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                |
    IDXGX                          |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX          |
    LOGMNRTS                       |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                                           |
    SYSTEM                         |XXXXXXXXXXXXXXXX                                                                                   |
    TOOLS                          |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                                                   |
    UNDOGX                         |XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX                                         |Yoann.

  • Re-claim tablespace size?

    Dear all,
    I am purging the old data, after that the tablespace seems to not re-claim the tablespace size (remain the same) ?
    Please advice,
    Amy

    Leave tablespace alone & find something better to worry about.
    Never confuse movement with progress.
    Going around in circles is movement but very few folks would consider it to be progress.
    "Compressing" tablespace is same as going around in circles.
    If you insist in proceeding
    1) create new tablespace
    2) move all objects out of old tablespace into new tablespace
    3) drop old tablespace
    4) create old tablespace
    5) move all objects out of new tablespace into old tablespace
    6) drop new tablespace

  • Impdp operation taking more tablespace size in compare to expdp...

    Hi All,
    I have one issue with impdp operation. I am using 11gR2 database and schema's dmpfile size is 5G. When I start loading data through impdp schema's tablespace size grow more than 5G. I have to stop the impdp operation because of growing tablespace size. There is no compress parameter passed during expdp. Lastly I given tablespace maxsize= unlimited but seems like it still not sufficient and have to add one more dbf. so the tablespace size as of now is 60G and impdp operation is still running.
    Can anyone guide me if dmp file size is 5G then how could be the tablespace size more than 5G? I have an assumption that if my dmpfile size is 5G then the tablespace size in which I loaded my data (using impdp)should not more than 5G.
    Thanks in advance.

    I was facing the same problem. After giving parameter TRANSFORM=SEGMENT_ATTRIBUTES:n, the problem has been resolved.
    TRANSFORM = transform_name:value[:object_type]
    The transform_name specifies the name of the transform. Some of possible options are as follows:
    SEGMENT_ATTRIBUTES - If the value is specified as y, then segment attributes (physical attributes, storage attributes, tablespaces, and logging) are included, with appropriate DDL. The default is y. ====> IF THIS IS 'N' PHYSICAL STORAGE ATTRIBUTES ARE NOT INCLUDED.
    STORAGE - If the value is specified as y, the storage clauses are included, with appropriate DDL. The default is y. This parameter is ignored if SEGMENT_ATTRIBUTES=n.
    Although thread a quite old, but just updating this in case someone needs to refer in future. My system parameter deferred_segment_creation is set to TRUE.
    Here is the complete syntax, I have used
    impdp vygrdba/******* dumpfile=VYGRVS6I5_25DEC12.dmp logfile=VYGR_PT_09Jan13.log remap_schema= VYGRVS6I5:VYGR_PT TRANSFORM=SEGMENT_ATTRIBUTES:n
    Edited by: 980762 on 9 Jan, 2013 3:58 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

  • 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

  • Maximum Temp tablespace size you've seen

    DB version: 10.2.0.4
    Our DB caters a retail application . Total DB Size of 3TB. Its is a bit of mix of both OLTP and Batch processing environment.
    Our temp tablespace has 1 file and we had set the tempfile as AUTOEXTEND. Somehow its size has reached 25GB now !
    We don't actually need this. Do we?
    For a fairly busy DB of around 3TB size, what is the maximum temp tablespace size you've ever seen?
    What is the maximum temp tablespace size you've ever seen for Big DB like Telecom, Banking?

    The point about temp space is that your requirements are dynamic - the actively used area shrinks and grows.
    Comparing apples with oranges, tempfile sizes on system where I am currently here amount to 50 GB but to be honest that's mainly due to a not insignificant number of pretty poor queries, run concurrently, with multipass operations, etc.
    Kellyn Pedersen had an example of a process using 720GB here:
    http://dbakevlar.com/?p=43
    Whilst 25GB may not be earth shattering, a "large" temp area may perhaps be an indicator that you want to review some of your application code.
    (What is "large"? "unusual" compared to what is "normal" for your system may be a better metric)
    If you're using automatic pga memory management, then there's a limit to what each session can get, it may be that automatic work areas are not suitable for some of your code and some manual sizing is required to prevent operations spilling unnecessarily.
    Also, inaccurate CBO estimates on your queries can lead to inaccurately sized work areas that then spill into temp.
    There was a reminder of this in one of Randolf Geist's articles on hash aggregation:
    http://oracle-randolf.blogspot.com/2011/01/hash-aggregation.html

Maybe you are looking for

  • Use JFormattedTextField in 1.3.1

    Hi, can someone tell me how, if possible, I can use the JFormattedTextField class in 1.3.1. For an application I am in need of such a component, but it's not acceptible to use a beta version of the jdk for this project. or, can someone suggest a comp

  • Doubts in Classic Scenario

    Hi Friends, i am having a doubt... Let's say in classic scenario 1) SHC created in SRM 2) PO replicated in ECC in Editable mode & in display mode in SRM Question 1: If I change PO qty in ECC(as its in editable mode) will it get updated in SRM PO?(i.e

  • Attachment question

    Hello All, I've extended the CO of an invoice page that has an attachment link. How do i check if an attachment exists? I was thinking of getting hold of a view that is instantiated in the processRequest, however if i do that the bind values get lost

  • How do i remove an old applied still being used by i cloud only

    how do i remove an old apple id that is connected with i cloud..????????????????? this email is now defunct .....it will not accept a password as the e mail is now defunct and cancelled

  • What is the address to send my defective device?  I lost the package the refurbished one came in.  Droid turbo

    My Droid Turbo front facing camera wasn't working so I had a refurbished one sent to my house.  I ended up losing the package and I don't know the address to send my defective device to.  Please help, I don't want to be charged the $500.