1
  • I’ve experimented with SonarQube 6.0 using the H2 default database and now I wanted to see how we can configure it with oracle 11 database.

  • I’ve tried the following documentation but it is not clear what tables (schema) would be created on oracle DB. Does it need its own separate DB or I can connect it to our own existing DB ? If the latter one is right and SonarQube automatically creates the tables, i wanted to make sure it won’t drop any tables or data (for e.g if they have a script that would drop tables and recreate them.

  • I know this is unlikely to happen but we had one plugin in the past that did something like that and I wanted to be cautious ).

I appericiate if you can guide me with the steps. I’ve already configured the sonar.properties file to point to our current DB.

sonar.jdbc.username=bdr
sonar.jdbc.password=dev1pass
sonar.jdbc.url=jdbc:oracle:thin:@dev3.our.domain.com:1522:dev3

Thank you!

4

2 回答 2

4

文档中所述,您需要

创建一个空架构和一个 sonarqube 用户。授予此 sonarqube 用户权限以创建、更新和删除此架构的对象。

鉴于该架构及其适当的权限,SonarQube 确实会创建自己的表、索引等。而且由于您要小心地将 sonarqube 用户的权限限制为仅 sonarqube 模式,因此不应该存在干扰现有表或数据的问题。

于 2016-08-24T19:19:45.030 回答
1

供您参考,WE8ISO8859P1 是一个单字节字符集。它有 255 个字符。UTF-8 每个字符使用 1-4 个字节。

于 2016-08-25T08:27:02.837 回答