Oracle provider bug fixes

@mythz Please review