For the complete documentation index, see llms.txt. This page is also available as Markdown.

Post-update steps

The tasks you must perform after you update SonarQube Server.

Post-update checklist

Here’s a list of steps to perform after the update:

If some projects fail to reindex after the update, see Reindexing a single project in Reindexing.

Verifying the installed SonarScanner version

When updating SonarQube Server, you should also make sure you’re using the latest versions of the SonarScanners to take advantage of features and fixes on the scanner side. Please check the documentation pages of the scanners you use for the most recent version compatible with SonarQube Server and your build tools:

Cleaning up the Oracle database

On Oracle, the database columns to be dropped during an update are marked as UNUSED instead of being physically removed. This is intentional: Oracle performs the operation instantly and without locking the rows.

This cleanup is optional. Unused columns are invisible to all queries and have no impact on the functionality of SonarQube Server. Run the cleanup only if you want to reclaim disk space.

To list the tables that contain unused columns, run:

To reclaim the disk space, choose one of the following two options.

Option 1: Drop the unused columns directly

Option 2: Rebuild the table online

For large datasets, we recommend rebuilding the table online. This keeps the database accessible during the operation:

With MOVE ONLINE, Oracle maintains all indexes automatically. They remain USABLE, and no rebuild is required.

MOVE ONLINE is an Oracle Enterprise Edition feature and is not available on Express Edition (XE). Even with ONLINE, Oracle acquires a short lock (a few seconds) at the end of the operation to apply the final delta. The operation also requires significant temporary disk space, roughly a second copy of the table, and I/O while it runs.

Choosing between the two options

Both options free the disk space taken by the unused columns. The difference is the trade-off between downtime, temporary disk space, and the Oracle edition you run:

Option 1: DROP UNUSED COLUMNS

Option 2: MOVE ONLINE

Downtime

Full exclusive lock for the whole duration

Almost none (brief lock at the end)

Extra disk required

No (edits in place)

Yes (needs a second copy of the table)

Oracle edition

Any edition

Enterprise Edition only (not XE)

Cleaning up the PostgreSQL database

You can fix the table and index bloating by performing vacuuming in order to reclaim unused disk space. In some specific cases, a reindex is required afterward.

Verifying the Microsoft SQL JDBC driver version

If you use Microsoft SQL Server with Windows Authentication, make sure that you’re using a supported version of the Microsoft SQL JDBC Driver package. The minimum supported version is the one mentioned on the Installing database page.

Updating a service to point to the new installation directory

If you use an external configuration, such as a script or Windows Service to control your server, you’ll need to update it to point to the new value of installation directory (<newSonarQubeHome>).

For Linux it depends how you implemented the service.

For Windows, update your service by running the following commands:

Last updated

Was this helpful?