Skip to Main Content

SQLcl

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Error when deploying using Project Export

vitodcDec 23 2024 — edited Dec 23 2024

Hello,

I have the following trigger which compiles in VS Code or SQL Developer or SQLcl. When I try to deploy using project deploy I am getting the error below. Has anybody experienced this? Thanks

Error

Reason: liquibase.exception.DatabaseException: ORA-00900: invalid SQL statement

https://docs.oracle.com/error-help/db/ora-00900/ [Failed SQL: (900) :new.updated := localtimestamp]
ORA-00900: invalid SQL statement

Trigger

create or replace editionable trigger app_group_biu before
insert or update on app_group
for each row
begin
if inserting then
:new.created := localtimestamp;
:new.created_by := coalesce(
sys_context('APEX$SESSION', 'APP_USER'),
user
);
end if;

:new.updated := localtimestamp;
:new.updated_by := coalesce(
sys_context('APEX$SESSION', 'APP_USER'),
user
);
end app_group_biu;
/

alter trigger app_group_biu enable;
This post has been answered by danmcghan-Oracle on Dec 23 2024
Jump to Answer
Comments
Post Details
Added on Dec 23 2024
2 comments
82 views