Driver Management

  • Last update: August 19, 2024
  • Overview

    Version 

    Version

    Functional Change
    4.0.14

    Modified the default value of SystemConfig. driverUpload to true.

    4.1.5.1Added the Driver Loading Order configuration item.

    Application Scenario 

    You may fail to connect to FineDataLink or the database due to the lack of the built-in database driver of the corresponding version.

    Function Description 

    You can use the Driver Management function to upload the corresponding driver JAR package. Driver Management supports hot swapping, which allows you to use the driver after uploading it without restarting the project.

    Prerequisite

    Before using the Driver Management function, set the SystemConfig.driverUpload field in the fine_conf_entity table of the FineDB database that stores FDL information to true.

    • If the parameter value is set to true, drivers can be uploaded through Driver Management.

    • If the parameter value is set to false (default value), drivers cannot be uploaded through Driver Management. An error message will appear when you upload a driver, saying "The driver JAR package is not allowed to be uploaded. You can modify the value of SystemConfig. driverUpload to enable this function."

    V 4.0.14 and Earlier Releases

    Manual configuration is required for V4.0.14 and earlier releases.

    1. Log in to FDL as the admin and choose System Management > Permission Management > General.

    2. If FDL is configured with an external database, connect it to the external database. For details, see Data Source Creation and Management.

    If FDL is not configured with an external database, connect it to the built-in database. For details, see HSQLDB Configuration.

    Use the Data Synchronization node to query whether there is a SystemConfig.driverUpload field.

    The SQL statement is as follows: 

    select * from fine_conf_entitywhere id='SystemConfig.driverUpload'

    Note: The statement may vary with the database. Adjust it as needed.

    Xnip2024-05-22_14-22-11.jpg

    Use the SQL Script node to add a SystemConfig. driverUpload field with a value of true if the result is null and run the task.

    Note: The statement may vary with the database. Adjust it as needed.

    The SQL script is as follows:

    INSERT INTO FINE_CONF_ENTITY (ID,VALUE) VALUES('SystemConfig.driverUpload','true')

    Xnip2024-05-22_14-28-33.jpg

    • If the value of this field is false, modify it to true and run the task.

    The SQL script is as follows:

    UPDATE FINE_CONF_ENTITY SET FINE_CONF_ENTITY.VALUE = 'true' WHERE ID='SystemConfig.driverUpload'

    • If the value of this field is true, no operation is needed.

    3. Restart the project after a successful write operation. Log in to the system, and now you can upload the driver JAR package through Driver Management.

    V 4.0.14 and Later Releases 

    No operation is required for V4.0.14 and later releases as the function is enabled by default.

    Procedure

    Log in to FDL and choose System Management > Data Connection > Driver Management, as shown in the following figure.

    Uploading the Database Driver

    1. Click New Driver and enter a name for differentiation from other drivers. For example, to upload a DM driver, name the driver DM Driver.

    2. Click Upload File to upload the database driver package.

    Note: You can download the database driver in the help document of corresponding databases or get it from the database administrator.

    3. Select the uploaded driver from the drop-down list of Driver, and click Save, as shown in the following figure.

    Note: 

    1. If there are multiple JAR packages for a driver, and you are unsure which one to upload, ask the corresponding database administrator for help. 

    2. The uploaded driver package is located at %FineDataLink_home%\webapps\webroot\WEB-INF\drivers.

    If a driver is problematic, you can quickly modify the driver-loading method to ensure a fast connection. By default, Load and Upload Driver Preferentially via Current Method is selected.

    • Load and Upload Driver Preferentially via Current Method refers to loading the JAR file in WEB-INF/drivers/hive first. If no such file exists, it will load the JAR file in WEB-INF/lib.

    • Load and Upload Driver Only via Current Method refers to only loading the JAR file in WEB-INF/drivers/hive.

    Using Uploaded Database Driver 

    Click New Data Connection on the Data Connection Management page to create a new data connection. For example, to create a DM data connection, see DM Data Source Configuration.

    Deleting a Driver

    To delete an existing database driver, go to the driver management page and click the  icon, as shown in the following figure.

    附件列表


    主题: Data Source Configuration
    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