Home > Common Problem > What does data source mean?

What does data source mean?

WBOY
Release: 2022-07-25 11:31:39
Original
12709 people have browsed it

Data source means "database or database server used by database applications"; data source is also the source of data. It is a device or original media that provides certain required data and is stored in the data source. All information required to establish a database connection is provided. By providing the correct data source name, the corresponding database connection can be found.

What does data source mean?

The operating environment of this tutorial: Windows 10 system, DELL G3 computer.

What does data source mean?

The data source refers to the database or database server used by the database application.

Data Source (Data Source) As the name suggests, the source of data is a device or original media that provides some required data. All information for establishing a database connection is stored in the data source. Just like you can find a file in the file system by specifying the file name, you can find the corresponding database connection by providing the correct data source name.

The data source of the information system must be reliable and capable of updating. Commonly used data sources are:

  • Observation data, that is, measured data obtained on site, including field data Surveying and measurement data, observation and recording data of stations, telemetry data, etc.

  • Analyze the measured data, that is, use physical and chemical methods to analyze the measured data.

  • Graphic data, various topographic maps and thematic maps, etc.

  • Statistical survey data, various types of statistical reports, social survey data, etc.

  • Remote sensing data, data obtained by ground, air or space remote sensing. The number of data sources in China is huge.

For example: nationwide land resources inventory and detailed survey data, aerial photogrammetry images and land census satellite data have covered the country, positioning and semi-positioning observation station networks are spread across the country, and there are ground A large amount of data such as surveys and mapping.

The data source examples mentioned above are only a small part. In fact, the data source can be any data type.

Extended knowledge: Introduction to data source name

The data source name (DSN) is a data structure that contains information about a specific database. This information It is the information necessary for the Open Database Connection driver to be able to connect to the database. Stored in the registry or as a separate text file, the DSN contains information such as name, directory and database drive, as well as user ID and password (depending on the type of DSN). Developers create an independent DSN for each database. In order to connect to a certain database, developers need to specify the DSN in the program. In contrast, a connection without a DSN requires that all necessary information be specified in the program.

There are three types of DSN: user DSN (sometimes called machine DSN), system DSN and file DSN. Both user and system DSNs vary based on the specific computer, and the DSN information is stored in the registry. User DSN allows a single user to access the database on a single computer, and system DSN allows multiple users on a certain computer to access the database. File DSN stores relevant information in a text file ending with a .DSN extension and can be shared by multiple users on different computers with the same drive installed.

No matter what persistence technology is used, the database must be accessed through a data connection. In Spring, the data connection is obtained through the data source. In previous applications, the data source was generally provided by the Web application server. In Spring, you can not only obtain the data source of the application server through JNDI, but also configure the data source directly in the Spring container. In addition, you can also create a data source through code to configure a data source for dependency-free unit testing. data source.

Spring includes two data source implementation class packages in the third-party dependency package, one is Apache's DBCP, and the other is C3P0. Either of these data sources can be configured in the Spring configuration file.

For more related knowledge, please visit the FAQ column!

The above is the detailed content of What does data source mean?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template