Here's a pretty small javascript file that allows for running sql in the background of your current sqlcl session. This is a trivial example of a sql script that has a sleep in it to simulate something taking time. It also prints the SID to show it's a different connection than the base.
select 'DB SID ' ||sys_context('USERENV','SID') || ' is going to sleep' bye from dual;
begin
↧