Address ORA-00972: identifier is too long when tested with Oracle

This pull request backports #16167 to `4-1-stable`.