Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle trigger

CREATE OR REPLACE TRIGGER my_schema.trigger_name AFTER LOGON ON DATABASE
BEGIN
    INSERT INTO my_log_table
    VALUES (USER AS CONNECTED_USER,
        sys_context('USERENV', 'SESSIONID') AS SESSION_ID,
        substr(sys_context('USERENV', 'OS_USER'), 1, 50) AS OS_USER,
        substr(sys_context('USERENV', 'HOST'), 1, 30) AS HOST,
        SYSDATE AS LOGON_DATE);
END;
ALTER TRIGGER my_schema.trigger_name ENABLE;
Comment

oracle compile trigger

alter trigger MY_SCHEMA.TRIGGER_NAME compile;
Comment

PREVIOUS NEXT
Code Example
Sql :: union syntax in oracle 
Sql :: view acl table oracle 
Sql :: mdl ddl acl 
Sql :: SQL DATEDIFF(date_part, start_date, end_date) 
Sql :: select where mysql 
Sql :: procedure syntax 
Sql :: how to delete python anywhere mysql database 
Sql :: no suitable driver found for sqlite 
Sql :: desinstaller mysql sur ubuntu definitivement 
Sql :: postgres show table schema 
Sql :: sqlplus change user 
Sql :: npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! sqlite3@4.2.0 install: `node-pre-gyp install --fallback-to-build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the sqlite3@4.2.0 install script. 
Sql :: stuff in sql server 
Sql :: xml to column sql 
Sql :: oracle merge insert if not exists 
Sql :: To log postgres db in without a password 
Sql :: row number sql 
Sql :: number(10 2) in sql means 
Sql :: db count rows 
Sql :: denormalization in sql example 
Sql :: inserted row count tsql 
Sql :: SQL CREATE INDEX Constraint 
Sql :: create and attach user to a postgresql database 
Sql :: sql server get number of working days in a month 
Sql :: sql delete table 
Sql :: mysql foreign key 
Sql :: how to close external sql connection in laravel 
Sql :: create a table 
Sql :: import database from sql file 
Sql :: ranking functions in sql 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =