fix issue with rname and oracle. Thanks @fernando. Fixes #2013
Merge pull request #544 from niphlod/fix/2013

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