Oracle stable5

This PR backports and cherry picks most of masters oracle related changes.

executeAudited is left out, so you will find some of the isError checks. Tested by installing on my local oracle instance and then sharing and up and downloading files. autotest in ci for oracle not yet enabled.

@karlitschek @DeepDiver1975 @icewind1991 @MTGap