Merge branch 'cs/#6914-remove-oci8-driver-unused-parameters'

Close #6914
remove unnecessary variables
Merge branch 'cs/#6921-remove-unused-variable-assignments' into develop

Close #6921
Forward port #6921