Wiki source code of DB-Verbindungen
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
2.4 | 1 | {{content/}} |
2 | |||
![]() |
30.2 | 3 | Database connections pose a possibility to record data connections to different data bases, apart from location and type, centrally. You can access deposited file connections later comfortably, for example in ""actions" (data base) or "[[DB querys>>doc:DBQueries]]", without all users having to know the access information. |
![]() |
1.1 | 4 | |
![]() |
17.1 | 5 | {{id name="fig_data_db_con"/}} |
![]() |
30.2 | 6 | {{figure image="data_db_con_en.png"}}Creating a DB connection in {{formcycle case="dat"/}}. (1) To the left is a list of existing database connections. (2) On the right users can configure the selected database connection.{{/figure}} |
![]() |
1.1 | 7 | |
8 | |||
![]() |
30.2 | 9 | {{html wiki="true"}} |
10 | <div class='xm-figure xm-float-right xm-clear-global' data-alt='Creating a DB connection in . (1) To the left is a list of existing database connections. (2) On the right users can configure the selected database connection.'><div class='xm-figure-inner' style='width:310px'>{{lightbox image='data_db_con_en.png' width='300' group='$height' group='$group' title='Creating a DB connection in . (1) To the left is a list of existing database connections. (2) On the right users can configure the selected database connection.'/}}<div class='xm-figure-caption'>Creating a DB connection in {{formcycle case="dat"/}}. (1) To the left is a list of existing database connections. (2) On the right users can configure the selected database connection.</div></div></div> | ||
11 | {{/html}} | ||
![]() |
1.1 | 12 | |
13 | |||
14 | |||
![]() |
30.2 | 15 | {{html wiki="true"}} |
16 | <div class='xm-figure xm-float-right xm-clear-global' data-alt='Creating a DB connection in . (1) To the left is a list of existing database connections. (2) On the right users can configure the selected database connection.'><div class='xm-figure-inner' style='width:310px'>{{lightbox image='data_db_con_en.png' width='300' group='$height' group='$group' title='Creating a DB connection in . (1) To the left is a list of existing database connections. (2) On the right users can configure the selected database connection.'/}}<div class='xm-figure-caption'>Creating a DB connection in {{formcycle case="dat"/}}. (1) To the left is a list of existing database connections. (2) On the right users can configure the selected database connection.</div></div></div> | ||
17 | {{/html}} | ||
![]() |
1.1 | 18 | |
19 | |||
![]() |
30.2 | 20 | == Create database connection == |
![]() |
1.1 | 21 | |
![]() |
30.2 | 22 | * Open the module "DB-connections" and click on the button "New" {{ficon name="plus-circle-outline"/}} in the header of the list (see [[figure>>||anchor="fig_data_db_con"]]). |
23 | * Allocate a various alias and an optional description. | ||
24 | * For the data base connection itself, the following data is necessary: | ||
25 | ** **Name**: Name for this database connection. | ||
26 | ** **Description**: Description of the database connection | ||
27 | ** **Type:** Type of the database management system. Currently we support Oracle® MySQL, Oracle® Database, PostgreSQL, Microsoft® SQL Server and "Other (JDBC)". | ||
28 | ** **JDBC URL**: The JDBC URL of the database server | ||
29 | ** **JDBC driver**:The name of the JDBC driver if the type is //Other (JDBC)//. This value can automatically be set with the button "Determine", otherwise please refer to [[database drivers>>doc:Formcycle.SystemSettings.DatabaseDrivers||rel="__blank"]] | ||
30 | ** **Username**: Username of the database user. | ||
31 | ** **Password**: Password of the data base user. | ||
32 | ** **Number of connections at once**: Number of connections to the data base at once. On a great many of accesses to this connection, the value should be > 10. Notice here the utilization of the database server if necessary and accommodate the settings correspondingly. Normally the default setting 10 should be enough. Confirm the information with the button "Save". | ||
33 | ** **Timeout**: The idle timeout in milliseconds before the a database-connection is closed. | ||
![]() |
1.1 | 34 | |
![]() |
30.2 | 35 | * After creating the DB-connection, it appears in the left part (list) of the connections. |
36 | |||
37 | Before saving you have the opportunity to test the connection. Press the button //Test connection// to check if the connection can be established. If no connection could be established, read the error message carefully. If it does not help you, contact a system administrator. | ||
38 | |||
39 | == Upload and execute script data == | ||
40 | |||
41 | If you want to run an {{smallcaps}}Sql{{/smallcaps}} script, press the button //Upload SQL file and execute//. This lets you upload a file with the extension //sql//. It will be run immediately against the database connection. | ||
42 | |||
43 | == Delete database connections == | ||
44 | |||
45 | A database connection can only be deleted {{ficon name="trash-alt2"/}} when it is not referenced by an action or database query anymore. |