0 / 0
Go back to the English version of the documentation
运行查询时发生 SQL20478 错误
Last updated: 2024年11月26日
在Data Virtualization中运行查询时出现SQL20478错误

如果数据屏蔽规则应用于 TableA ,并且您运行使用 CREATE TABLE ... AS SELECT ... FROM TableA的查询,那么可能会看到错误消息Reason code "30". SQLCODE=-20478, SQLSTATE=428HD.

症状

发生此错误的原因是缺省情况下,无法将掩码数据写入表或转换变量。 例如,您可能会看到以下错误消息。

The statement failed because the column mask "EXTERNAL.Transform" defined for column 
"SCHEMA.TABLE_NAME.COLUMN" exists and the column mask cannot be applied or the column mask 
conflicts with the failed statement. Reason code "30". SQLCODE=-20478, SQLSTATE=428HD

解决问题

要允许写入屏蔽数据,请联系Data Virtualization"IBM® Cloud支持人员,将 "DB2_ALLOW_WRITE_OF_MASKED_DATA注册表变量设置为 "YES

Generative AI search and answer
These answers are generated by a large language model in watsonx.ai based on content from the product documentation. Learn more