LPS-32722 Virtual host settings loss during upgrade with Oracle database

I could not test it on trunk, but works on 61ga2.