Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-3230

Ranger Admin - Oracle 12 - java.sql.SQLSyntaxErrorException: ORA-00923: FROM keyword not found where expected

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.0
    • Fix Version/s: None
    • Component/s: admin
    • Labels:

      Description

      Ranger Admin is throwing exception when testing Pooled Connections IDLE CHECK with oracle 12 backend. The exception is caused by running "select 1;", which is hardcoded into ranger-admin-default-site.xml. This command was ok on oracle versions older than 12, but with oracle 12 it is causing the exception below.

       

      java.sql.SQLSyntaxErrorException: ORA-00923: FROM keyword not found where expected

       

              at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:509)

              at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:461)

              at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1104)

              at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:553)

              at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:269)

              at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:655)

              at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:229)

              at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:41)

              at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:765)

              at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:983)

              at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1168)

              at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1362)

              at oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:369)

              at com.mchange.v2.c3p0.impl.NewProxyStatement.executeQuery(NewProxyStatement.java:220)

              at com.mchange.v2.c3p0.impl.DefaultConnectionTester.activeCheckConnection(DefaultConnectionTester.java:286)

              at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.testPooledConnection(C3P0PooledConnectionPool.java:510)

              at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.finerLoggingTestPooledConnection(C3P0PooledConnectionPool.java:452)

              at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.finerLoggingTestPooledConnection(C3P0PooledConnectionPool.java:444)

              at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.refurbishIdleResource(C3P0PooledConnectionPool.java:434)

              at com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask.run(BasicResourcePool.java:2211)

              at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696)

      Caused by: Error : 923, Position : 8, Sql = select 1;, OriginalSql = select 1;, Error Msg = ORA-00923: FROM keyword not found where expected

       

              at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:513)

              ... 20 more

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              theyaa Theyaa Matti
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: