• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Handling cursor declared in oracle in java program

 
Minal Silimkar-Urankar
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have created cursor in oracle which returns cursor. I want to handle cursor specified below in java. I tried java code given below shows error







[ September 12, 2008: Message edited by: minal silimkar ]
 
Shailesh Chandra
Ranch Hand
Posts: 1082
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its long time when I worked on cursors but I did not create a cursor type as you created.

I have modified your procedure code, in this you need not to populate your out variable.

you can try this, hope this will work






Thanks,
Shailesh
[ September 10, 2008: Message edited by: Shailesh Chandra ]
 
Minal Silimkar-Urankar
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Shailesh, for your reply.
But I want to handle that out parameter which is returning cursor, in java program. How can I do that?
 
Shailesh Chandra
Ranch Hand
Posts: 1082
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by minal silimkar:

But I want to handle that out parameter which is returning cursor, in java program. How can I do that?


This is same what you want, you need NOT to do any change in your java program. change only stored procedure part and run same java program and let us know what is output.

Thanks,
Shailesh
[ September 12, 2008: Message edited by: Shailesh Chandra ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic