Error when changing theme with Oracle db

whenever I try to change the theme for any page (login, account, …) of any realm and hit “save”, I get the error “a realm with the same name already exists”.
This happens when I use oracle 11g as the KC database.
Everything works fine when I deploy KC with the H2 database, for example.

Any hints?
thanks a lot