I just finished migrating a database from an old SUN server to a new Windows server. I did a full export and import and got the database back up and running with only ONE problem. A trigger that worked in the old system comes up invalid in the new one and will not compile. Is there anywhere I can look to try to determine what the problem is? All the objects that were in the old database are in the new one. The script is not that complicated its just a logging script that gives me an entry every time a user adds a record to a certain table.
the trigger is really simple
CREATE OR REPLACE TRIGGER "app_OWNER".tr_gc_apptable_jn
before insert on gc_apptable
for each row
begin
insert into gc_apptable_jn
( id_NUMBER,
CODE_SECTION,
operator,
jn_oracle_user,
jn_date_changed,
jn_machine,
jn_osuser)
values (
:new.id_NUMBER,
:new.CODE_SECTION,
:new.operator,
user,
sysdate,
get_session_info (userenv('sessionid'),'MACHINE'),
get_session_info (userenv('sessionid'),'OSUSER'));
end;
/
thanks for any suggestions
the trigger is really simple
CREATE OR REPLACE TRIGGER "app_OWNER".tr_gc_apptable_jn
before insert on gc_apptable
for each row
begin
insert into gc_apptable_jn
( id_NUMBER,
CODE_SECTION,
operator,
jn_oracle_user,
jn_date_changed,
jn_machine,
jn_osuser)
values (
:new.id_NUMBER,
:new.CODE_SECTION,
:new.operator,
user,
sysdate,
get_session_info (userenv('sessionid'),'MACHINE'),
get_session_info (userenv('sessionid'),'OSUSER'));
end;
/
thanks for any suggestions