java - SonarQube Installation with Oracle DB - Getting user does not exists -
having trouble installing sonarqube 3.7 oracle - getting ora-01435: user not exist.
before pasting stack trace here steps followed verify
- was able connect same user using sql plus , sql developer.
- was able create table , insert dummy data same user make sure working fine.
- change in oracle thin jdbc url throws error saying url malformed.
here sonar.properties file
sonar.jdbc.username: test_sonar sonar.jdbc.password: test_sonar sonar.jdbc.dialect: oracle sonar.jdbc.schema: test_sonar sonar.jdbc.url: jdbc:oracle:thin:@(description=(address_list=(address=(protocol=tcp)(host=host)(port=myport))(failover=yes))(connect_data=(service_name=myservice)(server=dedicated))) sonar.jdbc.driverclassname: oracle.jdbc.driver.oracledriver sonar.jdbc.validationquery: select 1 dual sonar.hibernate.default_schema: test_sonar
using above properties able run solarqube 2.8 out errors couldn't run other version 3.0.
appreciate help.
stacktrace
2013.09.03 16:09:46 info o.s.s.p.serverimpl sonarqube server / 3.7 / 7c385c2c648967302cf69e08f56c0da135b3e5e9 2013.09.03 16:09:46 info o.s.c.p.database create jdbc datasource jdbc:oracle:thin:@(description=(address_list=(address=(protocol=tcp) (host=myhost)(port=myport))(failover=yes))(connect_data=(service_name=myservice)(server=dedicated))) 2013.09.03 16:09:47 error o.s.c.p.database can not connect database. please check connectivity , settings (see properties prefixe d 'sonar.jdbc.'). org.apache.commons.dbcp.sqlnestedexception: cannot create poolableconnectionfactory (ora-01435: user not exist ) @ org.apache.commons.dbcp.basicdatasource.createpoolableconnectionfactory(basicdatasource.java:1549) ~[commons-dbcp-1.4.jar:1.4] @ org.apache.commons.dbcp.basicdatasource.createdatasource(basicdatasource.java:1388) ~[commons-dbcp-1.4.jar:1.4] @ org.apache.commons.dbcp.basicdatasource.getconnection(basicdatasource.java:1044) ~[commons-dbcp-1.4.jar:1.4] @ org.sonar.core.persistence.defaultdatabase.checkconnection(defaultdatabase.java:141) [sonar-core-3.7.jar:na] @ org.sonar.core.persistence.defaultdatabase.start(defaultdatabase.java:70) [sonar-core-3.7.jar:na] @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) ~[na:1.6.0_37] @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:39) ~[na:1.6.0_37] @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:25) ~[na:1.6.0_37] @ java.lang.reflect.method.invoke(method.java:597) ~[na:1.6.0_37] @ org.picocontainer.lifecycle.reflectionlifecyclestrategy.invokemethod(reflectionlifecyclestrategy.java:110) [picocontainer-2.14.3 .jar:na] @ org.picocontainer.lifecycle.reflectionlifecyclestrategy.start(reflectionlifecyclestrategy.java:89) [picocontainer-2.14.3.jar:na] @ org.picocontainer.injectors.abstractinjectionfactory$lifecycleadapter.start(abstractinjectionfactory.java:84) [picocontainer-2.1 4.3.jar:na] @ org.picocontainer.behaviors.abstractbehavior.start(abstractbehavior.java:169) [picocontainer-2.14.3.jar:na] @ org.picocontainer.behaviors.stored$realcomponentlifecycle.start(stored.java:132) [picocontainer-2.14.3.jar:na] @ org.picocontainer.behaviors.stored.start(stored.java:110) [picocontainer-2.14.3.jar:na] @ org.picocontainer.defaultpicocontainer.potentiallystartadapter(defaultpicocontainer.java:1015) [picocontainer-2.14.3.jar:na] @ org.picocontainer.defaultpicocontainer.startadapters(defaultpicocontainer.java:1008) [picocontainer-2.14.3.jar:na] @ org.picocontainer.defaultpicocontainer.start(defaultpicocontainer.java:766) [picocontainer-2.14.3.jar:na] @ org.sonar.api.platform.componentcontainer.startcomponents(componentcontainer.java:87) [sonar-plugin-api-3.7.jar:na] @ org.sonar.server.platform.platform.startdatabaseconnectors(platform.java:193) [classes/:na] @ org.sonar.server.platform.platform.init(platform.java:134) [classes/:na] @ org.sonar.server.platform.platformlifecyclelistener.contextinitialized(platformlifecyclelistener.java:33) [classes/:na] @ org.eclipse.jetty.server.handler.contexthandler.startcontext(contexthandler.java:746) [jetty-server-7.6.11.v20130520.jar:7.6.11. v20130520] @ org.eclipse.jetty.servlet.servletcontexthandler.startcontext(servletcontexthandler.java:238) [jetty-servlet-7.6.11.v20130520.jar :7.6.11.v20130520] @ org.eclipse.jetty.webapp.webappcontext.startcontext(webappcontext.java:1240) [jetty-webapp-7.6.11.v20130520.jar:7.6.11.v20130520 ] @ org.eclipse.jetty.server.handler.contexthandler.dostart(contexthandler.java:689) [jetty-server-7.6.11.v20130520.jar:7.6.11.v2013 0520] @ org.eclipse.jetty.webapp.webappcontext.dostart(webappcontext.java:482) [jetty-webapp-7.6.11.v20130520.jar:7.6.11.v20130520] @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:64) [jetty-util-7.6.11.v20130520.jar:7.6.11.v201 30520] @ org.eclipse.jetty.server.handler.handlercollection.dostart(handlercollection.java:229) [jetty-server-7.6.11.v20130520.jar:7.6.11 .v20130520] @ org.eclipse.jetty.util.component.abstractlifecycle.start(abstractlifecycle.java:64) [jetty-util-7.6.11.v20130520.jar:7.6.11.v201 30520]
i had issue, , managed solve setting schema name uppercase, this:
sonar.jdbc.schema: test_sonar
also, there's no need have both sonar.jdbc.schema
, sonar.hibernate.default_schema
, second property overrides first one.
Comments
Post a Comment