ORA-00911: invalid character
The statement contains a character Oracle doesn't accept, often a trailing semicolon from client code or a smart quote.
ORA-00911: invalid characterinvalid character Oracle semicolonORA-00911: invalid character JDBCcx_Oracle ORA-00911 Meaning
Remove the trailing ; when sending a statement through JDBC/OCI/cx_Oracle, replace curly quotes or non-breaking spaces copied from documents, and don't start identifiers with _ or # unless quoted. Check hidden Unicode in the SQL text.
Common causes
- Trailing semicolon passed through a driver
- Smart quotes/non-breaking space
- Invalid identifier character (
@,$start) - Parameter placeholder syntax of another DB
- Hidden BOM
⚡ Quick fix
- Remove the trailing
;in driver calls - Retype quotes/whitespace
- Use
:nameOracle bind syntax
Detailed fix by platform
Python
cur.execute("SELECT * FROM emp WHERE id = :id", id=7) # no trailing semicolon
How to diagnose
- Semicolon — In driver call?
- Quotes — Smart?
- Placeholder — Oracle style?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
Most viewed in SQL
Other ways to find it
Where this error sits
Origin: Data. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 18 Nov 2026