简体   繁体   中英

ExecuteQuery: Java out of Heap Space

I am using ExecuteQuery (www.executequery.org ) to connect to a remote Oracle DB. I have received an .sql-file that I'm supposed to run on this DB. But I cannot even load this file into ExecuteQuery, because apparently it's too big: I get a Java Exception, saying that the Java Heap Space is too small.

I know how to specify Java Heap Size when executing a Java program from the console. But how can I tell ExecuteQuery to increase the heap? Does anyone know a solution for this?

I do not think your sql is too large. Probably what you see is just the symptom of another error. Have you tried raising the heap when starting the program? If yes, you should try to debug the program and see if your running into an expensive loop or similar. Maybe it is even a bug inExecuteQuery - try asking in their google group.

I do not think there is any possibility nor need for allocating memory from within the app.

I had the same issue, and I solved it with a little workaround: Go to something like

Menu -> Database -> execute SQL script

Like this, the heap space seems not to be affected.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM