Pawel Plaszczak
01/31/2025, 4:03 PMCREATE TABLE mytable (
description VARCHAR(<tel:4294967295|4294967295> CHAR),
But the field description should be CLOB, as can be seen in the out file (generated earlier by tap-oracle ingest) that I am using as input:
{"type":"SCHEMA","stream": [... omitting not relevant stuff...]
"PL_ID":{"multipleOf":1e-38,"type":["null","number"]},"PROJECT_NBR":{"multipleOf":1e-38,"type":["null","number"]},
I suppose the problem would disappear (hopefully) if I was using thin client rather than cx_Oracle both in tap and target. I achieved success in tap-oracle, it reports using thin. But how to force target-oracle to use thin client? I have already set these env variables, and ensured that oracledb is installed while cx_oracle is not installed:
$ env|grep thin
TARGET_ORACLE_DRIVER_NAME=oracle+thin
ORA_PYTHON_DRIVER_TYPE=thin
TAP_ORACLE_ORA_PYTHON_DRIVER_TYPE=thin
$ python -c "import oracledb; print(oracledb.version)"
2.5.1
$ python -c "import cx_Oracle; print(cx_Oracle.version)"
Traceback (most recent call last):
File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'cx_Oracle'
I also experimented with various contents of the variable TARGET_ORACLE_DRIVER_NAME, trying to set "thin" or "oracle+thin", for the documentation is unclear, with no effect - cx_oracle is still being used, I think. The documentation is here: https://hub.meltano.com/loaders/target-oracle
Any hints?Edgar RamÃrez (Arch.dev)
01/31/2025, 5:22 PMPawel Plaszczak
02/06/2025, 2:44 PM