0

关于如何在使用 DBMS_CLOUD 将 csv 文件加载到 ADB 时指定读取大小以修复以下错误的任何想法?

Error report -
ORA-20000: ORA-29400: data cartridge error
KUP-04020: found record longer than buffer size supported, 10002432, in https://swiftobjectstorage.us-ashburn-1.oraclecloud.com/v1/namespace/bucketname/filename.csv (offset=0)
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD", line 557
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD", line 1013
ORA-06512: at "C##CLOUD$SERVICE.DBMS_CLOUD", line 1036
ORA-06512: at line 2
20000. 00000 - "%s"
*Cause: The stored procedure 'raise_application_error'
was called which causes this error to be generated.
*Action: Correct the problem as described in the error message or contact
the application administrator or DBA for more information.
4

1 回答 1

0

如果源文件中的记录大于默认缓冲区大小(即 10MB),则可以对 DBMS_CLOUD.COPY_DATA 过程使用以下格式选项。

format => json_object('readsize' value '20000000')

有关 DBMS_CLOUD 格式选项的更多信息,您可以查看以下文档:

https://docs.oracle.com/en/cloud/paas/autonomous-database/adbsa/format-options.html#GUID-08C44CDA-7C81-481A-BA0A-F7346473B703

于 2021-11-01T08:40:27.887 回答