Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

SAP DBTech JDBC [2048]: column store error: Memory Allocaion Failed Error

$
0
0

Hello Team

 

Our scenario

 

We have a STAGE table in HANA and we need to pull that data from STAGE table and after some transformations we need to update the final table in HANA.

 

For this we are writing procedures in HANA and in that procedure we are using some Temporary Tables. When we are tyring to insert data into Tempoarary tables we are getting the attached error message. The data volume is very high here, it is almost 20million records.

error.png

 

Statement used as below

 

INSERT INTO #query (MD_KEY_ENTITY, MD_KEY_PACKAGE, TD_ZBB_SOURCE, TD_ZBB_COA, TD_COMP_CODE, TD_DETAIL_1, TD_DETAIL_2,

  TD_COST_CENTER, TD_ACCOUNT, TD_FISC_YEAR, TD_FISC_PER, TD_CAL_YEAR, TD_CAL_PER, TD_LOC_CURRENCY, TD_AMOUNT)

SELECT  CASE

  WHEN "RCNTR" = '' THEN 'SAP_KST_PC_' || "PRCTR"

  ELSE 'SAP_KST_' || "RCNTR"

  END AS MD_KEY_ENTITY,

  'SAP_SCOA_'|| "RACCT" AS MD_KEY_PACKAGE,

  'SAP_KST',

  'SAP_SCOA',

  "RBUKRS",

  "RFAREA",

  "PRCTR",

  "RCNTR",

  "RACCT",

  "GJAHR",

  "POPER",

  CASE

  WHEN (GJAHR <= 2014 AND (POPER >=9 and POPER <=12)) THEN GJAHR

  ELSE GJAHR -1

  END AS TD_CAL_YEAR,

  CASE

  WHEN "GJAHR" <= 2014 THEN

  CASE

  WHEN "POPER" >=9 AND "POPER" <=12 THEN "POPER"-8

  ELSE "POPER" + 4

  END

  ELSE "POPER"

  END AS TD_CAL_PER,

  "RTCUR",

  "HSL"

FROM "ABC"."TABLE_NAME"

  WHERE 

  SUBSTR(RACCT,1,5) = '00003' OR

    SUBSTR(RACCT,1,5) = '00004' OR

    SUBSTR(RACCT,1,5) = '00005' OR

    SUBSTR(RACCT,1,5) = '00006' OR

    SUBSTR(RACCT,1,5) = '00007' OR

    SUBSTR(RACCT,1,5) = '00008' OR

    SUBSTR(RACCT,1,5) = '00009' AND

    SUBSTR(RACCT,1,7) <>'0000999';

 

IF I AM USING THE SAME SELECT STATEMENT IN SQL CONSOLE, I AM ABLE TO SEE THE DATA IN RESULT SET. IF I AM USING THE SAME SELECT STATEMENT IN MY PROCEDURE TO INSERT VALUES INTO TEMPORARY TABLE, I AM GETTING THE ATTACHED ERROR MESSAGE.

 

SO REQUEST YOU TO PLEASE CHECK AND SUGGEST ME HOW TO INCREASE THE MEMMORY NOW. AND WHERE TO INCREASE THE MEMORY NOW.

 

THANKS

RAJ


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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