fix issue with rname and oracle. Thanks @fernando. Fixes #2013