Skip to Main Content

DevOps, CI/CD and Automation

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!

Dynamic sql - binding association arrays and binding a portion of the AND

854578Apr 12 2011 — edited Apr 16 2011
I have two questions regarding dynamic sql using oracle 11g. My understanding is that using binding variables is both faster and helps prevent sql injection.

1st I want to pass in two assocation arrays - (these are just samples as my actual procedure is pretty large).

TYPE t_array_one IS TABLE OF VARCHAR2(10) INDEX BY BINARY_INTEGER;

TYPE t_array_two IS TABLE OF VARCHAR2(75) INDEX BY BINARY_INTEGER;

PROCEDURE SomeProcedure(
p_array_one IN t_array_one,
p_array_two IN t_array_two

I can create the dynamic sql I need, looping through these arrays, however i do not know how many bind variables I have until run time - so I am unsure what to use for the using clause.

somerefcursor is a SYS_REFCURSOR, and sql_stmt is my dynamic sql variable, complete with bind variables.
Given the above what should be included in the using clause below?
OPEN somerefcur FOR sql_stmt USING ?????

2nd I am using a filter of sorts on the client side - this would mean a portion of the where clause is created by the user
so that they would choose a column_name, logical operator and a comparsion value.
An example would look like this, state = 'VA'.
A portion of my dynamic sql where clause would become sql_stmt := sql_stmt || 'AND : x'; -- additional space between colon and x as if I do not add this here - the display is showing as an emoticon.

The using clause for this bind variable should then become state='VA' to replace : x, however, nothing in any form or fashion I have tried seems to allow this.

Any suggestions, and or examples anywhere, that may help me resolve these issues?
Thank You,
Keith

Edited by: user10651723 on Apr 11, 2011 10:38 PM

Comments

Rajagopalan-Oracle
Answer

Java JNLP is not certified / supported to work with Forms 10g --->
Forms 11.1.2.2 client and Java Web Start, JNLP (Doc ID 2081779.1)
Running the Oracle Forms applet via Java Web Start and/or JNLP is ** NOT ** supported in Forms 11.1.2.2. However, Web Start and/or JNLP is supported from Oracle Forms version 12.2.1.
More details about the 12.2.1 forms client deployment options can be found in Document:2066505.1

Marked as Answer by Suresh Sangaran-Oracle · Sep 27 2022
User_WPTHP

Thank you for your comments Sir.
I try to run my form in Java web start through JNLP File its works fine my form is running successfully but the report is not running, when on internet explorer i run my form and report both working fine but in JNLP File only forms work.

Jiju Mathew

I try to run my form in Java web start through JNLP File its works fine my form is running successfully but the report is not running, when on internet explorer i run my form and report both working fine but in JNLP File only forms work.

I also facing same issue. please help me.

1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 14 2011
Added on Apr 12 2011
1 comment
1,263 views