Inhalt |
---|
...
Database MySQL
Anlegen von Datenbank-Schema und -Benutzer
Creation of database schema and users
Execute the following SQL script as database user root (e.gFühren Sie das folgende SQL-Script mit dem Datenbank-Benutzer root aus (z.B. via MySQL Workbench):
-- create schema goco;
create schema goco;
create user goco identified by 'goco';
REVOKE ALL PRIVILEGES,GRANT OPTION from goco;
GRANT SELECT, INSERT, UPDATE, DELETE, EXECUTE, SHOW VIEW, CREATE, ALTER, INDEX, DROP, REFERENCES ON goco.* TO 'goco';
-- create schema quartz
create schema quartz;
create user quartz identified by 'quartz';
REVOKE ALL PRIVILEGES,GRANT OPTION from quartz;
GRANT SELECT, INSERT, UPDATE, DELETE ON quartz.* TO 'quartz';
Belassen Sie die Passwörter für die Benutzer goco und quartz vorerst, bis die Erstinstallation durchgeführt und verifiziert ist. Danach können die Passwörter geändert werden wie beschrieben unter Leave the passwords for the users goco and quartz for the moment, until the initial installation is performed and verified. After that you can change the passwords as described in Wie kann ich das Datenbank-Passwort ändern?
...
Creation of quartz tables (Job-Scheduling)
Führen Sie das folgende Script aus (dies erstellt Tabellen im Schema "quartz", welche für das nächtliche Batchjob-Scheduling zuständig sind)Execute the following script (it creates tables for schema "quartz", which does the nightly batch job scheduling:
Import
...
of the database
- Download the initial DB file Laden Sie den initialen DB-Load herunter (Save Link As...) , den wir Ihnen als Self-Contained File in der Download-Area as provided by us in the download area bereitgestellt haben (mysql-dbload-initial.sql).
- Importieren Sie dies in Import the DB file into MySQL (ze.Bg. via MySQL Workbench, Menü menu Server --> Import --> Import From Self-Contained File). Wählen Sie als Choose "goco" as Default Target Schema "goco" aus.
- Der Import-Screen der MySQL Workbench zeigt nach einigen Sekunden einen grünen Balken zum Zeichen, dass der Import erfolgreich war. Zur Überprüfung aktualisieren Sie auf der linken Sidebar die Schemas, öffnen das Schema "goco", und überzeugen sich, dass es Tabellen enthält (Prefix The import screen of MySQL Workbench will show a green progress bar after a few seconds after a successful import. To verify this, refresh the schemas on the left sidebar, open schema "goco", und check that it contains tables (prefix co_).
...
Adjust context.xml
...
of Application Server
...
for MySQL
Um auf dem Application Server die Datenbank-Connection zu konfigurieren, öffnen Sie das File To configure the database connection on the Application Server, open the file context.xml (in <Tomcat-Directory>/conf). Fügen Sie folgende Zeilen direkt hinter dem Element <context> ein. Dies erstellt die Datenbank Data-Sources für die Schemas "goco" und Add the following lines directly after the element <context>. This creates the database data-sources for schemas "goco" and "quartz":
<Resource
name="gocoTenantDs"
factory="com.gocompliant.encryptedDs.EncryptedDataSourceFactory"
auth="Container"
type="javax.sql.DataSource"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/goco"
username="goco"
password="922f591c101ab822305be286a532c196"
maxActive="20"
minIdle="0"
maxIdle="0"
minEvictableIdleTimeMillis="14400000"
maxWait="-1" />
<Resource
name="quartz"
factory="com.gocompliant.encryptedDs.EncryptedDataSourceFactory"
auth="Container"
type="javax.sql.DataSource"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/quartz"
username="quartz"
password="2259b33c5588618ee0742b2ced9998e6"
maxActive="20"
minIdle="0"
maxIdle="0"
minEvictableIdleTimeMillis="14400000"
maxWait="-1" />
Alternative
...
to MySQL:
...
Database Oracle
Anlegen von Datenbank-Benutzer, Tablespaces und Quartz-Tabellen
Creation of database users, tablespaces and quartz tables
- Login as a user with role DBA on to the Oracle instance that you have set up for the GoCompliant ToolSuite.
- Execute the following SQL script
- Loggen Sie sich als Benutzer mit DBA-Rolle an der Oracle-Instanz ein, die Sie für die GoCompliant ToolSuite vorgesehen haben.
- Führen Sie das folgende SQL-Script aus:
01_create_users.sql
Dieses legt die Benutzer This creates the users "goco" und and "quartz" sowie einige Grants an. Belassen Sie die Passwörter für die Benutzer goco und quartz vorerst, bis die Erstinstallation durchgeführt und verifiziert ist. Danach können die Passwörter geändert werden wie beschrieben unter and some grants. Leave the passworts as provided for the moment until the initial installation is performed and verified. After that, you can change the passwords as described in Wie kann ich das Datenbank-Passwort ändern?
Der Benutzer The user "goco" erhält Grants receives grants für CREATE TABLE/VIEW, wodurch die Software in die Lage versetzt wird, bei Update-Releases das Datenbankschema selbständig zu aktualisieren.. In doing so, you enable the software to upgrade the database structure automatically on update-releases. - The following script create an initial 500MB tablespace for users "goco" and "quartz"Das folgende Script legt initial einen 500MB Tablespace für die Benutzer "goco" und "quartz" an:
02_example_create_tablespaces.sql
Es ist als Beispiel zu verstehen und sollte von Ihnen angepasst werden. Der Platzbedarf für die GoCompliant ToolSuite ist wesentlich bestimmt von den Dateien, die als BLOB von den Benutzern hochgeladen werden (Limit ist 20MB pro Datei), und variiert daher stark. Als grober Anhaltspunkt kann die Aussage dienen, dass eine mittlere Installation (<100 Benutzer) mit einigen GB erfahrungsgemäss einige Jahre auskommen wird.This script is intended as an example and should be adjusted by you. The space requirements of the GoCompliant ToolSuite is mostly determined by the attachments that will be uploaded by the users (Limit is 20MB per Datei), and therefore depends on your user requirements. As a rough guide we can say that a middle-sized installation (<100 Benutzer) should be running fine with 1-3 GB for a few years. - The following script creates helper tables for quartz, used by the nightly job schedulingDas folgende Script legt Hilfstabellen für Quartz an, die von dem Benutzer "quartz" für das Job-Scheduling verwendet werden:
03_create_quartz_tables.sql
...