title: Cannot connect to Oracle: Oracle Error ORA-12650
body: <p>I am trying to set up a connection to Oracle data source. Application is running under Jetty. Here's how i configured a data source in jetty-env.xml:</p>
  
  <pre><code>&lt;Configure id="wac" class="org.eclipse.jetty.webapp.WebAppContext"&gt;
      &lt;New id="com.scc.gcm" class="org.eclipse.jetty.plus.jndi.Resource"&gt;
          &lt;Arg&gt;com.scc.gcm&lt;/Arg&gt;
          &lt;Arg&gt;
              &lt;New class="oracle.jdbc.pool.OracleDataSource"&gt;
                  &lt;Set name="DriverType"&gt;thin&lt;/Set&gt;
                  &lt;Set name="URL"&gt;user/pass@host/sid&lt;/Set&gt;
                  &lt;Set name="User"&gt;user&lt;/Set&gt;
                  &lt;Set name="Password"&gt;password&lt;/Set&gt;
              &lt;/New&gt;
          &lt;/Arg&gt;
      &lt;/New&gt;
  &lt;/Configure&gt;
  </code></pre>
  
  <p>Here's my persistence.xml:</p>
  
  <pre><code>&lt;persistence-unit name="Dora" transaction-type="RESOURCE_LOCAL"&gt;
      &lt;provider&gt;org.hibernate.ejb.HibernatePersistence&lt;/provider&gt;
      &lt;jta-data-source&gt;com.scc.gcm&lt;/jta-data-source&gt;
      &lt;properties&gt;
          &lt;property name="hibernate.transaction.manager_lookup_class" value="${hibernate.transaction.manager_lookup_class}"/&gt;
          &lt;property name="hibernate.archive.autodetection" value="class, hbm"/&gt;
          &lt;property name="hibernate.dialect" value="org.hibernate.dialect.Oracle9iDialect"/&gt;
          &lt;property name="hibernate.show_sql" value="false"/&gt;
      &lt;/properties&gt;
  
  &lt;/persistence-unit&gt;
  </code></pre>
  
  <p>I am able to connect to a schema with that credentials using sqlplus, but when creating EntityManagerFactory in application i am getting following error:</p>
  
  <pre><code>Caused by: java.sql.SQLException: Io exception: Oracle Error ORA-12650
      at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112) ~[ojdbc14-10.2.0.3.0.jar:Oracle JDBC Driver version - "10.2.0.3.0"]
      at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146) ~[ojdbc14-10.2.0.3.0.jar:Oracle JDBC Driver version - "10.2.0.3.0"]
      at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255) ~[ojdbc14-10.2.0.3.0.jar:Oracle JDBC Driver version - "10.2.0.3.0"]
      at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387) ~[ojdbc14-10.2.0.3.0.jar:Oracle JDBC Driver version - "10.2.0.3.0"]
      at oracle.jdbc.driver.PhysicalConnection.&lt;init&gt;(PhysicalConnection.java:439) ~[ojdbc14-10.2.0.3.0.jar:Oracle JDBC Driver version - "10.2.0.3.0"]
      at oracle.jdbc.driver.T4CConnection.&lt;init&gt;(T4CConnection.java:165) ~[ojdbc14-10.2.0.3.0.jar:Oracle JDBC Driver version - "10.2.0.3.0"]
      at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35) ~[ojdbc14-10.2.0.3.0.jar:Oracle JDBC Driver version - "10.2.0.3.0"]
      at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801) ~[ojdbc14-10.2.0.3.0.jar:Oracle JDBC Driver version - "10.2.0.3.0"]
      at oracle.jdbc.pool.OracleDataSource.getPhysicalConnection(OracleDataSource.java:297) ~[ojdbc14-10.2.0.3.0.jar:Oracle JDBC Driver version - "10.2.0.3.0"]
      at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:221) ~[ojdbc14-10.2.0.3.0.jar:Oracle JDBC Driver version - "10.2.0.3.0"]
      at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:165) ~[ojdbc14-10.2.0.3.0.jar:Oracle JDBC Driver version - "10.2.0.3.0"]
      at org.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:92) ~[hibernate-core-3.3.0.SP1.jar:3.3.0.SP1]
      at org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:446) ~[hibernate-core-3.3.0.SP1.jar:3.3.0.SP1]
  </code></pre>