[
https://issues.apache.org/jira/browse/RANGER-3230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pradeep Agrawal reassigned RANGER-3230:
---------------------------------------
Assignee: Pradeep Agrawal
> Ranger Admin - Oracle 12 - java.sql.SQLSyntaxErrorException: ORA-00923: FROM
> keyword not found where expected
> -------------------------------------------------------------------------------------------------------------
>
> Key: RANGER-3230
> URL: https://issues.apache.org/jira/browse/RANGER-3230
> Project: Ranger
> Issue Type: Bug
> Components: admin
> Affects Versions: 2.1.0
> Reporter: Theyaa Matti
> Assignee: Pradeep Agrawal
> Priority: Major
> Labels: newbie
>
> 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
--
This message was sent by Atlassian Jira
(v8.20.1#820001)