On this page

Language-specific PropertiesAdvanced parametersRelated pagesIssue tracker

PL/SQL

PL/SQL analysis is available starting in Developer Edition.

Language-specific Properties

Discover and update the PL/SQL-specific properties in Administration > General Settings > PL/SQL.

Advanced parameters

Default schema

ParameterDescription
sonar.plsql.defaultSchemaWhen a schema object (table, view, index, synonym) is referenced in SQL code without a schema prefix, the analyzer will assume that it belongs to this schema.

Data dictionary

Some rules raise issues only when a data dictionary is provided during analysis. To provide a data dictionary, you must define the following properties in the sonar-project.properties file or on the scanner command line using the -D prefix:

ParameterDescription
sonar.plsql.jdbc.urlURL of the JDBC connection. Required for data dictionary lookup. For example: jdbc:oracle:thin:@my-oracle-server:1521/my-db
sonar.plsql.jdbc.userJDBC user to authenticate the connection.
sonar.plsql.jdbc.passwordJDBC password provided to authenticate the connection.
sonar.plsql.jdbc.driver.pathPath or URL of the Oracle JDBC driver JAR.
sonar.plsql.jdbc.driver.classJava class name of the Oracle Driver. For example: oracle.jdbc.OracleDriver

Providing this configuration allows SonarPLSQL to query data dictionary views such as SYS.ALL_TAB_COLUMNS in order to better analyze your SQL.

Issue tracker

Check the issue tracker for this language.

© 2008-2022, SonarSource S.A, Switzerland. Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution-NonCommercial 3.0 United States License. SONARQUBE is a trademark of SonarSource SA. All other trademarks and copyrights are the property of their respective owners.

Creative Commons License