File: server.xml

package info (click to toggle)
virtuoso-opensource 7.2.5.1%2Bdfsg1-0.3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 285,240 kB
  • sloc: ansic: 641,220; sql: 490,413; xml: 269,570; java: 83,893; javascript: 79,900; cpp: 36,927; sh: 31,653; cs: 25,702; php: 12,690; yacc: 10,227; lex: 7,601; makefile: 7,129; jsp: 4,523; awk: 1,697; perl: 1,013; ruby: 1,003; python: 326
file content (3291 lines) | stat: -rw-r--r-- 158,386 bytes parent folder | download | duplicates (2)
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
 -  
 -  This file is part of the OpenLink Software Virtuoso Open-Source (VOS)
 -  project.
 -  
 -  Copyright (C) 1998-2018 OpenLink Software
 -  
 -  This project is free software; you can redistribute it and/or modify it
 -  under the terms of the GNU General Public License as published by the
 -  Free Software Foundation; only version 2 of the License, dated June 1991.
 -  
 -  This program is distributed in the hope that it will be useful, but
 -  WITHOUT ANY WARRANTY; without even the implied warranty of
 -  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 -  General Public License for more details.
 -  
 -  You should have received a copy of the GNU General Public License along
 -  with this program; if not, write to the Free Software Foundation, Inc.,
 -  51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 -  
 -  
-->
<chapter label="server.xml" id="server">
	<title>Administration</title>
	<!-- ======================================== -->
<sect1 id="databaseadmsrv"><title>Database Server Administration</title>
  <abstract>
    <para>
This section explains the use of the server executables, configuration files
and general administration procedures. These include backup, server tuning and profiling,
installing extension packages etc. See the Access Interfaces chapter for a discussion of the
command line SQL interface.
</para>
  </abstract>

<sect2 id="dbadm"><title>Database</title>


<para>See details for <link linkend="srvadminstallreqt">Installation Requirements</link>, 
<link linkend="srvadmopreq">Operational Requirements</link>, 
	<link linkend="srvadmossupport">Operating System Support</link> and 
	<link linkend="limitsandparameters">Limits</link>.</para>

  <sect3 id="srvadmsrvinst"><title>Server Instance Creation</title>
    <para>Multiple Virtuoso server instances  may coexist on a single machine. Each
    database will need to be assigned a unique TCP port number.
    On the windows platforms (except 95,98,ME) the Virtuoso can
    be configured for multiple services. For further details, see the
    <link linkend="CreatingDeletingServices">Creating and Deleting
    Virtuoso Services</link> in the <link linkend="installation">
    Installation chapter.</link></para>

<para>To run Virtuoso on a machine, only the  Virtuoso server executable and a valid virtuoso.ini file are needed.  An empty database file will be created automatically at first startup.  None of the other files in the installation are needed for basic operation.  Client interfaces may additionally need ODBC drivers or the like to be set up in system configuration files or the Windows registry but the server itself does not depend on these. 
</para>
  </sect3>


  <sect3 id="srvextinst"><title>Installing Application Packages</title>
    <para>
Virtuoso comes with optionally installable SQL application packages (VAD packages) for web based admin, on-line documentation, programming tutorials and a BPEL processor.
The installer typically asks whether to install these into the demo or the default empty database.

Depending on the OS and form of installer, also depending on whether the installation is the commercial or open source one, the package files will be in different locations.  To locate them, look for *.vad. 
The packages are typically made in two variants, where one keeps the installed items in the DAV repository and the other in the file system.  They are functionally equivalent in most cases, except for some tutorials that will only work in the file system.  Keeping installed resources in DAV has advantages when moving the database or backing up, since the installed items will not have to be treated separately.

To install these on a database, login as dba using the isql utility and issue the SQL command:
</para>

        <programlisting>
# at the OS command line prompt, assuming the dba password is dba and the server is at the default port 1111:

$ isql 1111 dba dba 

--  At the SQL prompt:
SQL&gt; vad_install ('conductor_dav.vad', 0);
-- The path is relative to the server's working directory. 

        </programlisting>
<para>
Since the packages are read from and sometimes the extracted contents are written to the file system, the server must have access to the directories in question.  Checjk OS permissions and set the DirsAllowed parameter in the ini file to allow the needed access.
</para>
<para>

After the packages are installed, they can be used by pointing the web
browser to their start page.  The start pages are listed on the root
page of the demo database and at the Getting Started section of the
Open Virtuoso web site.  The start page for the Conductor web admin
interface is /conductor, the docs are at /doc/html, the tutorials at
/tutorial, the BPEL admin and demos at /BPELGUI.  All these are directly
under the default Virtuoso web listener, the port is shown in the
messages log and read from the HTTP Server section of the virtuoso.ini
file.

</para>

</sect3>

  <sect3 id="srvadmlicensing"><title>Server Licensing</title>
    <para>The Virtuoso server requires a valid license file before it will
    successfully start.  The license file is a file always called
    <emphasis>virtuoso.lic</emphasis> and must reside in the working directory
    of the database instance - where the &lt;database-name&gt;.db file resides
    for the instance.</para>
    <para>Evaluations versions of Virtuoso come without a license file, however
    the registration procedure takes your email address, which will be used to
    email a new license file for you evaluation.</para>
  </sect3>

  <sect3 id="srvadmlogging"><title>Server Logging - Detecting Errors</title>
    <para>Virtuoso provides extensive log information for resolving problems.
    Should any problems arise Virtuoso logs should always be consulted.</para>
    <para>The Virtuoso server by default will send log information to two
    places, the appropriate system log for the operating system and the
    virtuoso.log file.  On Unix based operating systems, including Linux,
    this information will appear in the system log files.  On Windows the Virtuoso
    log information will appear in the Application Event Log.</para>
    <para>Virtuoso logs information in the system logs before the Virtuoso.log
    file is open.  This advantageously will log errors that cannot be placed in the
    virtuoso.log file, such as when the virtuoso.ini file cannot be located during
    Virtuoso startup.</para>
    <para>The system log feature can be disabled using the "Syslog" parameter
    in the [Database] section.  This is described in more detail in the following
    section.</para>
  </sect3>

<!-- ======================================== -->

<sect3 id="configsrvstupfiles"><title>Configuring Server Startup Files</title>

	<sect4 id="VIRTINI">
		<title>Virtuoso Configuration File</title>
		<para>The virtuoso.ini file is read from the directory that is current at
server startup.  This file contains an entry for all user settable options in the server.
It is divided into the following sections:
</para>
		<itemizedlist mark="bullet">
			<listitem><para>[Database] Location of database files</para>
			</listitem>
			<listitem><para>[Parameters] Server tuning, options</para>
			</listitem>
			<listitem><para>[HTTPServer] Settings in this section control the web server component of the Virtuoso Server.</para>
			</listitem>
			<listitem><para>[URIQA] Settings in this optional section control URIQA semantic web enabler.</para>
			</listitem>
			<listitem><para>[Flags] Settings for options that are generally used with <link linkend="fn_dbf_set"><function>__dbf_set</function></link>
			   as temporally valid ( such as enable_joins_only), to be set as permanent.</para>
			</listitem>
			<listitem><para>[SPARQL] Settings in this optional section control SPARQL protocol endpoint default parameters and limits.</para>
			</listitem>
			<listitem><para>[I18N] encoding settings</para>
			</listitem>

			<listitem><para>[Replication] The replication section sets the transactional replication parameters for the server. </para>
			</listitem>
			<listitem><para>[Mono] The Mono section contains settings for Virtuoso with Mono Runtime CLR support.  </para>
			</listitem>
			<listitem><para>[Client] Client default settings</para>
			</listitem>
			<listitem><para>[AutoRepair] Corrupted database recovery</para>
			</listitem>
			<listitem><para>[Striping] Multi-file / multi-disk databases</para>
			</listitem>
			<listitem><para>[VDB] Virtual database functionality related options</para>
			</listitem>
			<listitem><para>[Ucms] location of UCM files describing multi-byte encodings such as Far East languages</para>
			</listitem>
			<listitem><para>[Zero Config] ZeroConfig related options</para>
			</listitem>
			<listitem><para>[Plugins] VSEI plugin modules</para>
			</listitem>
		</itemizedlist>
		<para>Below are the descriptions for each parameter</para>
		<sect5 id="ini_Database">
			<title>[Database]</title>
			<itemizedlist mark="dash">
				<listitem id="ini_Database_DatabaseFile">
					<formalpara>
						<title>DatabaseFile=virtuoso.db</title>
						<para>For a single file database, this is the relative path of the file
in the format appropriate to the platform. The path is resolved relative
to the directory that is current at server startup. All other paths are interpreted similarly.
</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Database_TransactionFile">
					<formalpara>
						<title>TransactionFile=virtuoso.trx</title>
						<para>This is the transaction log file.  If this parameter is omitted, which should never
be the case in practice, the database will run without log, meaning that it cannot
recover transactions committed since last checkpoint if it should abnormally terminate.
There is always a single log file for one server. The file grows as transactions get committed until a checkpoint is reached at which time the
transactions are applied to the database file and the trx file is reclaimed, unless CheckpointAuditTrail is enabled.
</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Database_ErrorLogFile">
					<formalpara>
						<title>ErrorLogFile=virtuoso.log</title>
						<para>This file logs database error messages, e.g. &apos;out of disk&apos;.  By viewing this the
dba can trace problems and see at which times the server has started,  checkpoints have been made, etc.
</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Database_ErrorLogLevel">
					<formalpara>
						<title>ErrorLogLevel=7</title>
						<para>This controls what events get logged into the database error log. This should always be 7.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Database_LockFile">
					<formalpara>
						<title>LockFile=virtuoso.lck</title>
						<para>This optional parameter can be used to manually specify the location
            of the Virtuoso lock (.lck) file.  This can be relative or the full path to the
            lock file.  Virtuoso, by default, creates a file with the
            same name as the DatabaseFile but with the extension of .lck.  This file
            exists when the Virtuoso server is running to prevent it starting multiple
            times using the same parameters, and should be automatically removed by
            the server upon exit.  However, not all file systems support file locking,
            such as NFS, therefore this parameter can be set to keep the lock file
            on a more appropriate file system.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Database_FileExtend">
					<formalpara>
						<title>FileExtend=100</title>
						<para>This is the size that the database file automatically grows (in 8k pages) when the current file is not large enough. Default = minimum = 100.
The parameter has no effect if striping is set.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Database_Striping">
					<formalpara>
						<title>Striping=0</title>
						<para>A non-zero value will enable the settings in [Striping] to take effect. If this
is the case the DatabaseFile parameter is ignored and the files in [striping] are used.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Database_LogSegments">
					<formalpara>
						<title>LogSegments</title>
						<para>If this is non-zero log segmentation is enabled. This
is only used for crash dumps where several files may be needed to
accommodate the recovery logs. If non-zero, this will be followed by
entries of the form Log1=...</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Database_Log">
					<formalpara>
						<title>Log1=/tmp/log1.trx 100M</title>
						<para>The number in Log&lt;n&gt; is the ordinal number of the log, starting at 1. The entry
consists of the file name and allocated size with an optional size modifier.  Available modifiers are B for blocks of 4k (default if unspecified,
K for kilobytes, M for megabytes, and G for gigabytes.  The log is filled up to the first
transaction that exceeds the size.  The log therefore will be longer than the allocated size. If blobs are involved, this amount can be quite substantial.
It is therefore advisable to have some extra space available on the storage device used for recovery logs.
</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Database_crashdump">
					<formalpara>
						<title>crashdump_start_dp, crashdump_end_dp</title>
						<para>
These options make it possible to produce a crash dump of a specified range of disk pages.
In case the server runs out of disk space during a dump, the error message indicates the page at
which the next dump should be started after the user has made more space available.
In this case it is important to rename the already produced crash dump or change the Logx= -entries in virtuoso.ini to avoid overwriting said files. If none of these options are provided, the server will attempt a crash dump of the entire database storage.
</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Database_TempStorage">
					<formalpara>
						<title>TempStorage     = &lt;TempDatabase_Name&gt;</title>
						<para>The name of a section in the INI file containing temporary
            database details.  If this parameter is omitted or the section does not
            exist the default values for temporary storage are used.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Database_Syslog">
					<formalpara>
						<title>Syslog = 1/0 (default 0)</title>
						<para>Virtuoso can writes log worthy messages to the system log (Unix based  
operating systems including Linux) or the Windows Event Log (Windows  
            operating systems).  Messages are written in the system/event log
            before the virtuoso.log file is opened, therefore errors due to
absence of virtuoso.ini log are loggable there. This system/event  
logging can be enabled using this option, by default it is set to 0  
meaning off.</para></formalpara>
            <para>On Unix/Linux messages are written as "Virtuoso" events.</para>
            <para>On Windows messages are written in the Application event log.</para>
				</listitem>
			</itemizedlist>
		</sect5>
    <sect5 id="ini_TempDatabase"><title>[&lt;TempDatabase_Name&gt;]</title>
     <para>This section name must match the TempStorage parameter in the
     Database section of the Virtuoso INI file to be of any use.  Otherwise this
     section will be ignored.</para>
     <itemizedlist>
				<listitem id="ini_TempDatabase_DatabaseFile">
					<formalpara>
						<title>DatabaseFile = &lt;database file name&gt;.tdb </title>
						<para>Name of temporary database file.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_TempDatabase_TransactionFile">
					<formalpara>
						<title>TransactionFile = &lt;transaction file name&gt;.ttr</title>
						<para>Name of temporary transaction file.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_TempDatabase_FileExtend">
					<formalpara>
						<title>FileExtend = NNN</title>
						<para>Increment amount by which the database file will dynamically grow.
            This setting is identical in use and purpose to parameter in the
            Database section with the same name.</para>
					</formalpara>
				</listitem>
       </itemizedlist>
    </sect5>
		<sect5 id="ini_Parameters">
			<title>[Parameters]</title>
			<itemizedlist mark="dash">
				<listitem id="ini_Parameters_SingleCPU">
					<formalpara>
						<title>SingleCPU=0</title>
						<para>This is a Win32 specific option that
forces Virtuoso to only run on one CPU in a multiprocessor environment.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_ServerPort">
					<formalpara>
						<title>ServerPort=[&lt;IP Address&gt;]:&lt;port&gt;</title>
						<para>This is the IP Address and port number where the server will start listening.
You do not need to specify the listening IP Address but can do in a situation that you want the server to bind to a specific address only.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_ServerThreads">
					<formalpara>
						<title>ServerThreads=10</title>
						<para>This is the maximum number of threads used in the server.  This should be
close to the number of concurrent connections if heavy usage is expected.
Different systems have different limitations on threads per process but a value of
100 should work in most places.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_ServerThreadSize">
					<formalpara>
						<title>ServerThreadSize=50000</title>
						<para>Stack size of thread used for reading client messages and accepting connections.(default : 50 000 bytes)</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_MainThreadSize">
					<formalpara>
						<title>MainThreadSize=100000</title>
						<para>Stack size of the main thread  (default : 100 000 bytes)</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_ThreadCleanupInterval">
					<formalpara>
						<title>ThreadCleanupInterval</title>
						<para>The interval in minutes (default : 0) after which
threads in the thread pool should be released.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_ThreadThreshold">
					<formalpara>
						<title>ThreadThreshold</title>
						<para>The maximum number of threads (default : 10) to leave in
the thread queue after thread clean-up interval has expired.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_SchedulerInterval">
					<formalpara>
						<title>SchedulerInterval</title>
						<para>Defines the scheduler wake-up interval ( in minutes). 
							By default is 0 i.e. the scheduler is disabled. </para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_ResourceCleanupInterval">
					<formalpara>
						<title>ResourcesCleanupInterval</title>
						<para>The interval in minutes (default : 0) after which allocated resources will be flushed..</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_FutureThreadSize">
					<formalpara>
						<title>FutureThreadSize=100000</title>
						<para>Stack size of worker threads.  This is the stack size for serving any client SQL statements or HTTP requests.  This can be increased if the application uses recursive stored procedures or links in external code needing a large stack.   (default 100 000 bytes)</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_TempAllocationPct">
					<formalpara>
						<title>TempAllocationPct</title>
						<para>A Percentage that may be greater than 100%.  This gives a
            percentage of the main .db file to which the temp db file may grow
            before starting to reclaim the oldest persistent hash index.
            Basically if a particular hash index is reusable (i.e. it references
            only table columns and the values in these columns have not changed)
            the engine keeps the hash index defined into the temp db for reuse.
            This parameter allows some control over the temp db file size.</para>
					</formalpara>
				</listitem>
                                <listitem id="ini_Parameters_ODIRECT">
          <formalpara>
						<title>O_DIRECT</title>
						<para>If this is non-zero, the database file(s) will be opened with the
O_DIRECT option on platforms where this is supported. This has the effect of doing file system I/O
from application buffers directly, bypassing caching by the operating system. This may be useful
if a large fraction of RAM is configured as database buffers. If this is on, the file system cache
will not grow at the expense of the database process, for example it is less likely to swap out
memory that Virtuoso uses for its own database buffers. Mileage will vary according to operating
system and version. For large databases where most of system memory is used for database buffers it is advisable to try this.
</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_CheckpointInterval">
          <formalpara>
						<title>CheckpointInterval=60</title>
						<para>This is the interval in minutes at which Virtuoso will
automatically make a database checkpoint.  The automatic checkpoint will not be made if
there is less than MinAutoCheckpointSize bytes in the current transaction log.
A checkpoint interval of 0 means that no periodic automatic checkpoints are made.</para>
						<para>
Setting the value to -1 disables also the checkpoints made after a roll forward upon database startup.  This setting should be used when backing up the database file(s).  This guarantees that even if the server dies and restarts during the copy, no checkpoints that would change these files will take place and thus the backup is clean.
</para>
						<para>the checkpoint_interval SQL function may be used to change the checkpoint interval value while the database is running.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_CheckpointSyncMode">
					<formalpara>
						<title>CheckpointSyncMode=2</title>
						<para>This controls how the file system is synchronized after a checkpoint.  Once the checkpoint has issued all
write system calls it needs it can do one of the following depending on this setting:
</para>
						<para>0. - Continue, leave the OS to flush buffers when it will.</para>
						<para>1. - Initiate the flush but do not wait for it to complete.</para>
						<para>2. - Block until the OS has flushed all writes pertaining to any of the database files.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_PageMapCheck">
					<formalpara>
						<title>PageMapCheck=0</title>
						<para>This controls the check of page maps:
</para>
						<para>0. - disables the check of page maps.</para>
						<para>1. - enables the check of page maps.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_NumberOfBuffers">
					<formalpara>
						<title>NumberOfBuffers=2000</title>
						<para>This controls the amount of RAM used by Virtuoso to cache database files. This has a critical
performance impact and thus the value should be fairly high for large databases.  Exceeding
physical memory in this setting will have a significant negative impact.  For a database-only
server about 65% of available RAM could be configured for database buffers.
</para>
						<para>Each buffer caches one 8K page of data and occupies approximately 8700 bytes of memory.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_MaxCheckpointRemap">
					<formalpara>
						<title>MaxCheckpointRemap=2000</title>
            <para>Specifies how many pages Virtuoso is allowed to remap.
            Remapping means that pages can consume the space of two actual pages
            until checkpoint.  See the
            <link linkend="checkpointparams">Checkpoint &amp; Page Remapping</link>
            section in the SQL Reference chapter for more information.</para>
					</formalpara>
					<!-- formalpara>
						<title>UnremapQuota=0</title>
						<para>Number of remapped pages Virtuoso will consolidate at checkpoint.
            Default is zero for unlimited.
            See the <link linkend="checkpointparams">Checkpoint &amp; Page Remapping</link>
            section in the SQL Reference chapter for more information.</para>
					</formalpara -->
				</listitem>
				<listitem id="ini_Parameters_PrefixResultNames">
					<formalpara>
						<title>PrefixResultNames=0</title>
						<para>This setting should always be 0.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_CaseMode">
					<formalpara>
						<title>CaseMode=1</title>
						<para>This controls the case sensitivity of the Virtuoso SQL interpreter. The following values
are supported:</para>
						<itemizedlist spacing="compact">
							<listitem>
								<para>0 - SQL is case sensitive and identifiers are stored in the case they are entered in.  This is similar to the Progress or Informix default.</para>
							</listitem>
							<listitem>
								<para>1 - SQL is case sensitive and Unquoted identifiers are converted to upper case when read.
To use non-upper case identifiers, the identifiers must be quoted with double quotes (&quot;).
This is similar to Oracle.
</para>
							</listitem>
							<listitem>
								<para>2 - SQL is case-insensitive and identifiers are stored in the case where first seen.  Unlike the
  situation in other modes, two identifiers differing only in case cannot exist.
  This is similar to the MS SQL Server 7 default behavior.
</para>
							</listitem>
						</itemizedlist>
						<note>
							<title>Note:</title>
							<para>Once a database is created in one case mode the case mode should not be
changed as that may change the interpretation of stored procedures etc.</para>
						</note>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_MinAutoCheckpointSize">
					<formalpara>
						<title>MinAutoCheckpointSize=4000000</title>
						<para>See CheckpointInterval.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_AutoCheckpointLogSize">
					<formalpara>
						<title>AutoCheckpointLogSize</title>
						<para>This is the size of transaction log in bytes after which an automatic checkpoint is initiated.  If this is non-zero, whenever the transaction log size
exceeds this size an automatic checkpoint is started.  This will result in approximately
like sized logs to be generated.  This is useful with the CheckpointAuditTrail option
for generating a trail of equal sized consecutive logs.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_CheckpointAuditTrail">
					<formalpara id="checkpointAuditTrail">
						<title>CheckpointAuditTrail=1</title>
						<para>If this is non-zero each checkpoint will start a new log and leave the
old transaction log untouched. A 0 value indicates that the transaction log may
be reused once the transactions in it have been written in a checkpoint.
</para>
						<para>
If it is important to keep an audit trail of all transactions in the
database&apos;s life time then this option should be true.  A new log file will
be generated in the old log file&apos;s directory with a name ending with the
date and time of the new log file&apos;s creation.  Old log files can be manually
copied into backup storage or deleted.  Only one log file is active at one time.
The newest log file may at any time be written to by the server, but that is
the only log file Virtuoso has open at each time.  Thus reading any logs is safe.
Writing or deleting the active log file will result in loss of data, and
possibly referential integrity, in the database.  See the
<link linkend="backup">Back and Recovery</link> chapter for more information on
this and related parameters.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_AllowOSCalls">
					<formalpara>
						<title>AllowOSCalls=0</title>
						<para>If non-zero the system SQL function is enabled.  This will allow a dba group user
to run shell commands through SQL.  This poses a potential security risk and hence the setting should normally be 0.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_MaxStaticCursorRows">
					<formalpara>
						<title>MaxStaticCursorRows=5000</title>
						<para>This is the maximum number of rows returned by a static cursor.  Default = 5000</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_FreeTextBatchSize">
					<formalpara>
						<title>FreeTextBatchSize=10000000</title>
						<para>This is the amount of text data processed in one batch of the free-text
index when doing a batch update or non-incrementally reindexing the data.
Default : 10,000,000</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_MullUnspecifiedParams">
					<formalpara>
						<title>NullUnspecifiedParams</title>
						<para>When set to 1, if an
application prepares a statement with insufficient number of input
parameters, the unspecified ones are assumed to be NULL.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_Collation">
					<formalpara>
						<title>Collation</title>
						<para>Defines a sorting order according to SYS_COLLATIONS.  The
            name supplied to this parameter must be in
            <link linkend="fn_charsets_list"><function>charsets_list(1)</function></link>.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_DirsAllowed">
					<formalpara id="acliniallowed">
<title>DirsAllowed=&lt;path&gt; [, &lt;path&gt;]</title>
<para>&lt;path&gt; := &lt;absolute_path&gt; or &lt;relative_path&gt;
comma-delimited list of OS directories allowed for file
operations such as <function>file_to_string()</function>.  The server
base directory (the directory containing this INI file) must appear on
this list in order to enable File DSNs to work. On Windows use in the path "\".
</para>
<para>The Virtuoso ISQL utility can be used to check  the Server DirsAllowed params
as follows:</para>

<programlisting><![CDATA[
SQL> select server_root (), virtuoso_ini_path ();
]]></programlisting>

<para>The above should show in the result the server working directory and INI
file name.</para>

<para>Also you can check the relevant INI setting by running following
statement via ISQL command line utility:</para>

<programlisting><![CDATA[
SQL> select cfg_item_value (virtuoso_ini_path (), 'Parameters',
'DirsAllowed');
]]></programlisting>
</formalpara>
				</listitem>
				<listitem id="ini_Parameters_DirsDenied">
					<formalpara id="aclinidenied">
						<title>DirsDenied=&lt;path&gt; [, &lt;path&gt;]</title>
						<para>&lt;path&gt; := &lt;absolute_path&gt; or &lt;relative_path&gt;
OS directories denied for file operations.  See <link linkend="acl">Virtuoso
ACL's</link> for information on functions that are restricted.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_VADInstallDir">
					<formalpara>
						<title>VADInstallDir=&lt;path&gt;</title>
						<para>&lt;path&gt; := &lt;absolute_path&gt; or &lt;relative_path&gt; OS directory containig 
						VADs files. When set, enables automatic update of vads on server startup. On Windows use in 
						the path "\". </para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_SSLServerPort">
					<formalpara>
						<title>SSLServerPort</title>
						<para>Specifies the port on which the server listens for incoming SSL CLI requests.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_SSLCertificate">
					<formalpara>
						<title>SSLCertificate</title>
						<para>The SSL certificate to use (same meaning as the SSLCertificate in HTTPServer section)</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_SSLPrivateKey">
					<formalpara>
						<title>SSLPrivateKey</title>
						<para>The server's private key (same meaning as the SSLCertificate in HTTPServer section)</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Parameters_MaxOptimizeLayouts">
					<formalpara>
						<title>MaxOptimizeLayouts = 1000</title>
						<para>This parameter governs the maximum number of partial or full
            join orders that the Virtuoso SQL Optimized compiler will calculate per
            select statement.  When MaxOptimizeLayouts has been reached,
            the best execution plan reached thus far will  be used.  The default
            value is 1000, specifying 0 will try all possible orders and guarantee that the best plan is reached.</para></formalpara>
				</listitem>

				<listitem id="ini_Parameters_StopCompilerWhenXOverRunTime">
					<formalpara>
						<title>StopCompilerWhenXOverRunTime = 0</title>
						<para>
						The default value is 0. If non-zero, this specifies that the SQL compiler should stop considering alternative execution plans after the elapsed compilation time exceeds the best run time estimate times the parameter.
						For example, if this is 2, then compilation stops after using twice the time of the best plan reached thus far.
						Enabling this option increases performance when processing short running queries that are each executed once.  Using this with long running queries or prepared parametrized queries is not useful and may lead to non-optimal plans being selected.
						</para></formalpara>
				</listitem>

				<listitem id="ini_Parameters_TraceOn">
    		  <formalpara><title>TraceOn = option1 [, option2 [, ..]]</title>
				<para>This parameter accepts a comma-delimited list of tracing options to
        activate by default.  Enabled trace options will list there respective
        errors in the virtuoso.log file when encountered.  Valid options are:</para>
        <simplelist>
          <member>user_log</member>
          <member>failed_log</member>
          <member>compile</member>
          <member>ddl_log</member>
          <member>client_sql</member>
          <member>errors</member>
          <member>dsn</member>
          <member>sql_send</member>
          <member>transact</member>
          <member>remote_transact</member>
          <member>exec</member>
          <member>soap</member>
        </simplelist>

        <para>If an invalid option is set then this error will be listed in the
        virtuoso.log file upon server startup.  Virtuoso will continue to log
        selected options unless the trace_off() function is called for that item.</para>

        <tip><title>See Also:</title>
        <para>The functions: <link linkend="fn_trace_on"><function>trace_on()</function></link>
        and <link linkend="fn_trace_off"><function>trace_off()</function></link>
        which use the same options and can turn logging options on/off while
        the server is running.</para></tip>

        <example id="ex_traceoniniopt"><title>Using the TraceOn ini file option</title>
        <programlisting>
[Parameters]
....
TraceOn = soap, errors
...
</programlisting>
        <para>This will enable logging of additional information regarding
        SOAP calls and SQL run-time errors into the virtuoso.log file.</para>
        </example>
        <example id="ex_threadcleanupinterval"><title>Using the ThreadCleanupInterval and ResourcesCleanupInterval ini file option</title>
        <programlisting>
[Parameters]
....
ThreadCleanupInterval    = 1
ResourcesCleanupInterval = 1
...
</programlisting>
        <para>Set both to 1 in order to reduce memory leaking.</para>
        </example>
				</formalpara>
				</listitem>
        <!--
				<listitem id="ini_Parameters_DbaExecutables">
    		  <formalpara><title>DbaExecutables = dbpump</title>
				<para></para>
				</formalpara>
				</listitem>
        -->
				<listitem id="ini_Parameters_AllowPasswordEncryption">
    		  <formalpara><title>AllowPasswordEncryption = 1/0</title>
				<para>Determines whether Virtuoso encryption should be accepted from
        client connections.  The default value is 1 - on.  If set to 0 then
        only clear text and digest authentication will be accepted.</para>
				</formalpara>
				</listitem>
				<listitem id="ini_Parameters_JavaClasspath"><formalpara><title>JavaClasspath</title>
         <para>This parameter is applied to the environment prior to the server's
         startup.  It is valid only for binaries hosted in the Virtuoso Java VM.
         This has the same format as the Java CLASSPATH environment variable for
         the platform being used.</para></formalpara>
         <para>Virtuoso searches for classes in the following order:</para>
         <simplelist>
          <member>The java_vm_create VSE parameter list</member>
          <member>This "JavaClasspath" in [Parameters] INI section</member>
          <member>The CLASSPATH environment variable</member>
          <member>If none of the above the CLASSPATH is the current directory.</member>
         </simplelist>
				</listitem>
				<listitem id="ini_Parameters_JavaVMOption"><formalpara><title>JavaVMOption1..N = &lt;opts&gt;</title>
         <para>These can be used for setting Java options for the Java runtime
         hosted in Virtuoso.  These options work as if provided as command
         line options to the JRE's Java command line.</para></formalpara>
         <para>More than one line of options can be specified by using
         consecutively numbered options:</para>
         <programlisting>
JavaVMOption1  = -Ddt1=val1
JavaVMOption2  = -Ddt2=val2
...
JavaVMOption5  = -Ddt5=val5
</programlisting>
         </listitem>
        <listitem id="ini_Parameters_PLDebug"><formalpara><title>PLDebug = 0</title>
         <para>The PLDebug switch controls the type of debugging enabled:</para>
				 </formalpara>
 <simplelist>
  <member><emphasis>PLDebug = 0</emphasis> - default debugging information and
  test coverage disabled.</member>
  <member><emphasis>PLDebug = 1</emphasis> - debugging information enabled.</member>
  <member><emphasis>PLDebug = 2</emphasis> - debugging information enabled, test
  coverage data will be written to file specified in TestCoverage Virtuoso ini
  file parameter.</member>
 </simplelist>
         </listitem>
        <listitem id="ini_Parameters_TestCoverage"><formalpara><title>TestCoverage = cov.xml</title>
         <para></para>
				 </formalpara>
         </listitem>
				<listitem id="ini_Parameters_CallstackOnException">
					<formalpara>
						<title>CallstackOnException = 0</title>
            <para>Controls whether Virtuoso will report call stack on errors.</para>
            </formalpara>
						<para>This parameters takes the following values:</para>
						  <simplelist>
						    <member>0 (default) - Call stack reporting disabled.</member>
						    <member>1 - Call stack reporting enabled.</member>
						  </simplelist>
				</listitem>
				<listitem id="ini_Parameters_CompileProceduresOnStartup">
					<formalpara>
						<title>CompileProceduresOnStartup = 1</title>
            <para>This controls whether Virtuoso will recompile all stored
            procedures listed in SYS_PROCEDURES and internal PL procedures
            defined during server startup.  By default Virtuoso will recompile all
            procedures, with this setting set to 0 Virtuoso will defer compilation
            until procedures' first call.  The benefits of this are that Virtuoso
            may start up up to 2-3 times faster, also the initial memory consumption
            will be significantly reduced as it does not need to analyze all
            the long varchar data allocating memory for execution.
            This setting is a boolean, either 1 or 0.  This setting does not
            apply to attached VDB procedures or modules.</para>
            </formalpara>
				</listitem>
				<listitem id="ini_Parameters_FDsPerFile">
					<formalpara>
						<title>FDsPerFile = 1</title>
            <para>Controls the number of file descriptors per file to be
            obtained from the OS.  The default and minimum value is 1.
            This parameter only effects databases that use striping.
			Having multiple FDs per file means that as many concurrent I/O operations
			may simultaneously be pending per file. This allows more flexibility for
			the OS to schedule the operations, potentially improving file I/O
			throughput</para>
            </formalpara>
				</listitem>
				<listitem id="ini_Parameters_RecursiveFreeTextUsage">
					<formalpara>
						<title>RecursiveFreeTextUsage = 1/0 default 1</title>
            <para>This option controls the behavior of free-text triggers in
            super-tables.  If this option is set to 1 then Virtuoso will scan the hierarchy
            of tables until a free-text index is used to use when compiling
            SQL statements involving contains, xcontains or xpath_contains.</para>
            </formalpara>
				</listitem>
				<listitem id="ini_Parameters_RecursiveTriggerCalls">
					<formalpara>
						<title>RecursiveTriggerCalls = 1/0 default 1</title>
            <para>This option controls the behavior of super-table triggers.  When this
            option is set to 1 then triggers in the super-table will be called before
            its own (sub-table) triggers.  This behavior is recursive and will
            continue up the branch of recursion, hence the triggers in the top
            most table in the chain will be called first.</para>
            </formalpara>
				</listitem>
				<listitem id="ini_Parameters_MaxSortedTopRows">
					<formalpara>
						<title>MaxSortedTopRows = 10000</title>
            <para>The TOP select statement clause caches in memory the rows
			pertinent to the result.  The number of rows allowed to be cached
			within memory is limited by this parameter.</para>
            </formalpara>
<para><emphasis>Simple example using OFFSET and LIMIT:</emphasis></para>
<para>Virtuoso uses a zero index in the OFFSET. Thus in the example below, will be taken position at
record 9000 in the result set, and will get the next 1000 rows starting from 9001 record. Note that the
MaxSortedTopRows in parameters Virtuoso ini section needs to be increased (default is 10000).</para>
<programlisting><![CDATA[
select ?name
ORDER BY ?name
OFFSET 9000
LIMIT 1000
]]></programlisting>
				</listitem>

				<listitem id="ini_Parameters_DisableUnixSocket">
					<formalpara>
						<title>DisableUnixSocket = 0/1 default 0</title>
            <para>This parameter is only applicable to Unix servers.  Virtuoso
			clients on the <computeroutput>localhost</computeroutput> of the server
			can benefit from using Unix Domain sockets to improve connection
			performance.  By default (DisableUnixSocket = 0) Virtuoso will open a
			Unix Domain listen socket in addition to the TCP listen socket.  The name of
			the UD socket is <computeroutput>/tmp/virt-&lt;tcp-listen-port&gt;</computeroutput>.
			When a client attempts to connect to the Virtuoso server using the
			specific address <computeroutput>localhost</computeroutput> it will
			first try connecting to the UD socket, failing that it will silently revert
			to the TCP socket.  See the
			<link linkend="accintudsockets">Unix Domain Socket Connections</link>
			section for more details.</para>
            </formalpara>
	</listitem>

	<listitem id="ini_Parameters_TransactionAfterImageLimit">
	    <formalpara>
		<title>TransactionAfterImageLimit = N bytes default 50000000</title>
		<para>When the roll-forward log entry of a transaction  exceeds this size, the transaction is  too large and is  marked as uncommittable. This work as upper limit otherwise infinite (transactions). The default is 50Mb . Then also note that transaction roll-back data takes about 2x of roll-forward data. Hence when the transaction roll-forward data which is 50Mb the total transient consumption is closer to 150 Mb.
		</para>
	    </formalpara>
	</listitem>

	<listitem id="ini_Parameters_TempSesDir">
	    <formalpara>
		<title>TempSesDir</title>
		<para> Directory for storing temporary  data for large object handled in replication  and HTTP server. Defaults to server home directory.
		</para>
	    </formalpara>
	</listitem>
	<listitem id="ini_Parameters_DbevEnable">
	    <formalpara>
		<title>DbevEnable = 0/1 default 1</title>
		<para>Enable or disable <link linkend="hooks">Database Event Hooks</link>.
		</para>
	    </formalpara>
	</listitem>
	<listitem id="ini_Parameters_RunAs">
	    <formalpara>
		<title>RunAs</title>
		<para>Specifies the OS user name to which the server will switch after opening the listen ports. Has an effect only on the
			operating systems that support it.
		</para>
	    </formalpara>
	</listitem>
	<listitem id="ini_Parameters_MaxMemPoolSize">
	    <formalpara>
		<title>MaxMemPoolSize = 200000000 </title>
		<para>This parameter specifies the limit of the memory to be used for compiling a SQL statement.
			If the query compilation requires more memory an error will be signalled. If this is a zero then no limit will be applied.
			The default is 200000000. i.e. when no parameter is specified, also if negative number or less than 5000000 is given then it
			would be set to 5000000 bytes.
		</para>
	    </formalpara>
	</listitem>
	<listitem id="ini_Parameters_DefaultIsolation">
	    <formalpara>
		<title>DefaultIsolation</title>
		<para>This specifies the default transaction isolation.  This isolation is used
		    unless overridden by a client  setting it using the SQL_TXN_ISOLATION or
		    equivalent connection option or a stored procedure locally setting it with
		    the SET statement.  The values are as by the SQL_TXN_ constants in ODBC,
		    that is, 1 for read uncommitted, 2 for read committed, 4 for repeatable
		    read and 8 for serializable.  If nothing is specified, the default is 
		    repeatable read.
		</para>
	    </formalpara>
	</listitem>
	<listitem id="ini_Parameters_UseAIO">
	    <formalpara>
		<title>UseAIO</title>
		<para>This specifies whether to use asynchronous file I/O on supporting Unix
		    systems.  A value of 0 means not using it.  A value of 1 means using
		    lio_listio for any background write or read ahead if available.  A value of
		    2 means to use the regular blocking read and write but to merge adjacent
		    operations into a single system call when possible.
		</para>
	    </formalpara>
	</listitem>
	<listitem id="ini_TempDBSize">
	    <formalpara>
		<title>TempDBSize</title>
		<para>Controls the acceptable size of the temp database file. If on startup it's size (in MB) is
		    greater than TempDBSize the file gets deleted and reset. This feature can be turned off by
		    setting TempDBSize to 0. Note that the temp db file serves as an optimization storage only
		    and doesn't have any client data that are not in either the main database files or the
		    corresponding transaction log files.
		</para>
	    </formalpara>
	</listitem>

	<listitem id="ini_LiteMode">
	    <formalpara>
		<title>LiteMode = 0/1 (default 0)</title>
		<para>Runs server in lite mode. When Lite mode is on:
                  <itemizedlist>
                    <listitem>the web services are not initialized i.e. no web server, dav, soap, pop3 etc.</listitem>
                    <listitem>the replication is stopped</listitem>
                    <listitem>the pl debugging is disabled</listitem>
                    <listitem>plugins are disabled</listitem>
                    <listitem>rendezvous is disabled</listitem>
                    <listitem>the relevant tables to the above are not created</listitem>
                    <listitem>the index tree maps is set to 8 if no other setting is given</listitem>
                    <listitem>memory reserve is not allocated</listitem>
                    <listitem>affects DisableTcpSocket. So DisableTcpSocket setting is treated as 1 
                    	when LiteMode=1, regardless of value in INI file</listitem>
                  </itemizedlist>
		</para>
	    </formalpara>
	</listitem>

	<listitem id="ini_RdfFreeTextRulesSize ">
	    <formalpara>
		<title>RdfFreeTextRulesSize  = 10 or more </title>
		<para>The size of hash to control rdf free text index
		</para>
	    </formalpara>
	</listitem>

	<listitem id="ini_IndexTreeMaps">
	    <formalpara>
		<title>IndexTreeMaps = 2 -1024 (power of 2) </title>
		<para>Size of index tree maps, larger is better for speed but consume memory, in
lite is 2 in 'normal' mode is 256 by default.
		</para>
	    </formalpara>
	</listitem>

	<listitem id="ini_DisableTcpSocket">
	    <formalpara>
		<title>DisableTcpSocket = 1/0 </title>
		<para>Default = 0. If set to 1, disables database listener on TCP port; unix socket must be 
			used for data access connections (ODBC, JDBC, ADO.NET, OLE DB). When LiteMode=1, 
			DisableTcpSocket setting in INI file is ignored and treated as if set to 1.
		</para>
	    </formalpara>
	</listitem>
	    <listitem id="ini_ExtentReadThreshold">
	    <formalpara>
		    <title>ExtentReadThreshold</title>
		    <para>Controls speculative read of disk pages. If pages are read in close succession 
        from an extent of 256 consecutive pages, the system may decide to speculatively read 
        the entire extent.</para>
        <para>ExtentReadThreshold parameter gives how many consecutive reads are needed to 
        trigger this.</para>
        <para>When is set to 0, this means that anytime a page is read, the whole extent is 
        read along with it</para>
        <para>When is set to 1, this means that if the first read is at time <emphasis>t</emphasis> 
        and the next one at time <emphasis>t1</emphasis> and <emphasis>t1-t</emphasis> &lt; ini_ExtentReadWindow msec, 
        then 2nd read triggers the speculative read.</para>
        <para>Default is 2.</para> 
        <para>Takes effect after the buffer pool is full.</para>
	    </formalpara>
	  </listitem>
	  <listitem id="ini_ExtentReadWindow">
	    <formalpara>
		    <title>ExtentReadWindow</title>
		    <para>Controls speculative read of disk pages. If pages are read in close succession 
        from an extent of 256 consecutive pages, the system may decide to speculatively read 
        the entire extent.</para>
		    <para>ExtentReadWindow parameter gives the time within which the reads must fall.</para>
		    <para>Default is 1000.</para>
		    <para>Takes effect after the buffer pool is full.</para>
	    </formalpara>
	  </listitem>
	  <listitem id="ini_ExtentReadStartupThreshold">
	    <formalpara>
		    <title>ExtentReadStartupThreshold</title>
		    <para>Controls speculative read of disk pages. If pages are read in close succession 
        from an extent of 256 consecutive pages, the system may decide to speculatively read 
        the entire extent.</para>
		    <para>ExtentReadStartupThreshold parameter value applies while the server is freshly 
        started and the buffer pool is not yet full. It can be set to preread more aggressively.</para>
		    <para>Default is 0.</para>
	    </formalpara>
	  </listitem>
	  <listitem id="ini_ExtentReadStartupWindow">
	    <formalpara>
		    <title>ExtentReadStartupWindow</title>
		    <para>Controls speculative read of disk pages. If pages are read in close succession 
        from an extent of 256 consecutive pages, the system may decide to speculatively read 
        the entire extent.</para>
		    <para>ExtentReadStartupWindow parameter value applies while the server is freshly 
        started and the buffer pool is not yet full. It can be set to preread more aggressively.</para>
		    <para>Default is 40000.</para>
	    </formalpara>
	  </listitem>

	  <listitem id="ini_ColumnStore">
	    <formalpara>
		    <title>ColumnStore</title>
		    <para> If 1, all create table and create index statements will create column-store structures by default.
		    </para>
		    <para>Note: Only effective with Virtuoso 7.0 and later.</para>
	    </formalpara>
	  </listitem>

	  <listitem id="ini_AsyncQueueMaxThreads">
	    <formalpara>
		    <title>AsyncQueueMaxThreads</title>
		    <para>Sets the number of threads in a pool that is used for getting extra threads for running 
		    	queries and for aq_request. Each running statement has at least one thread that is not allocated 
		    	from this pool plus zero or more threads from this pool.</para>
		    <para>Setting the pool size to the number of cores plus a few is a reasonable default. On 
		    	platforms with core multithreading, one can count a core thread as a core for purposes of 
		    	this parameter.</para>
		    <para>If one expects to run many slow <link linkend="fn_aq_requests"><function>aq_requests()</function></link> 
		    (see <link linkend="fn_async_queue"><function>async_queue()</function></link>, 
		    <link linkend="fn_aq_request"><function>aq_request()</function></link>, etc.), 
		    then the number of threads should be increased by the number of slow threads one expects.
		    </para>
		    <para>Slow threads are typically I/O bound threads used for web crawling or similar long-latency, 
		    	low-CPU activity.</para>
		    <para>Note: Only effective with Virtuoso 7.0 and later.</para>
        <tip><title>See Also:</title>
          <para><link linkend="confvectexec">Configuring Vectored Execution</link></para>
        </tip>
	    </formalpara>
	  </listitem>
	  <listitem id="ini_ThreadsPerQuery">
	    <formalpara>
		    <title>ThreadsPerQuery</title>
		    <para>This is maximum number of threads that can be claimed from the thread pool by a single 
		    	query. A value of one means that no query parallelization will take place, and all queries 
		    	will run single threaded.</para>
		    <para>The number of cores on the machine is a reasonable default if running large queries.</para>	
		    <para>Note that since every query is served by at least one thread, a single query taking 
		    	all the extra threads will not prevent other queries from progressing.</para>
		    <para>Note: Only effective with Virtuoso 7.0 and later.</para>	
        <tip><title>See Also:</title>
          <para><link linkend="confvectexec">Configuring Vectored Execution</link></para>
        </tip>
	    </formalpara>
	  </listitem>
	  <listitem id="ini_VectorSize">
	    <formalpara>
		    <title>VectorSize</title>
		    <para>This the number of simultaneous sets of query variable bindings processed at one time. 
		    	The default is 10,000, which is good for most cases.</para>
		    <para>If we are evaluating the query:</para>	
<programlisting><![CDATA[
SELECT COUNT (*) 
FROM t1 a, 
     t1 b 
WHERE a.row_no + 1 = b.row_no 
OPTION (LOOP, ORDER) 
]]></programlisting>
        <para>with vector size of 10,000, then 10,000 rows of t1 a will be fetched first; 
        	1 will be added to the 10,000 row_no values; 
        	and then the corresponding row of t1 b will be fetched for the 10,000 row_no of t1 a. 
        	This process will repeat until enough batches of t1 a have been fetched to come to its end.</para>
        <para>Note: Only effective with Virtuoso 7.0 and later.</para>	
        <tip><title>See Also:</title>
          <para><link linkend="confvectexec">Configuring Vectored Execution</link></para>
        </tip>
	    </formalpara>
	  </listitem>
	  <listitem id="ini_AdjustVectorSize">
	    <formalpara>
		    <title>AdjustVectorSize</title>
		    <para>Using a larger vector size when evaluating large queries with indexed random-access can 
		    	yield up to a 3x speed-up relative to using the default vector size. However, always using a 
		    	large vector size will prohibitively increase the overhead of running small queries. For this 
		    	reason, there is the option to adaptively select the vector size. Set AdjustVectorSize = 1 
		    	to enable this feature. The SQL execution engine will increase the vector size when it sees 
		    	an index lookup that does not get good locality, (e.g., after sorting the keys to look for, 
		    	too few consecutive lookups fall on the same page). Having more keys to look up increases 
		    	the chance that consecutive keys should be found on the same page, thus eliminating much of 
		    	the index lookup cost.</para>
		    <para>Note: Only effective with Virtuoso 7.0 and later.</para>	
        <tip><title>See Also:</title>
          <para><link linkend="confvectexec">Configuring Vectored Execution</link></para>
        </tip>

	    </formalpara>
	  </listitem>



	  <listitem id="ini_MaxQueryMem">
	    <formalpara>
		    <title>MaxQueryMem</title>
		    <para> This controls the maximum amount of memory that can be used across the
server process for large vectors, i.e. if the memory in use is near
this limit, a query will not switch to large vector size even if it
finds it useful.  The event counter tc_no_mem_for_longer_batch counts
how many times this situation is detected.  A size letter of G or M follows the value. 
		    </para>
		    <para>Note: Only effective with Virtuoso 7.0 and later.</para>	
        <tip><title>See Also:</title>
          <para><link linkend="confvectexec">Configuring Vectored Execution</link></para>
        </tip>

	    </formalpara>
	  </listitem>
	  <listitem id="ini_HashJoinSpace">
	    <formalpara>
		    <title>HashJoinSpace</title>
		    <para> This controls the maximum amount of memory that can be used across the
server process for hash join hash tables.
This is followed by a size letter M or G.  A single hash join hash table  will only claim a percentage of the remaining hash join space, by default 50.  This is controlled by the chash_per_query_pct setting, see section on vectored execution tuning.   If there is not enough memory, a partitioned hash join will be used, making as many passes over the data as needed so that the hash table will fit within the set limits.
		    </para>
		    <para>Note: Only effective with Virtuoso 7.0 and later.</para>	
        <tip><title>See Also:</title>
          <para><link linkend="confvectexec">Configuring Vectored Execution</link></para>
        </tip>

	    </formalpara>
	  </listitem>


	  <listitem id="ini_MaxVectorSize">
	    <formalpara>
		    <title>MaxVectorSize</title>
		    <para>When AdjustVectorSize is on, this setting gives the maximum vector size. The 
		    	default is 1,000,000 and the largest allowed value is about 3,500,000.</para>	
		    <para>Note: Only effective with Virtuoso 7.0 and later.</para>		
        <tip><title>See Also:</title>
          <para><link linkend="confvectexec">Configuring Vectored Execution</link></para>
        </tip>
	    </formalpara>
	  </listitem>


    <listitem id="ini_TimezonelessDatetimes">
	    <formalpara>
		    <title>TimezonelessDatetimes</title>
		    <para>Enables Timezoneless Support. Different applications may require different behavior when input data contain
		    	timezoneless values. In some cases it is better to "cast" all of them to timezoned than to upgrade existing code.
		    	Virtuoso offers 5 different modes of support -- 0, 1, 2, 3 and 4. This should be set before creating the database
		    	and the set value is stored in the database. After database is created, an attempt to change the mode by patching
		    	<link linkend="VIRTINI">virtuoso.ini</link> will have no effect and virtuoso.log will contain a warning about
		    	mismatch between virtuoso.ini and the database file.</para>
		    	<para>The possible variants are:</para>
      <itemizedlist mark="bullet">
        <listitem>TimezonelessDatetimes=0 -- Never use timezoneless, as it was in old databases. Always set local timezone on parsing strings if no timezone
        	specified. An attempt to set timezoneless by calling function
        	<link linkend="fn_forget_timezone"><function>forget_timezone()</function></link> will signal error. Timezoneless values
        	still may come from outside as dezerializations of timezoneless DATETIME values, serialized by other database instances,
        	but not in any other way:
        </listitem>
        <listitem>TimezonelessDatetimes=1 -- When parsing strings, set timezoneless if ISO format tells so:
        </listitem>
        <listitem>TimezonelessDatetimes=2 -- Set timezoneless always, exception is when the parsed string contains explicit timezone or when RFC requires the
        	use of GMT or when timezone is set by function <link linkend="fn_adjust_timezone"><function>adjust_timezone()</function></link>. This is default for new databases if
        	<code>TimezonelessDatetimes</code> parameter is missing in virtuoso.ini
        </listitem>
        <listitem>TimezonelessDatetimes=3 -- Never use timezoneless. Always set local timezone on parsing strings if not timezone specified. An attempt to set
        	timezoneless by calling function <link linkend="fn_forget_timezone"><function>forget_timezone()</function></link> will
        	signal error. Timezoneless values still may come from outside as deserializations of timezoneless DATETIME values,
        	serialized by other database instances, but not in any other way. The difference with <code>TimezonelessDatetimes=0</code>
        	is that timezones are always printed on cast datetimes to strings etc. so timezoneless-aware clients will get unambiguous data.
        </listitem>
        <listitem>TimezonelessDatetimes=4 -- On parsing string, set timezone to GMT if no timezone specified. However, timezoneless can be set by calling
      	function <link linkend="fn_forget_timezone"><function>forget_timezone()</function></link> . This mode can be convenient
      	for global web services when real "local" timezones of specific users are not known.
        </listitem>
      </itemizedlist>
  		<para>For new applications, consider the use of <code>TimezonelessDatetimes=2</code> as primary variant,
  		<code>TimezonelessDatetimes=1</code> as the second best.</para>
	    </formalpara>
	  </listitem>

          </itemizedlist>
          <para>Note: The default for startup behavior is to always read full extents and the default for the normal 
behavior is to trigger preread on the third read inside one second.</para>
		</sect5>
  <sect5 id="ini_HTTPServer">
			<title>[HTTPServer]</title>
			<para>Settings in this section control the web server component of the
      Virtuoso Server.</para>
			<itemizedlist mark="dash">
				<listitem id="ini_HTTPServer_ServerPort">
					<formalpara>
						<title>ServerPort</title>
						<para>This specifies the initial HTTP listen port for the HTTP server.
            Can be specified also as ipaddress:port. Once Virtuoso is started it is possible to create
            multiple listeners using virtual directories.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_HTTPServer_HTTPThreadSize">
	        <formalpara>
		        <title>HTTPThreadSize = 120000</title>
						<para>
The stack size of the HTTP thread used for reading/processing HTTP client
requests and accepting connections.  The default is 120,000 bytes. This
parameter cannot have value less than the default; if a smaller value is
specified the default will be used.
</para>
					</formalpara>
				</listitem>
				<listitem id="ini_HTTPServer_ServerThreads">
					<formalpara>
						<title>ServerThreads</title>
						<para>
This specifies the number of concurrently serviced HTTP requests.
Its alias is <emphasis>MaxClientConnections</emphasis>. 
If there are more concurrent requests, accepting the connections
will be deferred until there is a thread ready to serve each.  If
an attempt to exceed the number of licensed connections is found.
the latter will be used.  When the number of threads is low some of the
tutorials may perform poorly and appear not to work; this is due to the
demonstration licensing.  When testing Virtuoso with the demonstration
license it can be quite easy to hit the limits unless remote connections
and HTTP connections are conserved.  You may wish to either wait for
previous transactions to finish or restart the server to be sure.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_HTTPServer_HTTPThreadSize">
					<formalpara>
						<title>HTTPThreadSize = 120000</title>
						<para>
The stack size of HTTP thread used for reading/processing HTTP client requests
and accepting connections.  The default setting, if not supplied, is 120,000 bytes.
The default value is the minimum; lesser values will be rounded up.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_HTTPServer_ServerRoot">
					<formalpara>
						<title>ServerRoot = ../vsp</title>
						<para>
This is the file system path of the root directory of files served by the Virtuoso
web server.  The index.html in that directory will be served for the / URI.  If relative,
the path is interpreted relative to the server&apos;s working directory.
</para>
					</formalpara>
				</listitem>
				<listitem id="ini_HTTPServer_ServerIdString">
					<formalpara><title>ServerIdString = Virtuoso</title>
						<para>String passed as Server: header to HTTP client.  This string is not
            required, in its absence the above default will be assumed.  This string
            can be set to anything required.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_HTTPServer_ClientIdString">
					<formalpara><title>ClientIdString = Mozilla/4.0 (compatible; Virtuoso)</title>
						<para>String passed as User-Agent: header to server by HTTP client.
            This string is not required, in its absence the above default will be assumed.
            This string can be set to anything required.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_HTTPServer_Charset">
					<formalpara>
						<title>Charset = [CHARSET-NAME]</title>
						<para>Allows you to set the default server
character set.  If no default is specified then ISO-8859-1 will be used automatically by
the server.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_HTTPServer_EnabledGzipContent">
				<formalpara><title>EnabledGzipContent = 0</title>
				<para>This sets the default behavior of HTTP transmission.  If set to 1
        The Virtuoso HTTP server will send GZipped content to user agents.  Otherwise
        content will be sent as is.  The function
        <link linkend="fn_http_enable_gz"><function>http_enable_gz()</function></link>
        lets you change the server mode on the fly.</para>
				</formalpara>
				</listitem>
				<listitem id="ini_HTTPServer_MaxKeepAlives">
					<formalpara>
						<title>MaxKeepAlives = 10</title>
						<para>
Connections by HTTP 1.1 clients can remain open after the initial response has been sent.
This parameters sets a cap on how many socket descriptors will at most be taken by keep alive connections.
Such connections will be dropped by the server ahead of timeout if this number would be exceeded.
Thus the maximum number of open sockets for the Virtuoso HTTP server is this number plus the number of threads.
A keep alive connection is by definition not associated to any pending processing on any thread.
</para>
					</formalpara>
				</listitem>
				<listitem id="ini_HTTPServer_KeepAliveTimeout">
					<formalpara>
						<title>KeepAliveTimeout = 10</title>
						<para>
This is a timeout in seconds before Virtuoso closes an idle HTTP 1.1 connection.
</para>
					</formalpara>
				</listitem>
				<listitem id="ini_HTTPServer_HTTPProxyEnabled">
				<formalpara><title>HTTPProxyEnabled = 0</title>
				<para>Setting this to 1 activates Virtuoso proxy service capabilities.  The
                            default value of 0 deactivates the proxy service.</para>
				</formalpara>
        <note><title>Note:</title>
        <para>Ports on which proxying is enabled should not be presented to the
        outside world under any situation.</para>
        </note>
				</listitem>
				<listitem id="ini_HTTPServer_HTTPProxyServer">
            <formalpara>
        	<title>HTTPProxyServer = proxylocal:3128</title>
        	<para>HTTP proxy server name and port</para>
            </formalpara>
        </listitem>
        <listitem id="ini_HTTPServer_HTTPProxyExceptions">
            <formalpara>
        	<title>HTTPProxyExceptions = localhost:8890, 127.0.0.1:8890</title>
        	<para>HTTP proxy exceptions name and port.</para>
            </formalpara>
        </listitem>   
                                <listitem id="ini_HTTPServer_HTTPLogFile">
				<formalpara><title>HTTPLogFile = log.out</title>
<para>If specified, Virtuoso will produce an HTTP server log file with the date
appended to the name given in the parameter and the files extension as ".out".
The log file is rotated daily.</para>
</formalpara>
<para>It will contain the following information:</para>

<para><computeroutput>logDDMMYYYY.out</computeroutput> :-</para>
<simplelist>
  <member>Client IP address</member>
  <member>Date and time of request/response</member>
  <member>Timestamp (milliseconds)</member>
  <member>Request/response line</member>
</simplelist>

<para>An example of which is:</para>
<programlisting><![CDATA[
127.0.0.1 - - [12/Sep/2006:12:31:17 +0300] "GET /ods/ HTTP/1.1" 200 19453 "" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko.."
127.0.0.1 - - [12/Sep/2006:12:31:18 +0300] "GET /ods/default.css HTTP/1.1" 200 41389 "http://example.com/ods/" "Mozilla/5.0 (Windows; U; ..."
127.0.0.1 - - [12/Sep/2006:12:31:19 +0300] "GET /ods/common.js HTTP/1.1" 200 7481 "http://example.com/ods/" "Mozilla/5.0 (Windows; U; ..."]]></programlisting>
				</listitem>
				<listitem id="ini_HTTPServer_MacCachedProxyConnections">
					<formalpara>
						<title>MaxCachedProxyConnections = 10</title>
						<para>
When Virtuoso is acting as a proxy or HTTP client, as is the case with the http_get or
the SOAP client functions, it caches connections to HTTP 1.1 servers.  This is the maximum population of said cache.
</para>
					</formalpara>
				</listitem>
				<listitem id="ini_HTTPServer_ProxyConnectionCacheTimeout">
					<formalpara>
						<title>ProxyConnectionCacheTimeout = 15</title>
						<para>
This is a timeout in seconds for dropping idle connections to other HTTP servers.
These result from http_get, SOAP client functions and proxying.
</para>
					</formalpara>
				</listitem>
				<listitem id="ini_HTTPServer_DavRoot">
					<formalpara>
						<title>DavRoot = DAV</title>
						<para>
This specifies the root path of DAV resources.  If DAV specific HTTP methods are used on Virtuoso,
these should only reference resources with paths starting with this.  This is the top level DAV collection.  Other paths can be declared as managed in DAV using the virtual directory mechanism, but this applies to the default virtual directory.
</para>
					</formalpara>
				</listitem>
				<listitem id="ini_HTTPServer_DAVQuotaEnabled">
					<formalpara>
						<title>DAVQuotaEnabled = 1/0</title>
						<para>The Virtuoso administrator can enforce a quota on
						all DAV accounts, apart from the "dav" administration user,
						that restricts that amount of space a DAV
						user can consume in their DAV home directory.
						When this parameter is set to one (1) quotas are enabled,
						when this parameter is set to zero (0), they are disabled.
						The default quota value is five Megabytes (5MB) but can be
						uniquely defined for each user.  Every user has a quota except
						"dav", which is unlimited.
						Dav quotas are disabled if this parameter is not specified for
						backwards compatibility.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_HTTPServer_DAVChunkedQuota">
					<formalpara>
						<title>DAVChunkedQuota = 1000000</title>
						<para>Virtuoso send resources to from WebDAV to the
						requesting client in chunked encoding to save memory if
						the request is in HTTP/1.1 and the files size is greater
						then the <computeroutput>DAVChunkedQuota</computeroutput>
						number of bytes.  The default chunked-quota value
						is approximately one-megabyte.</para>
					</formalpara>
				</listitem>
                <listitem id="ini_HTTPServer_SSLPort">
					<formalpara>
						<title>SSLPort=4433</title>
						<para>this is the port on which SSL HTTPS connections will be accepted. Can be specified also as ipaddress:port. If unspecified
then the service will be disabled.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_HTTPServer_SSLCertificate">
					<formalpara>
						<title>SSLCertificate=./virtuoso_cert.pem</title>
						<para>the option must point to the file with the server certificate in PEM format.</para>
						<para>
						    If the option begins with 'db:' e.g. 'db:id_server', then certificate and key 
						    will be loaded from DBA key space.
						</para>
					</formalpara>
				</listitem>
				<listitem id="ini_HTTPServer_SSLPrivateKey">
					<formalpara>
						<title>SSLPrivateKey=./virtuoso_key.pem</title>
						<para>points to the file containing the RSA private key in PEM format.  </para>
						<para>the certificate/key pair must be valid (eq. certificate is generated on base of key)</para>
						<para>
						    If the option begins with 'db:' e.g. 'db:id_server', then certificate and key 
						    will be loaded from DBA key space. Note: in the case of database stored key, 
						    both SSLCertificate and SSLPrivateKey settings MUST be same.
						</para>
					</formalpara>
				</listitem>
				<listitem id="ini_HTTPServer_X509ClientVerify">
					<formalpara>
						<title>X509ClientVerify=0</title>
						<para>Whether the server will require X509 certificates from the browsers.</para>
					</formalpara>
 <simplelist>
  <member><emphasis>X509ClientVerify = 0</emphasis> - no certificate verification required</member>
  <member><emphasis>X509ClientVerify = 1</emphasis> - ask for trusted certificates</member>
  <member><emphasis>X509ClientVerify = 2</emphasis> - optionally ask for trusted certificates, if trusted certificate is presented it will be verified</member>
  <member><emphasis>X509ClientVerify = 3</emphasis> - optionally accept any certificate including self-signed certificates</member>
 </simplelist>
  <tip><title>See Also:</title>
    <para><link linkend="secureodbcx509foafsll">WebID Protocol ODBC Login</link></para>
  </tip>
				</listitem>
				<listitem id="ini_HTTPServer_X509ClientVerifyDepth">
					<formalpara>
						<title>X509ClientVerifyDepth=1</title>
						<para>Specifies how deep the client certificate
verification process will traverse the Issuer chain before giving up.  The default value of 0
means that only verification of the client certificate itself being in the server's CA list is
performed.  Setting this option to -1 will ignore the depth checks</para>
					</formalpara>
				</listitem>
				<listitem id="ini_HTTPServer_X509ClientVerifyCAFile">
					<formalpara>
					    <title>X509ClientVerifyCAFile=./calist.pem</title>
<para>a PEM file of all the X509 certificates of the Certification Authorities (CA) which the server will use for verifying the
client's client certificate.  A list of these will be sent to the client as a part of the
SSL handshake so the client will know which certificate to send.</para>
<para>
    Note this option is in effect when X509ClientVerify is 1 or 2. If X509ClientVerify is 3 and X509ClientVerifyCAFile is given, server will send certificated during handshake, thus some clients may restrict user to send any certificate. 
</para>
</formalpara>
</listitem>
				<listitem id="ini_HTTPServer_POP3Port">
					<formalpara>
						<title>POP3Port=1234</title>
<para>Defines the TCP port number on which the Virtuoso POP3 server will listen.
The POP3 server will be disabled if this value is 0 or undefined.</para>
</formalpara>
</listitem>
				<listitem id="ini_HTTPServer_NewsServerPort">
					<formalpara>
						<title>NewsServerPort=1235</title>
<para>Defines the TCP port number on which the Virtuoso NNTP server will listen.
The NNTP server will be disabled if this value is 0 or undefined.</para>
</formalpara>
</listitem>
				<listitem id="ini_HTTPServer_FTPServerPort">
					<formalpara>
						<title>FTPServerPort</title>
<para>The Virtuoso FTP server can be enabled by supplying this parameter with a
value.  This value will then be the listening port of the FTP server.  The usual
port for FTP is port 21.</para>
</formalpara>
</listitem>
				<listitem id="ini_HTTPServer_FTPServerMinFreePort">
					<formalpara>
						<title>FTPServerMinFreePort = 20000</title>
<para>The Virtuoso FTP client and server use FTPServerMinFreePort and
FTPServerMaxFreePort parameters as lower and upper bounds for
active and passive connections.  This parameters sets the lower bound.</para>
</formalpara>
</listitem>
				<listitem id="ini_HTTPServer_FTPServerMaxFreePort">
					<formalpara>
						<title>FTPServerMaxFreePort = 30000</title>
<para>The Virtuoso FTP client and server use FTPServerMinFreePort and
FTPServerMacFreePort parameters as lower and upper bounds for
active and passive connections.  This parameters sets the upper bound.</para>
</formalpara>
</listitem>
				<listitem id="ini_HTTPServer_FTPServerLogFile">
					<formalpara>
						<title>FTPServerLogFile = ftpserver</title>
<para>If specified Virtuoso will produce an FTP server log file with the date
appended to the name given in the parameter and the files extension as ".log".
The log file is rotated daily.</para>
</formalpara>
<para>It will contain the following information:</para>

<para><computeroutput>ftpserverDDMMYYYY.log</computeroutput> :-</para>
<simplelist>
  <member>Client Host Name</member>
  <member>Authorized User</member>
  <member>Time</member>
  <member>User Command</member>
  <member>Server Response Code</member>
  <member>Bytes Transferred</member>
</simplelist>

<para>An example of which is:</para>
<programlisting><![CDATA[
hostname anonymous [22/Oct/2003:15:21:43 +0300] "PASS user@domain.com" 230 0
hostname anonymous [22/Oct/2003:15:23:11 +0300] "LIST" 226 162
hostname dav [22/Oct/2003:15:25:00 +0300] "PASS <hidden>" 230 0
]]></programlisting>
</listitem>
				<listitem id="ini_HTTPServer_FTPServerAnonymousLogin">
					<formalpara>
						<title>FTPServerAnonymousLogin = 0</title>
<para>Allows the FTP server to be accessible via the "anonymous" user login.
The anonymous user is not a real user, it has no SQL or DAV login ability.
The anonymous user can only access collections or resources that are set to public.  </para>
</formalpara>
</listitem>
				<listitem id="ini_HTTPServer_DefaultMailServer">
					<formalpara>
						<title>DefaultMailServer=localhost:25</title>
<para>Default SMTP server name and port, this is used when the first parameter of the smtp_send function is omitted or NULL.</para>
</formalpara>
</listitem>
				<listitem id="ini_HTTPServer_TempASPXDir">
					<formalpara>
						<title>TempASPXDir</title>
<para>Allows you to choose what file system directory to be used for temporary
storage of ASPX files hosted in DAV.</para>
</formalpara>
</listitem>
				<listitem id="ini_HTTPServer_PersistentHostingModules">
					<formalpara>
						<title>PersistentHostingModules = [1/]0</title>
<para>When set to "1" prevents Virtuoso from removing the plugin interpreters
from the HTTP threads after each request.  The default setting is "0".</para>
</formalpara>
</listitem>

<listitem id="ini_HTTPServer_HttpSessionSize">
    <formalpara>
	<title>HttpSessionSize = size in bytes, default 10000000</title>
	<para>The size threshold for large objects received by HTTP server. When this limit  is exceeded
	    by incoming or outgoing data, this  will be stored in a temp file, see 'TempSesDir' parameter in 'Parameters' section.
	</para>
    </formalpara>
</listitem>
<listitem id="ini_HTTPServer_MaintenancePage">
    <formalpara>
	<title>MaintenancePage = file_name</title>
	<para>The name of a HTML page or other static content to be returned to the user agents when server is running in atomic mode.
	    Note that this page should be self-contained, i.e. no image or CSS not JavaScript references can be used. 
	</para>
    </formalpara>
</listitem>
      </itemizedlist>
		</sect5>
		<sect5 id="ini_Flags">
			<title>[Flags]</title>
			<para>
      </para>
			<itemizedlist mark="dash">
        <listitem id="ini_URIQA_EnableJoinsOnly ">
          <formalpara>
        	  <title>enable_joins_only = 0</title>
        	  <para>Setting enable_joins_only will cause the optimizer to only consider next plan candidates that are connected by a
        	  	join to the existing partial plan. In other words, no cartesian products will be considered. This may save some space
        	  	and time.
        	  </para>
          </formalpara>
        </listitem>
      </itemizedlist>
		</sect5>
		<sect5 id="ini_URIQA">
			<title>[URIQA]</title>
			<para>
The URIQA section sets parameters of both URIQA HTTP extension and URIQA web service.
Section <link linkend="uriqa">URIQA Semantic Web Enabler</link> contains detailed description of this functionality,
including more details about <link linkend="uriqainifile">URIQA configuration parameters</link>.
This section should stay commented out as long as URIQA is not in use.
</para>
			<itemizedlist mark="dash">
<listitem id="ini_URIQA_DefaultHost">
    <formalpara>
	<title>DefaultHost = canonical name of the server, used by default for metadata retrieval, no default value</title>
	<para>The server name, including domain and port if needed, such as &quot;www.example.com&quot; or &quot;www.example.com:8088&quot;.</para>
    </formalpara>
</listitem>
<listitem id="ini_URIQA_LocalHostNames">
    <formalpara>
	<title>LocalHostNames = comma-delimited list of names of the server, that can be used for retrieval of metadata, no default value</title>
	<para>List of various allowed spellings of the server name, such as &quot;www.example.com, mail.example.com, mail, localhost, localhost.localdomain&quot;.</para>
    </formalpara>
</listitem>
<listitem id="ini_URIQA_LocalHostMasks">
    <formalpara>
	<title>LocalHostMasks = comma-delimited list of name masks of the server, no default value</title>
	<para>List of various allowed spellings of the server name in form of pattern strings for SQL &quot;like&quot; operator, not in form of exact strings.</para>
    </formalpara>
</listitem>
<listitem id="ini_URIQA_Fingerprint">
    <formalpara>
	<title>Fingerprint = unique fingerprint string of the server or group of identical servers, no default value</title>
	<para>Do not use this without an explicit need, to let server configure itself. Please refer to <link linkend="uriqainifile">detailed description</link> before use.</para>
    </formalpara>
</listitem>
<listitem id="ini_URIQA_DynamicLocal">
    <formalpara>
	<title>DynamicLocal = 1/0 default 0, allow dynamic hostname translation in the IRIs</title>
	<para>If DynamicLocal is on and the host part of the IRI matches the Host header of the HTTP request in context or the DefaultHost if outside of HTTP context, then this is replaced with local: before looking up the IRI ID.</para>
    </formalpara>
</listitem>
			</itemizedlist>
		</sect5>
		
		<sect5 id="ini_SPARQL">
			<title>[SPARQL]</title>
			<para>
The SPARQL section sets parameters and limits for SPARQL query protocol web service service.
This section should stay commented out as long as SPARQL is not in use.
</para>
Section <link linkend="rdfandsparql">RDF Data Access and Data Management</link> contains detailed description of this functionality.
			<itemizedlist mark="dash">
<listitem id="ini_SPARQL_ExternalQuerySource">
    <formalpara>
	<title>ExternalQuerySource = 1 or 0</title>
	<para>This controls processing of the "query-uri" parameter of the SPARQL query protocol webservice, means enable 1 or prohibited 0.</para>
    </formalpara>
</listitem>
<listitem id="ini_MinExpiration">
    <formalpara>
	<title>MinExpiration = 86400</title>
	<para>Sponger caching parameter in seconds. It will cause sponger to use this value as minimal 
		expiration of the pages, which would help in cases where source document's server do not 
		report expiration or it reports no caching at all.</para>
    </formalpara>
</listitem>
<listitem id="ini_MaxCacheExpiration">
    <formalpara>
	<title>MaxCacheExpiration = 1</title>
	<para>Cache Expiration time in seconds that overrides Sponger's default cache invalidation.</para>
    </formalpara>
</listitem>
<listitem id="ini_MaxDataSourceSize">
    <formalpara>
	<title>MaxDataSourceSize = 20971520</title>
	<para>Controls the max size that can be sponged. Default is 20 MB.</para>
    </formalpara>
</listitem>

<listitem id="ini_SPARQL_ExternalXsltSource">
    <formalpara>
	<title>ExternalXsltSource = 1 or 0</title>
	<para>This controls processing of the "xslt-uri" parameter of the SPARQL query protocol webservice, means enable 1 or prohibited 0.</para>
    </formalpara>
</listitem>
<listitem id="ini_SPARQL_ResultSetMaxRows">
    <formalpara>
	<title>ResultSetMaxRows = number</title>
	<para>This setting is used to limit the number of the rows in the result. The effective limit will be the lowest of this
		setting, SPARQL query 'LIMIT' clause value (if present), and SPARQL Endpoint request URI
		<link linkend="rdfrequestparamsofunctions">&amp;maxrows</link> parameter value (if present).</para>
    </formalpara>
</listitem>
<listitem id="ini_SPARQL_DefaultGraph">
    <formalpara>
	<title>DefaultGraph = IRI</title>
	<para>IRI of the default graph to be used if no "default-graph-uri" parameter is specified.</para>
    </formalpara>
</listitem>
<listitem id="ini_SPARQL_MaxQueryCostEstimationTime">
    <formalpara>
	<title>MaxQueryCostEstimationTime = seconds</title>
	<para>This setting is used to limit the estimate time cost of the query to certain number of seconds, the default is no limit.</para>
    </formalpara>
</listitem>
<listitem id="ini_SPARQL_MaxQueryExecutionTime">
    <formalpara>
	<title>MaxQueryExecutionTime = seconds</title>
	<para>
	    This setting is used to set the transaction execution timeout to certain limit in number of seconds, the default is no limit.
	</para>
    </formalpara>
</listitem>
<listitem id="ini_SPARQL_ImmutableGraphs">
    <formalpara>
	<title>ImmutableGraphs = URI</title>
	<para>
         IRI of graphs over which the sponger not to be able able to write.
	</para>
    </formalpara>
</listitem>
<listitem id="ini_SPARQL_PingService">
    <formalpara>
	<title>PingService = URI</title>
	<para>
        IRI of notification service to which the sponger results will be send.
	</para>
    </formalpara>
</listitem>
<listitem id="ini_SPARQL_DefaultQuery">
    <formalpara>
	<title>DefaultQuery = SPARQL Query</title>
	<para>
        Default SPARQL Query.
	</para>
    </formalpara>
</listitem>
<listitem id="ini_SPARQL_DeferInferenceRulesInit">
    <formalpara>
	<title>DeferInferenceRulesInit = 1 </title>
	<para>
        Defer Loading of inference rules at start up.
	</para>
    </formalpara>
</listitem>
<listitem id="ini_SPARQL_ShortenLongURIs">
  <formalpara>
  	<title>ShortenLongURIs  = 1</title>
  	<para>Shorten extremely long URIs in datasets when loading with the RDF Bulk Loader. Default is 0. </para>
  	<para><emphasis>Note</emphasis>: This parameter is only in the Virtuoso 06.03.3131+ commercial builds, 
  	at the time of writing it is not included in the open source 6.1.4 archives but will be in the 
  	next 6.1.5 release. A patch to enable this feature is however available from the 
  	<ulink url="http://sourceforge.net/tracker/?func=detail&amp;aid=3496331&amp;group_id=161622&amp;atid=820576">Virtuso patches page on source forge</ulink>, which can be applied to a 6.1.4 archive from source forge and the Virtuoso 
  	server binary rebuilt.</para>
  </formalpara>		
</listitem>
<listitem id="ini_SPARQL_MaxMemInUse">
    <formalpara>
	<title>MaxMemInUse = 0</title>
	<para>
        Maximum amount of memory that is allowed for temporary
storing parts of a SPARQL query result. Default is zero for no limit.
ResultSetMaxRows is maximum length of a SPARQL query result. Default is
zero for no limit.
These two options may be useful for protecting public web service
endpoints against DOS attacks, but at the same time it may cause
returning incomplete results without reporting errors. When used, it is
strongly advised to set the value orders of magnitude larger than the
expected size of longest reply. As a rule of thumb, timeout should
happen before this limit has reached. Values less than 1000000 bytes are
impractical in all cases.
	</para>
    </formalpara>
</listitem>
			</itemizedlist>
<para>The SPARQL INI can be get as RDF via http://cname/sparql?ini service.</para>

		</sect5>
		<sect5 id="ini_I18N">
                  <title>[I18N]</title>
                  <itemizedlist>
                  	
                  	<listitem id="ini_I18N_XAnyNormalization">
                      <formalpara>
                        <title>WideFileNames = 1/2/3/0</title>
                        <para>0: default value. It means not to normalize anything, so for ex. 
                        	"Jos" and "Jose" are two distinct words.</para>
                        <para>1: Any pair of base char and combinig char (NSM, non-spacing
modifier) is replaced with a single combined char, so if character "" is written as a sequence 
of "base" character "e" and a unicode char U +301 ("combining acute accent") then the pair will 
be replaced with single U+00E9 ("latin small letter e acute").
</para>
                        <para>2: Any combined char is converted to its (smallest known) base. So
"" will lose its accent and become plain old ASCII "e".
</para>
                        <para>3: This is equl to 1|2 and when set then performs both conversions. 
As a result, pair of base char and combinig char loses its second char and chars with accents will lose
accents.</para>
                        <para>If the parameter is required at all, the needed value is probably 3. 
So the fragment of virtuoso.ini should be:</para>
<programlisting><![CDATA[
[I18N]
XAnyNormalization=3	
]]></programlisting>                        
  <tip><title>See Also:</title>
    <para><link linkend="virtuosotipsandtrickscontrolunicode3">How Can I Control the normalization of UNICODE3 accented chars in free-text index?</link></para>
  </tip>
                      </formalpara>
                    </listitem>
                    
                    <listitem id="ini_I18N_WideFileNames">
                      <formalpara>
                        <title>WideFileNames = 1/0</title>
                        <para>Default is 0. When 1 then file access and directory
                    listing functions may use wide strings as file names. If a file name
                    contains non-ASCII characters then directory listing result set will
                    contain a wide string instead of narrow string with question marks.
                    Note, however, that most of existing applications do not support wide
                    strings for that purposes, so the feature should be used with extreme
                    care.
                        </para>
                      </formalpara>
                    </listitem>
                    <listitem id="ini_I18N_VolumeEncoding">
                      <formalpara>
                        <title>VolumeEncoding</title>
                        <para>Encoding identifier.
                    If set, file names are translated from wide strings and default server
                    encoding to the specified encoding before using them in file
                    manipulation BIFs. This is useful when server's filesystem is in some
                    national encoding or in UTF-8.
                    The translation is bi-directional: directory listing items are
                    translated from volume encoding to the default server encoding or wide.
                        </para>
                      </formalpara>
                    </listitem>
                    <listitem id="ini_I18N_VolumeEmergencyEncoding">
                      <formalpara>
                        <title>VolumeEmergencyEncoding</title>
                        <para>Encoding identifier.
                    If set, this encoding is used when the use of VolumeEncoding causes
                    encoding errors. The most popular case is when an UNIX filesystem tree
                    with UTF-8 contains some mounts of legacy storages with KOI or CP
                    encoding. Less popular is UTF-8 volume encoding and UTF-8QR as emergency
                    encoding to recover poorly encoded filenames.
                        </para>
                      </formalpara>
                    </listitem>
                    <listitem id="ini_I18N_VolumeEmergencyEncodingDirs">
                      <formalpara>
                        <title>VolumeEmergencyEncodingDirs</title>
                        <para>List of directories in same syntax as
                    DirsAllowed, default is empty.
                    If set, all file names in the listed directories are supposed to be in
                    VolumeEmergencyEncoding and VolumeEncoding is even not tried. The most
                    popular case is when an UNIX filesystem tree with UTF-8 contains some
                    mounts of legacy storages with KOI or CP encoding.
                        </para>
                      </formalpara>
                    </listitem>
                  </itemizedlist>
                </sect5>
		
		<sect5 id="ini_Replication">
			<title>[Replication]</title>
			<para>
The replication section sets the transactional replication parameters
for the server.
</para>
			<itemizedlist mark="dash">
				<listitem id="ini_Replication_ServerEnable">
					<formalpara>
						<title>ServerEnable=0/1</title>
						<para>A boolean parameter controlling whether a Virtuoso can or cannot act as a transactional replication publisher.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Replication_ServerName">
					<formalpara>
						<title>ServerName = log1</title>
						<para>
This identifies the server instance.  The entries in SYS_REPL_ACCOUNTS where SERVER equals
this name are considered locally published accounts.  This is the value returned by repl_this_server () SQL
function.
</para>
					</formalpara>
				</listitem>
<!-- deprecated in favour of above
				<listitem id="ini_Replication_Server">
					<formalpara>
						<title>Server = 1</title>
						<para>
This is required in order for this instance to publish transactionally replicated data.
</para>
					</formalpara>
				</listitem>
-->
				<listitem id="ini_Replication_QueueMax">
					<formalpara>
						<title>QueueMax = 50000</title>
						<para>
This controls how much synchronized transactional subscribers may fall behind before
being disconnected.  This controls how much memory the server will use to buffer undelivered
replication casts.  If the queue exceeds this byte amount subscribers are disconnected and
must request re-synchronization.  The byte count refers to the total length of the replay records
being buffered.  The actual memory usage is somewhat greater.
</para>
					</formalpara>
				</listitem>
			</itemizedlist>
		</sect5>
		<sect5 id="ini_Mono">
			<title>[Mono]</title>
			<itemizedlist mark="dash">
				<listitem id="ini_Mono_MONO_ROOT">
					<formalpara>
						<title>MONO_ROOT</title>
						<para>A path to the directory where the Mono system assemblies are
located.  Usually it is a compile time setting, but the MONO_ROOT overrides it.
This ini setting overrides the Mono environment variable of the same name.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Mono_MONO_PATH">
					<formalpara>
						<title>MONO_PATH</title>
						<para>A colon separated list of directories where the assemblies are
located to be found by Assembly.Load (equivalent to MS.NET Global assembly cache).
This ini setting overrides the Mono environment variable of the same name.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Mono_MONO_CFG_DIR">
					<formalpara>
						<title>MONO_CFG_DIR</title>
						<para>A path where the 'machine.config' file is to be found while
            running the ASPX code in Mono.  This ini setting overrides an
            environment variable of the same name.  This is also usually a Mono
            compile time default.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Mono_virtclr.dll">
					<formalpara>
						<title>virtclr.dll</title>
						<para>A fully qualified path and filename of the virtclr.dll
            virtuoso helper assembly.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Mono_MONO_TRACE">
					<formalpara>
						<title>MONO_TRACE = Off</title>
						<para>Mono debug tracing can be enabled by setting this parameter to
            On.  When tracing is On, Mono debug output with be sent to the Virtuoso
            debug console.</para>
					</formalpara>
				</listitem>
      </itemizedlist>
    </sect5>
		<sect5 id="ini_Client">
			<title>[Client]</title>
			<itemizedlist mark="dash">
				<listitem id="ini_Client_SQL_QUERY_TIMEOUT">
					<formalpara>
						<title>SQL_QUERY_TIMEOUT=0</title>
						<para>This sets the initial value of the SQL_QUERY_TIMEOUT statement option
in connected clients. The ODBC standard value is 0, meaning indefinite, which is
impractical in many applications.  This allows overriding the default. The timeout
is expressed in seconds.  If the client application sets this option in a statement, this default
is overridden for the statement in question.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Client_SQL_TXN_TIMEOUT">
					<formalpara>
						<title>SQL_TXN_TIMEOUT=0</title>
						<para>This is an ODBC extension option allowing setting a maximum duration
for a transaction.  0 means that there is no maximum. </para>
					</formalpara>
				</listitem>
				<listitem id="ini_Client_SQL_PREFETCH_ROWS">
					<formalpara>
						<title>SQL_PREFETCH_ROWS=100</title>
						<para>For a forward only cursor, this option sets the number of rows prefetched at the
execute and on subsequent fetch requests. A high value will speed up long selects but
will be a disadvantage if only the first few rows are fetched from a cursor that has a large result set.</para>
						<para>This should not be confused with the SQL_ROWSET_SIZE setting for scrollable
cursors.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Client_SQL_PREFETCH_BYTES">
					<formalpara>
						<title>SQL_PREFETCH_BYTES=16000</title>
						<para>This option specifies the maximum number of bytes the server will send as prefetched rows on
a forward only cursor.  If long rows are being prefetched this will cut off the prefetch after this many
bytes even if the number of rows is less than SQL_ROWSET_SIZE.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Client_SQL_NO_CHAR_C_ESCAPE">
					<formalpara>
						<title>SQL_NO_CHAR_C_ESCAPE=0</title>
						<para>This options is 0 by default and can be either 1 or 0.  This option controls Virtuoso's interpretation of
the backslash in PL text which is normal interpreted as escaping rather than literal.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Client_SQL_UTF8_EXECS">
					<formalpara>
						<title>SQL_UTF8_EXECS = 0</title>
<para>Setting SQL_UTF8_EXECS = 1 enables UTF-8 identifier storage and retrieval, whereas
setting SQL_UTF8_EXECS = 0 disables it. The default setting is 0: disabled for
backwards compatible.  See the <link linkend="wideidentifiers">Wide Character Identifiers</link>
section for more information</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Client_SQL_BINARY_TIMESTAMP">
					<formalpara>
						<title>SQL_BINARY_TIMESTAMP = 1</title>
<para>When SQL_BINARY_TIMESTAMP is set to 1 Virtuoso will describe all
TIMESTAMP columns as SQL_BINARY.  If it is set to 0 then Virtuoso will report the
TIMESTAMP columns as SQL_TIMESTAMP</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Client_SQL_NO_SYSTEM_TABLES">
					<formalpara>
						<title>SQL_NO_SYSTEM_TABLES = 0</title>
<para>This setting can be used to prevent SQLTables from returning system tables.
The default value of this setting is 0, which is allow system tables to be
returned in the normal way.  Setting this to 1 will prevent system tables
from being returned from SQLTables.  The client can also issue a
"set SQL_NO_SYSTEM_TABLE = 1/0" statement to set this in-connection.</para>
					</formalpara>
				</listitem>
			</itemizedlist>
		</sect5>
		<sect5 id="ini_AutoRepair">
			<title>[AutoRepair]</title>
			<itemizedlist mark="dash">
				<listitem id="ini_AutoRepair_BadParentLinks">
					<formalpara>
						<title>BadParentLinks=0</title>
						<para>As a result of an internal error in the database the physical integrity of references may
be lost.  Enabling this option causes the database to automatically repair such faults without
having to go through a crash dump plus restore.  A value of 0 should be normally used.</para>
					</formalpara>
				</listitem>
				<!-- listitem id="ini_AutoRepair_BadDTP">
					<formalpara>
						<title>BadDTP=0</title>
						<para>This option should never be enabled unless instructed by support.</para>
					</formalpara>
				</listitem -->
			</itemizedlist>
		</sect5>
		<sect5 id="ini_VDB">
			<title>[VDB]</title>
			<itemizedlist mark="dash">
				<listitem id="ini_VDB_ArrayOptimization">
					<formalpara>
						<title>ArrayOptimization=0/1</title>
						<para>Boolean parameter which allows the Virtuoso VDB to use Array parameters if the remote data source supports these.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_VDB_UseMTS">
				<formalpara><title>UseMTS = 0</title>
				<para>This parameter turns on/off MTS support in
                            Virtuoso. It is applicable to windows multithreaded
                            version of the Virtuoso server only.</para>
				</formalpara>
				</listitem>
				<listitem id="ini_VDB_NumArrayParameters">
					<formalpara>
						<title>NumArrayParameters</title>
						<para>Specifies a size of the parameter batch used by the VDB (default = 10)</para>
					</formalpara>
				</listitem>
				<listitem id="ini_VDB_VDBDisconnectTimeout">
					<formalpara>
						<title>VDBDisconnectTimeout</title>
						<para>The time (in seconds) after which a VDB connection is considered timed-out and closed. Default : 1000</para>
					</formalpara>
				</listitem>
				<listitem id="ini_VDB_VDBOracleCatalogFix">
					<formalpara>
						<title>VDBOracleCatalogFix=0/1</title>
						<para>This setting can be enabled to improve
compatibility with the MS Oracle Driver which has problems with mixed case table names
in catalog calls.</para>
						<para>Boolean parameter : allows a special mode for
the ORACLE ODBC drivers which do not return correct catalog data for mixed case tables.  When
this is on and the return from the catalog functions is empty, then a
Catalog function is issued to take the same catalog data and the result
is filtered on the client side.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_VDB_AttachInAutoCommit">
					<formalpara>
						<title>AttachInAutoCommit</title>
						<para>An boolean parameter controlling whether the VDB Catalog functions called
while attaching a table will be called in AutoCommit mode (required by some Sybase drivers).</para>
					</formalpara>
				</listitem>
				<listitem id="ini_VDB_NumArrayParameters">
					<formalpara>
						<title>NumArrayParameters=10</title>
						<para></para>
					</formalpara>
				</listitem>
				<listitem id="ini_VDB_ReconnectOnFailure">
					<formalpara>
						<title>ReconnectOnFailure=0 [1|0]</title>
						<para>The default setting of 0 instructs
the VDB layer to return underlying DB errors to the client rather than automatically
reconnecting without reporting the error, which would be setting 1.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_VDB_KeepConnectionOnFixedThread">
					<formalpara>
					    <title>KeepConnectionOnFixedThread=1 [0|1|2|4|8]</title>
					    <para>The default option is 1, this forces the VDB to map
						a single thread to each ODBC session in the VDB rather than
						multiple threads.  Some ODBC drivers  expect that calls concerning
						a particular connection all take place  on one thread.
						For example, the Oracle 8.xx ODBC driver can produce
						flaky crashes if this option is not set.
					    </para>
					    <para>0 - If a second request comes while a thread
						is processing the epilogue or previous request  for
						same connection the second request is scheduled for
						the same thread. This is called burst mode.
						Once this mode is active all requests on this connection
						will be processed in the same thread. until there is a break
						at delay more than  'PrpcBurstTimeoutMsecs' elapses
						between ending the last and receiving the next in same
						connection. This break in activity return the thread to
						the thread pool. The burst mode optimization saves thread
						switching time and may improve performance by up to 30% in
						situations  involving short requests immediately
						following each other.
					    </para>
					    <para>"ForcedFixedThread" mode (4).
						This is the same as VDBFixedThread mode,
						except that the thread enters this  state immediately on
						connection (as opposed to doing that on the first VDB activity).
						Otherwise the scheduling stays the same as in VDB FixedThread.
					    </para>
					    <para>"Forced Burst" mode (8). When a connection is initially
						made it's added to the select thread for monitoring.
						When an RPC comes in it causes the
						select thread to take the connection out of the select thread
						and assign that connection to designated worker thread.
						That thread from now on will read the data coming in from that
						connection directly (not depending on the select thread to
						detect the incoming data and wake the worker thread up).
						That mode saves the thread switch done handling each RPC
						(from the select thread to the worker thread).
						When the connection terminates the thread is unbound from
						it and returned to it's default idle state.
						If an lengthy RPC is being processed the server will
						switch the thread from burst mode to default mode while
						running the RPC, so the asynchronous cancellation
						requests can be processed.</para>
					    <para>
						To disable ever  going to burst mode, this  option can be set to 2
					    </para>
					</formalpara>
				</listitem>
				<listitem id="ini_VDB_PrpcBurstTimeoutMsecs">
					<formalpara>
					    <title>PrpcBurstTimeoutMsecs=100 (milliseconds)</title>
					    <para>RPC burst mode timeout in milliseconds. (see above)</para>
					</formalpara>
				    </listitem>
				<listitem id="ini_VDB_SerializeConnect">
					<formalpara>
						<title>SerializeConnect=0 [1|0]</title>
						<para>When enabled causes Virtuoso to wrap
SQLAllocConnect/SQLConnect calls sequence in a mutex, thus preventing abnormal program
exits when there are a large number of connection requests to the VDB.  Certain ODBC drivers have been noted to produce flaky errors when a large number of threads is concurrently inside one of the ODBC connect calls.. </para>
					</formalpara>
				</listitem>
				<listitem id="ini_VDB_SkipDMLPrimaryKey">
					<formalpara>
						<title>SkipDMLPrimaryKey=0 [1|0]</title>
						<para>This setting controls SQL compilation (not execution) for conditions
            where rows in a local table are used to determine rows of a remote table
            to be deleted (e.g. delete from rmt1 where rmc1 = 12 and rmc2 in (select lc1 from lt1))
            where the remote table was linked without a Primary Key primary key
            specified.  Normally the primary key is used, even when not in the
            original select select, to identify the rows to be deleted.  When the
            primary key is false or not available and SkipDMLPrimaryKey = 1
            then the original where clause will be used instead.</para>
					</formalpara>
				</listitem>

				<listitem id="ini_VDB_RemotePKNotUnique">
					<formalpara>
						<title>RemotePKNotUnique=0 [1|0]</title>
						<para>This option controls the SQL compiler ability to do some optimizations
						when it knows it will receive 1 row from a remote table (using the applicable WHERE clause).
						In some cases the remote is not providing any info about a primary key (or is providing
            wrong data for the primary keys and unique indices of a table) through ODBC API and
            the Virtuoso SQL optimizer may get fooled into thinking that a given SQL query
            over a remote table will return no more than 1 row.
            To avoid that turn on the above parameter to stop the compiler from doing that optimizations.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_VDB_UseGlobalPool">
					<formalpara>
						<title>UseGlobalPool=0 [1|0]</title>
						<para>This option controls the aggregation point of the VDB connection pools.
						    When it is off (=0, the default) the VDB connections that are no longer needed after transaction end
						    are collected server-side in a per-user connection cache. This (together with the
						   <code>KeepConnectionOnFixedThread</code> INI option)
						    ensures conformance even with older ODBC drivers that require that connections must be used
						    only within the OS thread that initiated them. This however may result in somewhat low reuse rate
						    for the pooled connections. That's why when this option is 1 (On) the connections are stored
						    in a server-side per-DSN connection cache.  Keep in mind that this may not work with all the ODBC
						    drivers, but it may provide lower ratio between virtuoso client connections and VDB-to-remote DBMS
						    connections, thus requiring smaller number of active connections on the remotes and faster
						    execution of VDB operations.</para>
					</formalpara>
				</listitem>
      </itemizedlist>
  </sect5>
		<sect5 id="ini_Ucms">
			<title>[Ucms]</title>
			<itemizedlist mark="dash">
				<listitem id="ini_Ucms_UcmPath">
					<formalpara>
						<title>UcmPath</title>
						<para>
String parameter which specifies the path where UCM files are located.
If this parameter is not specified, UCM files cannot be loaded.
</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Ucms_Ucm">
					<formalpara>
						<title>Ucm1, Ucm2,... Ucm99</title>
						<para>
Every UcmN parameter specifies one UCM file to load.
The value of UcmN is a pair of comma delimited strings.
The first string is a name of the UCM file to load, (relative to the path
specified in UcmPath), the second string is a name of the encoding as it was
used by the server.  E.g. Ucm1 = java-Cp933-1.3-P.ucm,Cp933 will load the
encoding from the file java-Cp933-1.3-P.ucm and associate it with the
identifier 'Cp933'.  You can register one encoding with more than one
name, if they are delimited by '|' (with no white spaces in the string).
e.g. Ucm2 = java-Cp949-1.3-P.ucm,Cp949|Korean will load the encoding from
the file java-Cp949-1.3-P.ucm and associate it with two identifiers,
'Cp949' and 'Korean'.  See <link linkend="ucmencodings">UCM
Encodings</link> for more details.</para>
					</formalpara>
				</listitem>
			</itemizedlist>
  </sect5>
		<sect5 id="ini_ZeroConfig">
			<title>[Zero Config]</title>
			<itemizedlist mark="dash">
				<listitem id="ini_ZeroConfig_ServerName">
					<formalpara>
						<title>ServerName</title>
						<para>Name used to advertise the Virtuoso ODBC service details in ZeroConfig.
            This is the name that will be shown to clients amongst other ZeroConfig
            datasources.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_ZeroConfig_ServerDSN">
					<formalpara>
						<title>ServerDSN</title>
						<para>An ODBC style connect string to preset the values of the
            parameters when the ODBC service offered by this server is
            selected by the Virtuoso ZeroConfig enabled clients.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_ZeroConfig_SSLServerName">
					<formalpara>
						<title>SSLServerName</title>
						<para>Name used to advertise the Virtuoso ODBC SSL encrypted
            service details in ZeroConfig.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_ZeroConfig_SSLServerDSN">
					<formalpara>
						<title>SSLServerDSN</title>
						<para>An ODBC style connect string to preset the values of the
            parameters when the ODBC SSL encrypted service offered by this
            server is selected by the Virtuoso ZeroConfig enabled clients.</para>
					</formalpara>
				</listitem>
			</itemizedlist>
      <tip><title>See Also:</title>
      <para>The <link linkend="rendezvous">Zero Config</link> section.</para></tip>
  </sect5>

		<sect5 id="ini_Plugins">
			<title>[Plugins]</title>
			<itemizedlist mark="dash">
				<listitem id="ini_Plugins_LoadPath">
					<formalpara>
						<title>LoadPath = /home/virtuoso/hosting</title>
						<para>The directory containing shared objects/libraries
						for use as Virtuoso VSEI plugins.</para>
					</formalpara>
				</listitem>
				<listitem id="ini_Plugins_Load">
					<formalpara>
						<title>Load&lt;number&gt; = &lt;module type&gt;, &lt;module name&gt;</title>
						<para><computeroutput>&lt;number&gt;</computeroutput> is the
						module load number, required and starting with 1.
						<computeroutput>&lt;module type&gt;</computeroutput>
						specifies the type of module that is to be loaded, and
						hence how Virtuoso is to use it.  So far "Hosting" and "attach" types exist.
						<computeroutput>&lt;module name&gt;</computeroutput> is
						the file name of the modules shared library or object.
                                                </para>
                                                <para>Example:</para>
                                                <para><computeroutput>Load6 = attach, libphp5.so</computeroutput>)</para>
                                                <para><computeroutput>Load7 = Hosting, hosting_php.so</computeroutput>)</para>
                                                <para>"Attach" is used for now for the php library. It can be used to load other libraries in future too.
                                                The reason is to load PHP5 functionality into virtuoso namespace, so when actually is loaded the hosting plugin,
                                                it can bind to the already available symbols for php5.
                                                </para>
					</formalpara>
				</listitem>
			</itemizedlist>
			<tip><title>See Also:</title>
			  <para><link linkend="vseiplugins">VSEI Plugins</link></para></tip>
  </sect5>

		<sect5 id="ini_Striping">
			<title>[Striping]</title>

			<itemizedlist mark="dash">
				<listitem id="ini_Striping_Segment">
					<formalpara>
						<title>Segment&lt;number&gt; = &lt;size&gt;, &lt;stripe file name&gt; [, &lt;stripe file name&gt; .. ]</title>
						<para>&lt;number&gt; must be ordered from 1 upwards; The &lt;size&gt;
            is the size of the segment which is equally divided across all stripes comprising
            the segment.</para>
					</formalpara>
        </listitem>
      </itemizedlist>

      <para>This section is only effective when <computeroutput>Striping = 1</computeroutput> is
      set in the <computeroutput>[Database]</computeroutput> section.  When
      striping is enabled the Virtuoso database spans multiple segments where each
      segment can have multiple stripes.</para>

      <para>Striping can be used to distribute the database across multiple locations
      of a file system for performance.  Segmentation can be used for expansion or
      dealing with file size limitations.  To allow for database growth when a file
      system is near capacity or near the OS file size limitation, new segments can
      be added on the same or other file systems.</para>

      <para>Striping only has a potential performance benefit when striped across
      multiple devices.  Striping on the same file system is needless and unlikely to
      alter performance, however, multiple segments do provide convenience and
      flexibility as described above.  Striping across partitions on the same device is
      likely to reduce performance by causing high unnecessary seek times on the
      physical disk.</para>

      <para>Database segments are pre-allocated as defined.  This can reduce the
      potential for file fragmentation which could also provide some performance
      benefit.</para>

      <para>Virtuoso striping alone does not allow for any fault tolerance.  This is
      best handled at the I/O layer or by the operating system.  File system RAID with
      fault-tolerant striping defined should be used to host the Virtuoso files if
      striping based protection is desired.</para>

      <para>The segments are numbered, their segment &lt;number&gt; must
      be specified in order starting with segment1.</para>

      <para>The &lt;size&gt; is the total size of the segment which is that will be
      divided equally across all stripes comprising  the segment.  Its specification
      can be in gigabytes (g), megabytes (m), kilobytes (k) or in
      database blocks (b) the default.</para>

      <note><title>Note:</title>
      <para>The segment size must be a multiple of the database page size which
      is currently 8k.  Also, the segment size must be divisible by the number of
      stripe files contained in the segment.</para></note>

      <para>Segments can be added to a database, however once defined they
      should never be altered.  Databases that were created without striping
      cannot automatically be restarted with striping.  You can convert a non-striping
      database to striping by dumping the contents of the database to a transaction file
      and replaying it with striping enabled.  An on-line backup made with backup_online () can be restored on a database with a different striping configuration as long as the total number of pages is no less than the number of pages of the backed up database.
</para>
<para>Striping can be useful for the temporary objects database if large hash join temporary spaces or such are expected.    This is enabled by the Striping setting in the Temp Database section of the ini file.
The stripes will be declared in the TempStriping section.
</para>


      <tip><title>See Also:</title>
      <para><link linkend="dbrebuild">Rebuilding A Database</link> in the Backup section.</para></tip>

    </sect5>
</sect4>

<sect4 id="sampleinifile">
<title>Sample Configuration File (&quot;virtuoso.ini&quot;)</title>
		<para>Following is the text of the sample virtuoso.ini file that comes with the distribution.
</para>

		<programlisting>
;
;  virtuoso.ini
;
;  Configuration file for the OpenLink Virtuoso VDBMS Server
;
;
;  Database setup
;
[Database]
DatabaseFile		= virtuoso.db
TransactionFile		= virtuoso.trx
ErrorLogFile		= virtuoso.log
ErrorLogLevel   	= 7
FileExtend      	= 200
Striping        	= 0
; LogSegments		= 1
; crashdump_start_dp	= 0
; crashdump_end_dp	= 0
; Log1			= log1.trx
;
;  Server parameters
;
[Parameters]
ServerPort         	= 1111
ServerThreads      	= 10
CheckpointInterval 	= 60
CheckpointSync 		= 2
NumberOfBuffers    	= 2000
MaxDirtyBuffers    	= 1200
MaxCheckpointRemap 	= 2000
PrefixResultNames	= 0
CaseMode           	= 1
;MinAutoCheckpointSize	= 4000000
AutoCheckpointLogSize	= 40000000
CheckpointAuditTrail		= 1

[HTTPServer]
ServerPort = 1122
ServerRoot = ../vsp
ServerThreads = 2
MaxKeepAlives = 10
KeepAliveTimeout = 10
MaxCachedProxyConnections = 10
ProxyConnectionCacheTimeout = 15
DavRoot = DAV

[Replication]
ServerName = log1
Server = 1
QueueMax = 50000

[Client]
SQL_QUERY_TIMEOUT 	= 0
SQL_TXN_TIMEOUT		  = 0
SQL_PREFETCH_ROWS		= 100
SQL_PREFETCH_BYTES	= 16000

[AutoRepair]
BadParentLinks	    = 0
BadDTP			        = 0

;[Ucms]
;UcmPath = /ucm
;Ucm1 = java-Cp933-1.3-P.ucm,Cp933
;Ucm2 = java-Cp949-1.3-P.ucm,Cp949|Korean
;Ucm3 = java-ISO2022KR-1.3-P.ucm,ISO2022KR|ISO2022-KR
;
;  Striping setup
;
;  These parameters have only effect when Striping is set to 1 in the
;  [Database] section, in which case the DatabaseFile parameter is ignored.
;
;  With striping, the database spans multiple segments
;  where each segment can have multiple stripes.
;
;  Format of the lines below:
;    Segment&lt;number&gt; = &lt;size&gt;, &lt;stripe file name&gt; [, &lt;stripe file name&gt; .. ]
;
;  &lt;number&gt; must be ordered from 1 up.
;
;  The &lt;size&gt; is the total size of the segment which is equally divided
;  across all stripes comprising  the segment. Its specification can be in
;  gigabytes (g), megabytes (m), kilobytes (k) or in database blocks
;  (b, the default)
;
;  Note that the segment size must be a multiple of the database page size
;  which is currently 8k. Also, the segment size must be divisible by the
;  number of stripe files constituting the segment.
;
;  The example below creates a 200 meg database striped on two segments
;  with two stripes of 50 meg and one of 100 meg.
;
;  You can always add more segments to the configuration, but once
;  added, do not change the setup.
;
[Striping]
Segment1	= 100M, db-seg1-1.db, db-seg1-2.db
Segment2	= 100M, db-seg2-1.db
</programlisting>
</sect4>
             <sect4 id="confvectexec">              
               <title>Configuring Vectored Execution</title>	
               <para>Note: Only effective with Virtuoso 7.0 and later.</para>
               <para>A Virtuoso 7 executable executes all SQL statements in vectored mode, except for 
               	positioned updates and deletes in stored procedures. Procedures are executed without 
               	vectoring unless they are declared vectored using the vectored keyword. A scalar 
               	(non-vectored) procedure can have a vectored block introduced with the for vectored 
               	construct. These are discussed in the SQL reference section on vectoring.</para>
               <para>Vectored execution is controlled by the following virtuoso.ini settings:</para>
               <itemizedlist mark="bullet">
                 <listitem><emphasis>VectorSize = 10000</emphasis>: This is the default number of 
                 concurrent variable bindings that are generated for a column in a batch of bindings.
                 </listitem>

                 <listitem><emphasis>MaxQueryMem = 1G</emphasis>: 

This controls the maximum amount of memory that can be used across the
server process for large vectors, i.e. if the memory in use is near
this limit, a query will not switch to large vector size even if it
finds it useful.  The event counter tc_no_mem_for_longer_batch counts
how many times this situation is detected.  A size letter of G or M follows the value. 

                 </listitem>

                 <listitem><emphasis>AdjustVectorSize = 1</emphasis>: If non-zero, this enables automatic 
                 increasing of vector size whenever the system notices a random access pattern that is 
                 not benefiting from vectoring due to too few consecutive hits falling on the same page. 
                 The vector size can be increased up to MaxVectorSize if the situation warrants. This 
                 is the case if there is enough unprocessed state in the query.
                 </listitem>
                 <listitem><emphasis>MaxVectorSize = 1000000</emphasis>: This is the maximum vector size. 
                 This can reach up to 4000000 but values in excess of 1000000 have not been found useful 
                 in practice. If the server is running out of memory with multiuser workloads involving 
                 long queries, dropping the MaxVectorSize to a lower value is a means of curtailing per 
                 query memory consumption.
                 </listitem>
                 <listitem><emphasis>ThreadsPerQuery = 8</emphasis>: This controls the maximum number of 
                 parallelizable work units a query will have outstanding at any one time. A value of 8 
                 means that a scan or vector of lookups is maximally divided into 8 units, of which 7 will 
                 be allocated to a pool of worker threads and one will be processed by the thread 
                 coordinating the query. Each query will always have one thread running, which is the 
                 thread allocated for serving the client-server or HTTP request initiating the query. 
                 Extra work units are serviced by threads from a parallel execution thread pool. If there 
                 are unstarted parallel work units that have not started at the time the coordinated thread 
                 finishes its own work unit, it will execute any of its own pending work units locally.
                 </listitem>
                 <listitem><emphasis>AsyncQueueMaxThreads = 16</emphasis>: This is the maximum number of 
                 worker threads that can be started for running parallelized work units generated by 
                 queries or functions requested with the aq_request () PL function. Thus the number of 
                 threads running on a server at any time is the number of client server or HTTP threads 
                 that have a running request plus this number. These threads consider the totality of all 
                 async execution requests across all async queues and each thread picks a unit of work 
                 from the oldest queue that has unstarted work units. The age of the queue is the 
                 timestamp of its creation. A queue is created whenever a query operator decides to split 
                 its work. This scheduling favors thus old queries over new ones. However any request is 
                 guaranteed one thread, that on which its initiating request is served.
                 <para>For a query processing workload, one should set AsyncQueueMaxThreads to the number 
                 	of cores minus the expected number of concurrent queries, this would in principle use 
                 	all cores or core threads. In practice for machines with large numbers of cores, e.g. 
                 	32 cores, a lower value may serve in practice better, subject to experimentation. For 
                 	a web crawling situation where threads are waiting for the network for most of the 
                 	time, a larger number will do better.</para>
                 </listitem>
               </itemizedlist>               
               <para>These parameters can be set at run time by a dba group user using the <link linkend="fn_dbf_set"><function>__dbf_set()</function></link> function.</para>
             </sect4>	
               <sect4 id="indexdefragm">
               <title>Index Defragmentation</title>
               <para>
When data is inserted into tables, database pages are split and typically pages end up not being fully utilized.
If data is inserted in ascending order of key value, which is often the case, space utilization is more efficient.
Still, gaps can be left by updates, deletions and page splitting.
Virtuoso has an autocompact feature which will take groups of adjacent dirty pages and see if it can fit
the same content on a smaller number of pages. It will rewrite the pages to save space before
writing these to disk. This operates automatically. Statistics on autocompaction are shown beside
the Read ahead status line of the result set of status ('');. The number of pages affected by
autocompaction and the number of resulting pages are shown. The numbers are cumulative since the start of the instance.
</para>
               <para>
Autocompact is non-locking and if pages are busy, they will not be touched. Only relatively old dirty pages,
about to be written to disk are considered for compaction, not interfering with the hottest part of the working set.
</para>
               <para>
The automatic compaction is not however effective if pages are updated singly, never making stretches of
consecutive dirty pages. Therefore a manual compaction function called DB.DBA.VACUUM () is also offered.
</para>
               <para>
The vacuum stored procedure gets an optional table and index name and will read the index from beginning to end.
If neither argument is given, all indices of all tables will be compacted. If only the table is given, all
indices of this table will be compacted.
</para>
               <para>
If consecutive leaves can be fit on fewer pages than they now occupy, this will rewrite them and free the pages left over.
This does however require transient space since the pages are not really replaced until the next checkpoint, hence a
vacuum operation can run out of disk. Using the checkpoint statement to force a checkpoint will free the space.
</para>
               <para>
The effects and need for explicitly vacuuming a database can be assessed with the DB.DBA.SYS_INDEX_SPACE_STATS view.
</para>
               <para>Running:
</para>
<programlisting>
select * from DB..SYS_INDEX_SPACE_STATS order by ISS_PAGES desc;
</programlisting>
               <para>
produces a result set with the most space consuming index on top. ISS_PAGES is the total count of pages.
ISS_ROW_BYTES is the byte count of the rows. If dividing the total count of bytes by the count of pages is much
below 8172, (8K - 20), chances are that vacuuming the index may save space. Note that blobs are not affected by vacuuming.
If the blobs are small enough to fit on the row as normal strings they are already there.
Otherwise they occupy the needed number of pages and cannot be made more compact.
</para>
               <para>
Note that querying the SYS_INDEX_SPACE_STATS view will always read through all the allocated pages of the database
and may take a while. The operation is not locking. Only the state as of the last checkpoint will be shown, hence
it is a good idea to run the checkpoint statement before querying this view.
</para>
               <para>
Examples:
</para>
<programlisting>
DB..VACUUM ();
-- Compact all tables and indices of the Virtuoso instance
</programlisting>
<programlisting>
Db..VACUUM ('WS.%');
-- compact all tables of the WS. qualifier
</programlisting>
<programlisting>
DB..VACUUM ('DB.DBA.RDF_QUAD', 'RDF_QUAD_PGOS');
-- compact the rdf_quad_pgos index of the rdf_quad table.
</programlisting>
               <para>
Virtuoso has an autocompact feature.
</para>
</sect4>
</sect3>

	<sect3 id="COMMANDLINE">
		<title>Server Startup Command Line Options</title>
		<sect4 id="SERVER">
			<title>Virtuoso Server</title>
			<para>
This section presents the command line switches of the Virtuoso
server executable.  Depending on the model and virtual database middleware the
server will have different names, all starting with virtuoso-.  All these however
have the same options for UNIX systems and slightly different for Windows platform.
</para>

<para>
    on Windows platform are available following server command line options:
</para>
<programlisting><![CDATA[
Usage:
  virtuoso-odbc-t.exe [-clnCbDARf---dSIMKmrd] [+configfile arg] [+licensefile arg]
                  [+no-checkpoint] [+checkpoint-only] [+backup-dump]
                  [+crash-dump] [+crash-dump-data-ini arg]
                  [+restore-crash-dump] [+foreground] [+pwdold arg]
                  [+pwddba arg] [+pwddav arg] [+debug] [+service arg]
                  [+instance arg] [+mode arg] [+dumpkeys arg] [+manual]
                  [+restore-backup arg] [+debug]
  +configfile            specify an alternate configuration file to use,
			or a directory where virtuoso.ini can be found
  +licensefile           specify an alternate license file to use,
			or a directory where virtuoso.ini can be found
  +no-checkpoint         do not checkpoint on startup
  +checkpoint-only       exit as soon as checkpoint on startup is complete
  +backup-dump           dump database into the transaction log, then exit
  +crash-dump            dump inconsistent database into the transaction log,
			then exit
  +crash-dump-data-ini   specify the DB ini to use for reading the data to dump
  +restore-crash-dump    restore from a crash-dump
  +foreground            run in the foreground
  +pwdold                Old DBA password
  +pwddba                New DBA password
  +pwddav                New DAV password
  +debug                 allocate a debugging console
  +service               specify a service action to perform
  +instance              specify a service instance to start/stop/create/delete
  +mode                  specify mode options for server startup (onbalr)
  +dumpkeys              specify key id(s) to dump on crash dump (default : all)
  +manual                specify when create a service to make it for manual startup
  +restore-backup        restore from online backup
  +debug                 Show additional debugging info

The argument to the +service option can be one of the following options
  start         start a service instance
  stop          stop a service instance
  create        create a service instance
  screate       create a service instance without deleting the existing one
  delete        delete a service instance
  list          list all service instances
]]></programlisting>
<para>
    The below are switches for server for UNIX platforms:
</para>
<programlisting><![CDATA[
Usage:
  virtuoso-iodbc-t [-fclnCbDARwMKr---d] [+foreground] [+configfile arg]
                   [+licensefile arg] [+no-checkpoint] [+checkpoint-only]
                   [+backup-dump] [+crash-dump] [+crash-dump-data-ini arg]
                   [+restore-crash-dump] [+wait] [+mode arg] [+dumpkeys arg]
                   [+restore-backup arg] [+pwdold arg] [+pwddba arg]
                   [+pwddav arg] [+debug]
  +foreground            run in the foreground
  +configfile            use alternate configuration file
  +licensefile           use alternate license file
  +no-checkpoint         do not checkpoint on startup
  +checkpoint-only       exit as soon as checkpoint on startup is complete
  +backup-dump           dump database into the transaction log, then exit
  +crash-dump            dump inconsistent database into the transaction log, then exit
  +log6                  If you're starting with a Virtuoso 5 server, and migrating to a Virtuoso 6 or
                         later server, append +log6 after +backup-dump or +crash-dump.
                         Note: The extra +log6 argument is not needed, and may have unexpected effect,
                         so please leave it off if starting with a Virtuoso 6 server and moving to
                         Virtuoso 6 or later.
  +crash-dump-data-ini   specify the DB ini to use for reading the data to dump
  +restore-crash-dump    restore from a crash-dump
  +wait                  wait for background initialization to complete
  +mode                  specify mode options for server startup (onbalr)
  +dumpkeys              specify key id(s) to dump on crash dump (default : all)
  +restore-backup        restore from online backup
  +pwdold                Old DBA password
  +pwddba                New DBA password
  +pwddav                New DAV password
  +debug                 Show additional debugging info
]]></programlisting>

			<para>
The <emphasis>+crash-dump</emphasis> option will make use of the segmented log
defined in virtuoso.ini for storing the recovery log.  See
<link linkend="vdbrecovery">Crash Recovery</link> and virtuoso.ini below for
more information.  The other options will not use the segmented log.
</para>
			<para>
The <emphasis>+restore-crash-dump</emphasis> option will alter the server
startup sequence so that the recovery log produced by +crash-dump will
be re-played correctly.
</para>
  <para>
The <emphasis>+mode</emphasis> option can be a combination of the following letters:
</para>
<simplelist>
<member><emphasis>o</emphasis> - only open the database and define the SYS_KEYS, SYS_COLS, SYS_KEY_PARTS, SYS_CHARSETS AND SYS_COLLATIONS system tables.</member>
<member><emphasis>n</emphasis> - leaves out the initialization of the system tables.</member>
<member><emphasis>b</emphasis> - do not process anything except the transaction log and system tables when restoring a crash dump (+restore-crash-dump).</member>
<member><emphasis>a</emphasis> - leaves out the initialization of the replication, users, compilation or stored and system procedures, as well
as the caching of the grants.</member>
<member><emphasis>l</emphasis> - write only the schema tables in the backup or crash dump.</member>
<member><emphasis>r</emphasis> - don't do the complete initialization (useful for performing a crash dump).</member>
</simplelist>
  <para>
On Unix platforms the executable will detach itself from the console and run in the background
as a daemon unless the <emphasis>+foreground</emphasis> switch is specified.
</para>
			<para>
For Windows NT and Windows 2000, the Virtuoso server will normally be installed
as a Windows service and can be started from the Control Panel or
automatically at system startup.
</para>
  <para>
	Ordinarily the Windows service will be a system process that runs in the background.
	If you want the Virtuoso service on Windows to allocate a debugging
	console the you can use the <emphasis>+debug</emphasis> (-d) switch.
	This switch is only applicable to starting a service.
	</para>
	<para>
	Virtuoso on Windows can be run directly from the command line using the
	<emphasis>+foreground</emphasis> (-f) switch.  The server will then start in
	the foreground of the current "cmd" session.  If this switch is not used
	then the executable on Windows will assume that you are attempting to start
	a Virtuoso service.
	</para>
	<para>
	Windows services can be created and removed from the system as required.  The
	default installation under Windows will create a service by the name:
	<emphasis>OpenLink Virtuoso VDBMS Server</emphasis>, and optionally another
	service with the name <emphasis>OpenLink Virtuoso VDBMS Server [demo]</emphasis>.
	The Demo service is a supplied demonstration database that can be installed.
	</para>
	<para>
	The following options are available to the <emphasis>+service</emphasis>
	switch for configuring Virtuoso services:
	</para>
	<simplelist>The argument to the +service option can be one of the following options
	  <member><emphasis>start</emphasis> start a service instance</member>
		<member><emphasis>stop</emphasis> stop a service instance</member>
		<member><emphasis>create</emphasis> create a service instance</member>
		<member><emphasis>screate</emphasis> create a service instance without deleting the existing one</member>
		<member><emphasis>delete</emphasis> delete a service instance</member>
		<member><emphasis>list</emphasis> list all service instances</member>
	</simplelist>
	<para>They are used with the <emphasis>+instance &lt;name&gt;</emphasis>
	where <emphasis>&lt;name&gt;</emphasis> is the instance name to configure a particular instance.  All
	instances are listed in the services applet, with their name in square brackets.</para>
	<para><emphasis>+service list</emphasis> can be used to obtain the list
	if services that are registered with Windows.</para>
	<para>For each service listed you can start, stop, or delete the service.</para>
	<para><emphasis>+service create</emphasis> can be used to create a new service.
	In this case you also need to specify other start up options that would be
	associated with the new service entry.  If you were using an alternative
	configuration file this must be specified using <emphasis>+configfile</emphasis>
	switch.</para>
  <note><title>Note:</title>
  <para>Make sure the Services Control Panel is closed, before attempting to
  modify services from the command line, otherwise locking may occur.</para></note>
		</sect4>
		</sect3>

<!-- ======================================== -->

&rendezvous;

<!-- ======================================== -->

<sect3 id="DBSTAT">
		<title>Server Status Monitoring</title>
		<para>The database status report is divided into 6 sections:</para>
		<simplelist>
			<member>Server</member>
			<member>Database</member>
			<member>Locks</member>
			<member>Clients</member>
			<member>Replication</member>
			<member>Index Usage</member>
		</simplelist>
		<sect4 id="Server">
			<title>Server</title>
			<para>
This section shows how many connections are open and how many threads
the process has and how many are running at the present time. This also
displays the number of requests that have been received but are not yet
running on any thread.
</para>
		</sect4>
		<sect4 id="Database">
			<title>Database</title>
			<screen>

  File size 203161600, 24800 pages, 259 free.
  7000 buffers, 6987 used, 3884 dirty 8 wired down, repl age 8251 .
  Disk Usage: 14246 reads avg 6 msec, 74% read last  10 s, 14457 writes,
    4 read ahead, batch = 5.
Gate:  2729 2nd in reads, 0 gate write waits, 3372547 in while read 0 busy scrap. 
Log = wi.log, 9851835 bytes
14950 pages have been changed since last backup (in checkpoint state)
Current backup timestamp: 0x0000-0x00-0x00
Last backup date: unknown
Clients: 18 connects, max 17 concurrent, 1024 licensed
RPC: 54441 calls, 17 pending, 17 max until now, 0 queued, 53988 burst reads (99%), 0 second 
Checkpoint Remap 7646 pages, 0 mapped back. 0 s atomic time.
    DB master 24800 total 259 free 7646 remap 3415 mapped back
   temp  200 total 196 free

</screen>
			<para>
The status consists of the following items:
</para>
			<formalpara>
				<title>File size:</title>
				<para>The database file size in bytes or 0 if the database consists
of statically allocated files. The total number of 8K database pages follows, then
the number of free pages. The number of buffers shown the total count
of 8K file cache buffers, followed by the number of used buffers and
the number of buffers that are dirty at the time. The wired down count
is normally zero but can be transiently other if pages are wired down
for processing by threads in the server.
</para>
			</formalpara>
			<formalpara>
				<title>Disk Usage:</title>
				<para>Shows the cumulative total number of reads and writes
and the average length of time spent inside the read system call for
the database files.</para>
				<para>
The percentage is the percentage of the real time spent inside read
between this status report and the previous status report. This may exceed
100% if several reads are taking place concurrently on different stripes
in a multi-file database.
</para>
			</formalpara>
			<formalpara>
				<title>The Gate:</title>
				<para>Lists concurrent events. The <emphasis>2nd in read</emphasis> is
the count of concurrent requests for the same page, the
<emphasis>gate write waits</emphasis> is the count of times a modify operation had to wait for
exclusive access to a page being read by another thread, the <emphasis>in while read</emphasis>
is the count of file cache hits that have taken place while a read system
call was in progress on another thread.
</para>
			</formalpara>
			<formalpara>
				<title>Databases</title>
				<para>
Thus section shows the count of pages, free pages, checkpoint remap and mapped back for the main database and the space for temporary data such as sort results and hash indices.
The page count is the total size, the free count is the count of free pages, the  checkpoint remap is the count of pages that occupy two pages in checkpoint space instead of one, the mapped back count is the number of pages that will   return to their original place in checkpoint space at the next checkpoint.  Understanding these is not necessary.
</para>
			</formalpara>
			<tip>
				<title>See:</title>
				<para>The Disk Configuration section for a discussion of checkpoint remapping.</para>
			</tip>
		</sect4>
		<sect4 id="Locks">
			<title>Locks</title>
			<para>
The lock section shows various locking statistics accumulated since the
server was started. The deadlock count is divided into deadlocks caused
by a situation where several transactions read a page and one wants to
get write access and all other deadlock situations. The first is called
2r1w deadlock in the report.
</para>
<para>

The lock section also shows the total number of threads running,
i.e. engaged in performing some operation for a SQL or web client.
The number of threads waiting is the number of running threads that
are presently waiting for a lock.  The number of threads in vdb is the
number of threads engaged in remote database operations or other
'slow' I/O, such as access to outside HTTP or SOAP services.

</para>
			<para>
All locks currently in effect are listed with the owners (a) and possibly
waiting transactions. The transactions are named after their client. A
log or replication replay transaction is here named &apos;INTERNAL&apos;.
</para>
		</sect4>
		<sect4 id="Clients">
			<title>Clients</title>
			<para>
Each connected client is listed with the number of bytes sent and received
from the client. The transaction status is either PENDING for OK or
BLOWN OFF or DELTA ROLLED BACK for a transaction killed by deadlock or
timeout. The locks owned by the transaction are listed following the
status. IE means exclusive and IS shared lock.
</para>
		</sect4>
		<sect4 id="Replication">
			<title>Replication</title>
			<para>
This section shows the server in question and a list of replication
accounts either provided or received by this server. Accounts where
the server name (left column) is the same as the server name are those
provided by this.
</para>
			<para>
The columns are server name, account name, last transaction number and
status. The status is OFF for a local account or a replicated account
where the remote is not available. It is SYNCING if a resync is in
progress, IN SYNC if the account is up to date or REMOTE DISCONNECTED if
there was a connection to a remote party which subsequently disconnected.
</para>

  <tip><title>See Also:</title>
    <para><link linkend="rdfgraphreplication">RDF Graph Replication</link></para>
  </tip>
		</sect4>
		<sect4 id="indexusage">
			<title>Index Usage</title>
			<para>
This part of the report summarizes the database&apos;s access statistics.
The output is a table with a row for each index in the database. Each
row is composed of the following columns:</para>
			<screen>
Table		The name of the table
Index		The name of the index. Same as the table for primary key.
Touches		The number of touches since startup. Each time the database
		engine looks at an entry of the index is counted as a touch.
		Not all touched entries are selected. For instance if the
		engine scans a table with non-indexed selection criteria it
		will touch each row but might select none.
Reads		The number of disk reads caused by reading this index.
%Miss		The percentage of touches that required a read. This can be
		over 100% since getting one entry may required more than one
		read if the top levels of the index are not in memory.
Locks		The number of times a lock is set on an entry of the index.
Waits		The number of times the engine has to wait for another
		transaction to finish in order to set a lock on this index.
%W		The percentage of waits of all locks set.
</screen>
			<para>
In interactive SQL
</para>
			<screen>
SQL&gt; status();
</screen>
			<para>Will print out the report.</para>
		</sect4>
		</sect3>
	<!-- ======================================== -->
	<sect3 id="oemrelabeling">
	<title>Re-labeling Server Executable on Win32 Platforms</title>
	<para>
The Virtuoso Service name can be altered using the key <emphasis>Win32ServiceName</emphasis> in the
<emphasis>Parameters</emphasis> section.  The default name is 'OpenLink Virtuoso VDBMS Server'
</para>

	<para>
To change the name of services:
</para>

<simplelist>
<member>stop the service</member>
<member>delete the service</member>
<member>change the name in file virtuoso.ini</member>
<member>create the service</member>
<member>start the service</member>
</simplelist>

<para>Services with old names must be deleted before creating service with the new name, i.e. with the
Win32ServiceName setting set to the current name of the service.
</para>
<para>
The name displayed in the ODBC Administrator, Setup and Configuration dialogs is taken from the driver section in the ODBCINST.
This can be directly edited in the registry using the regedt32 Windows utility, or a registry import file can be created which can be
applied by simply double-clicking the .reg file.  Always exercise extreme caution when making changes to the registry.
</para>
</sect3>

<sect3 id="dbsrcsecurity">
<title>Transport Level Security</title>

<!--
  <sect3 id="srvadmusrgrpman"><title>User &amp; Groups Management</title>
  </sect3>
-->

  <sect4 id="srvadmencryption"><title>Encryption</title>

    <para>
Virtuoso has the ability to encrypt it's CLI network connections using SSL.
The server listens on a separate port for SSL CLI connections and handles them just as
the normal CLI connections, vut now providing transport level security.
    </para>

  <sect5 id="srvsidesupport"><title>Server-side Support</title>

    <para>
Server side secure connections utilizes three parameters in the [Parameters] section of the virtuoso.ini:
  </para>

    <simplelist>
      <member><emphasis>SSLServerPort</emphasis> - Specifies the port on which the server listens for incoming SSL CLI requests.</member>
      <member><emphasis>SSLCertificate</emphasis> - The SSL certificate to use (same meaning as the SSLCertificate in HTTPServer section)</member>
      <member><emphasis>SSLPrivateKey</emphasis> - The server's private key (same meaning as the SSLCertificate in HTTPServer section)</member>
    </simplelist>

    <para>
These parameters should be all set in order to enable the SSL CLI server.
  </para>
    <para>
If SSLServerPort is not specified, then the Virtuoso server ignores the other two and does not listen for
SSL CLI connections.
  </para>
    <para>
If a non-SSL connection is attempted to the SSL server port, the server rejects the connection.
If an SSL connection is attempted against the non-SSL port the server rejects the connection.
  </para>
  </sect5>

  <sect5 id="clisidesupport"><title>Client-side Support</title>

    <para>
The client does not require any SSL-specific files (like Certificates or Private keys)
in the SSL connection process.
  </para>

    <formalpara><title>Native Clients (e.g. ISQL)</title></formalpara>
      <para>
There is an custom ODBC connect option SQL_ENCRYPT_CONNECTION (=5004) supported by the Virtuoso CLI.
It should be set before issuing the SQLConnect call.  Values are 'NULL' (no encryption - default), '1'
(encryption with no server X509 certificate checking and no X509 certificate sent to the server) and
a valid file path to a PKCS#12 certificate file (protected with the same password as the one used
to log in.  Note that with the iODBC/ODBC clients this connect option is not applicable since the driver
managers don't cache or pass through the custom ConnectOptions set before connecting to the data source.
The ISQL has an additional option (-E) to do encrypted connects using the encryption option '1')
and -X &lt;file&gt; to set the above option to the file supplied.
    </para>

<formalpara><title>ODBC &amp; iODBC Driver</title></formalpara>
      <para>
The drivers support an additional DSN attribute:
  </para>

<programlisting>
ENCRYPT=&lt;string&gt;
</programlisting>

      <para>
If this attribute is not specified then it defaults to "No".
    </para>
      <para>
It has the same meaning as the SQL_ENCRYPT_CONNECTION  options (see above).
If this is not specified then it defaults to NULL.
</para>
  <para>
The corresponding iODBC odbc.ini &amp; ODBC Registry DSN attribute name is:
    </para>
<programlisting>
&quot;Encrypt&quot;= &lt;string&gt;
</programlisting>

      <para>
The Windows Connect &amp; Setup dialogs have an additional wizard page to configure encryption.
    </para>
    </sect5>
  <sect5 id="x509certsupport"><title>X509 Certificate Support</title>
  <para>
Virtuoso supports X509 certificate validation: server side for both ODBC and HTTPS
connections, and client side for the ODBC connections.
</para>
 <formalpara><title>Server Side</title></formalpara>
    <para>
To enable this option there are three new INI file parameters added the HTTPServer section for the HTTPS,
and the Parameters section for ODBC):
  </para>

<simplelist>
  <member><emphasis>X509ClientVerify</emphasis> - Whether the server will require
X509 certificates from the browsers.  If set to 1 a client should send a X509 certificate which will be
validated against the server CA list.
</member>

  <member><emphasis>X509ClientVerifyDepth</emphasis> - Specifies how deep the client certificate
verification process will traverse the Issuer chain before giving up.  The default value of 0
means that only verification of the client certificate itself being in the server's CA list is
performed.  Setting this option to -1 will ignore the depth checks.
</member>

    <member><emphasis>X509ClientVerifyCAFile</emphasis> - a PEM (base64) file of all the
X509 certificates of the Certification Authorities (CA) which the server will use for verifying the
client's client certificate.  A list of these will be sent to the client as a part of the
SSL handshake so the client will know which certificate to send.
</member>
</simplelist>


 <formalpara><title>ODBC Client Side</title></formalpara>
    <para>
In order for verification of the server certificate to take place a PKCS#12 file
should be supplied to the ODBC client.  It will use the CA list in this PKCS#12 to
verify the server certificate.  It will set the verification depth to -1 (unlimited)
while performing such a check.
</para>
    <para>
If the server certificate is not verified correctly it will refuse to connect to the server.
When the ENCRYPT parameter is set to "1" (do SSL without X509 validation) the client will return a
SQL_SUCCESS_WITH_INFO in SQLConnect/SQLDriverConnect with the Server's certificate subject
and the verification result as the server will always send it's X509 certificate to the
client as a part of the SSL connect handshake.
</para>
    <para>
If the PKCS#12 file is supplied the ODBC client will try to open it using the
login password.  In order for the file to be successfully opened it should be encrypted with
the same password used for logging in.
</para>
    <para>
Normally when exporting a PKCS#12 file from other programs it will contain only the
CAs of the Certificate validation chain.  This means that client and server certificates should have
common CA in their certificate chains in order to be used for ODBC X509 validation.  The
client certificate from the PKCS#12 file will not take place in the server
certificate validation process.
</para>

<tip><title>See Also:</title>
<para><link linkend="fn_get_certificate_info"><function>get_certificate_info()</function></link></para></tip>

      </sect5>
    </sect4>

<sect4 id="acl"><title>File System Access Control Lists</title>
	<para>
Access Control Lists (ACL) are used to restrict file system access.
</para>
	<para>
These lists are maintained in the Virtuoso INI file under the Parameters section with entries such as:
</para>

<programlisting>
DirsAllowed = &lt;path&gt; [, &lt;path&gt;]
DirsDenied = &lt;path&gt; [, &lt;path&gt;]

&lt;path&gt; := &lt;absolute_path&gt; or &lt;relative_path&gt;
</programlisting>

<note><title>Note:</title>
<para>A relative path is relative to the servers current working directory.</para></note>

<para>The Virtuoso ISQL utility can be used to check  the Server DirsAllowed params
as follows:</para>

<programlisting><![CDATA[
SQL> select server_root (), virtuoso_ini_path ();
]]></programlisting>

<para>The above should show in the result the server working directory and INI
file name.</para>

<para>Also you can check the relevant INI setting by running following
statement via ISQL command line utility:</para>

<programlisting><![CDATA[
SQL> select cfg_item_value (virtuoso_ini_path (), 'Parameters',
'DirsAllowed');
]]></programlisting>

<tip><title>See Also:</title>
<para><link linkend="VIRTINI">Virtuoso INI File Configuration</link></para></tip>

	<para>
ACL's work in the following way:
</para>

<simplelist>
<member>All paths are converted from relative to absolute paths.</member>
<member>The path beginning with &lt;http_root&gt; is always allowed.</member>
<member>All DB files are always access denied (.db, db segments, .trx, log segments, .ini specified in INI file etc.)</member>
<member>If a path is not allowed or exists as denied then access to the file is rejected. </member>
<member>If a requested path is allowed and not in denied then access is allowed.</member>
<member>ACL's are inherited.  If a directory allows access so does its subdirectories.</member>
</simplelist>

	<para>
The following functions are restricted by file Access Control Lists (ACL) in the virtuoso.ini file:
</para>

<simplelist>
<member><link linkend="fn_file_to_string">file_to_string</link></member>
<member><link linkend="fn_file_to_string_output">file_to_string_output</link></member>
<member><!-- link linkend="fn_sys_mkdir" -->sys_mkdir<!-- /link --></member>
<member><!-- link linkend="fn_sys_dirlist" -->sys_dirlist<!-- /link --></member>
<member><link linkend="fn_string_to_file">string_to_file</link></member>
<member><!-- link linkend="fn_cfg_write" -->cfg_write<!-- /link --></member>
</simplelist>

<note><title>Note:</title>
<para>the cfg_write function has restrictions against changing file access control lists in ini file</para>
</note>

</sect4>
</sect3>

<!-- ########################################### -->

<!-- &dbpump; -->

</sect2>

<!-- ########################################### -->

&vdbconcepts;

&usermodel;

&vaddistr;

&backups;

&perfdiag;

&ptune;


<!-- ########################################### -->
</sect1>

&adminui;

&fault;

</chapter>