Hey,
I am using LOAD option in oracle enterprise stage. When i load data into the VARCHAR Field, the data is getting loaded with spaces.
Example
Assume the job as follows
Oracle -----> Transformer------->Oracle
In transformer i am defaulting a value 'SM' for a column of datatype Varchar (5). when i load the data, its getting loaded as 'SM ' (with trailing spaces). I tried trimming the data via datastage but it dosent work.
is there any env variable to solve this issuse or any workaround? or is it a default characteristic of LOAD?
Oracle Load Issuse, Data loaded with trailing spaces
Moderators: chulett, rschirm, roy
You probably have a VarChar2 data type, which does get loaded with trailing spaces. Look up the use of the environment variable APT_ORACLE_PRESERVE_BLANKS and set it so that the spaces are preserved
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
I already tried that and still it dosent work.
The reason I set tht to true was, when we use SQL LOAD option via datastage, it treats " " as Null and it dosent get loaded into the non nullable column. But when I set this ENV varibale, it works fine.
Also When I use Insert, it dosent get loaded with trailing spaces
Also When I use Insert, it dosent get loaded with trailing spaces