Error In Loading File of 2GB
Hi All
I have created following Table and faced an error
Create Table Reference(col1 varchar(20) , col2 integer ,col3 varchar(20) );
copy Reference from '/home/dbadmin/Reference.txt' delimiter '|';
Then I have faced the Following error
ERROR 2344: Cannot allocate sufficient memory for COPY statement (536870912 requested, 268435456 permitted)
HINT: This can happen if you have very wide rows, or if you have specified an incorrect record terminator. (Check your escaping -- for example, "' '" is not a tab; you must use "E' '".)
Note :My reference.txt file is 2gb large and it is delimited with '|'
Can anyone Help
I have created following Table and faced an error
Create Table Reference(col1 varchar(20) , col2 integer ,col3 varchar(20) );
copy Reference from '/home/dbadmin/Reference.txt' delimiter '|';
Then I have faced the Following error
ERROR 2344: Cannot allocate sufficient memory for COPY statement (536870912 requested, 268435456 permitted)
HINT: This can happen if you have very wide rows, or if you have specified an incorrect record terminator. (Check your escaping -- for example, "' '" is not a tab; you must use "E' '".)
Note :My reference.txt file is 2gb large and it is delimited with '|'
Can anyone Help
0
Comments
https://my.vertica.com/docs/7.1.x/HTML/index.htm#Authoring/AdministratorsGuide/BulkLoadCOPY/Choosing...
Since you are trying to load data in excess of couple of gbs I will also suggest you to kindly use the "DIRECT" keyword in your above statement since as per vertica recommendation if the load is greater than 100mb it is suggested to load data directly into ROS & that can be done by using "DIRECT"keyword.
Regards
Rahul Choudhary