Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oracle Datasource #185

Open
christianorios opened this issue Apr 25, 2023 · 7 comments
Open

Oracle Datasource #185

christianorios opened this issue Apr 25, 2023 · 7 comments

Comments

@christianorios
Copy link

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
Copy link
Author

christianorios commented Apr 25, 2023

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
Copy link
Author

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

@christianorios
Copy link
Author

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

@armenak
Copy link
Owner

armenak commented Apr 25, 2023

Use "number" data type.

@christianorios
Copy link
Author

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

@armenak
Copy link
Owner

armenak commented Apr 26, 2023

Try decimal data type

@christianorios
Copy link
Author

Would you please send an example for 'decimal'?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants