allow install when only oracle is available
add debug output
use to_char only for oracle, whitespace
cleanup codestyle
Merge pull request #3337 from owncloud/oracle_fixes

Oracle fixes