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:
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:
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:
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:
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:
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:
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 connection | JNDI data connection | |
Definition | Java 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. |
Difference | JDBC 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. | Content | Introduction | Document | |
---|---|---|---|---|
1 | JDBC data connection | This section uses the Oracle database as an example to describe how to connect to the database through JDBC. | [Designer] JDBC data connection | |
2 | JNDI data connection | Data connections are defined through JNDI. | [Designer] JNDI data connection | |
3 | Multidimensional database | XMLA data connection | Connect to the multidimensional database through XMLA data connection. | XMLA data connection |
4 | SAP data connection | FineReport makes the SAP data connection function a plugin, adds the SAP data connection type, adds the SAP dataset type. | SAP data connection | |
5 | SAP 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 | |
6 | Other data connection | Redis data connection | The Redis cache database is also connected through plugin. | Redis data connection |
JSON data connection | Convert JSON-formatted data into data tables that can be used in reports through plugin. | JSON data connection | ||
MongDB data connection | Install the plugin to connect to the MongoDB database. | MongoDB data connection | ||
Spider data connection | By 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.