The AskTOM team is taking a break over the holiday season, so we're not taking questions or responding to comments. Please have a happy and safe festive season and as always, thanks for being a member of the AskTOM community.
Thanks for the question, David.
Asked: October 30, 2019 - 8:30 am UTC
Last updated: November 07, 2019 - 3:02 am UTC
Version: 5.1.1
Viewed 1000+ times
begin update emp set ename = :ename, job = :job, hiredate = :hiredate where empno = :id; :status := 200; :location := :id; exception when others then :status := 400; end;
begin dbms_session.set_context('MYCTX','RESTPT','/hr/ermployees/:id/PUT'); update emp set ename = :ename, job = :job, hiredate = :hiredate where empno = :id; :status := 200; :location := :id; exception when others then :status := 400; end;
Mikhail Velikikh, November 06, 2019 - 11:13 am UTC
BEGIN ORDS.define_service( p_module_name => 'test-cgi-env', p_base_path => 'test-cgi-env/', p_pattern => 'test/', p_method => 'GET', p_source_type => ORDS.source_type_plsql, p_source => q'#begin owa_util.mime_header('text/plain'); owa_util.print_cgi_env; end;#', p_items_per_page => 0); COMMIT; END; /
More on PL/SQL routine DBMS_SESSION here