- 4. Database event triggers need permission ultra-tube / * databases have database-level event triggers and schema level two kinds. The former defines the entire database, the trigger event is the database events, such as database startup, shutdown, logon to the database or exit. The latter is defined in the mode, trigger events include user login mode or quit, or to create and modify database objects (DDL events). * / - require an administrator to create a table written in the sys - create an event history table the Create table event_table ( EVENT_NAME VARCHAR ( 50 ), event_date DATE ); - need administrator privileges to set the Create or the replace the Trigger TG5 the After Logon ON Database the begin INSERT INTO event_table values(ora_sysevent, sysdate); End ;
the SELECT * from event_table; - view the history of the user login.