DataDefender icon indicating copy to clipboard operation
DataDefender copied to clipboard

Oracle Datasource

Open christianorios opened this issue 2 years ago • 7 comments

Hi, how doo I configure database connection? I have got error below when trying to run anonymization:

java.lang.IllegalArgumentException: Database null is not supported

christianorios avatar Apr 25 '23 17:04 christianorios

Trying this: ./datadefender anonymize --requirement-file=requirement.xml -u=hr -p=oraclepwd --schema=hr --url=jdbc.oracle://hostname:1521/pdb1 --vendor=oracle

But got this error: com.strider.datadefender.database.DatabaseException: No suitable driver found for jdbc.oracle://hostname:1521/pdb1

I have copied ojdbc6.jar to my target directory.

christianorios avatar Apr 25 '23 17:04 christianorios

The right syntax: --url=jdbc:oracle:thin:@hostname:1521/pdb1 Got it to work.

christianorios avatar Apr 25 '23 18:04 christianorios

Almost there. How do I anonymize a number(8,2) collumn?

christianorios avatar Apr 25 '23 18:04 christianorios

Use "number" data type.

armenak avatar Apr 25 '23 21:04 armenak

Trying to use this plan for number (8,2) column

Starting anonymizer Anonymizing table jobs... 100% │||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||│ 19/19 (0:00:00 / 0:00:00) [ERROR] java.sql.BatchUpdateException: ORA-01438: value larger than specified precision allowed for this column

christianorios avatar Apr 26 '23 11:04 christianorios

Try decimal data type

armenak avatar Apr 26 '23 16:04 armenak

Would you please send an example for 'decimal'?

christianorios avatar May 02 '23 12:05 christianorios