the status field value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yoghee
    New Member
    • May 2007
    • 4

    the status field value

    <code>SELECT *
    FROM All_TRIGGERS WHERE TRIGGER_NAME ='TRIGGER' </code>

    By using this query , the status field value is "Enabled" or "Disabled" , but i need it in a format in which the status should be "valid" or "invalid"
  • Reshmi Jacob
    New Member
    • Sep 2006
    • 50

    #2
    Hello

    SELECT All_TRIGGERS.*, DECODE(STATUS,' ENABLED','VALID ','INVALID') STATUSS
    FROM All_TRIGGERS WHERE TRIGGER_NAME ='TRIGGER'

    Try, this may help you

    Reshmi

    Originally posted by yoghee
    <code> SELECT *
    FROM All_TRIGGERS WHERE TRIGGER_NAME ='TRIGGER' </code>

    By using this query , the status field value is "Enabled" or "Disabled" , but i need it in a format in which the status should be "valid" or "invalid"

    Comment

    • debasisdas
      Recognized Expert Expert
      • Dec 2006
      • 8119

      #3
      Dear
      Reshmi Jacob

      in oracle 'ENABLED','DISA BLE' AND ''VALID','INVAL ID' are 2 diffeent things as per a TRIGGER.

      ENABLE/DISABLE-- specifies either the trigger is enabled or not to fire.

      VALID/INVALID---specifies what is the status on the object.
      Usually triggers become invalid if the base object is invalid .

      Comment

      • yoghee
        New Member
        • May 2007
        • 4

        #4
        Originally posted by debasisdas
        Dear
        Reshmi Jacob

        in oracle 'ENABLED','DISA BLE' AND ''VALID','INVAL ID' are 2 diffeent things as per a TRIGGER.

        ENABLE/DISABLE-- specifies either the trigger is enabled or not to fire.

        VALID/INVALID---specifies what is the status on the object.
        Usually triggers become invalid if the base object is invalid .

        hi das
        i need to get the colum which specifies the status of the object as u said

        Comment

        • debasisdas
          Recognized Expert Expert
          • Dec 2006
          • 8119

          #5
          Code:
          SELECT STATUS FROM USER_OBJECTS WHERE OBJECT_NAME ='TRIGGERNAME';
          the above query returns the status ob the object i.e.--VALID / INVALID

          Comment

          Working...