Home » SQL & PL/SQL » SQL & PL/SQL » Query not processing by JDBC (Hanging on the executeQuery line) (Java, Mysql, SQL)
Query not processing by JDBC (Hanging on the executeQuery line) [message #645413] Sat, 05 December 2015 04:52 Go to next message
deepak416
Messages: 63
Registered: January 2013
Location: Pune
Member
My JAVA application are hanging when the its reached to executeQuery Line. Can anyone help why the below query are not executing by jdbc ?


Below are the query.

select RSOL_VENDOR_ACCOUNT_PAYMENT_HISTORY.RSOL_VENDOR_ACCOUNT_PAYMENT_HISTORY_ID as history,
RSOL_VENDOR_ACCOUNT_PAYMENT_HISTORY.INVOICE_NO, RSOL_VENDOR_ACCOUNT_PAYMENT_HISTORY.TOTAL_AMOUNT,RSOL_VENDOR_ACCOUNT_PAYMENT_HISTORY.PAID_AMOUNT,
RSOL_VENDOR_ACCOUNT_PAYMENT_HISTORY.RSOL_VENDOR_ACCOUNT_ID , (SELECT SUM(QUANTITY *purchased_price) from
RSOL_VENDOR_ACCOUNT_PAYMENT_HISTORY_WITH_STOCK_DETAILS where
RSOL_VENDOR_ACCOUNT_PAYMENT_HISTORY_WITH_STOCK_DETAILS.RSOL_VENDOR_ACCOUNT_PAYMENT_HISTORY_ID = history) as a from RSOL_VENDOR_ACCOUNT_PAYMENT_HISTORY
join RSOL_VENDOR_ACCOUNT_PAYMENT_HISTORY_WITH_STOCK_DETAILS ON
RSOL_VENDOR_ACCOUNT_PAYMENT_HISTORY.RSOL_VENDOR_ACCOUNT_PAYMENT_HISTORY_ID=
RSOL_VENDOR_ACCOUNT_PAYMENT_HISTORY_WITH_STOCK_DETAILS.RSOL_VENDOR_ACCOUNT_PAYMENT_HISTORY_ID group by history
Re: Query not processing by JDBC (Hanging on the executeQuery line) [message #645414 is a reply to message #645413] Sat, 05 December 2015 04:54 Go to previous messageGo to next message
Michel Cadot
Messages: 68776
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator

Quote:
Can anyone help why the below query are not executing by jdbc ?


No.

Re: Query not processing by JDBC (Hanging on the executeQuery line) [message #645415 is a reply to message #645414] Sat, 05 December 2015 04:56 Go to previous messageGo to next message
deepak416
Messages: 63
Registered: January 2013
Location: Pune
Member
No issue Michel. Anyways thanks for your reply.
Re: Query not processing by JDBC (Hanging on the executeQuery line) [message #645418 is a reply to message #645413] Sat, 05 December 2015 06:22 Go to previous message
Solomon Yakobson
Messages: 3312
Registered: January 2010
Location: Connecticut, USA
Senior Member
And why are you saying hanging in jdbc? Does it complete in reasonable time when run from, for example, SQL*Plus?

SY.
Previous Topic: execute immediate results in an ORA-00936 error
Next Topic: Data export to flat file (merged 3)
Goto Forum:
  


Current Time: Thu Jul 09 11:05:13 CDT 2026