Can anybody know how we can use Oracle Package variable in Java/JDBC?
I am using a insert trigger on a table which will initialize the login user from a package variable.In my log4j configuration file, while inserting data into this table, I am updating the user with my current user. But the insert statement is not identifying the user and it is inserting null.
---------------------- create or replace TRIGGER DWUSER.TDS_JAVA_LOG_TRIG BEFORE INSERT ON DWADMIN.TDS_JAVA_LOG REFERENCING NEW AS NEW OLD AS OLD FOR EACH ROW DECLARE tmpVar NUMBER; BEGIN tmpVar := 0;