Using oracle OTD Couldn't create prepared statement for deleting tablerow

Hi,

I am using JCAPS 5.1.1.

In JCAPS 5.1.1 i tried to create an OTD using oracle database .

In wizard,I selected only prepared statement. After

selecting tried to create a prepared statement for deleting a

row from table.

delete from tablename where coulmnname=?

(e.g) delete from membership where memberid=?

But got following error

[SeeBeyond][Oracle JDBC Driver]The requested parameter metadata

is not available for the current statement.

But if we substitute any value instead of "?" it works

delete from tablename where columnname="ttt"

delete from membership where memberid=222

Following statements for insert,update works well other than delete

insert into tablename values(?,?,?)

update tablename set columnname=? where coulmnname=?

In earlier discussion thread for this kind of problem it has been mentioned as it might be a bug in 5.1. If that is the case, Please let me know is there any work around for this other than upgrading to higher version.

Steps followed

1) Created Project

2)Tried to create OTD using oracle database end up with the error

message

Note :

The similar error message we will get if we enter any incorrect tablename/column which is not present in database/table.

My colleague told it might be an installation problem.

Please let me know is it an installation problem or a problem in JCAPS 5.1.1

Message was edited by:

VenkateshSampoornam

[1555 byte] By [VenkateshSampoornama] at [2007-11-26 18:34:31]
# 1

Venkat,

With JCAPS 5.1.0 - from preparestatement

(Enterprise Explorer->Project-> OTD -> Oracle DB Wizard -> Statement Builder Wizard) i am able create delete statement.

Could you please eloberate the following - its not clear for me.

Following statements for insert,update works well other than delete

thanks

ram

RamSaia at 2007-7-9 6:08:37 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 2

Hi RAMSAI,

Thanks for your reply. I am using JCAPS 5.1.1.

I tried to create a OTD using oracle. In Oracle Wizard i selected

prepared statement option.

After entering preparedstatement name i tried to enter following

delete from table-name where column-name=?

After entering this and if we click next/finish oracle wizard gives error

[SeeBeyond][Oracle JDBC Driver]The requested parameter metadata

is not available for the current statement.

Due to the error i couldn't create OTD with delete statement.

But able to create OTD with insert and select statements alone.

VenkateshSampoornama at 2007-7-9 6:08:37 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 3
can u create a dummy table and try "delete from table-name" without where condition?
RamSaia at 2007-7-9 6:08:37 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 4

Hi Ramsai,

I am able to create statement as you said. I tried following statements

delete from tablename;

delete from tablename where columnname=anyvalue

(e.g) delete from tablename where columnname=999

The above statements are accepted by oracle database wizard.

If delete statements contain placeholder(?) oracle database wizard is

not accepting.

Regards

Venkatesh.S

VenkateshSampoornama at 2007-7-9 6:08:37 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...
# 5
Seems a bug - Please check the Product (exact version)release notes - whether any bug/CR filed on this. If you have licensed product - file a bug/CR.thanksRam
RamSaia at 2007-7-9 6:08:37 > top of Java-index,Java Enterprise System,Java Composite Application Platform Suite -- General Discussion...