Patches for check_oracle.sh oracle 8 [sf#1873649] [#872]