Tablespace threshold alerts?

Maybe 2 silly questions...
Say if I have a tablespace 80% full and then I set the warning threshold down to 75%, will the alert be generated immediately or delayed (how much?)
If I don't get warning even after 1 day ( with restart database ), what was wrong?

Hi,
I have checked the dba_threshold view the threshold has been set correctly as I saw in EM. (warning: 75, critical: 85, while my tablespace is now 77% full )
and there are no rows for dba_outstanding_alerts.
I remember there was an exam question like this as well but I don't know the correct answer.

Similar Messages

  • Tablespace threshold alert

    Hi,
    I executed the below procedure to implement the tablespace threshold for the tablespace 'TESTING'.
    My doubt is, once the threshold reaches where will I get the message like the tablespace 'TESTING' has only 51200 KB left.
    Database:10.2.0.4
    OS: solaris 10
    BEGIN
    DBMS_SERVER_ALERT.SET_THRESHOLD(
    metrics_id => DBMS_SERVER_ALERT.TABLESPACE_BYT_FREE,
    warning_operator => DBMS_SERVER_ALERT.OPERATOR_LE,
    warning_value => '51200',
    critical_operator => DBMS_SERVER_ALERT.OPERATOR_LE,
    critical_value => '40960',
    observation_period => 1,
    consecutive_occurrences => 1,
    instance_name => NULL,
    object_type => DBMS_SERVER_ALERT.OBJECT_TYPE_TABLESPACE,
    object_name => 'TESTING');
    DBMS_SERVER_ALERT.SET_THRESHOLD(
    metrics_id => DBMS_SERVER_ALERT.TABLESPACE_PCT_FULL,
    warning_operator => DBMS_SERVER_ALERT.OPERATOR_GT,
    warning_value => '0',
    critical_operator => DBMS_SERVER_ALERT.OPERATOR_GT,
    critical_value => '0',
    observation_period => 1,
    consecutive_occurrences => 1,
    instance_name => NULL,
    object_type => DBMS_SERVER_ALERT.OBJECT_TYPE_TABLESPACE,
    object_name => 'TESTING');
    END;
    /

    Just curious, why are you setting the second threshold (TABLESPACE_PCT_FULL) limit = 0 %?
    Anyway, the view dba_outstanding_alerts does not reflect the status immediately. It may take a few minutes, even if the parameter observation_period = 1 (minute).
    -- Here we have set the database to trigger an alert if the any tablespace usage exceeds 85%
    SQL> select metrics_name, warning_operator, warning_value
      2  from dba_thresholds
      3  /
    METRICS_NAME               WARNING_OPERATOR WARNING_VALUE   
    Tablespace Space Usage     GE               85              
    SQL> CREATE TABLESPACE "TS_TEST" LOGGING DATAFILE
      2  'C:\ORADB\TRAIN10G\DATA\TS_TEST01.DBF' SIZE 400K AUTOEXTEND ON NEXT 100K MAXSIZE 800K
      3  EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT  AUTO ;
    Tablespace created
    SQL> CREATE TABLE testtab (testcol CHAR(100)) tablespace TS_TEST;
    Table created.
    -- Here we wrote a script to insert 1000 rows at a time which will be run repeatedly until we see the threshold exceeded
    DECLARE
      N INTEGER;
    BEGIN
       FOR N IN 1..1000 LOOP
          INSERT INTO testtab values('TESTTESTTEST');
       END LOOP;
       COMMIT;  
    END; 
    ... repeated a few times, checking the freespace each round with the query below until the threshold is exceeded
    SQL> SELECT  a.tablespace_name
      2         ,trunc(decode(a.autoextensible,'YES',a.maxsize-a.bytes+NVL(b.free,0),'NO',NVL(b.free,0))/1024) free_kb
      3         ,trunc(a.bytes/1024) size_kb
      4         ,trunc(a.maxsize/1024) maxsize_kb
      5         ,a.autoextensible ae
      6         ,trunc(decode(a.autoextensible,'YES',(a.maxsize-a.bytes+NVL(b.free,0))/a.maxsize*100,'NO',NVL(b.free,0)/a.maxsize*100)) free_pct
      7    FROM ( select tablespace_name
      8          ,autoextensible,sum(bytes) bytes
      9          ,sum (decode(autoextensible,'YES',maxbytes,bytes)) maxsize
    10           from dba_data_files
    11           group by tablespace_name,autoextensible) a,
    12          (select tablespace_name ,sum(bytes) free
    13           from dba_free_space
    14           group by tablespace_name) b
    15  where a.tablespace_name=b.tablespace_name(+)
    16  order by 2 asc
    17  /
    TABLESPACE_N    FREE_KB    SIZE_KB MAXSIZE_KB AE    FREE_PCT
    TS_TEST              16        784        800 YES          2
    ... SQL below was repeatedly run, and after 4 minutes we got the alert in dba_outstanding_alerts....
    SQL> select object_name, object_type, reason
      2  from dba_outstanding_alerts
      3  /
    OBJECT_NAME     OBJECT_TYPE      REASON
    TS_TEST         TABLESPACE       Tablespace [TS_TEST] is [88 percent] fullAlso, you can expand this method to include a stored procedure that is scheduled (DBMS_SCHEDULER) to check dba_outstanding_alerts every so often and compose an email message to be sent to the DBA using UTL_SMTP.

  • Threshold alerts not functioning

    Hi,
    My threshold alerts are not working at all. Warning and Critical thresholds are ignored. My first reaction was to check the statistics_level to make sure it was on typical, and it was. I also it set it to 'all' to test, but no difference.
    Any ideas?

    thanks for your reply.
    I am on 10g. I had not been recieving any alerts and saw that my SYSTEM and SYSAUX were at 97%, so I created a tablespace, set the threshold warning at 50% and critical at 75%, then filled the tablespace up. I kept checking back to the EM home page and refreshing for about an hour as I did know that it refreshes alerts every 10 mins, and no alerts. Further, under SPACE SUMMARY on the EM home page at "problem tablespaces" there is a 0.
    I checked the dba_thresholds and it shows the values I had entered, along with the other ones in the db. I also checked the statistics_level which is now set to ALL.
    ?

  • Tablespace threshold check

    Hi all,
    my env..
    Oracle 8i
    solaris
    I am trying to check tablespace threshold chek ..below query ...this query is not working in oracle 8i ...but it is working fine in oracle 10g machines ...
    what is the reason I was unable to findout...
    Please let me know if any one knows
    select
    (select INSTANCE_NAME||'_'||HOST_NAME from v$instance ) "db_name_host_name",
    tablespace_name tablespace,
    sum(file_cnt) "# of Files",
    (sum(tp)-sum((fs + (tp-tc))))/1048576 "Used (M)",
    sum(tc)/1048576 "Allocated (M)",
    sum(tp)/1048576 "Max Extend (M)",
    round(max(100 - (100*((fs + (tp-tc))/tp)))) " % of Max Used"
    from ( select b.tablespace_name, nvl(a.free_space, 0) fs,
    b.total_poss_space tp,
    b.total_curr_space tc,
    b.file_cnt,
    b.tablespace_name ts_name
    from (
    select sum(bytes) free_space,
    tablespace_name
    from dba_free_space
    group by tablespace_name
    ) a,
    select sum(decode(autoextensible, 'YES',
    maxbytes,
    bytes)) total_poss_space,
    sum(bytes) total_curr_space,
    count(1) file_cnt,
    tablespace_name
    from dba_data_files
    group by tablespace_name
    ) b
    where a.tablespace_name (+) = b.tablespace_name
    group by tablespace_name
    having max(100 - (100*((fs + (tp-tc))/tp))) >=80
    Error at line 2
    ORA-00936: missing expression
    Script Terminated on line 1.
    Edited by: user603328 on Dec 10, 2010 7:26 AM

    Thanks ur reply...
    I am getting below issue....
    select
    (select INSTANCE_NAME||'_'||HOST_NAME from v$instance ) "db_name_host_name",
    tablespace_name tablespace,
    sum(file_cnt) "# of Files",
    (sum(tp)-sum((fs + (tp-tc))))/1048576 "Used (M)",
    sum(tc)/1048576 "Allocated (M)",
    sum(tp)/1048576 "Max Extend (M)",
    round(max(100 - (100*((fs + (tp-tc))/tp)))) " % of Max Used"
    from ( select b.tablespace_name, nvl(a.free_space, 0) fs,
    b.total_poss_space tp,
    b.total_curr_space tc,
    b.file_cnt,
    b.tablespace_name ts_name
    from (
    select sum(bytes) free_space,
    tablespace_name
    from dba_free_space
    group by tablespace_name
    ) a,
    select sum(decode(autoextensible, 'YES',
    maxbytes,
    bytes)) total_poss_space,
    sum(bytes) total_curr_space,
    count(1) file_cnt,
    tablespace_name
    from dba_data_files
    group by tablespace_name
    ) b
    where a.tablespace_name (+) = b.tablespace_name
    group by tablespace_name
    having max(100 - (100*((fs + (tp-tc))/tp))) >=80
    Error at line 2
    ORA-00936: missing expression
    Script Terminated on line 1.

  • Script for database send mail for tablespace threshold 90%

    Dear All,
    Scripts required for send mail from database for following events
    1.Tablespace Threshold
    2. Db Shutdown & Startup
    Database Version : 10.2.0.1.0
    OS :- Linux
    Thanks & Regards,
    Praful Kawaji

    You have Database Control.
    Database Control can already do this.
    Why do you want to remain in the Stone Age and continue to use scripts?
    Why do you want to reinvent the wheel, when the functionality is already there.
    Agreed, you would have to read documentation and/or help text, and you rather don't want to do that.
    Which is the exact cause why you want to reinvent the wheel, and pay Larry for functionality you don't use.
    Sybrand Bakker
    Senior Oracle DBA

  • Tablespace Threshold Metrics (exceptions)

    (I entered a SR but no answer as of yet)
    I created to overriding thresholds for Tablespace Full, one for TEMP, the other for UNDOTBS. Problem Those tablespaces still trigger alerts based on the thresholds set for the "default/other" tablespace metrics.
    Any one get this working in 10gR2? I believe it worked in 10gR1 Grid.
    I dont see it tracing problemTbsp.pl or fullTbsp.pl scripts. I cant figure out which perl script is being run such that I can debug the problem.
    Help?

    started and stopped many times, upload metrics, clearstate etc.
    I believe there is something fundamentally wrong. Has anyone else tried this functionality? Is it broke elsewhere?

  • Tablespace threshold checking without grid control

    Hi all,
    DB oracle 10g
    solaris,
    It is new env ....we are not having grid configuration ....
    Please any one provide to me a script for monitoring threshold limits like >90% critcal alert ....
    client wants to these alerts are configure to mail when ever tablespace reaches thershold....
    please help me out if any one having any shell ,sql scripts....
    thanks,
    kk

    user603328 wrote:
    Hi all,
    DB oracle 10g
    solaris,
    It is new env ....we are not having grid configuration ....How about dbcontrol? It has all the same functionality as Grid, only for a single database instance. It can monitor and email as specified. It doesn't cost any extra. If your client has Oracle 10g, then he has, and has paid for, dbcontrol. If they don't know that, you owe it to them to show them.
    Please any one provide to me a script for monitoring threshold limits like >90% critcal alert ....
    client wants to these alerts are configure to mail when ever tablespace reaches thershold....
    please help me out if any one having any shell ,sql scripts....
    thanks,
    kk

  • Tablespace Threshold

    Hi
    I want to create a threshold on the tablespace when it is 80 % Used.
    I want a mail to be sent on my email address and also when user inserts data in that TBS he should receive the Alert.
    Please Advise

    Use Oracle Enterprise manager database control, go to preferences and assign a email server. Then on the home page-->manage metrics link-->Edit Threshod button-->set your metric warning/critical thresholds here and wait for notifications in email box when the threshod is reached.
    Sami.

  • Temporary tablespace and alert log

    If a temporary tablespace is actually filled and users get error when they are running some query, will it be updated in the alert log?
    Thanks

    It is ora-01652, and will be written to alert,
    Thanks

  • Setting tablespace threshold

    Hi,
    We have metrics like Tablespace Used (%) for which we have set thresholds, but they are not being collected (as confirmed by the All Metrics screen) - why?
    Agent Version (OMS) -- 10.1.0.3
    Agent Version of target -- 10.1.0.3
    No error messages are issued
    regards
    Dilip

    Go thru the monitoring configuration link at the bottom again. Also try setting the PERL trace in emd.properties to debug and look at the perl.trc file generated for clues.

  • LMS4.1: Threshold Alert for CRC errors

    Hi,
    On LMS 4.1, I am trying to get threshold error when an interface has >  0 CRC errors.
    We have :
    - load mib old-cisco-interface.my
    - create the report with locIfInCRC variable
    - create the poller all instance and threshold
    And we saw that the locIfInCRC variable was integer rather counter !!!
    I tried to modify mib and reload it, recreate report and poller but the report is always with integer variable.
    How can I unload this mib ?
    Is there an other solution to get thrshold for CRC error ?
    Many thanks,
    Elisabeth

    Hi,
    Create a ZIP or RAR archive of about 500MB, move it from HD to another HD or CDrom, then move it back and extract the archive...
    When you have CRC errors the Archive gives problems.
    But it can also be created by wrong BIOS settings, little powersupply, bad ram etc....

  • The process could not be created because the maximum number of asynchronous responses (5) has already been reached, and it will be dropped.

    Hi
    he process could not be created because the maximum number of asynchronous responses (5) has already been reached, and it will be dropped.
    Command executed:    "C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe" -command "&G:\SCOM\SCOMModule\Notification\SMS.ps1 -scomalertid:'{c5a013e7-5408-468a-9b04-febab33cc56d}' -alertname:'Common Primary Database TableSpace
    Threshold Alert' -alertdesc:'TableSpace TEMP FreeSizePercent:0.4375\n' -alertstate:'Closed' -alerttime:'7/26/2014 1:55:19 PM' -Priority:'1' -Severity:'2'"
    Working Directory:    g:\SCOM\SCOMModule\Notification
    One or more workflows were affected by this.  
    Workflow name: Subscription852fbf70_40eb_450c_874d_46b631ca1352
    Instance name: Alert Notification Subscription Server
    Instance ID: {E07E3FAB-53BC-BC14-1634-5A6E949F9230}
    Management group:******
    Please help me
    Thanks

    Hi,
    the RMS is "Root Management Server". When you install first management server it becomes RMS. The RMS is relevant in SCOM 2007x management group. You can identify which server is RMS in administration console under management server view. Look for instance
    with "yes" value in "Is RMS" column.
    If you have SCOM 2012x version management group create sugested registry entrys on all management servers (MS) which executes command channel.
    This will surely solve your
    problem.
    Regards,
    Ivan

  • Wish to clear tablespace alert at Enterprise Manager 10g

    Is that a way to clear tablespace full alert at Enterprise Manager 10g?
    I have added the required space to the database but the alert is still there.
    Below is the screenshot:
    http://i.imgur.com/glve4.png
    There is new and valid tablespace alert coming, and I am sure the space adviser is kept running. But I have no idea why the alert has not been cleared.
    Note: I do not wish to change or disable the metric. If another tablespace nearly full, I want to be alerted.
    Edited by: csmth96 on Jan 18, 2012 3:49 PM

    This is the followup on the alert.
    The alert is generated based on metrics behind "dba_tablespace_usage_metrics". Without fixing the metric collection process, removal of an alert only caused the alert to be shown some time later. The removal of alert looks working initially but it does not fixed anything.
    My database is created at 10.2.0.2 but upgraded to 10.2.0.4 recently. Because the alert is created before the upgrade, it is reasonable to believe that the metric collection problem has started before the upgrade (rather than the upgrade has caused the problem). Having reviewed metalink DocID 736909.1, it is reasonabMyle to believe the view "dba_tablespace_usage_metrics" is the problem source. It summed up the max size of all files in tablespace as the tablespace size. However, before 10.2.0.4, extending a datafile does not increase the max file size (view "v$filespace_usage", the limit of autoextend). If the actual usage is large than the autoextend limit, the usage is more than 100%.
    My action is to increase the autoextend limit (max file size) of datafile to the same as allocated file size. No autoextend is actually allowed. The autoextend limit is reset so that "dba_tablespace_usage_metrics" is corrected and it is no longer possible to have more than 100% tablespace usage. The alert is gone several minutes later.
    I doubt whether it make sense to compare the actual usage vs autoextend limit. For any concerned DBA, patch 6759910 may be applied at a downtime window.
    I conclude the solution provided by "N Gasparotto" is truly correct.
    Edited by: csmth96 on Jan 26, 2012 3:26 PM

  • 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.

  • Monitoring template and alert noifications,  how ?

    I have set up database monitoring template with some metric tresholds for warning/alerting. Also, I applied this to the databases. Now, my question is how will i be notified (say via e-mail) once an alert has generated ? I see notification methods and notification rules, where it has its own metric settings. Do i have to apply notification rules to these databases for notifications. If so, what is the use of monitoring template ? Can i set up notifications via e-mail within the monitoring template ?
    thanks,

    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.

Maybe you are looking for

  • [SOLVED] System froze and won't boot.

    When I pluged in my power adapter on my laptop my entire system froze and forced me to cut the power. Now when I try to boot it I get several errors about mounting and udev and more which I can't catch in the speed. Then it enters a long loop of prin

  • TS2634 problem when connecting with tv

    when connecting my ipad 2 with the cable connector hdmi to a led tv it connects without problems about a minute o so, and  then it starts losing signal and goes to black

  • Is there a listing of all Auth.Objects for SAP and the discription for them

    I would like to know if there is a listing of all the Auth.Objects  for SAP out there somewhere?? Thank you, Robert

  • OIM11g: Error trying to define a connector

    Hi all, Has anyone seen this error before when trying to define a connector: "getSelectDependencies encounter some problems: Population can be done in DBCreated Mode Only" I can't find it mentioned anywhere? Thanks for any help.

  • My ACR will not recognize Nikon RAW images

    I had a friend take our family photos today and she used her Nikon d600 (rather than my Canon 5D MkII--she didn't want to use a camera than she didn't know how to use, understandably!). She gave me her SD card so that I could transfer the images to m