473,790 Members | 2,528 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DB Logoff vs. Schema Logoff

Hi,

I was creating a trigger to fire when a user ends a session, but I see that
you could have it fire on a SCHEMA event :

CREATE TRIGGER "SRU"."TEST " BEFORE
LOGOFF ON "SRU".SCHEM A
or a DATABASE event :
CREATE TRIGGER "SRU"."TEST " BEFORE
LOGOFF ON DATABASE

The "Event Type" in both cases is listed as Database, so are these 2
different events, or just the same thing listed in 2 different places?

Thanks,

Michael.
--
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXX
X Michael Gillis X gi******@gov.ns .ca X
X Corporate IT Operations X 902-424-2471 X
X Transportation & Public Works X http://cito.tpw.gov.ns.ca/ X
XXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XXXXXX
Jul 19 '05 #1
2 4584
Michael <gi******@gov.n s.ca> wrote in message news:<Xn******* *************** *******@198.164 .200.20>...
Hi,

I was creating a trigger to fire when a user ends a session, but I see that
you could have it fire on a SCHEMA event :

CREATE TRIGGER "SRU"."TEST " BEFORE
LOGOFF ON "SRU".SCHEM A
or a DATABASE event :
CREATE TRIGGER "SRU"."TEST " BEFORE
LOGOFF ON DATABASE

The "Event Type" in both cases is listed as Database, so are these 2
different events, or just the same thing listed in 2 different places?

Thanks,

Michael.

You can't disconnect from a schema, without disconnecting from the database.
This should answer your question.

--
Sybrand Bakker
Senior Oracle DBA
Jul 19 '05 #2
Michael <gi******@gov.n s.ca> wrote in message news:<Xn******* *************** *******@198.164 .200.20>...
Hi,

I was creating a trigger to fire when a user ends a session, but I see that
you could have it fire on a SCHEMA event :

CREATE TRIGGER "SRU"."TEST " BEFORE
LOGOFF ON "SRU".SCHEM A
or a DATABASE event :
CREATE TRIGGER "SRU"."TEST " BEFORE
LOGOFF ON DATABASE

The "Event Type" in both cases is listed as Database, so are these 2
different events, or just the same thing listed in 2 different places?

Thanks,

Michael.


Wouldn't the logoff schema trigger fire on an
ALTER SESSION SET CURRENT_SCHEMA
command and the DATABASE one would not.

Ed
(disclaimer, I haven't used these yet, but that is what I'd expect would happen.)
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5096
by: Arun Goel | last post by:
Hi all, I have set up rmiregistry.exe to run as service on Windows 2000 Server .. I set it up using "srvany.exe". It is running fine, but when I logoff, it stops.I did a lot of research but I am not able to find out what is the problem. I have "Interact with active desktop" unchecked. If I login after logoff, then rmiregistry is not responding though it shows the rmiregistry as "started" in "controlPanel->Admin->services". If I restart...
8
2768
by: Jonathan Heath | last post by:
Hi all, I have created an ASP script that enters data into an Access Database. My problem is that I'd like this script to run when the computer is shutdown or the user logs off. I think this would be simple enough if the ASP didn't have any user input, but it does.
4
7195
by: Kurt | last post by:
Hi I am using CDO 1.21 from C# in order to iterate through the entries in a users outlook address book (as OOM was too slow). Basically I take the Name field from each "message" and insert it into a ListBox. I shall paste my code at the end, and describe my problem first If I call my MAPI.Sessions Logoff method when I have finished using it, then this method takes between 1 and 5 minutes to execute, but after that everything is fine If...
8
3454
by: Jm | last post by:
Hi All I have an app that when running if a user selects logoff or shutdown from the start menu, it will close itself but not logoff windows or shutdown. From what i have found so far its most likely something ive declared in my program that is preventing the logoff, i have tried closing and disposing forms and sql connections, is there anything else i should be looking for ? Or some way to step through it to find what is causing this ...
6
1608
by: =?Utf-8?B?Zmh1bnRlcg==?= | last post by:
Hi I have a small .net Windows app that I need to run before the user logs off the machine. This is a Windows App where a dialog is displayed to the user and he/she needs to answer before the computer continues to logoff. I currently have the application running as a logoff script. In other words I use the Group Policy window to add the executable as a logoff script. This works fine as long as the app is a console app. But if it's a...
3
2277
by: =?Utf-8?B?Zmh1bnRlcg==?= | last post by:
I have a Windows Service that should pop a windows form right before logoff, for the user to enter some information. I got things working fairly well except that the user does not get to see the form before logoff. But I know that it run properly because when I log back in the form is there and works fine. So the form opened and run, but windows was already in the "logoff" screen with no desktop showing, so I missed the form. Is there any...
3
2204
by: arulkumara | last post by:
Hi I created one logoff trigger . but tat does n't work properly but log on trigger works properly. wat's the problem I'm using oracle 9i with unix environment coding ********* create or replace trigger logoff_trig before logoff on schema
1
5325
by: Clemente | last post by:
Hi, We have a VB.Net application that is sleeping until it receives a logoff/shutdown event. We want the application running on Vista and XP. When the application receives those events it has to show a message box, so the user can answer Yes or No, and then let the logoff/ shutdown process continues.
2
667
by: Michael | last post by:
Hi, I was creating a trigger to fire when a user ends a session, but I see that you could have it fire on a SCHEMA event : CREATE TRIGGER "SRU"."TEST" BEFORE LOGOFF ON "SRU".SCHEMA or a DATABASE event :
0
9512
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10413
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10200
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10145
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9021
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7530
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5422
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5551
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2909
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.