D2000 system uses SQL databases, that are accessible via ODBC interface, as data storage. By default, the following databases are supported:
- PostgreSQL
- SQL Adaptive Server Anywhere from the Sybase company
- Microsoft SQL Server respectively its freeware version
Správa databázových serverov Sybase SQL a PostgreSQL
...
- Microsoft Desktop Engine (MSDE)
...
The following table displays the number of connections to the database server
V aplikáciách väčšieho rozsahu je niekedy potrebné mať nakonfigurovaných viac databázových serverov, pretože štandardne dodávaný Sybase SQL Standalone Engine umožňuje mať v jednom čase len 10 pripojení k databázovému serveru.
Počet pripojení k databázovému serveru zobrazuje nasledovná tabuľka:
ProcesNázov | pripojeniaConnection name | PočetNumber | ||
---|---|---|---|---|
D2000 Server | KonfiguráciaConfiguration | 3 | ||
Log database depository | Trezor Logovacej databázy | +3 | ||
Backup (vyvolaný externetriggered externally) | +1 | |||
ArchívArchive | Archívna databázaArchive database | 3 (and more, depending on performance configuration) | ||
Archive depository | Trezor Archívu | +3 | ||
Backup | +1 | |||
DBManager | (Konfiguračne závislé) |
Ako z uvedenej tabuľky vyplýva, aj jednoduchá aplikácia, ak má zapnuté trezorovanie aj na archív aj na logovaciu databázu, môže potrebovať až 14 pripojení k databázovému serveru. Ak v okne Aplikačného managera vyberieme možnosť Sybase SQL, okno AppManagera dostane nasledovný vzhľad.
Kliknutím pravého tlačidla myši na ktorýkoľvek už existujúci Sybase server je možné vykonať nasledovné operácie:
...
configuration dependent) |
The table above shows, that any simple application with enabled both the log database depository and the process Archive can use as many as 14 connections to the database server. Selecting the option DB Engines in the process D2000 Application Manager, the window has looks like this one:
Clicking the right mouse button on an existing server, you can carry out the following operations:
New Server | Creates a new DB server |
Edit | Allows to modify the selected DB server |
Delete | Deletes the selected DB server |
Run | Runs the selected DB server |
Stop | Stops the selected DB server |
Creating new MSDE database servers (engines) through the D2000 Application Manager process is not supported, because the servers are created by the MSDE installation.
Creating a new PostgreSQL through the D2000 Application Manager process is not supported, because the servers are created by the PostgreSQL installation.
Sybase database server parameters:
The following dialog box will appear after selecting the New Server item in the pop-up menu:
Service Name | The name of a system service, used for the database server. The server name is appended automatically according to Service Name, but it may be changed - it is a word placed after the parameter -n in the input field Parameters. | ||
Service Type | If the Sybase Network server is installed, it is possible to configure it. The network server is not limited to a number of connections. | ||
Version | Selection of a version. | ||
Path for executable | Path to an exe file representing the database server. The file is different according to the selected Service Type. | ||
Startup | Definition of the server start-up. In this case, if the radio button Automatic is not selected, the service will be started automatically by the process D2Start that starts the process D2000 Server, too. | ||
Parameters | Server start parameters: | ||
-c 8M | cache size | ||
-nD2000_X | name of the database server |
Vytváranie nových databázových serverov MSDE pomocou D2SMC nie je podporované, pretože tieto sa vytvárajú inštaláciou MSDE.
Vytváranie nových databázových serverov PostgreSQL pomocou D2SMC nie je podporované, pretože tieto sa vytvárajú inštaláciou PostgreSQL.
Parametre Databázového servera Sybase:
Ak v menu vyberiete New Server, zobrazí sa nasledovné okno:
Service Name | Názov systémového servisu, pod akým bude server uložený. Meno servera sa automaticky dopĺňa podľa Service Name, ale možno ho zmeniť. Je to slovo za parametrom -n v políčku Parameters | ||
Service Type | Ak je nainštalovaný aj Sybase Network server, je možné si ho nakonfigurovať. Network server nemá obmedzenia na počet pripojení. | ||
Version | Výber verzie | ||
Path for executable | Cesta k exe súboru, ktorý predstavuje databázový server. Súbor je rozdielny v závislosti od zvoleného Service Type | ||
Startup | Definuje ako sa má servis spúšťať. V našom prípade, ak nie je zvolená voľba Automatic, service bude spustený procesom D2Start, ktorý štartuje aj proces D2000 Server | ||
Parameters | Zoznam štartovacích parametrov pre Server: | ||
-c 8M | Veľkosť cache | -nD2000_X | Názov databázového Servera (Engine Name) |
-mPo | ukončení požívania databázy, zrušiť logdeleting the log file after finishing the use of the database | ||
-gp 4096 | Veľkosť stránky (Page page size) | ||
-gd ALLNastavenie úrovne prístupu k databáze | the setting of database access level |