Fixed #21207 -- Fixed test failure on Oracle: test_cursor_contextmanager

refs #17671