On a DataStage Windows platform, a team memeber recently developed two jobs
1) Extracts xml files and via XML Hierarchical Data stage load into into a SQL server table where one of the target colums is defined as datatype XML in SQL Server (write from Datastage as SQL type LongNVarChar)
2) Read data from the SQl Server table, xml columns is read as LongNVarChar and witten to a SQL server table as LongNVarChar
Job was running without issue on the windows platform
The person has now migrated the two job to a new Linux DataStage installation
when the second job (Read and writes to SQL server via odbc) is run in linux environment we get the following warning
terminate called after throwing an instance of 'APT_BadAlloc'
If I remove the column associated with the data type XML - the job run without issues
Has anyone had this issue in a Linux/SQL Server installation and resolved the problem
Thanking you all in advance
Reading SQL Server XML data type
Moderators: chulett, rschirm, roy
Does any other datatype work? That would be my only guess. Try LongVarChar.
Ernie
Ernie
Ernie Ostic
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
I have a job which reads an xml column from an SQL Server table successfully on Red Hat Linux.
However, I had to add the following environment variables to the job:
$APT_DEFAULT_TRANSPORT_BLOCK_SIZE
$APT_PHYSICAL_DATASET_BLOCK_SIZE
and set them both to 3000000 (3,000,000)
Hope that helps.
Bob.
However, I had to add the following environment variables to the job:
$APT_DEFAULT_TRANSPORT_BLOCK_SIZE
$APT_PHYSICAL_DATASET_BLOCK_SIZE
and set them both to 3000000 (3,000,000)
Hope that helps.
Bob.
Bob Oxtoby
I managed to get the SQL server type varchar(max) to be read into DataStage LongNVarchar by making use of the following ODBC driver:
Driver=/opt/IBM/InformationServer/Server/branded_odbc/lib/VMsqls00.so
Description=DataDirect SQL Server Native Wire Protocol
I was using:
Driver=/opt/IBM/InformationServer/Server/branded_odbc/lib/VMmsss00.so
Description=DataDirect SQL Server Wire Protocol driver
Where I was having same/similar issues as above. Hope this helps.
Driver=/opt/IBM/InformationServer/Server/branded_odbc/lib/VMsqls00.so
Description=DataDirect SQL Server Native Wire Protocol
I was using:
Driver=/opt/IBM/InformationServer/Server/branded_odbc/lib/VMmsss00.so
Description=DataDirect SQL Server Wire Protocol driver
Where I was having same/similar issues as above. Hope this helps.
PBT TBIS Consultant