Like before, making Java-Oracle11g-JDBC (OJDBC) code. Java code tries to do an executeUpdate() on the statement below and an error occurs. But Oracle 11g executes it without any problems(via its GUI).
Statement-
CREATE USER Person identified by 2012;
Error (ie A part of PrintStackTrace) –
java.sql.SQLSyntaxErrorException: ORA-00911: invalid character
Oracle doesn’t like the semicolon at the end. You don’t want semicolons in your OJDBC queries, eventhough it works from the Oracle GUI.