Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Event Triggers in 8i ?

RE: Event Triggers in 8i ?

From: <netmadcap_at_netzero.com>
Date: Tue, 25 Feb 2003 20:13:46 -0800
Message-ID: <F001.00559874.20030225201346@fatcity.com>


Bob,

here is the code :

CREATE OR REPLACE TRIGGER bef_dbshutdown   BEFORE SHUTDOWN
  ON DATABASE
BEGIN
  insert into db_updown_log(log_date) values(sysdate); END;
/

u just have to replace the insert statement with whatever u want. also, doesnt matter under what schema u create the trigger.

hope this helps !

-sam

-----Original Message-----
Sent: Tuesday, February 25, 2003 3:39 PM To: Multiple recipients of list ORACLE-L

All,

I would like to insert v$license table info into different table before shutting down the database with the help of Event Triggers.

SQL>desc v$license

Column Name                    Null?    Type
------------------------------ -------- ----
SESSIONS_MAX                            NUMBER
SESSIONS_WARNING                        NUMBER
SESSIONS_CURRENT                        NUMBER
SESSIONS_HIGHWATER                      NUMBER
USERS_MAX                               NUMBER

I would like to add sysdate in addition to above columns into temporary table on daily basis.

Did any one setup similar to this?

Thanks,
Bob



Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Bob Robert
  INET: mssql_2002_at_yahoo.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L

(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: <netmadcap_at_netzero.com INET: netmadcap_at_netzero.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).
Received on Tue Feb 25 2003 - 22:13:46 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US