# ORA-00911: invalid character

**Code:** `ORA-00911` · **Category:** SQL · **Seen on:** Oracle, Java, Python

The statement contains a character Oracle doesn't accept, often a trailing semicolon from client code or a smart quote.

## 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

1. Remove the trailing `;` in driver calls
2. Retype quotes/whitespace
3. Use `:name` Oracle bind syntax

## Detailed fix by platform

### Python

1. `cur.execute("SELECT * FROM emp WHERE id = :id", id=7)   # no trailing semicolon`

## How to diagnose

1. **Semicolon** — In driver call?
2. **Quotes** — Smart?
3. **Placeholder** — Oracle style?

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/sql/ora-00911-invalid-character)
