| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: After logon trigger
Hi Jared,
I just now Tried it and it was working.
But i have tried it in 8.1.6 and it has failed to execute for the users granted the DBA Role.
Anyways when i checked at
http://asktom.oracle.com/pls/ask/f?p=4950:8:329387::NO::F4950_P8_DISPLAYID,F
4950_P8_CRITERIA:1844531724208,%7BAfter%7D%20and%20%7BLogon%7D
This iw what he said.
<quote>
This is the correct behavior and is designed to make it so your database
doesn't
get into a state whereby NO ONE can log in (815 can get to that state). It
is a
feature.
My suggestion, don't use the DBA role. Create your own ROLE (create many of
them in fact) YOUR_DBA and use that instead. DBA is just a role (but a
special
one). If you don't use "DBA", you will be able to treat your DBA users as
if
they were any ordinary user.
</quote>
Your comments pls.
Best Regards,
Ganesh R
Tel : +971 (4) 397 3337 Ext 420
Fax : +971 (4) 397 6262
HP : +971 (50) 7456019
-----Original Message-----
Sent: Thursday, December 13, 2001 1:56 AM
To: Multiple recipients of list ORACLE-L
I've done many tests and this is not right. It fires for users with DBA.
The only thing I remember (may be I'm dreaming )when I first used it in 8.1.5 on NT is that the logon trigger did not run under the user who is logging on but under the pseudo process number 1.
This is not the case any more.
Regards
Waleed
-----Original Message-----
Sent: Wednesday, December 12, 2001 1:41 PM
To: Multiple recipients of list ORACLE-L
Ganesh,
Are you sure about logon triggers not firing for users with the DBA role enabled?
I've used them on 8.1.6 and 8.1.7, and they fire on my DBA account.
Jared
Ganesh Raja
<ganesh_at_gtfs-g To: Multiple recipients of list
ORACLE-L <ORACLE-L_at_fatcity.com>
ulf.com> cc:
Sent by: Subject: RE: After logon
trigger
root_at_fatcity.c
om
12/11/01 11:30
PM
Please respond
to ORACLE-L
Create it Once not every time some one Logs in...
The table is notsimilar to temporary tables in SQl... They are Different..
The Table is visible to all sessions if u say they are Global temporary Tables.
Yes Logon triggers Fire Every time the User logon... But the second time onwards u will get a Error... The Logon triggers dont fire for Users with the DBA Role Enabled.
HTH
Best Regards,
Ganesh R
Tel : +971 (4) 397 3337 Ext 420
Fax : +971 (4) 397 6262
HP : +971 (50) 7456019
-----Original Message-----
From: Peter.McLarty_at_mincom.com [mailto:Peter.McLarty_at_mincom.com]
Sent: Wednesday, December 12, 2001 11:00 AM
To: Multiple recipients of list ORACLE-L
Subject: After logon trigger
Hi
I am trying to use an after logon trigger to create a session temp
table rather that create it at the time the procedure that uses it
calls it. Two reasons for doing this is for performance ? the other is
so that I can reference it in a cursor.
1) Do logon triggers not work if I logon with toad or similar tools
2) If 1 is wrong why when I have the following trigger in the database
cant I see the table or use it after logging on
TRIGGER create_temp_table
AFTER LOGON ON DATABASE
DECLARE
v_CreateString VARCHAR2(100);
BEGIN
v_CreateString := 'CREATE GLOBAL TEMPORARY TABLE t_tmp_stddev ( v_part
NUMBER, readings NUMBER) ON COMMIT PRESERVE ROWS';
EXECUTE IMMEDIATE v_CreateString;
END;
TIA
Peter McLarty E-mail: Peter.Mclarty_at_Mincom.com
Technical Consultant WWW: http://www.Mincom.com
APAC Technical Services Phone: +61 (0)7 3303 3461
Brisbane, Australia Mobile: +61 (0)402 094 238
---------------------- Facsimile: +61 (0)7 3303
3048
--
This transmission is for the intended addressee only and is
confidential information. If you have received this transmission in
error, please delete it and notify the sender. The contents of this
e-mail are the opinion of the writer only and are not endorsed by the
Mincom Group of companies unless expressly stated otherwise.
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author:
INET: Jared.Still_at_radisys.com
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------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).
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------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).
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists --------------------------------------------------------------------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 Wed Dec 12 2001 - 22:37:30 CST
![]() |
![]() |