HDB 6.5.1 Installation Eng
HDB 6.5.1 Installation Eng
Installation Guide
Release 6.5.1
August 9, 2021
ALTIBASE HDB Administration Installation Guide
Release 6.5.1
Copyright © 2001~2015 Altibase Corporation. All rights reserved.
This manual contains proprietary information of Altibase® Corporation; it is provided under a license agreement containing restric-
tions on use and disclosure and is also protected by copyright patent and other intellectual property law. Reverse engineering of the
software is prohibited.
All trademarks, registered or otherwise, are the property of their respective owners.
Altibase Corporation
10F, Daerung PostTower II, 182-13,
Guro-dong Guro-gu Seoul, 152-847, South Korea
Telephone: +82-2-2082-1000 Fax: 82-2-2082-1099
Homepage: http://www.altibase.com
Contents
Preface .................................................................................................................................................. v
About This Manual ..................................................................................................... vi
Audience ....................................................................................................... vi
Software Environment ....................................................................................... vi
Organization ................................................................................................... vi
Documentation Conventions ................................................................................ vi
Online Manuals ............................................................................................... vii
Altibase Welcomes Your Comments ....................................................................... vii
1. About the ALTIBASE HDB Package Installer ............................................................................................1
1.1 Altibase Home ....................................................................................................... 2
1.1.1 ALTIBASE HDB Home Directory ......................................................................... 2
1.2 APatch Directory .................................................................................................... 3
1.2.1 Structure and Contents of the APatch Directory..................................................... 3
1.2.2 patchinfo File ............................................................................................. 3
1.2.3 pkg_patch_x_x_x_x.txt File ............................................................................ 4
1.2.4 altibase_base_install.log File .......................................................................... 4
1.2.5 Backup Directory ......................................................................................... 4
2. Installing Products with the ALTIBASE HDB Package Installer ..................................................................7
2.1 Hardware Requirements........................................................................................... 8
2.1.1 Memory .................................................................................................... 8
2.1.2 CPU......................................................................................................... 8
2.1.3 Hard Disk .................................................................................................. 8
2.1.4 Network ................................................................................................... 8
2.2 ALTIBASE HDB Package Installer .................................................................................. 9
2.2.1 Basic Steps for Installing ALTIBASE HDB............................................................... 9
2.2.2 Download the ALTIBASE HDB Package Installer ...................................................... 9
2.2.3 Installation Mode....................................................................................... 10
2.3 Installing ALTIBASE HDB Products on Unix .................................................................... 11
2.3.1 Check the Environment Before Installation ........................................................ 11
2.3.2 Download the Package Installer..................................................................... 12
2.3.3 Set the Installation Mode............................................................................. 13
2.3.4 Start the ALTIBASE HDB Package Installer ........................................................ 13
2.3.5 Enter the Installation Directory and Select the Installation Type ............................................ 14
2.3.6 Check System Parameters............................................................................ 16
2.3.7 Set ALTIBASE HDB Properties ........................................................................ 19
2.3.8 Confirm ALTIBASE HDB Properties .................................................................. 22
2.3.9 Install the ALTIBASE HDB Product.................................................................... 25
2.3.10 Select the ALTIBASE HDB Edition ................................................................... 26
2.3.11 Register or Update the ALTIBASE HDB License Key ...................................................... 26
2.3.12 Preview the ALTIBASE HDB Quick Settings Guide ........................................................ 28
2.3.13 Finish Installation .................................................................................... 32
2.3.14 Post-installation Tasks ............................................................................... 34
2.4 Installing ALTIBASE HDB Products on Windows ............................................................... 35
2.4.1 Check the Environment Before Installation ........................................................ 35
2.4.2 Start the ALTIBASE HDB Package Installer .......................................................... 38
2.4.3 Enter the Installation Directory and Select the Installation Type ............................................. 39
2.4.4 Validate the System Environment ................................................................... 41
2.4.5 Set ALTIBASE HDB Properties ......................................................................... 41
2.4.6 Confirm ALTIBASE HDB Properties ................................................................... 44
2.4.7 Choose Additional Installation Options ............................................................. 45
2.4.8 Install the ALTIBASE HDB Product.................................................................... 48
2.4.9 Select the ALTIBASE HDB Edition .................................................................... 49
2.4.10 Register the ALTIBASE HDB License Key ........................................................... 49
2.4.11 Preview the ALTIBASE HDB Quick Settings Guide ........................................................ 51
2.4.12 Register ALTIBASE HDB as Windows Services ..................................................... 53
2.4.13 Finish Installation .................................................................................... 55
iii
2.4.14 Post-installation Tasks ...............................................................................56
2.5 Installing ALTIBASE HDB Client Products on Unix .............................................................57
2.5.1 Checking the Environment Before Installation .....................................................57
2.5.2 Downloading the Package Installer ..................................................................57
2.5.3 Setting the Installation Mode .........................................................................57
2.5.4 Starting the ALTIBASE HDB Package Installer .......................................................57
2.5.5 Entering the Installation Directory and Selecting the Installation Type ..................................... 58
2.5.6 Setting ALTIBASE HDB Client Properties .............................................................59
2.5.7 Installing the ALTIBASE HDB Client Product .........................................................61
2.5.8 Finishing Installation ...................................................................................63
2.5.9 Post-installation Tasks .................................................................................63
2.6 Installing ALTIBASE HDB Client Products on Windows ........................................................64
2.6.1 Checking the Environment Before Installation .....................................................64
2.6.2 Starting the ALTIBASE HDB Package Installer .......................................................64
2.6.3 Entering the Installation Directory and Selecting the Installation Type ..................................... 65
2.6.4 Choosing Additional Installation Options ............................................................65
2.6.5 Installing the ALTIBASE HDB Client Product .........................................................66
2.6.6 Finishing Installation ...................................................................................68
3. Uninstalling ALTIBASE HDB ................................................................................................................ 69
3.1 Uninstalling ALTIBASE HDB Products ...........................................................................70
3.1.1 Full Uninstallation ......................................................................................70
3.1.2 Patch Uninstallation ...................................................................................70
4. Patching Products With the ALTIBASE HDB Package Installer ................................................................ 71
4.1 About Patches......................................................................................................72
4.1.1 Installation Types for ALTIBASE HDB Products ......................................................72
4.1.2 Installation Types for ALTIBASE HDB Client Products ............................................................. 72
4.2 Patching ALTIBASE HDB Server Products .......................................................................74
4.2.1 Checking the Environment Before Installation .....................................................74
4.2.2 Downloading the ALTIBASE HDB Package Installer ........................................................74
4.2.3 Setting the Installation Mode .........................................................................74
4.2.4 Starting the ALTIBASE HDB Package Installer .......................................................74
4.2.5 Entering the Installation Directory and Selecting the Installation Type ..................................... 75
4.2.6 Checking the Patch Version ...........................................................................77
4.2.7 Installing the ALTIBASE HDB Product.................................................................79
4.2.8 Finishing Installation ...................................................................................81
4.3 Patching ALTIBASE HDB Client Products .......................................................................82
4.3.1 Checking the Environment Before Installation .....................................................82
4.3.2 Downloading the ALTIBASE HDB Package Installer ........................................................82
4.3.3 Setting the Installation Mode .........................................................................82
4.3.4 Setting the ALTIBASE HDB Package Installer ........................................................82
4.3.5 Entering the Installation Directory and Selecting the Installation Type ..................................... 83
4.3.6 Checking the Patch Version ...........................................................................85
4.3.7 Installing the ALTIBASE HDB Product.................................................................86
4.3.8 Finishing Installation ...................................................................................87
AppendixA. Installation Prerequisites .................................................................................................... 89
Setting User Resource Limit Values .................................................................................89
Setting Kernel Parameters for Different Operating Systems ....................................................89
Solaris ..........................................................................................................90
HP-UX...........................................................................................................90
AIX ..............................................................................................................91
LINUX ...........................................................................................................92
Checking Disk Configuration .........................................................................................92
OS Patch ................................................................................................................92
AIX ..............................................................................................................92
iv
Preface
v Preface
About This Manual
Audience
This manual has been prepared for the following ALTIBASE HDB users:
• database managers
• performance managers
• database users
• application developers
It is recommended that those reading this manual possess the following background knowledge:
• basic knowledge in the use of computers, operating systems, and operating system utilities
Software Environment
This manual has been prepared assuming that ALTIBASE HDB 6.5.1 is used as the database server.
Organization
This manual is organized as follows:
Documentation Conventions
This section describes the conventions used in this manual. Understanding these conventions will
make it easier to find information in this manual and other manuals in the series.
Installation Guide vi
About This Manual
Convention Meaning
Online Manuals
Online versions of our manuals (PDF or HTML) are available from Altibase's Customer Support site
(http://support.altibase.com/).
• The name and version of the manual that you are using
If you need immediate assistance regarding technical issues, please contact Altibase’s Customer
Support site (http://support.altibase.com/).
vii Preface
About This Manual
This chapter discusses directories and files that are generated after the product has been installed.
The ALTIBASE HDB home directory is the default directory wherein ALTIBASE HDB software is
installed.
$HOME/altibase-HDB-server-<version>
$HOME/altibase-HDB-client-<version>
Installation Guide 2
1.2 APatch Directory
Information about ALTIBASE HDB products that were installed with the ALTIBASE HDB Package
Installer is stored in the APatch directory, under the ALTIBASE HDB home directory.
This directory contains files that store information about an installed product or a patch version:
• patchinfo File
• pkg_patch_<version>.txt file
• altibase_base_install.log file
• Backup directory
• Information about the base release1 version and the patch version of the currently installed
ALTIBASE HDB product.
• Information about the environment on which the product (such as the OS, OS patch, C/C++
compiler, and Java compiler) was built.
Ex)
PRODUCT_SIGNATURE=server-6.5.1-64-release
PATCH_VERSION=0_0_0_0
The following example shows the contents of the APatch directory after installing the base release
6.5.1.0.0:
%$ ls
pkg_patch_0_0_0_0.txt
The following example shows the contents of the APatch directory after installing the patch
6.5.1.0.10:
%$ ls
pkg_patch_0_0_0_0.txt pkg_patch_0_0_0_10.txt
%$cat pkg_patch_0_0_0_10.txt
Repository: /altidev4/tags/altibase_6_1_1_0_10_tag/
Revision: 42850
Last Changed Rev: 42850
Also, executable files that are used to uninstall or roll back patches are installed in the
$ALTIBASE_HOME/APatch/ directory whena product is installed or patched.
Caution1: HP platforms do not support automatic backups or rollbacks if the Package Installer is patched.
You need to manually back up data and log files.
Caution2: Only files that are installed with the Package Installer are backed up to this backup directory;
files that are generated after the product has been installed (such as data files and log files) are not
backed up.
The following example shows the contents of the APatch directory, after installing the base release
6.5.1.0.0:
altibase_base_install.log patchinfo
pkg_patch_0_0_0_0.txt uninstall-base
• uninstall-base: the executable file needed to uninstall the base release 6.5.1.0.0.
The following example shows the contents of the APatch directory, after installing the patch
6.5.1.0.10:
Installation Guide 4
1.2 APatch Directory
altibase_base_install.log pkg_patch_0_0_0_10.txt
uninstall-p0_0_0_10 patchinfo
rollback-p0_0_0_10/ pkg_patch_0_0_0_0.txt
uninstall-base
• uninstall-base: the executable file needed to uninstall the base release 6.5.1.0.0.
• rollback-p0_0_0_10: the directory that contains backups of the files patched with
6.5.1.0.10.
• uninstall-p0_0_0_10: the executable file needed to delete the patch 6.5.1.0.10 and roll
back to the previous version. These files are stored in the rollback-p0_0_0_10 directory.
Installation Guide 6
2 Installing Products with
the ALTIBASE HDB
Package Installer
This chapter consists of the following sections:
• Hardware Requirements
The requirements and recommendations listed in this chapter assume that your database will be
used for general purposes. If you plan to use your database for a special purpose, contact Altibase’s
Customer Support site (http://support.altibase.com/) for further information about system require-
ments.
2.1.1 Memory
32-bit OS: Minimum 1GB (2GB recommended; maximum 4GB)
2.1.2 CPU
1 CPU or more (2 or more CPUs are recommended)
You should have at least 12GB of free disk space to smoothly run the database.
2.1.4 Network
We recommend that you use a dedicated line when using the replication feature.
Installation Guide 8
2.2 ALTIBASE HDB Package Installer
The ALTIBASE HDB Server Package and Client Package are distributed in separate packages. How-
ever, the ALTIBASE HDB Server Package includes the Client Package.
The ALTIBASE HDB Package Installer is provided for the following operating systems. Use the com-
mand below to view information about the operating system, and then select the appropriate Pack-
age Installer.
$ uname -a
Linux rhel6-x64 2.6.32-71.el6.x86_64 #1 SMP Wed Sep 1 01:33:01 EDT 2010
x86_64 x86_64 x86_64 GNU/Linux
Bit
OS CPU Version Bit (Client)
(Server)
• Interactive Command-line Mode: If the DISPLAY environment variable has not been set.
• Graphical User Interface (GUI) Mode: If the DISPLAY environment variable has been set.
Installation Guide 10
2.3 Installing ALTIBASE HDB Products on Unix
• Finish Installation
• Post-installation Tasks
During this operation, the ALTIBASE HDB Package Installer checks the following information about
the server:
If you have downloaded an ALTIBASE HDB Package Installer that does not match your operating sys-
tem, an error message is returned and the installation is aborted. This is because detecting system
configuration issues at an early stage reduces the likelihood of encountering problems during instal-
lation.
For RHEL 8, libncurses.so.5 and libtinfo.so.5 must be created in order to execute iSQL and
iLoader. In order to do this, the user needs root privileges.
• If libncurses.so.5 file does not exist, the following error occurs when iSQL is executed.
% isql
isql: error while loading shared libraries: libtinfo.so.5: cannot open
shared object file: No such file or directory
• In RHEL 8, the ncurses (including tinfo) library version has been changed to 6.1. Altibase
requires ncurses 5 version files. The ncurses library guarantees both source-level
compatibility (API) and binary compatibility (ABI) from ncurses 5 to ncurses 6.2.
Please refer to 2.2.2 Download the ALTIBASE HDB Package Installer for further information about
supported operating systems.
Installation Guide 12
2.3 Installing ALTIBASE HDB Products on Unix
• Interactive Command-line Mode: If the DISPLAY environment variable has not been set.
• Graphical User Interface (GUI) Mode: If the DISPLAY environment variable has been set. This
manual assumes that the ALTIBASE HDB Package Installer’s installation mode is set to GUI.
<machine_name> is the IP address or host name of the computer that is to display the ALTIBASE
HDB Package Installer process. Use the setenv command for Cshell or set export DIS-
PLAY=<machine name>:0.0 for Korn Shell.
Execute the following command on the remote computer to view the ALTIBASE HDB Package
Installer running in GUI mode on another computer (other than the host computer) from a remote
location.
$ xhost +
$ chmod +x altibase-HDB-server-6.5.1.0.0-LINUX-X86-64bit-release.run
$./altibase-HDB-server-6.5.1.0.0-LINUX-X86-64bit-release.run
If the Package Installer is set to GUI mode, the following Setup wizard appears.
Installation Guide 14
2.3 Installing ALTIBASE HDB Products on Unix
To install an ALTIBASE HDB product, click Full Installation in the Installation Type list; to
install apatch for a previously installed version, click Patch Installation in the Installation
Type list.
To add the ALTLIBASE HDB license key, select Add License and enter the license key.
If ALTIBASE HDB Enterprise Edition has already been installed to the specified directory, a
warning message appears. In this case, enter another directory or uninstall the product
installed in the speci-fied directory first.
Kernel parameters should be manually set before proceeding to the next step. To set them after
installation is complete, please refer to the $ALTIBASE_HOME/install/pre_install.sh
file.
To ensure that ALTIBASE HDB runs properly, you should configure your system environment first. To
do so, you must modify kernel parameter values using root privileges before installing ALTIBASE
HDB. Kernel parameter values may be modified after installation; however, they must be modified
prior to ALTIBASE HDB startup. The following are examples of system kernel parameter values on dif-
ferent operating systems. For further information about kernel parameters for different operating
systems, please refer to Appendix A. Installation Prerequisites.
Ex) HPUX
[ Recommended Kernel Parameter Values ]
shmmax = 2147483648
shmmni = 500
shmseg = 200
semmap = 1001
semmni = 1000
semmns = 4096
Installation Guide 16
2.3 Installing ALTIBASE HDB Products on Unix
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 HDB server needs sufficient memory space to function properly.
Please set the value to 70% of system memory or greater.
/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 AlLTIBASE HDB server needs sufficient memory space in order to function
properly.
Please set the value to 70% of system memory or greater.
Ex) LINUX
[ How to modify kernel parameter values ]
# shmall
If it is desired to use the ALTIBASE HDB in shared memory mode, the value of
'shmall' must be set. This value determines the maximum size of an Altibase
database.
Ex) AIX
[ Recommended Kernel Parameter Values ]
fsize = -1
data = -1
rss = -1
AIO = Available
Run 'smit'
1) System Environments
System Environments -> Change / Show Characteristics Of
Operating System
Change :
Maximum number of PROCESSES allowed per user
= bigger than the value set using the Altibase property
MAX_CLIENT
Size of the File System BufferCache
= 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 Volume
Manager Params ->
+ List All Characteristics of Current Parameters --- Check
+ Change / Show Current Parameters --- Current Change
+ Change / Show Parameters for Next Boot --- Change upon Reboot
Ex) SunOS
[ Recommended Kernel Parameter Values ]
When the ALTIBASE HDB uses the filesystem cache rather than direct I/O, the
priority_paging parameter (related to the Sun system's filesystem cache) 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
Installation Guide 18
2.3 Installing ALTIBASE HDB Products on Unix
rlim_fd_max = 4096
rlim_fd_cur = 2048
= 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]
= is not Solaris 10 =
Edit /etc/system file.
These values must be set in order for the ALTIBASE HDB to operate properly.
They must be set so they are suitable for the system configuration.
• Database Name
• Choose whether or not to create a SQL script to create a new database (whether or not to per-
form step 2). If you click YES, step 2 is performed; otherwise, step 2 is skipped. Regardless of
whether or not a SQL script is created in this step, a new database can be created with the
fol-lowing command: server create [DB Character-set] [National
Charac- ter-set]
Installation Guide 20
2.3 Installing ALTIBASE HDB Products on Unix
— Noarchivelog
— Archivelog
— MS949
— US7ASCII
— KO16KSC5601
— BIG5
— GB231280
— MS936
— UTF-8
— SHIFT-JIS
— EUC-JP
— UTF-16
— UTF-8
To set the values of properties excluded in this step, or to later change the values of properties that
have been set in step 1 or are to be set in step 3, edit the $ALTIBASE_HOME/conf/alti-
base.properties file manually.
Installation Guide 22
2.3 Installing ALTIBASE HDB Products on Unix
Ex)
To change these properties after installation is complete, please
modify thefollowing file: /qa_home/qd_team/sdy/altibase-HDB-server-
6.5.1/conf/alti- base.properties.
1) Database name:[mydb]
The database will not operate properly if one or more of these directories
are removed
Directory 2 :
[/home1/sdy/altibase-HDB-server-6.5.1/logs]
Directory 3 :
[/home1/sdy/altibase-HDB-server-6.5.1/logs]
After confirming these values, click Forward. The Ready to Install dialog box appears.
Installation Guide 24
2.3 Installing ALTIBASE HDB Products on Unix
When installation is completed, the Package Installer performs the following operations without
GUI:
• Updates the properties which have been set to the altibase.properties file.
• Creates the altibase_user.env file (this file contains commands needed to set the neces-
sary environment variables for ALTIBASE HDB startup) in the $ALTIBASE_HOME/conf
directory. Adds a command to execute this file to a shell configuration file (e.g., .bashrc,
.bash_profile, or .profile, etc.).
The following are examples of the altibase_user.env file and the .bash_profile file.
### altibase_user.env
ALTIBASE_HOME=/qa_home/qd_team/sdy/altibase-HDB-server-6.5.1;export
ALTIBASE_HOME
PATH=${ALTIBASE_HOME}/bin:${PATH};export PATH
LD_LIBRARY_PATH=${ALTIBASE_HOME}/lib:${LD_LIBRARY_PATH};export
LD_LIBRARY_PATH
CLASSPATH=${ALTIBASE_HOME}/lib/Altibase.jar:${CLASSPATH};export CLASSPATH
### .bash_profile
# ALTIBASE_ENV
. /qa_home/qd_team/sdy/altibase-HDB-server- 6.5.1/conf/altibase_user.env
Community Edition provides the same functions, features and tools as Enterprise Edition but has
data size limitations of 4GB in-memory and 8GB on disk. You can visit the Community Forum for
support.
• Postponing license registration: If you have not obtained the license key yet, you can copy a
new license file to the $ALTIBASE_HOME/conf directory after you have obtained one. However,
if you do not enter the license key at this step, the Package Installer does not ask whether or
not to create a database at the next step.
$ cp license $ALTIBASE_HOME/conf/
A user using the Community Edition can enter a license key to update his or her license, without
stopping the server.
Only a user with the SYSDBA system privilege can update a license. Prior to license update, the previous
license in the $ALTIBASE_HOME/conf/license file must be dropped or prefixed with the number sign
(#) to change it to a comment; a new license key should be entered afterward.
• The new value for the MEM_MAX_DB_SIZE property is larger than or equal to the current
value.
• The new value for the DISK_MAX_DB_SIZE property is larger than or equal to the current
value.
$ is -sysdba
iSQL(sysdba)> EXEC UPDATE_LICENSE;
Validating new license...
System HostID (0x00001111) and License HostID(0x00001111)match. PASS
System MAC Address(11:11:11:11:11:11) and License MAC
Address(11:11:11:11:11:11) match. PASS
MEM_MAX_DB_SIZE limit was updated from 16G to 128G.
DISK_MAX_DB_SIZE limit was updated from 128G to 256G.
Expiration date was updated from 2015. 12. 31. to 2016. 12. 31.
License update completed successfully with new Standard Edition License.
Installation Guide 26
2.3 Installing ALTIBASE HDB Products on Unix
The ALTIBASE HDB Package Installer provides the following two shell scripts to allow users to easily
set system kernel parameters and environment variables.
• $ALTIBASE_HOME/install/pre_install.sh
This script contains the minimum set of essential system kernel parameters, their recom-
mended values, and explains how to set them.
• $ALTIBASE_HOME/install/post_install.sh
This script contains a SQL script for creating a new database (if step 2 was performed for Set
ALTIBASE HDB Properties).
If you select the check box in the next dialog box, the ALTIBASE HDB Package Installer creates a new
database and this will prolong installation time. If you do not select the check box, you will need to
manually create a database, after the product has been installed.
Installation Guide 28
2.3 Installing ALTIBASE HDB Products on Unix
[ Installation complete ]
Please refer to the file listed below to verify the Altibase HDB version.
/qa_home/qd_team/sdy/altibase-HDB-server-6.5.1/APatch/patchinfo
[ Quick Guide to Making Settings in ALTIBASE HDB ]
# shmall
If you desire to use ALTIBASE HDB 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 HDB to operate properly.
They must be set so they are suitable for the system configuration.
=====================================
2. Provide a license.
Please rename and locate the license file as shown below. /qa_home/
qd_team/sdy/altibase-HDB-server-6.5.1/conf/license If no license file has
been issued, or if the license file has expired, ALTIBASE HDB 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 HDB was installed).
Run the '/qa_home/qd_team/sdy/altibase-HDB-server-6.5.1/install/
post_install.sh' file
under the account with which ALTIBASE HDB was installed.
1) Create the ALTIBASE HDB user environment file and apply it to the user
profile. (/qa_home/qd_team/sdy/altibase-HDB-server-6.5.1/conf/
altibase_user.env)
2) Create a database.
Installation Guide 30
2.3 Installing ALTIBASE HDB Products on Unix
Installation Guide 32
2.3 Installing ALTIBASE HDB Products on Unix
Click Finish, and the following Environment Settings Guide message box appears.
1. Set the parameters manually if system kernel parameters have not been set during installation.
Please refer to the $ALTIBASE_HOME/install/pre_install.sh file.
• If properties for database creation were set during installation, execute the
$ALTIBASE_HOME/install/post_install.sh script.
$ sh post_install.sh dbcreate
• If properties for database creation were not set during installation, execute the server
script.
$ server create utf8 utf8
Installation Guide 34
2.4 Installing ALTIBASE HDB Products on Windows
• Finish Installation
• Post-installation Tasks
You can check whether your account has sufficient privileges to log on to the service and then
grant appropriate privileges by following these steps:
1. Open the Local Group Policy Editor property sheet (On the taskbar, click Start, click Run, and
then type gpedit.msc.)
2. On the left menu, click Computer Configuration, point to Windows Settings, point to Secu-
rity Settings, point to Local Policies, and then click User Rights Assignment.
4. Check whether the user account that is currently being used is on the list. If not, add the user,
and then click Ok.
Installation Guide 36
2.4 Installing ALTIBASE HDB Products on Windows
Due to enhanced security, creating a database and registering ALTIBASE HDB as a service can be
tricky on Windows Vista and Windows 7. To avoid this problem, set the User Account Control (UAC)
before installation. For further information about UAC, please refer to http://support.microsoft.com/
kb/922708/en-us.
1. In Control Panel, click User Accounts, and then click Change User Account Control settings.
If you did not create a database or register ALTIBASE HDB as a service during installation, a UAC
prompt appears when you create a database or register ALTIBASE HDB as a service. Follow these
steps to avoid seeing this prompt:
5. Right-click Database Creation and click Run as administrator. Right-click Service Registra-
tion and click Run as administrator
Note: To run executable files from the command prompt, start the command prompt with the “Run
as administrator” option.
Installation Guide 38
2.4 Installing ALTIBASE HDB Products on Windows
2.4.3 Enter the Installation Directory and Select the Installation Type
In the following Installation Directory dialog box, enter the ALTIBASE HDB home directory and select
the package installation type.
To install an ALTIBASE HDB product, click Full Installation in the Installation Type list; to install a
patch for a previously installed version, click Patch Installation in the Installation Type list.
To add an ALTIBASE HDB license key, select Add license and enter the license key.
If ALTIBASE HDB Enterprise Edition has already been installed to the specified directory, a warning
message appears. In this case, enter another directory or uninstall the product installed in the speci-
fied directory first.
If an ALTIBASE HDB product was previously installed in the specified directory, and then uninstalled,
the above warning message appears. This means that some files were not deleted during uninstalla-
tion. These files can remain in the dbs or logs directories. If you ignore this warning and install a
new product, the product will be installed but you will be unable to create a new database. ALTIBASE
HDB will start only if its version is compatible with the remaining files. To create a new database,
delete all remaining files in the dbs or logs directories first.
Installation Guide 40
2.4 Installing ALTIBASE HDB Products on Windows
• Database Name
• Choose whether or not to create a SQL script to create a new database (whether or not to per-
form step 2). If you click YES, step 2 is performed; otherwise, step 2 is skipped. Regardless of
whether or not a SQL script is created in this step, a new database can be created with the fol-
lowing command: server create [DB Character-set] [National Charac-
ter-set]
— NoArchivelog
— Archivelog
Installation Guide 42
2.4 Installing ALTIBASE HDB Products on Windows
— MS949
— US7ASCII
— KO16KSC5601
— BIG5
— GB231280
— MS936
— UTF-8
— SHIFT-JIS
— EUC-JP
— UTF-16
— UTF-8
To set the values of properties excluded in this step, or to later change the values of properties that
have been set in step 1 or are to be set in step 3, edit the $ALTIBASE_HOME/conf/alti-
base.properties file manually.
Installation Guide 44
2.4 Installing ALTIBASE HDB Products on Windows
On a Windows platform, the level at which ALTIBASE HDB is installed has a significant impact. Please
review the following table to see the difference.
Environment variables Applies to all users on the sys- Applies to the current user
and registry entities tem, and overwrites any user- only, but can be overwritten by
specific settings system settings
Allowing multiple server No. If a %ALTIBASE_HOME% Yes. Each user can install and
instances environment variable is set at configure their own server
system level, then any user spe- instance.
cific %ALTIBASE_HOME% is
ignored.
The next option for you to select is whether or not to install the ALTIBASE HDB ODBC Driver
(altiodbc.dll). If you choose “Yes”, the ALTIBASE HDB Package Installer adds information about the
ALTIBASE HDB ODBC Driver, such as the driver name (ALTIBASE_HDB_ODBC_32/64bit), to the regis-
try and copies the ALTIBASE HDB ODBC driver file (altiodbc.dll) to the following directory:
After installing the ALTIBASE HDB ODBC Driver, the Ready to Install dialog box appears.
Installation Guide 46
2.4 Installing ALTIBASE HDB Products on Windows
Once installation is complete, properties that have been set are written to the altibase.prop-
erties file, and a SQL script for creating a new database is included in the
post_instal_win.bat file. These operations are performed without GUI.
Installation Guide 48
2.4 Installing ALTIBASE HDB Products on Windows
Community Edition provides the same functions, features and tools as Enterprise Edition but has
data size limitations of 4GB in-memory and 8GB on disk. You can visit the Community Forum for sup-
port.
• Postponing license registration: If you have not obtained the license key yet, you can copy a
new license file to the $ALTIBASE_HOME/conf directory after you have obtained one. However,
if you do not enter the license key at this step, the Package Installer does not ask whether or
not to create a database at the next step.
%$ cp license $ALTIBASE_HOME/conf/
Installation Guide 50
2.4 Installing ALTIBASE HDB Products on Windows
The ALTIBASE HDB Package Installer provides the following batch file to allow users to easily set
ALTIBASE HDB and create a database.
• %ALTIBASE_HOME%\install\post_install_win.bat
This batch file contains a SQL script for creating a new database, if you have performed step 2
for Set ALTIBASE HDB Properties.
If you select the check box in the next dialog box, the ALTIBASE HDB Package Installer creates a
new database and this will prolong installation time. If you do not select the check box, you
will need to manually create a database, after the product has been installed.
The following dialog box displays the execution result of the post_install_win.bat batch file.
Installation Guide 52
2.4 Installing ALTIBASE HDB Products on Windows
If you select Yes, the following dialog box with information on how to add the “Log on as a service”
privilege to start ALTIBASE HDB as a Windows service appears. After that, an ALTIBASE HDB Win-
dows service registration dialog box appears.
The Service Name for ALTIBASE HDB is “ALTIBASE_551_SERVICE” by default. This name can be
changed as desired.
By default, the Windows ID is the same as the user name of the account with which this package was
installed. To start a Windows service, this user account must have a password. If the account does
not have a password, you must create a password for the account.
Installation Guide 54
2.4 Installing ALTIBASE HDB Products on Windows
After registering ALTIBASE HDB as a Windows service, the ALTIBASE HDB Package Installer starts the
service.
1. Create a database:
If a database was not created during installation, a new database can be created by either:
If a database was created and ALTIBASE HDB was registered as a Windows service, the ALTI-
BASE HDB Package Installer starts up the ALTIBASE HDB server automatically.
To start up the ALTIBASE HDB server manually, execute the following command from the com-
mand prompt:
Note: On Windows Vista and Windows 7, if you did not set the User Account Control (UAC) properly, you
must execute the post_install_win.bat file from a windows command prompt that was opened
with administrator privileges (i.e. the command prompt window must be opened with the Run as
administrator menu item).
Installation Guide 56
2.5 Installing ALTIBASE HDB Client Products on Unix
• Finishing Installation
• Post-installation Tasks
Please refer to 2.2.2 Download the ALTIBASE HDB Package Installer for further information on sup-
ported operating systems.
$ chmod +x altibase-HDB-server-6.5.1.0.0-LINUX-X86-64bit-release.run
$./altibase-HDB-client-6.5.1.0.0-LINUX-X86-64bit-release.run
If the installation mode is set to GUI mode, the following start panel appears.
To install an ALTIBASE HDB Client Product, select “Full Installation”; to install a patch for a previously
installed version, select “Patch Installation”.
Installation Guide 58
2.5 Installing ALTIBASE HDB Client Products on Unix
Installation Guide 60
2.5 Installing ALTIBASE HDB Client Products on Unix
During this procedure, the environment variables related to ALTIBASE HDB Client Products (which
are shown in the above dialog box) are added to the environment file for your login shell (e.g.,
default environment file for the standard Bourne shell (sh) is .profile). The altibase_user.env file,
which is generated when an ALTIBASE HDB Server Product is installed, is not generated. To apply
new environment variables to your shell, perform one of the following actions:
Installation Guide 62
2.5 Installing ALTIBASE HDB Client Products on Unix
# ALTIBASE_ENV
export ALTIBASE_HOME=/qa_home/qd_team/sdy/altibase-HDB-client-6.5.1
export ALTIBASE_PORT_NO=20300
export PATH=$ALTIBASE_HOME/bin:$PATH
export LD_LIBRARY_PATH=${ALTIBASE_HOME}/lib:${LD_LIBRARY_PATH}
export CLASSPATH=${ALTIBASE_HOME}/lib/Altibase.jar:${CLASSPATH}
• Finishing Installation
Installation Guide 64
2.6 Installing ALTIBASE HDB Client Products on Windows
To install an ALTIBASE HDB product, select “Full Installation”; to install a patch for a previously
installed version, select “Patch Installation”.
Installation Guide 66
2.6 Installing ALTIBASE HDB Client Products on Windows
Installation Guide 68
3 Uninstalling ALTIBASE
HDB
ALTIBASE HDB products can be uninstalled or rolled back using the Uninstaller which is installed
with the product.
This chapter explains how to uninstall a previously installed product or patch using the Package
Installer.
• Full Uninstallation
• Patch Uninstallation
Note: On the HP-UX platform, the Uninstaller provided with the ALTIBASE HDB Package Installer can only
uninstall the entire product; it cannot roll back patches. Therefore, you are recommended to manually
back up the previously installed product, before applying a patch.
However, the Uninstaller cannot delete environment variables in the UNIX environment. Therefore,
the user must manually delete ALTIBASE HDB-related environment variables from the account’s
environment variables file. To remove ALTIBASE HDB products, perform the following steps:
1. Select the Uninstaller (e.g., uninstall-base) associated with the product to be removed
from the $ALTIBASE_HOME/APatch directory.
Installation Guide 70
4 Patching Products With
the ALTIBASE HDB
Package Installer
This chapter consists of the following sections:
• About Patches
Installation Guide 72
4.1 About Patches
Finishing Installation O O
• Finishing Installation
Please download the appropriate installer for your operating system from Altibase’s Customer Sup-
port site (http://support.altibase.com/).
$ chmod +x altibase-HDB-server-6.5.1.0.7-LINUX-X86-64bit-release.run
$./altibase-HDB-server-6.5.1.0.7-LINUX-X86-64bit-release.run
If the installation mode is set to GUI mode, the following Start panel is displayed.
Installation Guide 74
4.2 Patching ALTIBASE HDB Server Products
Patches require a base release to be installed before being applied. If an ALTIBASE HDB product has
not been installed to the directory specified by the user, a warning message is displayed in a dialog
box.
However, if you select “Full package” for the Installation Type, the installation steps are identical to
those for ALTIBASE HDB Server Products. Please refer to 2.3 Installing ALTIBASE HDB Products on
Unix or 2.4 Installing ALTIBASE HDB Products on Windows.
Installation Guide 76
4.2 Patching ALTIBASE HDB Server Products
Installation Guide 78
4.2 Patching ALTIBASE HDB Server Products
Installation Guide 80
4.2 Patching ALTIBASE HDB Server Products
$ chmod +x altibase-HDB-client-6.5.1.0.7-LINUX-X86-64bit-release.run
$./altibase-HDB-client-6.5.1.0.7-LINUX-X86-64bit-release.run
If the installation mode is set to GUI mode, the following Start panel is displayed.
Installation Guide 82
4.3 Patching ALTIBASE HDB Client Products
Installation Guide 84
4.3 Patching ALTIBASE HDB Client Products
Installation Guide 86
4.3 Patching ALTIBASE HDB Client Products
Installation Guide 88
Setting User Resource Limit Values
Appendix A. Installation
Prerequisites
Setting User Resource Limit Values
User resource limit values can be confirmed or changed with the OS command, “ulimit”.
• File Size
The maximum size of logical memory the process can use (vsz field).
The maximum size of physical memory the process can use (RSS field).
The maximum number of files and sockets simultaneously accessable by the process.
• Virtual Memory
Windows operating systems do not require manual configuration of user resource limit values; how-
ever, UNIX users are recommended to set the resource limit values of a user’s account to “unlimited”
(caution is required that the core file size is not set to “unlimited”). In the event where the ALTIBASE
HDB server abnormally terminates and a core dump occurs, disk space can become scarce when the
core file size is set to “unlimited”, as the entire memory database is saved to core files.
• Shared Memory
Settings related to the number of shared memory segments and its maximum size.
89 Installation Prerequisites
Setting Kernel Parameters for Different Operating Systems
• File-Cache
Settings for the prevention of memory insufficiency due to the operating system’s file-cache.
• Semaphore
• Other Settings
Solaris
• Solaris 2.8 and 2.9 : Kernel parameters can be set in the /etc/system file.
• Solaris 2.10 : Kernel parameters can be set with the /usr/sbin/projadd or /usr/sbin/projmod
utility.
Recommended Values
shmmin 500
shmseg 200
smmni 5029
semmsl 2000
semmap 5024
semmnu 1024
semopm 512
semume 512
semvmx 32767
HP-UX
ODBC Reference 90
Setting Kernel Parameters for Different Operating Systems
Recommended Values
The same values for shared memory and semaphore on Solaris are also recommended for HP-UX.
nproc 6142
maxusers 124
AIX
Recommended Values
The same values for shared memory and semaphore on Solaris are also recommended for AIX.
Setting File-Cache
Depending on the file caching policy for AIX, the file system can swap-out memory from the applica-
tion program heap, although the system has free memory, and use it as file-cache (this is called
stealing).
For AIX 5.2 or higher, kernel parameters can be set as below to prevent the system from stealing:
minperm = 5%
lru_file_repage = 0 ( Can only be set on AIX 5.2 ML4 or higher )
strict_maxclient = 0
AIX provides the Posix AIO interfaces for improved disk I/O improvement which must be manually
activated. However from AIX 6.1 and higher, the interfaces are activated by default.
91 Installation Prerequisites
Checking Disk Configuration
The installation and start up of ALTIBASE HDB is impossible on AIX if the system is not set as above.
LINUX
Recommended Values
The same values for shared memory and semaphore on Solaris are also recommended for Linux.
However, sessions using the IPC connection can be abruptly cut off, if the Linux kernel version is
lower than 2.5.
To set kernel parameters automatically when the server boots, add the following to the /etc/rc.d/
rc.local file.
OS Patch
AIX
When using ALTIBASE HDB on AIX, memory usage increases (hearpmin library bug). In this case, C/
C++ compilers of the appropriate version must be patched from the IBM Support Portal (http://
http://www-01.ibm.com/support/docview.wss?uid=swg21110831).
ODBC Reference 92
Index
A Client 63
ALTIBASE HDB Home Directory 2 Server 34
Altibase Home 2 Windows 56
altibase_base_install.log File 4 Properties 18, 41
APatch Directory 3
patchinfo File 3
S
System Parameters 15
B
Backup Directory 4
U
User Privileges 35
D
database creation 28, 34
Download 9
F
Full Uninstallation 70
G
GUI Mode 12
H
Hardware Requirements 8
home directory 13
I
Installation Directory 13
Installation Mode 10, 12
Installation Type 13, 72
Installing ALTIBASE HDB Client Products 57, 64
Installing ALTIBASE HDB Products 11, 35
K
Kernel Parameters 89
L
License 26, 49
O
OS 11
OS Patch 92
P
Patch Uninstallation 70
Patching Altibase HDB Client Products 82
Patching Altibase HDB Server Products 74
pkg_patch_x_x_x_x.txt File 4
Post-installation Task
93 Index
Index 94