1. Python 3.7.x 64-bit (tested with 3.7.0 and 3.7.4). Issue is not present on 3.6.8. 2. cx_Oracle 7.2. Issue is not present on cx_Oracle 7.0 and 7.1. 3. cursor.execute("SELECT 1 FROM DUAL WHERE DUMMY LIKE TRANSLATE(:arg0 USING NCHAR_CS) ESCAPE TRANSLATE('\\' USING NCHAR_CS)", {':arg0' = 'X'}) 4. MemoryError 5. Windows 10 v1809 64-bit. 6. Oracle Instant Client Windows Base 12.1.0.2.0 64-bit. Zip format extracted at D:\Rudi\Libs\Oracle\instantclient_12_1. 7. Database information: - Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production - PL/SQL Release 12.1.0.2.0 - Production - "CORE 12.1.0.2.0 Production" - TNS for Linux: Version 12.1.0.2.0 - Production - NLSRTL Version 12.1.0.2.0 - Production 8. PATH environment variable contains D:\Rudi\Libs\Oracle\instantclient_12_1. 9. No specific oracle environment variables set. 10. No. This issue was discovered during execution of inspectdb from django as reported here: https://code.djangoproject.com/ticket/30630.