Data Sources

  • Last update:November 05, 2024
  • I. An Overview of Data Sources

    1) Data sources in business intelligence (BI) serve as foundational elements that connect and fetch data from various storage systems to BI platforms for analysis and reporting. Their significance lies in their ability to facilitate real-time access and manipulation of data, ensuring that insights are both current and relevant. 

    2) Effective use of data sources enhances organizational decision-making, offering strategic advantages by providing comprehensive and timely information. This capability is crucial for maintaining competitive edge and operational efficiency in today's data-driven landscape.

    3) Application scenarios: Before making reports, the first need to define the data source, the actual user system is the most common data saved in the database, and in the continuous update, the use of database data to make reports, and the report content will be updated with the update of the database.

    II. Steps to Create a Data Connection by Data Sources

    There are two types of data connection in FineReport: data connection through the designer and data connection through the platform.

    1) Create data connection in the designer

    Open designer, define the data connection in Server > Define Data Connection, you can establish the required data connection, and customize query statements to create datasets, so as to make reports. As shown in the figure below:

    Data Sources

    If you need to modify the name of the data connection, you can double-click the original name to modify it. After modification, click OK, as shown in the figure below:

    Data Sources

    JAR package version after 2021-01-25 designer and server, when multiple users are connected to the same remote server for remote design, the "Define Data Connection" function can only be edited by one person at a time. When one user uses this function, other users will see that "Data connection locked" and cannot be edited, as shown in the figure below:

    Data Sources

    After clicking the "Lock" icon, a pop-up message will be displayed, indicating that "It has been edited and locked by another user. To prevent data loss, please try again later". As shown in the figure below:

    4.png

    At the "Define Data Connection" sign where the dataset is defined, it will also be locked and display the same "lock" icon. Click it and the pop-up message will be displayed. As shown in the figure below:

    Data Sources

    When the user finishes editing, it is no longer locked and other users are allowed to edit.

    2) Create data connection in the platform

    ClickServer > Platform Management, open the decision-making platform, click Manage > Data Connection > Data connection Management, select New Data Connection, you can establish the required data connection. For details, see: Configure data connection. As shown in the figure below:

    Data Sources

    Note 1: FineReport supports five ways to connect to the database through JDBC, JNDI, SAP, XMLA, and FineBI. Data connections are stored in the project, and these connections are activated when the user performs an operation that requires access to the database.

    Note 2: XMLA and FineBI are connected to a multidimensional database, where FineBI is connected to another BI product of FanRuan.

    III. Comparison of Two Data Sources: JDBC and JNDI


    JDBC data connectionJNDI data connection
    DefinitionJava Data Base Connectivity (JDBC) is a Java API used to execute SQL statements. It provides unified access to various relational databases.Java Naming and Directory Interface (JNDI) is an application programming API that provides developers with a common, unified Interface to find and access various naming and directory services. Similar to JDBC, it is built on an abstraction layer.
    DifferenceJDBC is directly connected to the physical database, database connection is faster, but in the program used on the more complicated, each connection must have a certain code, and the database connection needs to be manually closed.

    Use JNDI to connect to a data source to which the database is defined on the application server side.

    Advantage

    After the report server is deployed, if the database parameters change, modify the JDBC parameters in the configuration file again. As long as the data source name remains unchanged, the data connection does not need to be modified.

    JDBC avoids the tight coupling between reports and databases, and shares the connection pool with the server of the project. In addition, the connection speed is relatively fast, making the application easier to configure and deploy.

    JNDI simply leaves the database backend, drivers, urls, user names, connection pools, and so on to the J2EE container to configure and manage, and then references those configuration and administration.

    IV. Index of Data Sources

    No.ContentIntroductionDocument
    1JDBC data connectionThis section uses the Oracle database as an example to describe how to connect to the database through JDBC.[Designer] JDBC data connection
    2JNDI data connectionData connections are defined through JNDI.[Designer] JNDI data connection
    3Multidimensional database
    XMLA data connectionConnect to the multidimensional database through XMLA data connection.   XMLA data connection
    4SAP data connectionFineReport makes the SAP data connection function a plugin, adds the SAP data connection type, adds the SAP dataset type.SAP data connection
    5SAP BW data connection The new SAP BW Cube is used to connect BW Cube and BW Query, and is a separate plugin from the previous cube.SAP BW data connection
    6Other data connectionRedis data connectionThe Redis cache database is also connected through plugin.Redis data connection
    JSON data connectionConvert JSON-formatted data into data tables that can be used in reports through plugin.JSON data connection
    MongDB data connectionInstall the plugin to connect to the MongoDB database.MongoDB data connection
    Spider data connectionBy installing plugin in FineReport10.0 designer, you can interconnect with the FineBI Spider engine to obtain data and share FineBI table data and data permissions.Spider data connection

    V. A Conclusion of Data Sources

    In conclusion, data sources are integral to the effectiveness of business intelligence systems, providing the necessary connectivity to diverse data environments. This connection is essential for extracting, analyzing, and reporting data, which in turn supports more informed decision-making and strategic planning across various business sectors. By leveraging reliable and dynamic data sources, organizations can enhance their operational efficiency and maintain a competitive advantage in the rapidly evolving market.

    Attachment List


    Theme: Data Preparation
    • 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