Add support for Oracle. Fixes #1811.