Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Installation Error of JForum with Oracle DB on RAC

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to connect JForum with Oracle on RAC. I followed the manual installation and changed the setting in the oracle.properties file and later created the table structures and loaded the data with the given oracle scripts. But couldn't succeed in connection.

dao.driver=net.jforum.dao.oracle.OracleDataAccessDriver
database.connection.driver=oracle.jdbc.OracleDriver
database.connection.implementation=net.jforum.PooledConnection
database.connection.password=tiger
database.connection.username=scott

database.connection.string=jdbc\racle\:thin\:${database.connection.username}/${database.connection.password}@(DESCRIPTION \=(ADDRESS \= (PROTOCOL \= TCP)(HOST \= HOST1)(PORT \= 1521))(ADDRESS \= (PROTOCOL \= TCP)(HOST \= HOST2)(PORT\=1521)) (LOAD_BALANCE \=no)(FAILOVER \=yes)(CONNECT_DATA \=(SERVER \=DEDICATED)(SERVICE_NAME \= oraforum)(FAILOVER_MODE \=(TYPE \= SELECT)(METHOD \= PRECONNECT))))

I was unable to connect. I got the following error.


06:23:20,933 WARN [BasicResourcePool ] com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@14275d4 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception:
java.sql.SQLException: invalid arguments in call
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:208)
at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:236)
at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:439)
at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:120)
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:143)
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:132)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:129)
at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:862)
at com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:33)
at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1527)
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)


I am able to connect JForum with Oracle DB installed locally on a single host and I used the connection string as follows
database.connection.string=jdbc\racle\:thin\:${database.connection.username}/${database.connection.password}@127.0.01\:1521\raforum

The above connection string works fine.

Could the JForum be connected to Oracle on RAC ( this has got two hosts).

Thanks
Anantha

[originally posted on jforum.net by Anantha]
 
Yes, my master! Here is the tiny ad you asked for:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic