472,348 Members | 2,016 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,348 software developers and data experts.

the status field value

4
<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"
May 3 '07 #1
4 1648
Hello

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

Try, this may help you

Reshmi

<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"
May 3 '07 #2
debasisdas
8,127 Expert 4TB
Dear
Reshmi Jacob

in oracle 'ENABLED','DISABLE' AND ''VALID','INVALID' 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 .
May 3 '07 #3
yoghee
4
Dear
Reshmi Jacob

in oracle 'ENABLED','DISABLE' AND ''VALID','INVALID' 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
May 3 '07 #4
debasisdas
8,127 Expert 4TB
Expand|Select|Wrap|Line Numbers
  1. SELECT STATUS FROM USER_OBJECTS WHERE OBJECT_NAME ='TRIGGERNAME';
  2.  
the above query returns the status ob the object i.e.--VALID / INVALID
May 3 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Richard A. DeVenezia | last post by:
A page has a long running computation loop. While in the loop I want to update a status object so I know how things are going in the computation. ...
4
by: lost hope | last post by:
hey guys, on the main page of my site, i have a login area (user/pass text boxes). when the user submits the form, the page is reloaded with with...
0
by: Eddy_w | last post by:
Hello, I try to ping from my mobile device with a wireless connection to my pc. I found the class clsping on the internet and it works perfect...
20
by: newbie | last post by:
Hi all, http://www.aswin.be/nictransfer.JPG How can I get these numbers with VB.NET ? I thought somewhere in WMI but I can't find them. ...
3
by: daveyand | last post by:
hey, I know in the new browsers you're not able to change the value of the status bar. Which is fair enough, i understand why and agree. ...
2
by: Mike Viuckery | last post by:
We have a table that is used as an audit trial -PK - DATETIME CHANGE WAS MADE - THE FILED THAT WAS CHANGED - ORIGINAL...
5
by: Laetitia | last post by:
Hi All Please can anyone advise whether it is possible to display messages in the status bar. I have a number of update queries which will be...
9
by: tshad | last post by:
I have a Windows App that is doing some work and then writing a "Now Processing..." line to the status line of the window as well as the Textbox on...
0
by: tvnaidu | last post by:
I wrote a status page HTML code, here I have 8 port status, it prints first 7 and last status it won't print, from there onwards it won't print...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.