A data source isAmetys 's entry point into the information system. For example, a data source may include all the users of a site and their distribution in different populations.
The "Data sources" tool lets you manage connections to the various data sources (Database, Directory LDAP) used by CMS.
In the Administration tab, click on the Data sources button:
The Data Sources tool opens. You'll find a list of existing data sources, sorted by type:
To add a new data source, click on the "New database SQL" or "New directory LDAP" button, depending on the type of data source you wish to create:
Selecting this action will not create a new data source, but link an existing one to the administration interface.
You can then connect your sites to one of your data sources.
Specify database connection information:
The Connect to database button SQL is used to check that the information you have entered allows you to establish a connection to the database.
If you are using an Oracle database, you may need to add the JARJDBC driver file to your application's library directory.
To download the driver, click here.
Specify directory connection information LDAP :
Once created, it is of course possible to modify the data source. Select the data source from the list, then click on the Modify button:
You can then modify all the characteristics of the data source.
A data source can only be deleted if it is not used by the application.
If a data source is currently in use, a check mark appears in the "Used" column and the delete button is grayed out.
To delete a data source, you must first "disconnect" this source (no general configuration or site parameter must refer to this source).
You can define a data source as the default data source. In this case, this data source will be preselected each time a data source is selected ( CMS configuration, site creation, population creation, etc.).
Only one default data source can be selected for each source type.
Select the data source from the list, then click on the "Set as default data source" button to define your default data source.
You can explore the contents of "Database" data sources by clicking on the "Open" button.
This feature is only available if your CMS application uses the plugin "Datasources Explorer" http://releases.ametys.org/releases/org.ametys.plugins /datasources-explorer/
Here's an overview of how to view a table in a data source:
This tool is for exploration only, and cannot be used to modify the content of a data source.