-
Notifications
You must be signed in to change notification settings - Fork 83
/
serverCommunityEditionInstall.xml
3166 lines (3057 loc) · 137 KB
/
serverCommunityEditionInstall.xml
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
<project>
<shortName>altibase</shortName>
<fullName>Altibase Server ${altibase_base_version}.${altibase_tagset_version}.${altibase_tag_version}</fullName>
<version>${altibase_base_version}</version>
<installerFilename>${product_shortname}-CE-${altibase_product_type}-${altibase_base_version}.${altibase_tagset_version}.${altibase_tag_version}-${altibase_target_os}-${altibase_cfg_cpu_value}-${altibase_compile_bit}bit-${altibase_build_mode}.${platform_exec_suffix}</installerFilename>
<debugLevel>4</debugLevel>
<leftImage>ut/Installer/images/left_side600.png</leftImage>
<logoImage>ut/Installer/images/logo.png</logoImage>
<preBuildActionList>
<actionGroup>
<explanation>cp additional files</explanation>
<actionList>
<copyFile>
<destination>${altibase_build_dir}/bin</destination>
<origin>${additional_files_dir}/altibase_java/altilinker.jar</origin>
</copyFile>
<copyFile>
<destination>${altibase_build_dir}/lib</destination>
<origin>${additional_files_dir}/altibase_java/Altibase.jar</origin>
</copyFile>
<copyFile>
<destination>${altibase_build_dir}/lib</destination>
<origin>${additional_files_dir}/altibase_java/Altibase${altibase_major_version}_${altibase_minor_version}.jar</origin>
</copyFile>
<copyFile>
<destination>${altibase_build_dir}/lib</destination>
<origin>${additional_files_dir}/altibase_java/Altibase_t.jar</origin>
</copyFile>
</actionList>
</actionGroup>
<actionGroup>
<explanation>check os version for hp</explanation>
<actionList>
<writeFile>
<encoding>utf-8</encoding>
<path>~/.get_os_version.sh</path>
<text>${'#!bin/sh'}
${'uname -r | awk -F'.' '{print "MAJOR=" $2}' > .get_os_version.tmp'}
${'uname -r | awk -F'.' '{print "MINOR=" $3}' >> .get_os_version.tmp'}</text>
</writeFile>
<runProgram>
<program>sh</program>
<programArguments>~/.get_os_version.sh</programArguments>
<workingDirectory>~</workingDirectory>
</runProgram>
<propertiesFileGet>
<file>~/.get_os_version.tmp</file>
<key>MAJOR</key>
<variable>hp_build_major_ver</variable>
</propertiesFileGet>
<propertiesFileGet>
<file>~/.get_os_version.tmp</file>
<key>MINOR</key>
<variable>hp_build_minor_ver</variable>
</propertiesFileGet>
<deleteFile>
<path>hp_build_minor_ver</path>
</deleteFile>
<deleteFile>
<path>~/.get_os_version.tmp</path>
</deleteFile>
</actionList>
<ruleList>
<platformTest>
<type>hpux</type>
</platformTest>
</ruleList>
</actionGroup>
<actionGroup>
<explanation>set Diagnostic option</explanation>
<actionList>
<setInstallerVariableFromRegEx>
<name>temp_variable</name>
<pattern>_[a-zA-Z0-9]+$</pattern>
<substitution></substitution>
<text>${altibase_tag_version}</text>
</setInstallerVariableFromRegEx>
<setInstallerVariable>
<name>project.installerFilename</name>
<value>${product_shortname}-${altibase_product_type}-${altibase_base_version}.${altibase_tagset_version}.${temp_variable}-${altibase_target_os}-${altibase_cfg_cpu_value}-${altibase_compile_bit}bit-${altibase_dist_type}-R${altibase_revision_num}.${platform_exec_suffix}</value>
</setInstallerVariable>
<setInstallerVariable>
<name>altibase_dist_type</name>
<value> - DIAGNOSTIC Patch</value>
</setInstallerVariable>
</actionList>
<ruleList>
<compareText>
<logic>equals</logic>
<text>DIAGNOSTIC</text>
<value>${altibase_dist_type}</value>
</compareText>
</ruleList>
</actionGroup>
</preBuildActionList>
<initializationActionList>
<setInstallerVariable name="project.enableRollback" value="0">
<ruleList>
<platformTest type="hpux"/>
</ruleList>
</setInstallerVariable>
</initializationActionList>
<preInstallationActionList>
<actionGroup>
<explanation>bit check</explanation>
<actionList>
<setInstallerVariable>
<name>kernel_guide_head</name>
<value>It is first necessary to set your system environment to ensure that Altibase will run properly. Before installing Altibase, the kernel parameter values must be set using the root user account. The kernel parameter values may be modified after installation; however, they must be set prior to starting Altibase.
Please refer to the installation manual and pre_install.sh script file.
${'(pre_install.sh: '$Altibase_install_dir'/install/pre_install.sh)'}
</value>
</setInstallerVariable>
<if>
<explanation>bit check HP</explanation>
<actionList>
<runProgram>
<program>getconf</program>
<programArguments>KERNEL_BITS > .osbit.tmp </programArguments>
<workingDirectory>~</workingDirectory>
</runProgram>
<setInstallerVariable>
<name>current_os</name>
<value>hpux</value>
</setInstallerVariable>
<setInstallerVariable>
<name>kernel_guide_val</name>
<value>
================ HP UX ================
[ Recommended Kernel Parameter Values ]
shmmax = 2147483648
shmmni = 500
shmseg = 200
semmap = 1001
semmni = 1000
semmns = 4096
semmnu = 1000
semume = 1000
max_thread_proc = 600
maxusers = 64
dbc_min_pct = 5
dbc_max_pct = 5
maxdsiz = 1073741824
maxdsiz_64bit = 4294967296 # applies only to 32-bit applications
# maxdsiz_64bit
The Altibase server needs sufficient memory space in order to function properly.
Please set the value to 70% of system memory or greater.
# dbc_min_pct and dbc_max_pct
dbc_min_pct and dbc_max_pct were renamed filecache_min and filecache_max, respectively, in HP-UX 11.31 and subsequent releases.
[ How to modify kernel parameter values ]
/usr/sbin/kmtune -s shmmax=2147483648
/usr/sbin/kmtune -s shmmni=500
/usr/sbin/kmtune -s shmseg=200
/usr/sbin/kmtune -s semmap=1001
/usr/sbin/kmtune -s semmni=1000
/usr/sbin/kmtune -s semmns=4096
/usr/sbin/kmtune -s semmnu=1000
/usr/sbin/kmtune -s semume=1000
/usr/sbin/kmtune -s max_thread_proc=600
/usr/sbin/kmtune -s maxusers=64
/usr/sbin/kmtune -s dbc_min_pct=5
/usr/sbin/kmtune -s dbc_max_pct=5
/usr/sbin/kmtune -s maxdsiz=1073741824 # applies only to 32-bit applications
/usr/sbin/kmtune -s maxdsiz_64bit=4294967296
# maxdsiz_64bit
The Altibase server needs sufficient memory space in order to function properly.
Please set the value to 70% of system memory or greater.
# dbc_min_pct and dbc_max_pct
dbc_min_pct and dbc_max_pct were renamed filecache_min and filecache_max, respectively, in HP-UX 11.31 and subsequent releases.
These values must be set in order for Altibase to operate properly.
They must be set such that they are suitable for the system configuration.
=======================================
</value>
</setInstallerVariable>
</actionList>
<conditionRuleList>
<platformTest>
<type>hpux</type>
</platformTest>
</conditionRuleList>
</if>
<if>
<explanation>bit check LINUX</explanation>
<actionList>
<runProgram>
<program>getconf</program>
<programArguments>LONG_BIT > .osbit.tmp</programArguments>
<workingDirectory>~</workingDirectory>
</runProgram>
<setInstallerVariable>
<name>current_os</name>
<value>linux</value>
</setInstallerVariable>
<setInstallerVariable>
<name>kernel_guide_val</name>
<value>
================ LINUX ================
[ How to modify kernel parameter values ]
echo 512 32000 512 512 > /proc/sys/kernel/sem
echo 872415232 > /proc/sys/kernel/shmall
# shmall
If it is desired to use Altibase in shared memory mode, the value of 'shmall' must be set. This value determines the maximum size of an Altibase database.
These values must be set in order for Altibase to operate properly.
They must be set such that they are suitable for the system configuration.
=====================================
</value>
</setInstallerVariable>
</actionList>
<conditionRuleList>
<platformTest>
<type>linux</type>
</platformTest>
</conditionRuleList>
</if>
<if>
<explanation>bit check AIX</explanation>
<actionList>
<runProgram>
<program>getconf</program>
<programArguments>KERNEL_BITMODE > .osbit.tmp</programArguments>
<workingDirectory>~</workingDirectory>
</runProgram>
<setInstallerVariable>
<name>current_os</name>
<value>aix</value>
</setInstallerVariable>
<setInstallerVariable>
<name>kernel_guide_val</name>
<value>
================ AIX ================
[ Recommended Kernel Parameter Values ]
fsize = -1
data = -1
rss = -1
Maximum number of processes allowed per user
Must be greater than the value set using the Altibase property MAX_CLIENT
Size of the File System BufferCache
Must be less than 20% of total memory
AIO = Available
AMO = AIX version 5.2 ML04 and above
lru_file_repage=0
strict_maxclient%=0
= Versions prior to AIX version 5.2 ML04
lru_file_repage=0
[ How to modify kernel parameter values ]
Edit /etc/security/limits file
Set fsize, data and rss variables.
Run 'smit'
1) System Environments
System Environments -> Change / Show Characteristics Of Operating System
Change:
Maximum number of processes allowed per user
Must be greater than the value set using the Altibase MAX_CLIENT property
Size of the File System BufferCache
Must be less than 20% of total memory.
2) AIO
Device -> Asynchronous I/O -> Posix Asynchronous I/O
-> Configure Defined Asynchronous I/O
Change: posix_aio0=Available
3) AMO
Performance & Resource Scheduling -> Tuning Kernel & Network Parameters
-> Tuning Virtual Memory Manager, File System and Logical Volumes
Manager Parameters ->
+ List All Characteristics of Current Parameters --- Check
+ Change / Show Current Parameters --- Current Changes
+ Change / Show Parameters for Next Boot --- Change upon Reboot
When using AIX version 5.2 ML04 or above:
Change: lru_file_repage=0
strict_maxclient%=0
The case of Versions prior to AIX version 5.2 ML04:
Change: lru_file_repage=0
These values must be set in order for Altibase to operate properly.
They must be set such that they are suitable for the system configuration.
===================================
</value>
</setInstallerVariable>
</actionList>
<conditionRuleList>
<platformTest>
<type>aix</type>
</platformTest>
</conditionRuleList>
</if>
<if>
<explanation>bit check SUN</explanation>
<actionList>
<runProgram>
<program>isainfo</program>
<programArguments>-kv | cut -f1 -d "-" > .osbit.tmp</programArguments>
<workingDirectory>~</workingDirectory>
</runProgram>
<setInstallerVariable>
<name>current_os</name>
<value>solaris</value>
</setInstallerVariable>
<setInstallerVariable>
<name>kernel_guide_val</name>
<value>
================ SunOS ================
[ Recommended Kernel Parameter Values ]
When Altibase uses the file system cache rather than direct I/O, the priority_paging parameter (related to the file system cache on Sun systems) must be set in order to prevent issues related to excessive memory use.
(Applies only to SunOS version 5.7 and above.)
shminfo_shmmax = 2147483648
shminfo_shmmin = 1
shminfo_shmmni = 500
shminfo_shmseg = 200
seminfo_semmns = 8192
seminfo_semmni = 5029
seminfo_semmsl = 2000
seminfo_semmap = 5024
seminfo_semmnu = 1024
seminfo_semopm = 512
seminfo_semume = 512
rlim_fd_max = 4096
rlim_fd_cur = 2048
[ How to modify kernel parameter values ]
= Solaris 10 =
cf) projadd -U [user name] -K "project.max-sem-ids=(priv,5029,deny)" user.[user name]
cf) projmod -a -K "project.max-shm-memory=(priv, real memory max value,deny)" user.[user name]
# Default Values for sem- and shm-related Parameters
projadd -U altibase -K "project.max-sem-ids=(priv,5029,deny)" user.altibase
projmod -a -K "project.max-shm-memory=(priv, real memory max value,deny)" user.altibase
projmod -a -K "process.max-sem-nsems=(priv,2000,deny)" user.altibase
projmod -a -K "process.max-sem-ops=(priv,512,deny)" user.altibase
projmod -a -K "project.max-shm-ids=(priv,1024,deny)" user.altibase
# Message Queue-related Parameters
projmod -a -K "project.max-msg-messages=(priv,100,deny)" user.altibase
projmod -a -K "project.max-msg-ids=(priv,100,deny)" user.altibase
projmod -a -K "process.max-msg-qbytes=(priv,1048576,deny)" user.altibase
= is not Solaris 10 =
Edit /etc/system file.
# Default Values for sem- and shm-related Parameters
set shmsys:shminfo_shmmax = 2147483648
set shmsys:shminfo_shmmin = 1
set shmsys:shminfo_shmmni = 500
set shmsys:shminfo_shmseg = 200
set semsys:seminfo_semmns = 8192
set semsys:seminfo_semmni = 5029
set semsys:seminfo_semmsl = 2000
set semsys:seminfo_semmap = 5024
set semsys:seminfo_semmnu = 1024
set semsys:seminfo_semopm = 512
set semsys:seminfo_semume = 512
set rlim_fd_max = 4096
set rlim_fd_cur = 2048
# Message Queue-related Parameters
projmod -a -K "project.max-msg-messages=(priv,100,deny)" user.altibase
projmod -a -K "project.max-msg-ids=(priv,100,deny)" user.altibase
projmod -a -K "process.max-msg-qbytes=(priv,1048576,deny)" user.altibase
These values must be set in order for Altibase to operate properly.
They must be set such that they are suitable for the system configuration.
=====================================
</value>
</setInstallerVariable>
</actionList>
<conditionRuleList>
<platformTest>
<type>solaris</type>
</platformTest>
</conditionRuleList>
</if>
<readFile>
<name>current_os_bit</name>
<path>~/.osbit.tmp</path>
<removeBOM>1</removeBOM>
</readFile>
<runProgram>
<program>rm</program>
<programArguments>-rf .osbit.tmp</programArguments>
<workingDirectory>~</workingDirectory>
</runProgram>
<if>
<explanation>OS BIT / pkg BIT check</explanation>
<actionList>
<if>
<explanation>compare- os-package bit (os64bit)</explanation>
<actionList>
<showWarning>
<text>This package is not suitable for this environment.
OS : 64-bit
Package : 32-bit</text>
</showWarning>
</actionList>
<conditionRuleList>
<compareText>
<logic>equals</logic>
<text>64</text>
<value>${current_os_bit}</value>
</compareText>
</conditionRuleList>
</if>
<if>
<explanation>compare- os-package bit (os32bit)</explanation>
<actionList>
<showWarning>
<text>This package is not suitable for this environment.
OS : 32-bit
Package : 64-bit</text>
</showWarning>
<exit>
<exitCode>1</exitCode>
</exit>
</actionList>
<conditionRuleList>
<compareText>
<logic>equals</logic>
<text>32</text>
<value>${current_os_bit}</value>
</compareText>
</conditionRuleList>
</if>
<if>
<explanation>compare- os-package bit</explanation>
<actionList>
<showWarning>
<text>OS bit type check failure.
: ${current_os_bit}</text>
</showWarning>
</actionList>
<conditionRuleList>
<compareText>
<logic>equals</logic>
<text>32</text>
<value>${current_os_bit}</value>
</compareText>
<compareText>
<logic>equals</logic>
<text>64</text>
<value>${current_os_bit}</value>
</compareText>
</conditionRuleList>
</if>
</actionList>
<conditionRuleList>
<compareValues>
<logic>equals</logic>
<negate>1</negate>
<value1>${current_os_bit}</value1>
<value2>${altibase_compile_bit}</value2>
</compareValues>
</conditionRuleList>
</if>
</actionList>
</actionGroup>
</preInstallationActionList>
<readyToInstallActionList>
<if>
<explanation>full or patch install</explanation>
<actionList>
<propertiesFileGet>
<file>${patch_info_file}</file>
<key>PRODUCT_SIGNATURE</key>
<variable>read_altibase_product_signature</variable>
<onErrorActionList>
<showWarning>
<text>Can't read ALTIBASE Product signature.</text>
</showWarning>
<exit>
<exitCode>1</exitCode>
</exit>
</onErrorActionList>
</propertiesFileGet>
<if>
<explanation>signature valiation</explanation>
<actionList>
<showWarning>
<text>The product signature of the patch you are trying to install
${altibase_product_signature} doesn't match
the product signature of the previously installed
${read_altibase_product_signature}.
The patch installation will be terminated.</text>
</showWarning>
<exit>
<exitCode>1</exitCode>
</exit>
</actionList>
<conditionRuleList>
<compareText>
<logic>equals</logic>
<negate>1</negate>
<text>${altibase_product_signature}</text>
<value>${read_altibase_product_signature}</value>
</compareText>
</conditionRuleList>
</if>
</actionList>
<conditionRuleList>
<compareText>
<logic>equals</logic>
<text>patchpkg</text>
<value>${select_install_type}</value>
</compareText>
</conditionRuleList>
<elseActionList>
<if>
<explanation>APatch Exist</explanation>
<actionList>
<throwError>
<text>You can't install this on ${installdir}. Remove or uninstall it prior to installation.</text>
</throwError>
</actionList>
<conditionRuleList>
<fileExists>
<path>${patch_dir}</path>
</fileExists>
</conditionRuleList>
</if>
</elseActionList>
</if>
</readyToInstallActionList>
<postInstallationActionList>
<substitute>
<encoding>utf-8</encoding>
<files>${installdir}/install/post_install.sh</files>
<type>regexp</type>
<substitutionList>
<substitution>
<pattern>INSTALLDIR=XXXX</pattern>
<value>INSTALLDIR=${installdir}</value>
</substitution>
</substitutionList>
</substitute>
<if>
<explanation>FULL : make propery file</explanation>
<actionList>
<actionGroup>
<explanation>set post_install.sh file</explanation>
<actionList>
<setInstallerVariableFromScriptOutput>
<exec>${installdir}/install/post_install.sh</exec>
<execArgs>setenv a</execArgs>
<name>set_env_result</name>
<workingDirectory>${installdir}/install/</workingDirectory>
</setInstallerVariableFromScriptOutput>
<if>
<explanation>check createdb_option</explanation>
<actionList>
<substitute>
<encoding>utf-8</encoding>
<files>${installdir}/install/post_install.sh</files>
<type>regexp</type>
<substitutionList>
<substitution>
<pattern># create DB code</pattern>
<value>ADMIN="${'${ALTIBASE_HOME}'}/bin/isql -u sys -p manager -sysdba -noprompt"
${'${ADMIN}'} << EOF
startup process;
create database ${altibase_user_dbname} INITSIZE=${init_db_size} ${archivelog_values} character set ${db_char_set} national character set ${national_char_set};
alter database mydb service;
start ?/packages/catproc.sql;
shutdown abort;
quit;
EOF</value>
</substitution>
<substitution>
<pattern>DBCREATE_FLAG=0</pattern>
<value>DBCREATE_FLAG=1</value>
</substitution>
</substitutionList>
</substitute>
</actionList>
<conditionRuleList>
<compareText>
<logic>equals</logic>
<text>yes</text>
<value>${createdb_option}</value>
</compareText>
</conditionRuleList>
</if>
</actionList>
</actionGroup>
<actionGroup>
<actionList>
<copyFile>
<destination>${installdir}/conf/aexport.properties</destination>
<origin>${installdir}/conf/aexport.properties.sample</origin>
</copyFile>
<copyFile>
<destination>${installdir}/conf/altibase.properties</destination>
<origin>${installdir}/conf/altibase.properties.sample</origin>
</copyFile>
<substitute>
<encoding>utf-8</encoding>
<files>${installdir}/conf/altibase.properties</files>
<type>regexp</type>
<substitutionList>
<substitution>
<pattern>mydb</pattern>
<value>${altibase_user_dbname}</value>
</substitution>
<substitution>
<pattern>20300(\s)*#(\s)*PORT_NO</pattern>
<value>${altibase_server_port_no} # PORT_NO</value>
</substitution>
<substitution>
<pattern>134217728(\s)*#(\s)*BUFFER_AREA_SIZE</pattern>
<value>${buffer_area_size} # BUFFER_AREA_SIZE</value>
</substitution>
<substitution>
<pattern>\?/logs(\s)*#(\s)*LOGANCHOR_DIR1</pattern>
<value>${loganchor_dir1} # LOGANCHOR_DIR1</value>
<ruleList>
<compareText>
<logic>does_not_equal</logic>
<text>${installdir}/logs</text>
<value>${loganchor_dir1}</value>
</compareText>
</ruleList>
</substitution>
<substitution>
<pattern>\?/logs(\s)*#(\s)*LOGANCHOR_DIR2</pattern>
<value>${loganchor_dir2} # LOGANCHOR_DIR2</value>
<ruleList>
<compareText>
<logic>does_not_equal</logic>
<text>${installdir}/logs</text>
<value>${loganchor_dir2}</value>
</compareText>
</ruleList>
</substitution>
<substitution>
<pattern>\?/logs(\s)*#(\s)*LOGANCHOR_DIR3</pattern>
<value>${loganchor_dir3} # LOGANCHOR_DIR3</value>
<ruleList>
<compareText>
<logic>does_not_equal</logic>
<text>${installdir}/logs</text>
<value>${loganchor_dir3}</value>
</compareText>
</ruleList>
</substitution>
<substitution>
<pattern>\?/logs(\s)*#(\s)*LOG_DIR </pattern>
<value>${log_dir} # LOG_DIR </value>
<ruleList>
<compareText>
<logic>does_not_equal</logic>
<text>${installdir}/logs</text>
<value>${log_dir}</value>
</compareText>
</ruleList>
</substitution>
<substitution>
<pattern>\?/dbs(\s)*#(\s)*Memory(\s)*DB(\s)*Directory</pattern>
<value>${mem_db_dir} # Memory DB Directory</value>
<ruleList>
<compareText>
<logic>does_not_equal</logic>
<text>${installdir}/dbs</text>
<value>${mem_db_dir}</value>
</compareText>
</ruleList>
</substitution>
<substitution>
<pattern>\?/dbs(\s)*#(\s)*Disk(\s)*DB(\s)*Directory</pattern>
<value>${default_disk_db_dir} # Disk DB Directory</value>
<ruleList>
<compareText>
<logic>does_not_equal</logic>
<text>${installdir}/dbs</text>
<value>${default_disk_db_dir}</value>
</compareText>
</ruleList>
</substitution>
<substitution>
<pattern>\?/arch_logs(\s)*#(\s)*ARCHIVE_DIR</pattern>
<value>${archive_dir} # ARCHIVE_DIR</value>
<ruleList>
<compareText>
<logic>does_not_equal</logic>
<text>${installdir}/arch_logs</text>
<value>${archive_dir}</value>
</compareText>
</ruleList>
</substitution>
</substitutionList>
</substitute>
<substitute>
<encoding>utf-8</encoding>
<files>${installdir}/bin/server</files>
<type>regexp</type>
<substitutionList>
<substitution>
<pattern>mydb</pattern>
<value>${altibase_user_dbname}</value>
</substitution>
</substitutionList>
</substitute>
</actionList>
</actionGroup>
<actionGroup>
<explanation>Make readme file</explanation>
<actionList>
<writeFile>
<encoding>utf-8</encoding>
<path>${installdir}/README</path>
<text>Please refer to the following file to check the Altibase version.
${patch_dir}patchinfo
[ Quick Guide to Making Settings in Altibase ]
1. Set kernel variables using the root user account.
run the '${installdir}/install/pre_install.sh' file
- This script helps you make kernel parameter settings.
${kernel_guide_val}
2. Provide a license.
Please rename and locate the license file as shown below.
${installdir}/conf/license
If no license file has been issued or if the license file has expired,
Altibase services will not start.
In this case, please visit http://support.altibase.com
3. Configure user environment variables
(using the user account with which Altibase was installed).
Run the '${installdir}/install/post_install.sh' file
under the account with which Altibase was installed.
This script performs necessary post-installation configuration.
1) Create the Altibase user environment file and apply it to the user profile.
(${installdir}/conf/altibase_user.env)
2) Create a database.
If you selected 'YES' in response to the question about whether to create
a database after installation, at "Altibase Property setting step 1",
a database will be automatically created.
If you selected 'NO' in response to this question,
you need to create a database manually.
shell> server create [DB Character Set] [National Character Set]
4. Start up and shut down the server
shell> server start
shell> server stop
5. Runs all scripts required for or used with PSM
Run the '${installdir}/packages/catproc.sql' file.
6. Connect to the database using iSQL
shell> isql -s 127.0.0.1 -u SYS -p MANAGER</text>
</writeFile>
</actionList>
</actionGroup>
<actionGroup>
<explanation>add db directory</explanation>
<actionList>
<createDirectory>
<path>${default_disk_db_dir}</path>
<ruleList>
<fileExists>
<negate>1</negate>
<path>${default_disk_db_dir}</path>
</fileExists>
</ruleList>
</createDirectory>
<createDirectory>
<path>${mem_db_dir}</path>
<ruleList>
<fileExists>
<negate>1</negate>
<path>${mem_db_dir}</path>
</fileExists>
</ruleList>
</createDirectory>
<createDirectory>
<path>${archive_dir}</path>
<ruleList>
<fileExists>
<negate>1</negate>
<path>${archive_dir}</path>
</fileExists>
</ruleList>
</createDirectory>
<createDirectory>
<path>${log_dir}</path>
<ruleList>
<fileExists>
<negate>1</negate>
<path>${log_dir}</path>
</fileExists>
</ruleList>
</createDirectory>
<createDirectory>
<path>${loganchor_dir1}</path>
<ruleList>
<fileExists>
<negate>1</negate>
<path>${loganchor_dir1}</path>
</fileExists>
</ruleList>
</createDirectory>
<createDirectory>
<path>${loganchor_dir2}</path>
<ruleList>
<fileExists>
<negate>1</negate>
<path>${loganchor_dir2}</path>
</fileExists>
</ruleList>
</createDirectory>
<createDirectory>
<path>${loganchor_dir3}</path>
<ruleList>
<fileExists>
<negate>1</negate>
<path>${loganchor_dir3}</path>
</fileExists>
</ruleList>
</createDirectory>
</actionList>
</actionGroup>
</actionList>
<conditionRuleList>
<compareText>
<logic>equals</logic>
<text>fullpkg</text>
<value>${select_install_type}</value>
</compareText>
</conditionRuleList>
</if>
<actionGroup>
<explanation>set altibase_env.mk</explanation>
<actionList>
<substitute>
<encoding>utf-8</encoding>
<files>${installdir}/install/altibase_env.mk</files>
<type>regexp</type>
<substitutionList>
<substitution>
<pattern>${hp_build_major_ver}${hp_build_minor_ver}</pattern>
<value></value>
</substitution>
</substitutionList>
</substitute>
</actionList>
<ruleList>
<platformTest>
<type>hpux</type>
</platformTest>
</ruleList>
</actionGroup>
</postInstallationActionList>
<preUninstallationActionList>
<actionGroup>
<explanation>check server status</explanation>
<actionList>
<runProgram>
<abortOnError>0</abortOnError>
<program>"ps -ef"</program>
<programArguments>| grep "altibase -p boot" | grep -v grep | awk '{print $1}' | grep '^${system_username}$' > .altibase_server_check</programArguments>
<showMessageOnError>0</showMessageOnError>
<workingDirectory>~</workingDirectory>
</runProgram>
<readFile>
<abortOnError>0</abortOnError>
<encoding>utf-8</encoding>
<name>check_altibase_server</name>
<path>~/.altibase_server_check</path>
<showMessageOnError>0</showMessageOnError>
<ruleList>
<fileExists>
<path>~/.altibase_server_check</path>
</fileExists>
</ruleList>
</readFile>
<runProgram>
<abortOnError>0</abortOnError>
<program>rm</program>
<programArguments>-rf .altibase_server_check</programArguments>
<showMessageOnError>0</showMessageOnError>
<workingDirectory>~</workingDirectory>
<ruleList>
<fileExists>
<path>~/.altibase_server_check</path>
</fileExists>
</ruleList>
</runProgram>
<if>
<explanation>check server running</explanation>
<actionList>
<showWarning>
<text>Altibase server is running.
Please shut it down before proceeding to the next step.
</text>
</showWarning>
<exit>
<exitCode>1</exitCode>
</exit>
</actionList>
<conditionRuleList>
<regExMatch>
<logic>matches</logic>
<pattern>${system_username}</pattern>
<text>${check_altibase_server}</text>
</regExMatch>
</conditionRuleList>
</if>
</actionList>
</actionGroup>
<propertiesFileGet>
<file>${patch_info_file}</file>
<key>PRODUCT_SIGNATURE</key>
<variable>read_altibase_product_signature</variable>
<onErrorActionList>
<showWarning>
<text>Can't read ALTIBASE Product signature.</text>
</showWarning>
<exit>
<exitCode>1</exitCode>
</exit>
</onErrorActionList>
</propertiesFileGet>
<propertiesFileGet>
<file>${patch_info_file}</file>
<key>PATCH_VERSION</key>
<variable>read_altibase_patch_version</variable>
<onErrorActionList>
<showWarning>
<text>Can't read ALTIBASE Patch version.</text>
</showWarning>
<exit>
<exitCode>1</exitCode>
</exit>
</onErrorActionList>
</propertiesFileGet>
<if>
<explanation>signature validation</explanation>
<actionList>
<showWarning>
<text>The Altibase Product Signature doesn't match
between ${altibase_product_signature} and ${read_altibase_product_signature}
Exit from uninstallation.
</text>
</showWarning>
<exit>
<exitCode>1</exitCode>
</exit>
</actionList>
<conditionRuleList>
<compareText>
<logic>equals</logic>
<negate>1</negate>
<text>${altibase_product_signature}</text>
<value>${read_altibase_product_signature}</value>
</compareText>
</conditionRuleList>
</if>
<if>
<explanation>patch valiation</explanation>