Quantcast
Channel: SCN : All Content - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6745

Delete From .. Memory Allocation Issue

$
0
0

Hi,

 

I currently stuck with a simple task. I would like to execute a DELETE FROM TABLE; statement.

Catch is, the table contains 46 million rows!

 

I am unfortunatly unable to delete the rows via:

1) Remote JDBC Command

2) Server JDBC Command

 

JDBC Driver
com.sap.db.jdbc.exceptions.jdbc40.SQLTransactionRollbackException: [129]: transaction rolled back by an internal error: Memory allocation failed        at com.sap.db.jdbc.exceptions.jdbc40.SQLTransactionRollbackException.createException(SQLTransactionRollbackException.java:40)        at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.createException(SQLExceptionSapDB.java:304)        at com.sap.db.jdbc.exceptions.SQLExceptionSapDB.generateDatabaseException(SQLExceptionSapDB.java:174)        at com.sap.db.jdbc.packet.ReplyPacket.buildExceptionChain(ReplyPacket.java:104)        at com.sap.db.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:1111)        at com.sap.db.jdbc.ConnectionSapDB.execute(ConnectionSapDB.java:857)        at com.sap.db.jdbc.StatementSapDB.sendCommand(StatementSapDB.java:923)        at com.sap.db.jdbc.StatementSapDB.sendSQL(StatementSapDB.java:972)        at com.sap.db.jdbc.StatementSapDB.execute(StatementSapDB.java:258)        at com.sap.db.jdbc.StatementSapDB.executeUpdate(StatementSapDB.java:418)        at com.sap.db.jdbc.trace.Statement.executeUpdate(Statement.java:163)

 

3) Remote HANA STUDIO 

 

HANA Studio Console
[129]: transaction rolled back by an internal error: Memory allocation failed

 

 

4) Server HDBSQL Command

 

HDBSQL Console

hdbsql HDB=> \mu ON

Multiline mode switched ON

hdbsql HDB=> DELETE FROM BAM_BESTBUY.PRODUCTS_KPI

> \g

* 129: transaction rolled back by an internal error: Memory allocation failed SQLSTATE: 40000

hdbsql HDB=> ^C

imdbhdb:/sap/usr/HDB/exe/linuxx86_64/HDB_1.00.48.372847_943458 #

 

 

 

It's an instance from Amazon AWS and memory is 18GB, this shouldn't be a problem in my opinion. The content of each row is very tiny, a few id combinations.

 

I am running out of options. Is there a configuration option I can switch to increase e.g. buffer sizes etc.?

Not sure, what to do, now.

 

Thanks in advance

 

best regards,

Jens

 



Viewing all articles
Browse latest Browse all 6745

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>