Data source from Oracle

Can't make connection with Oracle XE from WI.
Got error:
Can't establish connection to database
java.sql.SQLException: ORA-00604: error occurred at recursive SQL level 1
ORA-12705: Cannot access NLS data files or invalid environment specified

    at oracle.jdbc.driver.SQLStateMapping.newSQLException(
    at oracle.jdbc.driver.DatabaseError.newSQLException(
    at oracle.jdbc.driver.DatabaseError.throwSqlException(
    at oracle.jdbc.driver.T4CTTIoer.processError(
    at oracle.jdbc.driver.T4CTTIoer.processError(
    at oracle.jdbc.driver.T4CTTIoer.processError(
    at oracle.jdbc.driver.T4CTTIoauthenticate.receiveOauth(
    at oracle.jdbc.driver.T4CConnection.logon(
    at oracle.jdbc.driver.PhysicalConnection.<init>(
    at oracle.jdbc.driver.T4CConnection.<init>(
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(
    at oracle.jdbc.driver.OracleDriver.connect(

It seems WI doesn't use environment variables such as NLS_LANG. How can I test it?
By the way other oracle clients (sqlplus, sqldeveloper, my php app that connects to oracle) work ok.

JDBC Driver Class: oracle.jdbc.driver.OracleDriver
Database url: jdbc:oracle:thin:[user/password]@localhost:1521:XE


That's the specifics of Oracle JDBC dirvers. Easiest way is to globally override regional settings for WI by adding to bin/*.vmoptions following lines:


Thank you very much, connection now succeeded, but queries still aren't executed. I'll play with these parameters further.


Fixed connection and queries executing problem without changing vmoptions by replacing ojdbc driver from here:
Now there is a little problem:
When I hit "Refresh Tables" in Data Source Properties I got following error
27 of 27 tables were loaded.

The following errors were encountered:


java.sql.SQLException: ORA-02201: sequence not allowed here

    at oracle.jdbc.driver.DatabaseError.throwSqlException(
    at oracle.jdbc.driver.T4CTTIoer.processError(
    at oracle.jdbc.driver.T4CTTIoer.processError(
    at oracle.jdbc.driver.T4C8Oall.receive(
    at oracle.jdbc.driver.T4CStatement.doOall8(
    at oracle.jdbc.driver.T4CStatement.execute_for_rows(
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(
    at oracle.jdbc.driver.OracleStatement.executeUpdate(
    at oracle.jdbc.OracleDatabaseMetaData.getIndexInfo(

... and etc with all my sequences.

Dunno is it error in WI or in driver, maybe you know about this problem?


No new info yet, we'll investigate further.


Judging from our experience with DB Oracle plugin support and TeamCity Oracle support we strongly don't recommend you to use ANY but official drivers provided by Oracle for your version of Oracle Database. Use system properties with mentioned in my previous reply to fix NLS problem for unsupported (i.e. Russian) locales.


I use IdeaX IU-96.1190 and -Duser.language=en in idea.vmoptions not work for me. JDBC driver class - oracle.jdbc,OracleDriver in ojdbc14.jar (from oficial site)


Please sign in to leave a comment.