Upgrade RStudio Professional Drivers#
Keeping ODBC drivers up to date
We strongly recommend upgrading drivers to prevent security and administrative issues. Drivers should be updated system-wide with at least the same frequency as other RStudio products.
Additional steps for using the Oracle database driver
If you are working with the Oracle database, you must install the 19.x version of the Oracle Instant Client. Any previous installation of the Oracle Instant Client is not longer supported and it can be removed if not used anywhere else by the system.
RStudio Desktop Pro#
Uninstall and reinstall the desired drivers following these instructions.
RStudio Workbench and/or RStudio Connect#
Upgrading from RStudio Professional Drivers 1.6.0 and newer#
- Download and install the
.debas appropriate for your OS for the current 2021.10.0 version to replace the previously installed drivers
- Update the driver entries in
/etc/odbcinst.inito ensure that each entry has the correct version and driver file path, which can be found in the sample
- Add/modify any other settings for the driver that have changed in the newer version as seen in the sample file
For example, the contents of a sample
/etc/odbcinst.ini using the 2021.10.0 drivers is shown next to commented out entries using the 1.6.0 drivers to show the relevant changes that need
to be made to the driver entries.
# Old 1.6.0 driver entries - these should be deleted but are commented out as an example #[PostgreSQL] #Driver = /opt/rstudio-drivers/postgresql/bin/lib/libpostgresqlodbc_sb64.so #Installer = RStudio #Version = 1.6.0 # #[MySQL] #Driver = /opt/rstudio-drivers/mysql/bin/lib/libmysqlodbc_sb64.so #Version = 1.6.0 #Installer = RStudio # # New 2021.10.0 driver entries [PostgreSQL] Driver = /opt/rstudio-drivers/postgresql/bin/lib/libpostgresqlodbc_sb64.so RStudioVersion = 2021.10.0 Installer = RStudio Pro Drivers Version = 220.127.116.110 [MySQL] Driver = /opt/rstudio-drivers/mysql/bin/lib/libmysqlodbc_sb64.so RStudioVersion = 2021.10.0 Version = 18.104.22.1681 Installer = RStudio Pro Drivers
Upgrading from RStudio Professional Drivers 1.4.0#
In version 1.4.0, the RStudio Professional Drivers were installed using the installer script. Starting in version 1.6.0, the installer script used in version 1.4.0 has been replaced and RStudio Professional Drivers are now downloaded and installed using any of the following methods:
- Your system's package manager
In addition to the new functionality provided in this release, these new methods make future upgrades of the Pro Drivers much easier.
We recommend removing existing installations of version 1.4.0 of the Pro Drivers to avoid the accidental use of the wrong version of the drivers in your R and Python code. However, if desired, both versions of the drivers can coexist in the same system and be used without issues.
To uninstall version 1.4.0 of the Pro Drivers, remove the directory that they were installed to.