Autor Beitrag
Klaus D.
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 63



BeitragVerfasst: Mi 21.01.04 18:31 
Hallo werte Delphi-Gemeinde
habe folgendes Problem.
2Tabellen die referentiell Verknüpft sind
Tabelle1=Haupttabelle
Tabelle2=Nachschlagetabelle(nur Zugriff über dbLookupComboBox)
wenn ich tbl2 aktualisiere und dann in tbl1 neue Datensätze anlegen möchte ohne die tbl1 und tbl2 vorher neu zu laden bekomme ich folgenden Fehler:ERROR 7004....Maximum number of work areas exceeded
wo ist denn der Grab behundet... Es tritt vor allem nicht regelmäßig auf.
MfG Klaus
ToniG
Hält's aus hier
Beiträge: 3


d7
BeitragVerfasst: Do 22.01.04 15:37 
Titel: 7004 --> ADSLOCAL.CFG
Hi,

Du muß den (nicht stdmäßig gesetzten) Wert WORKAREAS=xxx (zB 500) in deiner ADSLOCAL.CFG setzen
Klaus D. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 63



BeitragVerfasst: Do 22.01.04 17:58 
Gruß
Workarea find ich net.
Von ADS bekam ich folgende Antwort nur weiß ich net was ich da reinschreiben soll.
ist es mal möglich ne "ADSLOCAL.CFG" wo das drinsteht zu bekommen, daß ich das mal sehe sehe.
aber so richtig verstehe ich das Problem noch nicht?
Danke Klaus

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
Problem:  The maximum number of configured work areas are already in use.
Solution: Increase the setting for the WORKAREAS configuration value in the
Advantage Local Server configuration file, ADSLOCAL.CFG. If no WORKAREAS
configuration key exists in ADSLOCAL.CFG, add one and set the value to
larger than the number of CONNECTIONS multiplied by 25 (which is the default
value for the number of work areas if no WORKAREAS configuration key
exists). Then re-start the application that uses the Advantage Local Server.


Wir haben die Erfahrung gemacht, dass man gleichzeitig auch den Wert TABLES
erhöhen muss.




ausblenden volle Höhe Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
!!! Inhalt der  ADSLOCAL.CFG!!!

[SETTINGS]
;              Advantage Local Server configuration file
;
; The Advantage Local Server DLL (for Windows) and SO (for Linux) reads
; this configuration file when the DLL/SO is loaded. Values input
; after the keyword and equal sign are used to configure the DLL/SO.
; If no value is inserted after a keyword and equal sign, the default
; is used. This file should be located in the same directory as your
; Advantage Local Server DLL (adsloc32.dll) or SO (libadsloc.so).
;
; Number of Connections
; Default = 20; Range = 1 - No upper limit
CONNECTIONS=20
;
; Number of Tables
; Default = 50; Range = 1 - No upper limit
TABLES=50
;
; Number of Index Files
; Default = 75; Range = 1 - No upper limit
INDEXES=75
;
; Number of Data Locks
; Default = 500; Range = 1 - No upper limit
LOCKS=500
;
; Maximum Size of Error Log (in KBytes)
; Default = 1000 KBytes; Range = 1 KByte - No upper limit
ERROR_LOG_MAX=1000
;
; Error Log and Assert Log Path
; Default = C:\
ERROR_ASSERT_LOGS=
;
; ANSI Character Set
; Default = Use the currently configured ANSI character set that is active
;           on the workstation.
; If you do not wish to use the ANSI character set that is active on the
;   current workstation, the available ANSI character sets to be used are:
;     Danish, Dutch, Engl(Amer), Engl(UK), Engl(Can), Finnish, French,
;     French Can, German, Icelandic, Italian, Norwegian, Portuguese, Spanish,
;     Span(Mod), Swedish, or Russian
ANSI_CHAR_SET=German
;
; OEM/Localized Character Set
; Default = USA
; Options are:
;   USA, DANISH, DUTCH, FINNISH, FRENCH, GERMAN, GREEK437, GREEK851, ICELD850,
;   ICELD861, ITALIAN, NORWEGN, PORTUGUE, SPANISH, SWEDISH, MAZOVIA, PC_LATIN,
;   ISOLATIN, RUSSIAN, NTXCZ852, NTXCZ895, NTXSL852, NTXSL895, or NTXHU852
OEM_CHAR_SET=GERMAN
;
; Local File Flush Frequency (in milliseconds)
; Default = 20000 ms (20 seconds); Range = 0 ms - No upper limit
FLUSH_FREQUENCY=20000
;
; Lowercase All Paths
; Default = 0 (false)
; Options are: 0 (for false) and 1 (for true)
; Option to force the Linux Advantage Local Server SO to lowercase all
;    paths and filenames before attempting to access them on disk. This
;    option is ignored by the Advantage Local Server DLL for Windows.
LOWERCASE_ALL_PATHS=
ToniG
Hält's aus hier
Beiträge: 3


d7
BeitragVerfasst: Do 22.01.04 18:02 
Titel: WORKAREAS
...klar daß du den nicht findest. er ist stdmäßig nicht da. du brauchst ihn nur irgendwo in dieser Datei hinzuzufügen:

WORKAREAS=500
Klaus D. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 63



BeitragVerfasst: Do 22.01.04 20:08 
es funktioniert aber warum und weshalb?
was bewirkt dieser Eintrag
Mfg Klaus :?:
ToniG
Hält's aus hier
Beiträge: 3


d7
BeitragVerfasst: Fr 23.01.04 08:04 
Titel: WORKAREAS
...ist so was ähnliches wie früher FILES=nnn in der config.sys. für jeden zugriff auf eine table braucht adv einen handle; das maximum kann/muß hier eingestellt werden - es wird dann entsprechend speicher dafür reserviert.
gruß
t
Klaus D. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 63



BeitragVerfasst: Sa 24.01.04 10:24 
Gruß
Danke für die Hilfe!
um die Sache Abzurunden....habe ich vom Herr'n Dürr von ADS bekommen.
hab es begriffen und es läuft alles reibungslos!!!
-----------------------------------------------------
Es werden 500 Workareas angelegt. Eine Workarea kann man sich mit einem
Container vorstellen, der die Informationen des Benutzers je Tabelle bzw
SQL-Statement beinhaltet (zusammen mit den Infos über Index Dateien, Memos,
Datensatzsperren...).
Jeder Benutzer benötigt also pro Tabelle, die er öffnet, eine Workarea.
Zeigen zwei AdsTable-Komponenten auf dieselbe Tabelle, belegt das zwei
Workareas.
---------------------------------------------------------
MfG Klaus