Data Connection to Oracle

  • Last update:November 12, 2025
  • Overview

    Version

    FineBI Version
    Functional Change

    6.0

    /

    Application Scenario

    This document introduces how to connect to the Oracle database.

    Preparation

    Version/Driver

    Supported Database Version

    Driver Package

    Oracle 11.1

    Oracle 11.2/11g R2

    Oracle 12.1/12c R1

    Oracle 12.2/12c R2

    Oracle 13 and later versions

    Oracle 19c

    (Built-in) Download not required

    Oracle 9.2.0/9i

    Oracle 10.1

    Oracle 10.2/10g R2

    ojdbc14.jar

    For details about how to upload the driver package, see the "Uploading the Database Driver" section in Driver Management.

    Connection Information Collection

    Before connecting FineBI to the database, you need to collect the following information:

    • IP address and port number of the database server

    • Database name

    • Username and password of the database

    • Schema of the database to be connected

    Connection Procedure

    1. Log in to FineBI as the admin, choose System Management > Data Connection > Data Connection Management, click Create, and select Data Connection, as shown in the following figure.

    iconNote:
    If you are not the admin, you can configure data connections only after the admin assigns you the permission on the data connection module. For details, see Data Connection Permission Overview.

    第一张.png

    2. Find the Oracle database, as shown in the following figure.

    2.png

    3. Enter the connection information collected in the "Connection Information Collection" section. To use the built-in driver, select Default from the Driver drop-down list. To use the driver uploaded by yourself, select Custom and select the driver as needed.

    Click Click to Connect Database, and select the required schema, as shown in the following figure.

    3.png

    iconNote:
    If you use a SQL statement to connect FineBI to a multi-schema database, you need to prefix the database name with the schema name in the statement, for example, SELECT * FROM "ABBY"."FR_S_UEP".

    The following table introduces the driver, database name, and URL.

    Driver

    Database Name

    URL

    oracle.jdbc.driver

    OracleDriver

    Sid_name

    jdbc:oracle:thin:@IP address:Port number:Sid_name

    Service_name

    jdbc:oracle:thin:@//IP address:Port number/Service_name

    or

    jdbc:oracle:thin:@IP address:Port number/Service_name

    TNSname

    (You need to ensure that the tnsnames.ora file exists in the Oracle installation directory.)

    jdbc:oracle:thin:@TNSName

    The following describes TNSName.

    In the URL jdbc:oracle:thin:@TNSName, the value of TNSName is the same as that of ORCL in the tnsnames.ora file, as shown in the following figure.

    4.png

    The complete URL is jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST =(ADDRESS=(PROTOCOL=TCP)(HOST =localhost)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=orcl))).

    4. Click Test Connection. If the connection is successful, click Save, as shown in the following figure.5.png

    Adding Database Tables to FineBI

    Two methods are available to add database tables to FineBI.

    最后一张.png

    Notes

    • In Oracle9i, a field value with the precision 0 will be recognized as a text instead of a number. (For example, the field value 38 obtained by column.getSize() will be recognized as a text.) This phenomenon does not occur in the Oracle database of other versions.

    • The BI platform will automatically release idle connections from the Oracle connection pool after a period of inactivity. Sometimes, the previous connections remain in the pool simply because they are reused by subsequent users. The function can prevent leakage issues caused by unreleased connections.

    • If the name of a field in the Oracle database contains special characters (for example, date#$%?/2"), an error will be reported when you select the field in a self-service dataset. In this case, you need to select the driver package ojdbc14.jar to connect to the database. For details, see the "Version/Driver" section.

    附件列表


    主题: Data Center
    Previous
    Next
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy