CREATE USER Person identified by 2012;GRANT ALL PRIVILEGES TO Person;
These statements are successfully executed by Oracle 11g (GUI). But, when I copy and paste the above statement exactly and try to execute it by using executeUpdate(String sql)
, I get the exception below. Why?
java.sql.SQLSyntaxErrorException: ORA-00911: invalid character