Debian Codegraph @

wdoc/syntax/database.html

raw
1 <head>
2 <title>AceDB database.wrn syntax</title>
3
4 <LINK rel=stylesheet type="text/css"
5 href="../wdoc.css"
6 title="Style sheet for wdoc documents">
7
8 </head>
9
10 <body>
11 <h2>AceDB database.wrm syntax</h2>
12
13
14 <p>on the line in interpreted according to the keyword.
15 Current Keywords:</p>
16
17 <ul>
18 <li> PART
19 <li> NAME
20 <li> SESSION_KEEP_ALIVE
21 <li> READLOCK_TIMEOUT
22 <li> NOLOCK
23 <li> SYNC_WRITE
24 </ul>
25
26 <p>note :</p>
27 <ul>
28 <li> lines beginning by // are comments
29 <li> a line don't exeed 512 characters.
30 </ul>
31
32 <dl>
33 <dt> PART = partition
34 <p>Example:</p>
35
36 <pre>
37 //Keyword : type hostname partition_name file_name max_size offset
38 PART : 1 local ACEDB block1.wrm 5000 0
39 PART : 1 local ACEDB block2.wrm 20000 0
40 </pre>
41
42 <dl>
43 <dt> partition types :
44 <ul>
45 <li>UNIX_FILE_SYSTEM = 1
46 <li>RAW_FILE_SYSTEM = 2
47 </ul>
48
49 <dt> hostname
50 <dt> partition_name
51 <dd> full path or "ACEDB" if relative to ACEDB variable.
52 <dt> file_name
53 <dd> only for unix file system : name of the partition file.
54 for other types, "NONE"
55 </dl>
56
57 <dt> <code>NAME</code>
58 <dd> is database name, this is set in the database super block when the database
59 is rebuilt. It can only be changed by rebuilding the database and can be used
60 as a reliable identifier for the database. This name is used in the main window
61 header and in status output.
62
63 <dt> <code>TITLE</code>
64 <dd> is an additional database name that is reread each time the database is
65 restarted. It can be used to give a more temporary title to a database to give
66 more information about the database. This title is used in the main window
67 and will override the main window title in wspec/displays.wrm, its also used in
68 the status output.
69
70 <dt> <code>SESSION_KEEP_ALIVE</code>
71 <dd> is the number of sessions to keep alive after
72 saving an update to the database. This number must be at least 1,
73 the code uses the default 2, if this value isn't set. 3 or 4 are also sensible.
74 If this number is much bigger than that, the amount of diskspace taken
75 up by data of old sessions that are kept alive, may be a considerable penalty.
76
77 <dt> <code>READLOCK_TIMEOUT</code>
78 <dd> is the time in hours after which a readlock is regarded
79 as a left-over from a crash process. Any readlock older than that will
80 be removed and ignored by the current and all subsequent acedb programs.
81 For newer version (>= 4.8) which clean up readlocks even after unforseen
82 crashes this number may be quite small (even as low as 2 or 3), because
83 readlocks of genuinely running processes are continuously restored.
84 A recommended safe number is 8 to 12 depending on usage of the database.
85
86 <dt> <code>NOLOCK</code>
87 <dd> On some platforms the Unix style lockf() system call is either
88 not supportd or is bugged. In this case you may want to
89 uncomment the NOLOCK line to prevent it being used.
90 Note that this disables one of the multiple access
91 checks. It therefore makes corruption of the database
92 by simultaneous access over the network more possible.
93 This is particularly a problem with an nfs mounted
94 database, because NFS buffering can bypass the other
95 acedb protections.
96
97 <dt> <code>SYNC_WRITE</code>
98 <dd> If acedb databases are accessed via NFS, writes to the
99 database can time out and fail _WITHOUT_ acedb being able to
100 detect this. This can lead to corruption of the database.
101 Uncommenting the below line will force acedb to open
102 database files for writing in synchronous mode. This will
103 slow down the writes by a factor of at least 5, _but_ acedb
104 will be able to detect when writes via NFS fail. You may need
105 to do this if your network becomes very overloaded but you
106 still need to be able to update the database reliably.
107 </dl>
108
109
110 </body>
111 </html>