How to capture tablespace warning and critical messages

Hi,
Where in the database dictionary, the tablespace threshold percent (warning and critical) defined by the user is stored.
Requirement is to set threshold percent (warning and critical) in OEM and in a function (for User-Defined Metrics) or procedure (for scheduler) check for Tablespace PCT_FULL against the set threshold percent and display message accordingly.
Thanks & Regards,
Sanju.

Sounds like this is default behaviour of the metrics for tablespace full?
Here is the basic query for OEM metrics:
select
target_type,
target_name,
metric_column Metric,
decode(warning_threshold,' ',null, decode(warning_operator,'Equal To','=','Not Equal','!=','Greater Than','>','Less Than','<',warning_operator) || ' ' || warning_threshold) Warning,
decode(critical_threshold,' ', null, decode(critical_operator,'Equal To','Not Equal','!=','=','Greater Than','>','Less Than','<',critical_operator) || ' ' || critical_threshold) Critical
from mgmt$metric_collection
--where target_type = 'oracle_emd'
--and  metric_column = 'HostInfovszGrowth'
--and warning_threshold != '20'
--where target_type = 'host'
where-- metric_column like 'tnsPing'
-- (warning_threshold != '80' and critical_threshold != '95')
--and
target_type = 'oracle_database'
--and target_type = 'host'
--and
--target_type  = 'oracle_listener'
--target_type = 'oracle_emd'
--and metric_column like 'generic%'
--and warning_threshold like '%ORA%'
and target_name = 'XXXSOMEHOSTNAMExxxx'
and metric_column = 'pctUsed'
order by 1,3,2

Similar Messages

  • How to capture the date and time of  a background job

    Hi experts,
    How to capture the date and time of  a background job?
    How to find whether it is runned succesfully or not?
    If it is not successful how to put error message?
    ASAP
    Thanx in advance,
    Sudha

    To Display the STATUS of the JOB which is exectued in background
      CLEAR : wa_jobsteplist.
      REFRESH : i_jobsteplist.
      WRITE:/ 'DISPLAYING JOB STATUS'.
      CALL FUNCTION 'BP_JOB_READ'
        EXPORTING
          job_read_jobcount           = w_jobcount
          job_read_jobname            = w_jobname
          job_read_opcode             = '20'
        JOB_STEP_NUMBER             =
       IMPORTING
         job_read_jobhead            = wa_jobhead
       TABLES
         job_read_steplist           = i_jobsteplist
    CHANGING
       RET                         =
       EXCEPTIONS
         invalid_opcode              = 1
         job_doesnt_exist            = 2
         job_doesnt_have_steps       = 3
         OTHERS                      = 4
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    To Display the status text as per the status type
      CASE wa_jobhead-status.
        WHEN 'S'. WRITE: / 'Scheduled'.
        WHEN 'R'. WRITE: / 'Released'.
        WHEN 'F'. WRITE: / 'Completed'.
        WHEN 'A'. WRITE: / 'Cancelled'.
        WHEN OTHERS.
      ENDCASE.

  • Capture insert, update and delete messages PlSql

    How can I capture insert, update and delete messages in PlSql, like
    '1 row inserted'.
    TIA, Leo

    You can check the following script --
    satyaki>
    satyaki>create table test_598703
      2   (
      3      Sno   number(5)
      4   );
    Table created.
    satyaki>
    satyaki>declare
      2    cnt  number(5);
      3  begin
      4    insert into test_598703
      5    select empno
      6    from emp;
      7   
      8    cnt := sql%rowcount;
      9   
    10    dbms_output.put_line(cnt||' Rows Inserted');
    11  exception
    12    when others then
    13      dbms_output.put_line(sqlerrm);
    14  end;
    15  /
    16 Rows Inserted
    PL/SQL procedure successfully completed.
    satyaki>
    satyaki>select * from test_598703;
           SNO
          7369
          7499
          7521
          7566
          7654
          7698
          7782
          7788
          7839
          7844
          7876
           SNO
          7900
          7902
          7934
          9898
          7006
    16 rows selected.Similar approach need to follows for other operations.
    Regards.
    Satyaki De.

  • How to capture show layer and hide layer event in photoshop through a plugin???

    How to capture show layer and hide layer event in photoshop through a plugin???for mac

    Use the Listener plug-in found in the SDK to see how you can monitor the show/hide layer event. You can also use the Getter plug-in to show what information you can find out about the current state of Photoshop.

  • How do I get email and text message notifications when my phone is locked?

    How do I get email and text message banner notifications on my iphone when the phone is locked? When I had iOS 6 I could get notifications with sound and banner. Now that I have iOS7 I can't see notificaitons when the phone is locked.

    See if this support document about Notifications helps. http://support.apple.com/kb/HT3576

  • When i send a text in iMessage the person receiving it gets it from my email address... how do i change that. and in message settings the receiving thing has my email and phone number but my phone number is gray and i can't click on it

    when i send a text in iMessage the person receiving it gets it from my email address... how do i change that. and in message settings the receiving thing has my email and phone number but my phone number is gray and i can't click on it help

    Hello Todd:
    I had this very same problem when trying to activate iMessage and Facetime on my iPad. When I signed into my account, I actually wasn't even presented with the option of a phone number - notwithstanding the fact that I was contacting others (and being reached by others) by my phone number on my iPhone. Having both the iPad and the iPhone on, I kept trying to turn off and on both iMessage and Facebook in Settings on both my iPad and iPhone, hoping that that they would eventually sync. But this proposed solution by others was unsuccessful for me.
    Then, I found out what the problem was: When my iPhone was activated, it automatically registered my phone number for contact purposes. I was using iMessage on my iPhone for quite some time without actually being signed into my Apple ID account. When another device - such as an iPad or iPod - is being used for iMessage or Facebook, you are prompted to sign into your Apple account, using your username and password. These two devices will not register your phone number as an option for contact unless your iPhone is signed into your Apple account as well. In other words: your phone number will not be synced.
    Go into your "Settings" on your iPhone and click on "Messages". Scroll down and click on "Send & Receive" (which should be followed by your phone number). On the next page, you will be able to determine whether or not your iPhone is using the Apple ID for messaging purposes. (Note: This information applies for Facetime as well.) If it is using your Apple ID for messaging, than at the top, you will see "Apple ID: <your particular e-mail account>" in Blue text. However, if you are not using your Apple ID for messaging, than you will see the words: "Use your Apple ID for message". Even though below this you will see your phone number checked as the contact source, you will want to click the tab that says, "Use your Apple ID for message". Sign into your account (just as you must sign in for iMessage on your other devices), and just choose your phone number as the "Send & Receive" contact. (The option of the e-mail will be there too, but you don't have to check it. And later on, you can delete it as an option.)
    Now that all of your devices are signed in using your Apple ID, the other devices should register your phone number as a choice. It may take a little while, however. What I did was sign out of iMessage on my iPad, and then sign in again. If the option didn't appear, I just went back and signed in again, and kept doing this until the option for the phone number appeared.
    Again, this will work for Facetime as well. The solution is to sync your iPhone account with the other devices by using your Apple ID for messaging (and Facetime) purposes.
    I hope that this works for you, Todd!   ~ Brian

  • How to display your email and a message to finder on the lock screen of an iPhone?

    Hi,
    I loose things, including phones and keys...
    To prevent a worst case scenario: How to display your email and a message to finder on the lock screen of an iPhone? (6 plus, current iOS)
    That is, I assume most people finding an iPhone would want to try to contact me to give it back to me, if they know how: how can leave my contact information in the phone? This needs to be on the lock screen, naturally, as this is the only view the finder can see. It would be useful to be able to add a message of sorts a la "if found please call my wife ### or email me ###".
    How can this be done other than editing the JPG of the wallpaper, or sticking a business card to the back of the phone (these are the only solutions I came up with, there must be something better).
    Cheers!

    Greetings _daniel_, 
    Thank you for contributing to the Apple Support Communities. 
    It seems like you'd like to display a message on your iPhone 6 Plus in the event it is lost. Good news--you can do this with the Find my iPhone feature of iCloud.
    Check out these links for more information:
    iCloud: Set up iCloud
    iCloud: Use Lost Mode
    If you can’t find your device, use Lost Mode right away to lock it with a passcode, display a custom message on the screen, and keep track of its location.
    Cheers, 
    Jeremy

  • How we find tablespace fragmentation and resolve this problem

    Hi,
    How we find tablespace fragmentation and resolve this in 10 G (R2) windows XP.
    Regards
    Faheem

    Hi,
    >>Are you using Dictionary Managed or Locally Managed Tablespaces...??
    In fact, there is no way to create a DMT if SYSTEM tablespace is LMT. So, what I said in my previous post "Unless the OP is using DMT ..." is impossible in Oracle 10g ...
    SQL> create tablespace tbs_test
      2      datafile '/u01/oradata/BDRPS/test01.dbf' size 5m
      3      extent management dictionary;
    create tablespace tbs_test
    ERROR at line 1:
    ORA-12913: Cannot create dictionary managed tablespace
    SQL> select extent_management from dba_tablespaces
      2  where tablespace_name='SYSTEM';
    EXTENT_MAN
    LOCALCheers
    Legatti

  • System Warning and Error Messages in Plant Maintenance

    Hi All,
    Where can I find the list of system warning and error messages for Plant Maintenance?
    Thanks
    Andrew

    Hi,
    Follow the following path in SPRO. Some of the standard messages you will fond there:
    Plant Maint & Customer Serivces - Maintenanace & Service Processing - Maint. & Service Orders - Message Control.
    SM

  • Diff between Error,Warning and Abort message

    Hi Friends
    Can any body tell the Diff between Error,Warning and Abort message
    Thanks

    Error - Its the abnormal behaviour which was not expected. Its means the process has been hualted at this point. Unless and untill you resolve this, you can not procedd further.
    Warnings: Its just the effect of a process it may have on other processes. You can continue doing irrespective of the warnings.
    Abort : to terminate a computer processing or data transfer activity.
    Thanks..
    Shambhu

  • Warning and abort message for BAPI_MATERIAL_BOM_GROUP_CREATE

    Hi to all,
    i am creating BOM using FM BAPI_MATERIAL_BOM_GROUP_CREATE , i have passed all necessary parameters, but
    waring and abort message are coming with creating bom for BAPI_MATERIAL_BOM_GROUP_CREATE .
    W BAPI1080             028
    Error/warning when checking the structure of the BOM group with ID=BOMGROUP1
    A BAPI1080             018
    Item ID=BOM1 is not assigned to a variant/alternative
    A BAPI                 001
    No instance of object type BOMGroup has been created. External reference:
    please can any one tell me what will be the soultion for that.
    Regards
    Pavneet Rana
    Edited by: pavneet rana on Aug 23, 2011 6:27 AM

    Thanks for reply ,
    yes i have used that link, and i am using same value , except for matnr and plant.
    but warning and abort message are coming, and no BOM is creating in MAST.
    W BAPI1080             029
    Error when checking the data of the object type=BOM / Id=BOM1 of group Id=BOMGROUP1
    A BAPI                 001
    No instance of object type BOMGroup has been created. External reference:
    please can any one provide me the solution for that.
    code:
    DATA: BOMGROUP  TYPE TABLE OF BAPI1080_BGR_C,
            wa_BOMGROUP LIKE LINE OF  BOMGROUP,
            variant TYPE TABLE OF BAPI1080_BOM_C,
            wa_variant LIKE LINE OF variant,
            ITEM     TYPE TABLE OF BAPI1080_ITM_C,
            WA_ITEM   LIKE LINE OF ITEM,
            MATERIALRELATIONS TYPE TABLE OF BAPI1080_MBM_C,
            WA_MATERIALRELATIONS LIKE LINE OF MATERIALRELATIONS,
            RETURN    TYPE BAPIRET2_T.
    DATA: wa_return LIKE LINE OF RETURN .
    wa_BOMGROUP-BOM_GROUP_IDENTIFICATION = 'BOMGROUP1'.
    wa_BOMGROUP-OBJECT_TYPE = 'BGR'.
    wa_BOMGROUP-OBJECT_ID  = 'BOMGROUP1'  .
    wa_BOMGROUP-TECHNICAL_TYPE = 'M'.
    wa_BOMGROUP-BOM_USAGE  = '1'.
    wa_BOMGROUP-BOM_GROUP = 'BOMGROUP1'  .
    wa_BOMGROUP-CREATED_IN_PLANT = '2000'.
    wa_BOMGROUP-LTXT_LANG = sy-langu .
    wa_BOMGROUP-BOM_TEXT  = 'Created Using BAPI_MATERIAL_BOM_GROUP_CREATE'.
    APPEND wa_BOMGROUP to BOMGROUP.
    VARIANTS
      wa_variant-BOM_GROUP_IDENTIFICATION = 'BOMGROUP1'.
       wa_variant-OBJECT_TYPE   = 'BOM'.  "= 'BGR'. "
      wa_variant-OBJECT_ID  = 'BOM1'  .
       wa_variant-ALTERNATIVE_BOM = '2'.
      wa_variant-BOM_STATUS  =   '1'.
       wa_variant-BASE_QTY  =  '100'.
      wa_variant-BASE_UNIT =  wa_bom_header-BASE_UOM.
       wa_variant-LTXT_LANG = sy-langu .
       WA_VARIANT-LANGU_ISO   = SY-LANGU.
       wa_variant-ALT_TEXT  = 'BAPI_MATERIAL_BOM_GROUP_CREATE'.
      wa_variant-VALID_FROM_DATE = wa_bom_header-VALID_FROM.
       wa_variant-CHANGE_NO = 'ECN1'.
       wa_variant-FUNCTION     = 'NEW'.
       APPEND wa_variant TO VARIANT.
    ITEM
    WA_ITEM-BOM_GROUP_IDENTIFICATION  = 'BOMGROUP1'.
    WA_ITEM-OBJECT_TYPE               = 'ITM'.
    WA_ITEM-OBJECT_ID                 = 'BOM1' .
    *WA_ITEM-ITEM_ID                   = 'BOM1'.
    WA_ITEM-ITEM_NO                   = '0010'.
    WA_ITEM-ITEM_CAT                  = 'L'.
    WA_ITEM-COMPONENT                 =  '300201001'.
    WA_ITEM-COMP_QTY                  = '100'.
    *WA_ITEM-COMP_UNIT                 = 'KGK'.
    WA_ITEM-VALID_FROM_DATE           = SY-DATUM.
    APPEND WA_ITEM TO ITEM.
    MATERIAL
    WA_MATERIALRELATIONS-BOM_GROUP_IDENTIFICATION =  'BOMGROUP1'.
    WA_MATERIALRELATIONS-MATERIAL = '1020007'.  "lv_matnr. "
    WA_MATERIALRELATIONS-PLANT  = '2000'.
    WA_MATERIALRELATIONS-BOM_USAGE  = '1'.
    WA_MATERIALRELATIONS-ALTERNATIVE_BOM  = '2'.
    APPEND WA_MATERIALRELATIONS TO MATERIALRELATIONS.
    data: ITEMASSIGNMENTS TYPE TABLE OF  BAPI1080_REL_ITM_BOM_C,
          wa_ITEMASSIGNMENTS like LINE OF ITEMASSIGNMENTS .
    wa_ITEMASSIGNMENTS-BOM_GROUP_IDENTIFICATION  = 'BOMGROUP1'.
    wa_ITEMASSIGNMENTS-SUB_OBJECT_TYPE = 'ITM'.
    wa_ITEMASSIGNMENTS-SUB_OBJECT_ID = 'BOM1'.
    wa_ITEMASSIGNMENTS-SUPER_OBJECT_TYPE = 'BOM'.
    wa_ITEMASSIGNMENTS-SUPER_OBJECT_ID = 'BOM1'.
    *wa_ITEMASSIGNMENTS-VALID_FROM_DATE
    *wa_ITEMASSIGNMENTS-CHANGE_NO
    wa_ITEMASSIGNMENTS-FUNCTION  = 'NEW'.
    APPEND wa_ITEMASSIGNMENTS to ITEMASSIGNMENTS.
    CALL FUNCTION 'BAPI_MATERIAL_BOM_GROUP_CREATE'
        EXPORTING
      TESTRUN                  = ' '
       ALL_ERROR                = 'X'
      TABLES
        bomgroup                 =  BOMGROUP
        variants                 = VARIANT
       ITEMS                    = ITEM
      SUBITEMS                 =
        materialrelations        = MATERIALRELATIONS
       ITEMASSIGNMENTS          = ITEMASSIGNMENTS
      SUBITEMASSIGNMENTS       =
      TEXTS                    =
        return                   = RETURN
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          =
    IMPORTING
      RETURN        =
       ENDIF.
      loop at RETURN INTO wa_return.
      write:/ wa_return-type, wa_return-id, wa_return-number,
      wa_return-message.
    endloop.
    regards
    pavneet rana
    Edited by: pavneet rana on Aug 23, 2011 8:57 AM

  • My iPhone 5S drowned in a rainstorm. How can I retrieve contacts and text messages from iCloud backup onto my iPad mini?

    My iPhone 5S drowned in a rainstorm. How can I retrieve contacts and text messages from iCloud backup onto my iPad mini? There are some contacts on the iPad already but nowhere near all of them. I need to re-enter the contacts manually into an iPhone 4 as it does not support iOS 8.

    Let me get this straight.....You lost your phone.  You never backed it up, either to your computer or to a cloud service.
    How in the world would you expect to get data back?

  • How to capture the screen and send it to attachment for that mail

    hi sir ,
         how to capture the screen shot and attach with that e-mail , whether it is possible or not ..
    Regards,
    kumar

    hi sir,
        i am asking about while creating the support message from help menu in sap..
    while creating the support message we have to give component , priority and text also .. after that click the send icon in that support desk message .. while clicking the send button the entire screen ( what  we have entered in that creen na ) i have to capture the screen ( it may be save in local file also )  after that it will attach into attachment and then send it to ...
    Regards,
    kumar

  • How to capture user name and date in the database

    How to capture the person name who edits the application and the date of edit in the database...
    Pallavi

    Hi
    There are substitution strings you can use for this purpose.
    1.APP_USER ------is the current user running the application
    2.SYSDATE --------represents the current date on the database server
    APP_USER Syntax
    Bind variable------ :APP_USER
    PL/SQL------- V('APP_USER')
    Substitution string---------- &APP_USER.
    SYSDATE_YYYYMMDD Syntax
    Bind variable------- :SYSDATE_YYYYMMDD
    Direct PL/SQL------- APEX_APPLICATION.G_SYSDATE (DATE DATATYPE)
    PL/SQL-------- V('SYSDATE_YYYYMMDD')
    Your application will be based on a table with primary key column. You create a 'before update trigger' on that table and add columns 'UPDATED_ON' and 'UPDATED_BY' to that table. Add the following to that trigger:
    :NEW.UPDATED_ON := SYSDATE;
    SELECT V('APP_USER') INTO :NEW.UPDATED_BY FROM DUAL;
    -Priyanka

  • How to display the error and success message in ALV

    Hi expert,
    i am doing recording through call transaction,from the output list of a ALV,now my requirement is after recordig how many record get success and how many get failed ,i need to display in Another ALV .please any one help me in this .
    Regards
    Swaraj

    HI ,
                 Use this following Perform form statment to display error message.
    FORM format_message .
      g_row = g_row + 1.
      LOOP AT t_bdcmsgcoll.
        CALL FUNCTION 'FORMAT_MESSAGE'
          EXPORTING
            id        = t_bdcmsgcoll-msgid
            lang      = '-D'
            no        = t_bdcmsgcoll-msgnr
            v1        = t_bdcmsgcoll-msgv1
            v2        = t_bdcmsgcoll-msgv2
            v3        = t_bdcmsgcoll-msgv3
            v4        = t_bdcmsgcoll-msgv4
          IMPORTING
            msg       = G_MSG
          EXCEPTIONS
            not_found = 1
            OTHERS    = 2.
        IF sy-subrc = 0.
          CASE T_BDCmsgCOLL-msgtyp.
            WHEN 'E'.
              FORMAT COLOR 6 ON.
              WRITE:/  g_row,
                    /  T_BDCmsgCOLL-msgtyp, g_msg.
              FORMAT COLOR OFF.
            WHEN 'W'.
              FORMAT COLOR 3 ON.
              WRITE:/  g_row,
                    /  T_BDCmsgCOLL-msgtyp, g_msg.
              FORMAT COLOR OFF.
            WHEN 'I'.
              FORMAT COLOR 4 ON.
              WRITE:/ g_row,
                    / T_BDCmsgCOLL-msgtyp, g_msg.
              FORMAT COLOR OFF.
            WHEN 'S'.
              FORMAT COLOR 5 ON.
              WRITE:/ g_row,
                    / T_BDCmsgCOLL-msgtyp, g_msg.
              FORMAT COLOR OFF.
          ENDCASE.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " FORMAT_MESSAGE
    *&      Form  success
          text
    FORM success .
      LOOP AT i_message.
        CALL FUNCTION 'FORMAT_MESSAGE'
          EXPORTING
            id        = i_message-msgid
            lang      = sy-langu
            no        = i_message-msgnr
            v1        = i_message-msgv1
            v2        = i_message-msgv2
            v3        = i_message-msgv3
            v4        = i_message-msgv4
          IMPORTING
            msg       = g_msg
          EXCEPTIONS
            not_found = 1
            OTHERS    = 2.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        WRITE : /2 g_msg COLOR 1.
        CLEAR G_MSG.
      ENDLOOP.
    ENDFORM.                    " success
    *&      Form  error
    FORM error .
      DATA g_msg(255).
      LOOP AT i_message.
        CALL FUNCTION 'FORMAT_MESSAGE'
          EXPORTING
            id        = i_message-msgid
            lang      = sy-langu
            no        = i_message-msgnr
            v1        = i_message-msgv1
            v2        = i_message-msgv2
            v3        = i_message-msgv3
            v4        = i_message-msgv4
          IMPORTING
            msg       = g_msg
          EXCEPTIONS
            not_found = 1
            OTHERS    = 2.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        WRITE : /2 g_msg COLOR 6.
      ENDLOOP.
    ENDFORM.                    "error

Maybe you are looking for

  • Fast user Switching breaks iTunes Library on Drobo FS

    Hello, Everyone. I realize this is a bit of a corner case but what the heck, maybe you can help. Our home iMac has two main accounts, husband and wife. Connected to it is a Drobo FS. iTunes media is on the Drobo FS. The iMac Husband account is used t

  • Can you put a lock on apps?

    Hi there, I was just wondering if there is any way of locking an app on my "ipad with retina display" which i purchased from the app store for example sketchbook express so only i can access it. i was wondering if i could lock an app via another app

  • 2.2.1 - Has it fixed your problems?

    Has the 2.2.1 update fixed the SMS problems for those experiencing them? Any other surprises included? New features? Bug fixes? Even Apple's web page provides no info as of the time of this writing. Who is going first?

  • ITunes Podcasts not showing iPhone 4 list correctly

    I download The Mike OMeara Show podcast everyday to iTunes on my Win7 laptop everyday.  I then sync the podcast with my iPhone 4.  However, when I look at the iPhone Podcast in iTunes, it does not show all the podcasts that the iPhone actually has. 

  • Repaint() causes 100%cpu useage

    im not sure where ive gone wrong but its using 100% of cpu. source below (a little messey - im a beginner) its a graphing extention to an applet - thanks for the help public class MyCanvasGraph extends Canvas { public void update(Graphics g) { paint(