Add check for user without profile
Improve oracle db compatibility