I have a table named bcfsite with a field named activestate.
update bcfsite set activestate = 1 where bscname like '%B361Z%'
When I run the above query SQLPlus or Oracle SQL Developer, it works fine without any problems, but when I run it in Java using this code:
String sqlstrString = "update bcfsite
set activestate = 0 where bscname like '%B361Z%' ";
PreparedStatement ps = d.prepareStatement(sqlstrString);
ResultSet rs = ps.executeUpdate();
or this code :
ResultSet rs = DBConnection.RunStatement(sqlstrString, d);
My program pends and doesn't pass the update statement.
I changed the table and column and tried delete instead of update but still I see the same problem.