How Do You Get SonarQube to Use a New Database Connection and Change It from the Previous One It Was Working with?

Problem scenario
You try to start an old SonarQube instance but with a new database connection. In the web.log file you see a message like this: "Can not connect to database. Please check connectivity and settings." What should you do?

Go to Find the connection string for the new database. It should look something like this:


The default port for Oracle databases is 1521. Are the last three characters "/XE"? Change the "/" to ":". XE stands for Express Edition. Some sources indicate that the format should be hostname:portnumber:sid

The "sid" (or service name) for Oracle is often "XE" (which stands for Express Edition). The character separating the TCP port number and the sid should be a colon ":"

Details and reference information can be found in these links:

Leave a comment

Your email address will not be published. Required fields are marked *