Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
gaegig
Contributor
Contributor

Replicate to mariadb with foreign key

Hello everybody,

we are trying to move data from Oracle to mariadb.

On target all tables are created already with all foreign key (high normalized database). We can't stop service and the switch of connection from oracle to maria  must be the shortest possible.

In mariadb we can set a session variable (foreign_key_checks=0) to avoid the control of foreign key, but this parameter could be set on session level (we can't set as global because on target cluster we have other databases running)

There is a way to set the target parameter foreign_key_checks=0 on qlik's replicate job?

Thank you in advnace for your help.

 

1 Solution

Accepted Solutions
john_wang
Support
Support

Hello @gaegig ,

Can you have a try in lower env to see if it works:

1. Open the MariaDB endpoint and add an internal parameter "additionalConnectionProperties". set its value to

initstmt=SET FOREIGN_KEY_CHECKS=0;

2.  Stop and Resume the task

john_wang_0-1645519675408.png

Hope it helps.

Regards,

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!

View solution in original post

3 Replies
john_wang
Support
Support

Hello @gaegig ,

Can you have a try in lower env to see if it works:

1. Open the MariaDB endpoint and add an internal parameter "additionalConnectionProperties". set its value to

initstmt=SET FOREIGN_KEY_CHECKS=0;

2.  Stop and Resume the task

john_wang_0-1645519675408.png

Hope it helps.

Regards,

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!
gaegig
Contributor
Contributor
Author

John thats great, it works perfectly after setting the parameter. Thank you very much for your support!

john_wang
Support
Support

Hello @gaegig ,

Glad to hear that 😄, thanks for your update.

BTW, please press the "Accept as Solution" if you confirm it works for you. it's helpful for others.

thank you,

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!