0

我无法在 Bluemix 的“SQL 数据库”数据库中创建大量具有 CLOBS 和 BLOBS 列的表。

返回的错误是:

SQL3229W  The field value in row "617" and column "3" is invalid. The row was 
rejected. Reason code: "1".

SQL3185W  The previous error occurred while processing data from row "617" of 
the input file.

在本地环境中执行的相同程序运行正常。

在您用来加载的命令下:

load client from /home/db2inst1/ODONTO/tmp/ODONTO.ANAMNESE.IXF OF IXF LOBS FROM /home/db2inst1/ODONTO/tmp MODIFIED BY IDENTITYOVERRIDE replace into USER12135.TESTE NONRECOVERABLE
4

1 回答 1

0

当前,您可以将 lob 文件上传到 SQLDB 或 dashDB 的唯一方式是从云加载数据和 lob。选项是从 Softlayer 中的 Swift 对象存储或 Amazon S3 存储中获取数据。您应该拥有其中一项服务的帐户。

之后,您可以使用以下语法:

db2 "call sysproc.admin_cmd('load from Softlayer::softlayer_end_point::softlayer_username::softlayer_api_key::softlayer_container_name::mylobs/blob.del of del LOBS FROM Softlayer::softlayer_end_point::softlayer_username::softlayer_api_key::softlayer_container_name::mylobs/ messages on server insert into LOBLOAD')"

其中:mylobs/是Softlayer swift对象存储容器内的目录,定义在LOBLOAD是要加载的表名

例子:

db2 "call sysproc.admin_cmd('load from Softlayer::https://lon02.objectstorage.softlayer.net/auth/v1.0::SLOS424907-2:SL523907::0ac631wewqewre8af20c576ad5214ec70f163d600d247bd5d4dfef5453f72ff6::TestContainer::mylobs/blob.del of del LOBS FROM Softlayer::https://lon02.objectstorage.softlayer.net/auth/v1.0::SLOS424907-2:SL523907::0ac631wewqewre8af20c576ad5214ec70f163d600d247bd5d4dfef5453f72ff6::TestContainer::mylobs/ messages on server insert into LOBLOAD')"

于 2016-01-20T19:58:46.327 回答