Skip to Main Content

ORDS, SODA & JSON in the Database

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!

PL/SQL Source type : offset issue

3573277Nov 6 2019 — edited Nov 8 2019

When use offset in a PL/SQL block which is used in ords, not allowed to use variables

declare

begin

    open :hits for

    select

        cursor( select *

                  from rdd_provider

                  order by prvd_ak

                  offset nvl(:p_from,0) rows fetch next nvl(:p_size,5) rows only ) hits

    from dual;

end;

p_from and p_size are sent as input parameter

The above fails --

An error was encountered performing the requested operation:

Validation Information:

Wed Nov 06 10:24:29 EST 2019

Module: provider  Template: prov  Handler: GET

Syntax Error at line 13, column 25

                  offset p_from rows fetch next p_size rows only ) hits

                         ^^^                                            

Expected: digits,

Vendor code 0

** we are able to directly edit ords_metadata.ords_handler directly and it does works

Comments

Alex Keh-Oracle

Normally, I would recommend backing out the patch on the server or client or both, whichever causes the error. Since this is a CPU, the preferred solution is to diagnose the root cause and fix it. The problem itself may not be due to ODP.NET. It could some issue with the Oracle Client or DB server that the patch changed. I would recommend opening up an Oracle SR and working with Support to diagnose the issue, Oracle then should be able to provide you a workaround or fix to resolve it.

799292

Thank you for your answers.

I have created now a service request.

Number is SR 3-17672759281
(I am not able to paste copied things into this application!)

1 - 2

Post Details

Added on Nov 6 2019
4 comments
698 views