Professional Documents
Culture Documents
February 2015
UDT-810-INST-1
Notices
Edition
Publication date: February 2015
Book number: UDT-810-INST-1
Product version: Version 8.1.0
Copyright
© Rocket Software, Inc. or its affiliates 1996-2015. All Rights Reserved.
Trademarks
Rocket is a registered trademark of Rocket Software, Inc. For a list of Rocket registered trademarks go
to: www.rocketsoftware.com/about/legal. All other products or services mentioned in this document
may be covered by the trademarks, service marks, or product names of their respective owners.
Examples
This information might contain examples of data and reports. The examples include the names of
individuals, companies, brands, and products. All of these names are fictitious and any similarity to
the names and addresses used by an actual business enterprise is entirely coincidental.
License agreement
This software and the associated documentation are proprietary and confidential to Rocket Software,
Inc. or its affiliates, are furnished under license, and may be used and copied only in accordance with
the terms of such license.
Note: This product may contain encryption technology. Many countries prohibit or restrict the
use, import, or export of encryption technologies, and current use, import, and export regulations
should be followed when exporting this product.
2
Corporate information
Rocket Software, Inc. develops enterprise infrastructure products in four key areas: storage, networks,
and compliance; database servers and tools; business information and analytics; and application
development, integration, and modernization.
Website: www.rocketsoftware.com
Rocket Global Headquarters
77 4th Avenue, Suite 100
Waltham, MA 02451-1468
USA
To contact Rocket Software by telephone for any reason, including obtaining pre-sales information
and technical support, use one of the following telephone numbers.
3
Contents
Notices................................................................................................................................................................................... 2
Corporate information......................................................................................................................................................... 3
Chapter 1: Introduction......................................................................................................................................................11
Chapter 2: Introduction to installing the UniData RDBMS.............................................................................................. 12
Determining the installation type on UniData for UNIX...................................................................................... 12
Basic installation........................................................................................................................................ 12
Advanced installation.................................................................................................................................12
Concurrent installation.............................................................................................................................. 12
Upgrade installation...................................................................................................................................13
Patch installation........................................................................................................................................13
Determining the installation type on UniData for Windows platforms...............................................................13
No previous UniData installation.............................................................................................................. 13
Preinstallation tasks on UniData for UNIX............................................................................................................13
Verify operator knowledge.........................................................................................................................14
Assemble materials.................................................................................................................................... 14
Check system requirements...................................................................................................................... 14
Operating system requirements....................................................................................................14
Product configuration.................................................................................................................... 15
Disk space....................................................................................................................................... 15
Memory............................................................................................................................................16
Create and verify all needed backups...................................................................................................... 16
Downloading UniData................................................................................................................................ 17
Preinstallation tasks on UniData for Windows platforms....................................................................................17
Verify hardware and software compatibility............................................................................................ 17
Assemble required materials..................................................................................................................... 17
Understanding the UniData directories................................................................................................................ 18
Directory structure on UniData for UNIX.................................................................................................. 18
Directory structure on UniData for Windows platforms.......................................................................... 19
Determining the location of log files for RFS on UniData for UNIX..................................................................... 19
Uninstalling UniData.............................................................................................................................................. 20
Chapter 3: UniData RDBMS basic installation.................................................................................................................. 21
Step-by-Step Installation on UniData for UNIX.................................................................................................... 21
1. Check or create your bin directory....................................................................................................... 21
2. Download the UniData zip file...............................................................................................................21
3. Enter ./udtinstall..................................................................................................................................... 22
International installation............................................................................................................... 22
Choosing a LANG setting................................................................................................................22
NonInternational installation........................................................................................................ 23
4. Enter the UDTHOME directory............................................................................................................... 23
5. Enter the udtwork directory.................................................................................................................. 23
6. Enter the udtlib directory...................................................................................................................... 23
7. Enter the location of the log files..........................................................................................................24
8. Enter the location of the unishared directory...................................................................................... 24
9. Enter a group name............................................................................................................................... 24
10. Enter the serial number....................................................................................................................... 24
11. Install the recoverable file system...................................................................................................... 24
12. Install replication..................................................................................................................................25
13. Back up existing directories.................................................................................................................25
14. Decide when to authorize UniData..................................................................................................... 25
15. Review input data................................................................................................................................ 25
4
Contents
5
Contents
1. Log on as an administrator................................................................................................................... 53
2. Stop current installed services.............................................................................................................. 53
3. Download the zip file............................................................................................................................. 53
4. Execute the installation......................................................................................................................... 53
5. Accept license agreement......................................................................................................................55
6. Choose components and directory....................................................................................................... 56
7. Choose destination location for UniData............................................................................................. 57
8. Choose program folder name................................................................................................................58
9. Enter Licensing Details...........................................................................................................................59
10. Copy files...............................................................................................................................................60
11. License UniData.................................................................................................................................... 61
12. Authorize UniData................................................................................................................................ 62
13. Complete the installation.................................................................................................................... 63
14. Restart your computer......................................................................................................................... 64
15. Set library path environment variable................................................................................................64
16. Start a UniData session........................................................................................................................64
Chapter 5: UniData RDBMS concurrent installation........................................................................................................ 65
Considerations for concurrent installations......................................................................................................... 65
Static hashed file considerations.............................................................................................................. 65
Dynamic file considerations.......................................................................................................................65
Recoverable file considerations................................................................................................................ 65
Telnet, SSL, and UniRPC considerations.................................................................................................. 66
Step-by-step installation on UniData for UNIX.....................................................................................................66
1. Check or create your bin directory....................................................................................................... 66
2. Download the UniData zip file...............................................................................................................67
3. Enter ./udtinstall..................................................................................................................................... 67
International installation............................................................................................................... 67
Choosing a LANG setting................................................................................................................67
NonInternational installation........................................................................................................ 68
4. Enter the UDTHOME directory............................................................................................................... 68
5. Enter the udtwork directory.................................................................................................................. 69
6. Enter the udtlib directory...................................................................................................................... 69
7. Enter the location of the log files..........................................................................................................69
8. Enter the location of the unishared directory...................................................................................... 69
9. Enter a group name............................................................................................................................... 69
10. Enter the serial number....................................................................................................................... 70
11. Install the recoverable file system...................................................................................................... 70
12. Install replication..................................................................................................................................70
13. Back up existing directories.................................................................................................................70
14. Decide when to authorize UniData..................................................................................................... 70
15. Review input data................................................................................................................................ 71
16. Proceed with the installation process................................................................................................ 71
17. Authorize UniData................................................................................................................................ 72
18. Choose to release disk space.............................................................................................................. 72
19. Installation complete........................................................................................................................... 73
20. Check install.log................................................................................................................................... 73
21. Set environment variables...................................................................................................................73
22. Run makeudt........................................................................................................................................ 74
23. Start UniData........................................................................................................................................ 74
24. Move globally cataloged programs..................................................................................................... 75
Installing using the install.param file....................................................................................................................75
Troubleshooting tips.............................................................................................................................................. 77
Step-by-step installation on UniData for Windows platforms.............................................................................78
1. Log on as an administrator................................................................................................................... 78
2. Stop current installed services.............................................................................................................. 78
3. Download the UniData zip file...............................................................................................................78
6
Contents
7
Contents
8. Backup UniData...................................................................................................................................... 97
9. Choose program folder name................................................................................................................98
10. Copy files...............................................................................................................................................98
11. Complete the installation.................................................................................................................... 98
12. Update alternate global catalog spaces............................................................................................. 99
13. Set library path environment variable................................................................................................99
14. Start UniData with startud...................................................................................................................99
15. Start a UniData Session....................................................................................................................... 99
16. Restore using the backup functionality.............................................................................................. 99
Chapter 7: UniData RDBMS patch installation............................................................................................................... 101
Patch installation considerations........................................................................................................................101
Overwritten files........................................................................................................................................101
Updated files............................................................................................................................................. 102
Step-by-step installation......................................................................................................................................102
1. Save your make files............................................................................................................................ 102
2. Check environment variables.............................................................................................................. 103
3. Change directories................................................................................................................................104
4. Check for existing users....................................................................................................................... 104
5. Stop UniData.........................................................................................................................................104
6. Download the UniData zip file.............................................................................................................105
7. Enter ./updatesys.................................................................................................................................. 105
International installation............................................................................................................. 105
Choosing a LANG setting..............................................................................................................105
NonInternational installation...................................................................................................... 106
8. Enter the udtwork directory................................................................................................................ 106
9. Enter the udtlib directory.................................................................................................................... 106
10. Enter the location of the log files......................................................................................................107
11. Enter the location of the unishared directory.................................................................................. 107
12. Enter a group name........................................................................................................................... 107
13. Enter the serial number..................................................................................................................... 107
14. Install the recoverable file system.................................................................................................... 107
15. Install replication................................................................................................................................108
16. Back up existing directories...............................................................................................................108
17. Decide when to authorize UniData................................................................................................... 108
18. Back up work directory......................................................................................................................108
19. Enter old version number of UniData............................................................................................... 109
20. Review input data...............................................................................................................................109
21. Proceed with the installation process.............................................................................................. 109
22. Authorize UniData.............................................................................................................................. 109
23. Choose to release disk space............................................................................................................ 110
24. Installation complete......................................................................................................................... 110
25. Check environment variables............................................................................................................ 111
26. Run makeudt...................................................................................................................................... 111
27. Copy saved files.................................................................................................................................. 111
28. Run cntl_install...................................................................................................................................111
29. Start UniData...................................................................................................................................... 112
30. Run updatevoc....................................................................................................................................112
Installing using the install.param file..................................................................................................................113
Troubleshooting tips............................................................................................................................................ 114
Chapter 8: Licensing UniData products.......................................................................................................................... 116
About licensing..................................................................................................................................................... 116
Types of UniData licenses........................................................................................................................116
UniData device licensing..............................................................................................................116
Licensing UniData................................................................................................................................................. 116
Licensing procedure............................................................................................................................................. 117
8
Contents
9
Contents
10
Chapter 1: Introduction
This manual takes you through the steps of installing, licensing, and setting up your Rocket UniData
Release 8.1 products. These instructions consist of the following:
Links
▪ Introduction to installing the UniData RDBMS, on page 12
▪ UniData RDBMS basic installation, on page 21
▪ UniData RDBMS advanced installation, on page 42
▪ UniData RDBMS concurrent installation, on page 65
▪ UniData RDBMS upgrade installation, on page 81
▪ UniData RDBMS patch installation, on page 101
▪ Licensing UniData products, on page 116
11
Chapter 2: Introduction to installing the UniData
RDBMS
This chapter describes information that you should be aware of before installing the UniData RDBMS.
Basic installation
You are installing UniData for the first time on this machine, and you want to use the default
directories.
For step-by-step procedures, see UniData RDBMS basic installation, on page 21
Advanced installation
You are installing UniData for the first time on this machine, and you want to choose directories other
than the default directories.
Carefully review the section Understanding the UniData directories, on page 18 later in this chapter
for information about how directory names impact your configuration. For step-by-step procedures,
see UniData RDBMS advanced installation, on page 42.
Concurrent installation
You already have a previous version of UniData running on the machine where you are installing
UniData 8.1, and you want to run these two versions concurrently.
For step-by-step procedures, see UniData RDBMS concurrent installation, on page 65.
Users running different versions of UniData should not try to update the same files at the same time.
If you want to test your application by installing UniData 8.1 concurrently, set up a separate demo
database for your testing. Do not try to update live files with two versions of UniData at the same time.
There are some limitations for concurrent execution of UniData 8.1, which are described in UniData
RDBMS concurrent installation, on page 65.
12
Upgrade installation
Upgrade installation
You are upgrading to UniData 8.1 from a previous version of UniData.
For step-by-step procedures, see UniData RDBMS upgrade installation, on page 81.
Patch installation
You have a version of UniData 8.1 running on your system and are installing a patch version of UniData
8.1.
For step-by-step procedures, see UniData RDBMS patch installation, on page 101.
Note: UniData telnet services will not work if SELINUX is enabled. We recommend disabling
SELINUX if you are planning to use the UniData telnet services. Responses are blocked in non-
secure and secure modes if SELINUX is enabled. Use echo 0 >/selinux/enforce to disable
SELINUX temporarily to verify that UniData telnet services work correctly. To re-enable SELINUX
use echo 1 >/selinux/enforce.
13
Chapter 2: Introduction to installing the UniData RDBMS
Assemble materials
Make sure you have all needed materials on hand before you begin a UniData installation:
▪ The UniData zip file.
▪ The Product Configuration Sheet that is shipped with the UniData software.
▪ These instructions.
14
Product configuration
Warning: Beginning at Release 4.1, UniData required more system-wide semaphores than
previous releases of UniData. The number of semaphores system-wide, normally semmns, should
be a miminum of NUSERS + 10. The number of semaphore identifiers, normally semmni, must be a
minimum of NUSERS/NSEM_PSET + 1. If either of these kernel parameters are not adequate for the
number of licensed users, an error message similar to “Exit: smm: cannot allocate semaphore for
udtno xx errno 28. Exit: SMM can’t setup Control Table List” will be displayed, and UniData will fail
to start.
Product configuration
A UniData Product Configuration sheet was delivered with your UniData product. This sheet lists
customer information, hardware information, and the products and number of users you are
authorized to install. Verify that all the information on the Product Configuration sheet is correct. You
need this sheet when authorizing UniData.
Disk space
On most systems, you must have at least 250 megabytes (MB) of free disk space under one mount
point for the UniData installation to run. Depending on the type of installation, some space — as much
as 10 MB — may be released after installation.
If you decide to install UniData on a partition other than the default /usr partition, you will still need
to have approximately 2 MB available on /usr. This space is used for the /usr/ud81/include
directory
If you are planning to use the Recoverable File System (RFS), use the following formula to determine
the minimum disk space you need for logging:
8 MB + 4096 * (NUSERS + 1)
These requirements are based on the default of two before image and after image logs per set.
Each archive should be a minimum of 8 MB to contain two sets of after image logs.
Note: If you turn on archiving, you need to plan for additional resources (either disk or tape) to
handle regular backup of archive files.
15
Chapter 2: Introduction to installing the UniData RDBMS
To determine the space available on your system, use the UNIX df or du command at the shell
prompt. See your host operating system documentation for help with these commands.
Tip: Most UNIX systems provide an online manual, also known as the “man pages.” At the UNIX
prompt, enter the man man command to see if your system provides an online manual, and if so,
refer to the man pages about the specific syntax for df or du commands.
Memory
The exact memory needs for a UniData installation are highly platform and application specific. Aside
from the memory required by other applications on your system, if any, you can use the following
guidelines to estimate the memory required for your UniData installation:
▪ Approximately 10–20 MB of free memory for the operating system. Consult your host operating
system documentation for the amount of memory needed for your operating system.
▪ 2 MB of free memory per UniData session if you do not use RFS, just to run UniData.
▪ 3-5 MB of free memory per UniData session if you do use RFS, just to run UniData. Remember that
more memory is required if you use Transaction Processing, if you have a large number of writes in
one transaction, and if you are using archiving.
▪ Any additional memory required by your application.
▪ Compute your memory needs, then add 10 percent more memory for the UNIX file system buffer.
The following example illustrates how to calculate the amount of memory necessary for 50 users
running an application that requires 1 MB of memory per session. In this example, RFS is not
considered:
In the next example, memory is calculated for the same scenario running RFS:
Warning: If you are upgrading from a previous version of UniData with RFS to UniData 8.1 with
RFS, it is important that you create and verify a full backup of all your recoverable data files. We
16
Downloading UniData
suggest you use only log files or archive files created under UniData 8.1 to recover from system or
media failures that occur at UniData 8.1.
Downloading UniData
Download your UniData products from https://u2tc.rocketsoftware.com for the United States and
Canada or https://u2tcint.rocketsoftware.com if not in the United States or Canada.
Copy the file to some other location on your system, using the UNIX cp command. We suggest that you
copy the file into the directory that is your UniData bin directory. By default, this is /usr/ud81/bin.
You must extract the file to the UDTBIN directory and no other location.
Tip: Consult the Microsoft web site for information about hardware compatibility.
▪ At least 32 MB of RAM.
▪ At least 250MB of disk space on an NTFS partition for installing the UniData system files. This
requirements does not include space for your UniData database files.
▪ Windows XP, or greater.
▪ TCP/IP. You must have TCP/IP installed on your Windows system if you plan to install and use
UniData ODBC, the UniData Telnet Service, NFA, U2 Replication, or EDA.
Note: You must install UniData on NTFS partition, not a FAT partition. UniData is supported for
NTFS file systems only.
Note: On Red Hat Linux, running telnet in SSL mode will not work when SELINUX is enabled.
17
Chapter 2: Introduction to installing the UniData RDBMS
18
Directory structure on UniData for Windows platforms
Note: If you are upgrading from a previous release of UniData with RFS to UniData 8.1 with RFS,
and you want to keep your log files in the same location, be aware that the upgrade process will
19
Chapter 2: Introduction to installing the UniData RDBMS
overwrite existing log files. Make sure you backed up your data files, and stop UniData with stopud
before you begin the upgrade.
Tip: We recommend that you create the log files on a different physical device than your UniData
data files. You can create log files on a raw disk or UNIX file system.
Uninstalling UniData
Follow the applicable steps below to uninstall UniData.
Uninstalling on Windows:
▪ Stop all UniData services, including UniRPC
▪ Uninstall UniData through the Windows control panel.
▪ Remove the UniData home and UniShared paths at the operating system level.
Uninstalling on UNIX:
▪ Stop UniData.
▪ Remove the $UDTHOME path, unishared path (/.unishared location), and /usr/ud##
directory
▪ Remove uvrpc and any UDT telnet/ssl telnet lines from /etc/services or inetd/xinetd
configuration files
20
Chapter 3: UniData RDBMS basic installation
This chapter is intended for those who are installing UniData Release 8.1 on UNIX or Windows
platforms. These instructions guide you through the basic installation process. Use the basic
installation instructions when you are installing UniData for the first time and want to use the default
directories.
On UniData for UNIX, answers to the prompts in the installation script are kept in the
install.param file that is located in udtbin. This file contains responses that are most likely
inappropriate for your installation after it is loaded from tape. After you complete the installation
process, your responses to the installation prompts are written to this file.
You can edit the install.param file to customize your installation, then use the customized file as
part of the installation process without having to provide input to the installation prompts. If you want
to use this option, proceed to Installing using the install.param file on UniData for UNIX, on page 30.
Note: If installing UniData on a Solaris zone, the UUID (Universally Unique Identifier) is required. If
the command zoneadm list -pic returns no value in the 5th field then UniData will become
unlicensed on a reboot of the server. If the UUID is blank, then confirm that the
/etc/zones/index file on the child zone matches the information for this server in the
/etc/zones/index file on the global zone. Following is an example of the command output:
# mkdir /usr/ud81
# mkdir /usr/ud81/bin
# cd /usr/ud81/bin
21
Chapter 3: UniData RDBMS basic installation
3. Enter ./udtinstall
Enter ./udtinstall at the system prompt. This begins the installation process.
International installation
The UNIX LANG environment variable affects the behavior of UniData. Before you install UniData, you
should be aware of the consequences of using a LANG setting other than “C.” If you use a LANG setting
other than “C,” note that certain UniData commands may cause unpredictable results, such as the
UniBasic UPCASE and DOWNCASE commands, and the MCU and MCL conversion codes.
If you are installing UniData in an environment that does not support ASCII characters 250 through
255, and ASCII character 192 as internal markers, read UniData International before proceeding with
the installation.
Tip: We strongly recommend that the value of LANG is consistent for all users. Consider setting the
LANG environment variable in the .profile or .login script.
# locale -a
CPOSIX
C.iso88591
C.utf8univ.utf8
ar_DZ.arabic8
ar_SA.arabic8
ar_SA.iso88596
bg_BG.iso88595
cs_CZ.iso88592
da_DK.iso88591
da_DK.roman8
nl_NL.iso88591
nl_NL.roman8
.
.
.
#
During the installation process, UniData changes the LANG environment variable to “C” for installation
processing and displays the following message:
# udtinstall
Welcome to the UniData RDBMS.
http://www.rocketsoftware.com/software/data/u2
WARNING:
-- environment variable LANG is not set to ‘C’
-- it will be set to ‘C’ by Unidata for installation
-- see Unidata Installation Guide for more details
Would you like to continue? [Yes]:
If you press ENTER to accept the default answer of “Yes,” UniData continues the installation process
using the LANG group of “C.” If desired, you can change your LANG environment variable after
22
NonInternational installation
the installation process is complete. If you answer “No” to the above prompt, UniData exits the
installation process.
NonInternational installation
If you are executing a default installation, the following screen appears:
# cd $UDTBIN
#./udtinstall
Welcome to the UniData RDBMS.
http://www.rocketsoftware.com/software/data/u2
WARNING: If UniData system is still running, it will be
stopped with force. This may not guarantee the consistency of
your database files, so we recommend that you stop the system
with ‘stopud’ before installing/upgrading UniData.
Would you like to continue? [Yes]:
Press ENTER to accept the default of “Yes” if you want to continue with the installation process. If you
do not want to proceed at this time, enter “No.”
Note: You must enter “Yes” , “yes”, or “YES” and “No”, “no” or “NO” rather than “Y” or “N” for all
prompts in the installation process.
UniData displays the preceding warning message because the UDTHOME environment variable is not
set. You can set environment variables in step 19 of these instructions.
23
Chapter 3: UniData RDBMS basic installation
For example, if your license number is 12345678-UDT, enter 12345678 without the -UDT extension.
24
12. Install replication
Warning: When licensing UniData, you must be using a terminal supported by vvtermcap.
vvtermcap is a special UniData termcap-like file located in the udtbin directory. UniData
supports the following terminal types: ANSI, DEC VT100, DEC VT220, VT52, and WYSE 50. If you are
installing UniData from a different type of terminal, do not configure the product at the end of the
installation process.
25
Chapter 3: UniData RDBMS basic installation
LibDir /usr/ud81/lib
LogDir /usr/ud81/log
UnisharedDir /usr/unishared
Group sys
Serial serial_number
RFSflag No
REPflag No
Backup No
ConfProduct No
Are those values correct? [Yes]:
Using UDTBIN=/usr/ud81/bin
26
17. Authorize UniData
/usr/ud81/bin/include
/usr/ud81/bin/lib
/usr/ud81/bin/work
/usr/ud81/bin/demo
You may not be able to run full number of users sessions (1250)
as configured due to the current semmnu setting (100) in
your Unix system. You need to increase semmnu to 3750 and
rebuild your Unix kernel.
The number of global tables(SHM_GNTBLS) should not be greater
than SHMMNI.
No enough message queue identifiers. Please make N_TMQ and N_PGQ
smaller or enlarge MSGMNI.
There’s no enough semaphore identifiers in the system. Please
decrease NUSERS or enlarge SEMMNI.
There’s no enough semaphore undo structures in the system. Please
decrease NUSERS or enlarge SEMMNU.
If you see messages similar to those in the preceding example, you must change your kernel
parameters before you will be able to start UniData.
See Administering the Recoverable File System for information on RFS configuration parameters and
Administering UniData for information about configuration parameters and system tuning.
You now have completed the installation process. The following directories
are not required for running udt, you may eitherremove them for saving some
disk space or keep them there forthe future use:
27
Chapter 3: UniData RDBMS basic installation
/usr/ud81/bin/include
/usr/ud81/bin/lib
/usr/ud81/bin/work
/usr/ud81/bin/demo
Do you want to save those directories? [Yes]:
28
22. Run makeudt
If you are using XML, you must also set your library path. The following table shows the library path
environment variables by platform:
# ./startud
Using UDTBIN=/usr/ud81/bin
All output and error logs have been saved to ./saved_logs
directory.
SMM is started.
SBCS is started.
CLEANUPD is started.
Unirpcd is started
UniData R8.1 has been started.
UniData Release 8.1 Build: (6101)(c) Copyright Rocket Software, Inc. 1985-2015.
All rights reserved. Current UniData home is /usr/ud81/.Current working
directory is /usr/ud81/demo.
You can now run UniData. Change directories using the UNIX cd command to the demo account
located in /usr/ud81/demo. Enter the full path name of the bin directory, followed by the udt
command (if you have set your environment variables, the default is udtbin/udt, as in the following
example). If you have already authorized device licensing, enter udtts.
# cd ../demo
# udt
29
Chapter 3: UniData RDBMS basic installation
Note: Before users can access UniData, you must set environment variables for all users. Consider
using a .login or .profile script. You can include the full UniData paths there. You also need to
make sure each user’s path includes the udtbin path. For detailed information about this, see
Administering UniData.
# pg install.param
CheckLang Yes
UdtHome /disk2/srcman/alpha/ud_PEAK_981110
WorkDir /disk2/srcman/alpha/ud_PEAK_981110/work
LibDir /disk2/srcman/alpha/ud_PEAK_981110/lib
LogDir /disk2/srcman/alpha/ud_PEAK_981110/log
UnisharedDir /usr/unishared
Serial HPUX11
Group unisrc
StopSys Yes
RFSflag Yes
OverWrite No
Backup No
ConfProduct No
SaveDir save
Use any UNIX text editor to customize the prompt responses listed in the install.param file, or create
your own file with the required responses. In the following example, the default paths are used for
UdtHome, WorkDir, LibDir and LogDir. Group is changed to sys:
# pg install.param
CheckLang Yes
StopSys Yes
UdtHome /usr/ud81
WorkDir /usr/ud81/work
LibDir /usr/ud81/lib
LogDir /usr/ud81/log
UnisharedDir /usr/unishared
Group sys
Serial serial_number
RFSflag No
REPflag No
Backup No
ConfProduct No
OverWrite Yes
Confirm Yes
SaveDir save
30
Troubleshooting tips
# ./udtinstall -f install.param
Welcome to the UniData RDBMS.
http://www.rocketsoftware.com/software/data/u2
Enter the Serial Number displayed on your "U2 Software Product
Start installing/upgrading UniData RDBMS Release 8.1.
Using UDTBIN=/usr/ud81/bin
SM has already been stopped.
CLEANUPD has already been stopped.
SMM is not running.
SBCS has already been stopped.
SMM is not running.
Unirpcd has already been stopped
Unidata 8.1 has been shut down.
Changing files’ ownership and group name ...
.
.
.
Creating/Updating /usr/ud81/include directory...
Creating/Updating /usr/ud81/ods directory...
Creating/Updating /usr/ud81/lib directory...
Creating/Updating /usr/ud81/sys directory...
Creating/Updating /usr/ud81/demo directory...
Creating/Updating /usr/ud81/work directory...
Creating/Updating /usr/ud81/objcall directory...
Checking UNIX system configuration for running UniData ...
Update VOC files in /usr/ud81/sys /usr/ud81/demo ...
You now have completed the installation process. The following
directories are not required for running udt, you may either
remove them to save some disk space or keep them there for
future use:
/usr/ud81/bin/include
/usr/ud81/bin/lib
/usr/ud81/bin/work
/usr/ud81/bin/demo
Install unishared components...
Installed /usr/unishared/icsdk version 2.5.
Installed /usr/unishared/unirpc version 10.1.0.
Updating /usr/unishared/sharedby...
Done.
Updating /usr/unishared/unirpc/unirpcservices...
Done.
Congratulations! You have successfully installed/upgraded to
UniData RDBMS 8.1. Run startud to start UniData 8.1.
You should now complete steps 19 through 23 of the step-by-step installation instructions.
Troubleshooting tips
This section describes the cause of three problems commonly encountered during the UniData
installation.
Problem:
Installation completes, but UniData will not start.
Cause:
These failures are usually related to a UniData configuration parameter or a UNIX kernel parameter.
Check the smm.errlog file located in udtbin. The most common adjustments are:
31
Chapter 3: UniData RDBMS basic installation
N_PUT
This UniData configuration parameter, which controls the size of the system buffer for RFS, has
a default value of 8192. You may have to decrease it to 4096, depending on the size of shmmax *
shmseg. If this result is greater than 8 MG, you will have to adjust N_PUT
N_TMQ and N_PGQ
These UniData configuration parameters are numbers of UNIX message queues created for
communication between user processes and the Recoverable File System. By default, each parameter
is set to one queue for every four users. Add these to the number of message queues required by the
UniData lock control process (one queue for every five users), plus ten queues for the other UniData
daemons, and adjust the UNIX kernel parameter msgmni (number of message queues on your system)
accordingly. If you cannot increase msgmni, temporarily reduce N_TMQ and N_PGQ until the kernel
can be rebuilt.
Problem:
The smm.errlog contains a message similar to:
Cause:
The number of semaphores available system-wide is not adequate for the number of users on your
system. Increase the kernel parameter defining the number of semaphores available system-wide,
normally semmns, to at least NUSERS + 10. If you cannot rebuild the kernel, you must decrease the
NUSERS parameter in the udtconfig file, located in /usr/ud81/include, until the kernel can be
rebuilt.
Problem:
Message “Warning: As the ‘ranlib’ command is not available for this system, UniData libraries will
not be ready for rebuilding udt. The utilities makeudt and makesvr will not work” is displayed during
installation.
Cause:
This occurs on an AIX system that has not had the Application Development Toolkit installed. This is
not a problem unless your application requires C routines that need to be linked into UniData. This
linking process (makeudt) requires other utilities from this toolkit as well. If you do not need to link
C routines, ignore these messages. If you need to link C routines, install the AIX Toolkit and rerun
udtinstall.
Note: If you answered the last prompt in udtinstall with exit, you need to reload your UniData tape
first.
Problem:
Shared memory problems when editing large items with the Alternative Editor (AE). An example of a
shared memory error is:
Cause:
If you experience shared memory errors, see Administering UniData for information on shared memory
configuration parameters.
32
Step-by-Step Installation on UniData for Windows Platforms
1. Log on as an administrator
You must log on with Administrator privileges to install UniData. Either log on to the Administrator
account on the Windows system, or log on as a member of the local Administrators group.
Warning: After the installation is complete, you cannot run UniData’s Telnet Service or UniData’s
Serial Terminal Support Service at the same time as other Telnet or Serial terminal support
services. You must stop these services whenever you wish to use the ones you previously installed.
33
Chapter 3: UniData RDBMS basic installation
34
6. Enter customer information
If you Agree with the license agreement, click I accept the terms of the license agreement. If you do
not agree with the license agreement, click I do not accept the terms of the license agreement.
35
Chapter 3: UniData RDBMS basic installation
36
8. Choose components and directory
If you do not want to accept the default, click Browse and choose the directory where you want to
install UniData and unishared.
Click Back to return to the previous screen. Click Next to continue with the installation. Click
Cancel to exit the installation process without saving changes.
Notice the following points about the Select Components dialog box:
▪ You may install components one at a time if you wish, repeating the installation procedure for each
components or group of components.
▪ As you select or clear components, the Space Required figure changes.
Select the components you want to install, and then click Next to start the installation.
Click Back to return to the previous screen. Click Cancel to exit the installation process without saving
changes.
Note: Do not install the UniData Telnet Service or the UniData Serial Terminal Support Service if
there is a Telnet service or serial terminal support service from another vendor currently running
on your Windows system. Exit the installation, stop any such services, and restart the installation
process.
37
Chapter 3: UniData RDBMS basic installation
Enter the name of the Program Folder for UniData 8.1. If you do not want to accept the default, and
then click Next to continue with the installation process.
Click Back to return to the previous screen. Click Cancel to exit the installation process without saving
changes.
38
11. Complete the installation
Click Next to begin copying files. Click Back to return to the previous screen. Click Cancel to exit the
installation process without saving changes.
39
Chapter 3: UniData RDBMS basic installation
Click Finish to complete the installation. Click Back to return to the previous screen.
Select Yes, I want to restart my computer now, and then click OK to restart your computer. If you
want to restart your computer at a later time, click No, I will restart my computer later, and then
click OK.
40
13. Start a UniData session
Note: When you install UniData products, you have a ten day trial period before you must
authorize your configuration with Rocket Software. For the UniData RDBMS, the trial period starts
automatically.
41
Chapter 4: UniData RDBMS advanced
installation
This chapter is intended for those who are installing UniData Release 8.1 on UNIX or Windows
platforms. These instructions guide you through an advanced installation process.
On UniData for UNIX, answers to the prompts in the installation script are kept in the install.param file
located in udtbin. This file contains responses that are most likely inappropriate for your installation
after it is loaded from tape. After you complete the installation process, your responses to the
installation prompts are written to this file.
You may edit the install.param file to customize your installation, then use the customized file as part
of the installation process without having to provide input to the installation prompts. If you want to
use this option, proceed to Installing using the install.param file, on page 51.
Note: If installing UniData on a Solaris zone, the UUID (Universally Unique Identifier) is required. If
the command zoneadm list -pic returns no value in the 5th field then UniData will become
unlicensed on a reboot of the server. If the UUID is blank, then confirm that the
/etc/zones/index file on the child zone matches the information for this server in the
/etc/zones/index file on the global zone. Following is an example of the command output:
# pwd
/disk1
# mkdir ud81
# cd ud81
# mkdir bin
# cd bin
# pwd/disk1/ud81/bin
#
42
2. Download the zip file
3. Enter ./udtinstall
Enter ./udtinstall at the system prompt. This begins the installation process.
International installation
The UNIX LANG environment variable affects the behavior of UniData. Before you install UniData, you
should be aware of the consequences of using a LANG setting other than “C.” If you use a LANG setting
other than “C,” note that certain UniData commands may cause unpredictable results, such as the
UniBasic UPCASE and DOWNCASE commands, and the MCU and MCL conversion codes.
If you are installing UniData in an environment that does not support ASCII characters 250 through
255, and ASCII character 192 as internal markers, read UniData International before proceeding with
the installation.
Tip: We strongly recommend that the value of LANG is consistent for all users. Consider setting the
LANG environment variable in the .profile or .login script.
# locale -a
C
POSIX
C.iso88591
C.utf8
univ.utf8
ar_DZ.arabic8
ar_SA.arabic8
ar_SA.iso88596
bg_BG.iso88595
cs_CZ.iso88592
da_DK.iso88591
da_DK.roman8
nl_NL.iso88591
nl_NL.roman8
.
.
.
#
During the installation process, UniData changes the LANG environment variable to “C” for installation
processing and displays the following message:
# udtinstall
Welcome to the UniData RDBMS.
43
Chapter 4: UniData RDBMS advanced installation
http://www.rocketsoftware.com/software/data/u2
WARNING:
-- environment variable LANG is not set to ‘C’
-- it will be set to ‘C’ by Unidata for installation
-- see Unidata Installation Guide for more details
Would you like to continue? [Yes]:
If you press ENTER to accept the default answer of Yes, UniData continues the installation process
using the LANG group of “C.” If desired, you can change your LANG environment variable after the
installation process is complete. If you answer No to the above prompt, UniData exits the installation
process.
NonInternational installation
If you are executing a default installation, the following screen appears:
# cd /disk1/ud81/bin
#./udtinstall
Welcome to the UniData RDBMS.
http://www.rocketsoftware.com/software/data/u2
WARNING: If UniData system is still running, it will be
stopped with force. This may not guarantee the consistency of
your database files, so we recommend that you stop the system
with ‘stopud’ before installing/upgrading UniData.
Would you like to continue? [Yes]:
Press ENTER to accept the default of Yes if you want to continue with the installation process. If you
do not want to proceed at this time, enter No.
Note: You must enter “Yes”, “yes” or “YES” and “No”, “no”, or “NO” rather than “Y” or “N” for all
prompts in the installation process.
UniData displays the preceding warning message because the UDTHOME environment variable is not
set. You can set environment variables in step 19 of these instructions.
44
5. Enter the udtwork directory
Warning: Make sure the path of the log directory is different that the log directory for the
concurrent version of UniData
45
Chapter 4: UniData RDBMS advanced installation
For example, if your license number is 12345678-UDT, enter 12345678 without the -UDT extension.
46
15. Review input data
process, press ENTER to accept the default of No. UniData will run for 10 days after installation
without requiring authorization.
Warning: When licensing UniData, you must be using a terminal supported by vvtermcap.
vvtermcap is a special UniData termcap-like file located in the udtbin directory. UniData
supports the following terminal types: ANSI, DEC VT100, DEC VT220, VT52, and WYSE 50. If you are
installing UniData from a different type of terminal, do not configure the product at the end of the
installation process.
47
Chapter 4: UniData RDBMS advanced installation
You may not be able to run full number of users sessions (1250)
as configured due to the current semmnu setting (100) in
your Unix system. You need to increase semmnu to 3750 and
rebuild your Unix kernel.
The number of global tables(SHM_GNTBLS) should not be greater than SHMMNI.
No enough message queue identifiers. Please make N_TMQ and N_PGQ smaller
or enlarge MSGMNI.
There’s no enough semaphore identifiers in the system. Please decrease
NUSERS or enlarge SEMMNI.
There’s no enough semaphore undo structures in the system. Please decrease
NUSERS or enlarge SEMMNU.
If you see messages similar to those in the preceding example, you must change your kernel
parameters before you will be able to start UniData.
See Administering the Recoverable File System for information on RFS configuration parameters and
Administering UniData for information about configuration parameters and system tuning.
48
19. Installation complete
49
Chapter 4: UniData RDBMS advanced installation
If you are using XML, you must also set your library path. The following table shows the library path
environment variables by platform:
# ./startud
Using UDTBIN=/disk1/ud81/bin
All output and error logs have been saved to ./saved_logs directory.
SMM is started.
SBCS is started.
CLEANUPD is started.
Unirpcd is started
#
You can now run UniData. Change directories using the UNIX cd command to the udthome/
demo account. Enter the full path name of the bin directory, followed by the udt command (if you
have set your environment variables, the default is udt, as shown in the following example). If you are
using device licensing, enter udtts.
# cd ../demo
# udt
Note: Before users can access UniData, you must set environment variables for all users. Consider
using a .login or .profile script. You can include the full UniData paths there. You also need to
50
Installing using the install.param file
make sure each user’s path includes the udtbin path. For detailed information about this, see
Administering UniData.
# pg install.param
CheckLang Yes
UdtHome /disk2/srcman/alpha/ud_PEAK_981110
WorkDir /disk2/srcman/alpha/ud_PEAK_981110/work
LibDir /disk2/srcman/alpha/ud_PEAK_981110/lib
LogDir /disk2/srcman/alpha/ud_PEAK_981110/log
Serial HPUX11
Group unisrc
StopSys Yes
RFSflag Yes
OverWrite No
Backup No
ConfProduct No
SaveDir save
Use any UNIX text editor to customize the prompt responses listed in the install.param file, or create
your own file with the required responses. In the following example, the paths for UdtHome, WorkDir,
LibDir and LogDir are customized using /disk1/ud81 as udthome. Group is changed to sys:
# pg install.param
CheckLang Yes
StopSys Yes
UdtHome /disk1/ud81
WorkDir /disk1/ud81/work
LibDir /disk1/ud81/lib
LogDir /disk1/ud81/log
UnisharedDir /usr/unishared
Group sys
Serial serial_number
RFSflag No
REPflag No
Backup No
ConfProduct No
OverWrite Yes
Confirm Yes
SaveDir save
udtinstall -f filename
Troubleshooting tips
Problem:
51
Chapter 4: UniData RDBMS advanced installation
Installation completes, but UniData will not start. In this case, you will not see the normal message at
the end of the installation.
Cause:
These failures are usually related to a UniData configuration parameter or a UNIX kernel parameter.
Check the smm.errlog file located in udtbin. The most common adjustments are: N_PUTThis UniData
configuration parameter, which controls the size of the system buffer for RFS, has a default value of
8192. You may have to decrease it to 4096, depending on the size of shmmax * shmseg. If this result
is greater than 8 MG, you will have to adjust N_PUT. N_TMQ and N_PGQThese UniData configuration
parameters are numbers of UNIX message queues created for communication between user processes
and the Recoverable File System. By default, each parameter is set to one queue for every four users.
Add these to the ten queues for the other UniData daemons, and adjust the UNIX kernel parameter
msgmni (number of message queues on your system) accordingly. If you can’t increase msgmni,
temporarily reduce N_TMQ and N_PGQ until the kernel can be rebuilt.
Problem:
The smm.errlog contains a message similar to:Exit: smm: cannot allocate semaphore for udtno xx
errno xx Exit: SMM can’t setup Control Table List
Cause:
The number of semaphores available system-wide is not adequate for the number of users on your
system. Increase the kernel parameter defining the number of semaphores available system-wide,
normally semmns, to at least NUSERS + 10. If you cannot rebuild the kernel, you must decrease the
NUSERS parameter in the udtconfig file, located in /usr/ud81/include, until the kernel can be rebuilt.
Problem:
Message “Warning: As the ‘ranlib’ command is not available for this system, UniData libraries will
not be ready for rebuilding udt. The utilities makeudt and makesvr will not work” is displayed during
installation.
Cause:
This occurs on an AIX system that has not had the Application Development Toolkit installed. This is
not a problem unless your application requires C routines that need to be linked into UniData. This
linking process (makeudt) requires other utilities from this toolkit as well. If you don’t need to link
C routines, ignore these messages. If you need to link C routines, install the AIX Toolkit and rerun
udtinstall.
Note: If you answered the last prompt in udtinstall with exit, you will need to reload your UniData
tape first.
Problem:
Shared memory problems when editing large items with the Alternative Editor (AE). An example of a
shared memory error is:Error when creating a shared memory segment size=1440416), errno=22
Cause:
If you experience shared memory errors, see Administering UniData.
52
Step-by-step advanced installation on UniData for Windows platforms
1. Log on as an administrator
You must log on with Administrator privileges to install UniData. Either log on to the Administrator
account on the Windows system, or log on as a member of the local Administrators group.
Warning: After the installation is complete, you cannot run UniData’s Telnet Service or UniData’s
Serial Terminal Support Service at the same time as other Telnet or Serial terminal support
services. You must stop these services whenever you wish to use the ones you previously installed.
53
Chapter 4: UniData RDBMS advanced installation
54
5. Accept license agreement
55
Chapter 4: UniData RDBMS advanced installation
If you Agree with the license agreement, click I accept the terms of the license agreement. If you do
not agree with the license agreement, click I do not accept the terms of the license agreement.
56
7. Choose destination location for UniData
Notice the following points about the Select Components dialog box:
▪ You may install components one at a time if you wish, repeating the installation procedure for each
components or group of components.
▪ As you select or clear components, the Space Required figure changes.
Select the components you want to install, and then click Next to start the installation.
Click Back to return to the previous screen. Click Cancel to exit the installation process without saving
changes.
Note: Do not install the UniData Telnet Service or the UniData Serial Terminal Support Service if
there is a Telnet service or serial terminal support service from another vendor currently running
on your Windows system. Exit the installation, stop any such services, and restart the installation
process.
57
Chapter 4: UniData RDBMS advanced installation
If you do not want to accept the default, click Browse and choose the directory where you want to
install UniData.
Click Back to return to the previous screen. Click Next to continue with the installation. Click
Cancel to exit the installation process without saving changes.
58
9. Enter Licensing Details
Enter the name of the Program Folder for UniData 8.1 if you do not want to accept the default, and
then click Next to continue with the installation process.
Click Back to return to the previous screen. Click Cancel to exit the installation process without saving
changes.
59
Chapter 4: UniData RDBMS advanced installation
Click Next to confirm location prior to copying files. Click Back to return to the previous screen. Click
Cancel to exit the installation process without saving changes.
60
11. License UniData
Click Next to begin copying files. Click Back to return to the previous screen. Click Cancel to exit the
installation process without saving changes.
61
Chapter 4: UniData RDBMS advanced installation
62
13. Complete the installation
63
Chapter 4: UniData RDBMS advanced installation
Click Finish to complete the installation. Click Back to return to the previous screen.
Select Yes, I want to restart my computer now, and then click OK to restart your
machine. If you want to restart your computer at a later time, click No, I will restart my
computer later, and then click OK.
Note: When you install UniData products, you have a ten day trial period before you must
authorize your configuration with Rocket Software. For the UniData RDBMS, the trial period starts
automatically.
64
Chapter 5: UniData RDBMS concurrent
installation
This chapter is intended for those who are installing UniData Release 8.1 on UNIX or Windows
platforms. These instructions guide you through a concurrent installation process. Use a concurrent
installation when you have a previous version of UniData running on the same machine where you are
installing UniData Release 8.1, and you want to run the two versions concurrently.
Note: Users running different versions of UniData should not try to update the same files at the
same time with both UniData versions. If you want to test your application by installing Release 8.1
concurrently, set up a separate demo database for your testing. Do not try to update live files with
two versions of UniData at the same time.
65
Chapter 5: UniData RDBMS concurrent installation
Locating the log files and archive files separately for UniData 8.1 is also desirable for distributing I/O
load across your file systems.
Note: If installing UniData on a Solaris zone, the UUID (Universally Unique Identifier) is required. If
the command zoneadm list -pic returns no value in the 5th field then UniData will become
unlicensed on a reboot of the server. If the UUID is blank, then confirm that the
/etc/zones/index file on the child zone matches the information for this server in the
/etc/zones/index file on the global zone. Following is an example of the command output:
# pwd
/disk1
# mkdir ud81
# cd ud81
# mkdir bin
# cd bin
# pwd/disk1/ud81/bin
66
2. Download the UniData zip file
3. Enter ./udtinstall
Enter ./udtinstall at the system prompt. This begins the installation process.
International installation
The UNIX LANG environment variable affects the behavior of UniData. Before you install UniData, you
should be aware of the consequences of using a LANG setting other than “C.” If you use a LANG setting
other than “C,” note that certain UniData commands may cause unpredictable results, such as the
UniBasic UPCASE and DOWNCASE commands, and the MCU and MCL conversion codes.
If you are installing UniData in an environment that does not support ASCII characters 250 through
255, and ASCII character 192 as internal markers, read UniData International before proceeding with
the installation.
Tip: We strongly recommend that the value of LANG is consistent for all users. Consider setting the
LANG environment variable in the .profile or .login script.
# locale -a
C
POSIX
C.iso88591
C.utf8
univ.utf8
ar_DZ.arabic8
ar_SA.arabic8
ar_SA.iso88596
bg_BG.iso88595
cs_CZ.iso88592
da_DK.iso88591
da_DK.roman8
nl_NL.iso88591
nl_NL.roman8...#
During the installation process, UniData changes the LANG environment variable to “C” for installation
processing and displays the following message:
# udtinstall
Welcome to the UniData RDBMS.
67
Chapter 5: UniData RDBMS concurrent installation
http://www.rocketsoftware.com/software/data/u2
WARNING:
-- environment variable LANG is not set to ‘C’
-- it will be set to ‘C’ by Unidata for installation
-- see Unidata Installation Guide for more details
Would you like to continue? [Yes]:
If you press ENTER to accept the default answer of Yes, UniData continues the installation process
using the LANG group of “C.” If desired, you can change your LANG environment variable after
the installation process is complete. If you answer “No” to the above prompt, UniData exits the
installation process.
NonInternational installation
If you are executing a default installation, the following screen appears:
# cd $UDTBIN
#./udtinstall
Welcome to the UniData RDBMS.
http://www.rocketsoftware.com/software/data/u2
WARNING: If UniData system is still running, it will be
stopped with force. This may not guarantee the consistency of
your database files, so we recommend that you stop the system
with ‘stopud’ before installing/upgrading UniData.
Would you like to continue? [Yes]:
Press ENTER to accept the default of Yes if you want to continue with the installation process. If you
do not want to proceed at this time, enter No.
Note: You must enter “Yes” , “yes”, or “YES” and “No”, “no” or “NO” rather than “Y” or “N” for all
prompts in the installation process.
UniData displays the preceding warning message because the UDTHOME environment variable is not
set. You can set environment variables in step 19 of these instructions.
68
5. Enter the udtwork directory
Warning: Make sure the path of the log directory is different that the log directory for the
concurrent version of UniData
69
Chapter 5: UniData RDBMS concurrent installation
For example, if your license number is 12345678-UDT, enter 12345678 without the -UDT extension.
70
15. Review input data
process, press ENTER to accept the default of No. UniData will run for 10 days after installation
without requiring authorization.
Warning: When licensing UniData, you must be using a terminal supported by vvtermcap.
vvtermcap is a special UniData termcap-like file located in the udtbin directory. UniData
supports the following terminal types: ANSI, DEC VT100, DEC VT220, VT52, and WYSE 50. If you are
installing UniData from a different type of terminal, do not configure the product at the end of the
installation process.
Using UDTBIN=/disk1/ud81/bin
SM stopped successfully.
CLEANUPD stopped successfully.
SBCS stopped successfully.
SMM stopped successfully.
Unirpcd stopped successfully.
Unidata R8.1 has been shut down.
Changing files' ownership and group name ...
71
Chapter 5: UniData RDBMS concurrent installation
You may not be able to run full number of users sessions (1250)
as configured due to the current semmnu setting (100) in
your Unix system. You need to increase semmnu to 3750 and
rebuild your Unix kernel.
The number of global tables(SHM_GNTBLS) should not be greater than SHMMNI.
No enough message queue identifiers. Please make N_TMQ and N_PGQ
smaller or enlarge MSGMNI.
There's no enough semaphore identifiers in the system. Please
decrease NUSERS or enlarge SEMMNI.
There's no enough semaphore undo structures in the system. Please
decrease NUSERS or enlarge SEMMNU.
If you see messages similar to those in the preceding example, you must change your kernel
parameters before you will be able to start UniData.
See Administering the Recoverable File System for information on RFS configuration parameters and
Administering UniData for information about configuration parameters and system tuning.
72
19. Installation complete
/disk1/ud81/bin/include
/disk1/ud81/bin/lib
/disk1/ud81/bin/work
/disk1/ud81/bin/demo
Do you want to save those directories? [Yes]:
If you are using XML, you must also set your library path. The following table shows the library path
environment variables by platform:
73
Chapter 5: UniData RDBMS concurrent installation
# ./startud
Using UDTBIN=/disk1/ud81/bin
All output and error logs have been saved to ./saved_logs directory.
SMM is started.
SBCS is started.
CLEANUPD is started.
Unirpcd is started
#
You can now run UniData. Change directories using the UNIX cd command to the udthome/demo
account. Enter the full path name of the bin directory, followed by the udt command (if you have set
your environment variables, the default is udt, as shown in the following example).
# cd ../demo
# udt
Note: Before users can access UniData, you must set environment variables for all users. Consider
using a .login or .profile script. You can include the full UniData paths there. You also need to
make sure each user’s path includes the udtbin path. For detailed information about this, see
Administering UniData.
74
24. Move globally cataloged programs
# cd /disk1/ud81/sys
# pwd
/disk1/ud81/sys
Next, copy the CTLG directory and the CTLGTB file to UniData 8.1:
# cp -r CTLG /disk1/ud81/sys
# cp -r CTLGTB /disk1/ud81/sys
The UniData-supplied programs must be globally cataloged. To accomplish this, start a UniData
session in the udthome/sys directory and execute the INSTALLUDT command, as shown in the
following example:
# cd /disk1/ud81/sys
# udt
UniData Release 8.1 Build: (6101)
(c) Copyright Rocket Software, Inc.
All rights reserved.
Current UniData home is /disk1/ud81/.
Current working directory is /disk1/ud81/sys.
:INSTALLUDT
# pg install.param
CheckLang Yes
UdtHome /disk2/srcman/alpha/ud_PEAK_981110
WorkDir /disk2/srcman/alpha/ud_PEAK_981110/work
LibDir /disk2/srcman/alpha/ud_PEAK_981110/lib
LogDir /disk2/srcman/alpha/ud_PEAK_981110/log
Serial HPUX11
Group unisrc
StopSys Yes
RFSflag Yes
OverWrite No
Backup No
ConfProduct No
SaveDir save
Use any UNIX text editor to customize the prompt responses listed in the install.param file, or create
your own file with the required responses. In the following example, the paths for UdtHome, WorkDir,
LibDir, and LogDir are customized using /disk1/ud81 as udthome. Group is changed to sys:
# pg install.param
CheckLang Yes
75
Chapter 5: UniData RDBMS concurrent installation
StopSys Yes
UdtHome /disk1/ud81
WorkDir /disk1/ud81/work
LibDir /disk1/ud81/lib
LogDir /disk1/ud81/log
UnisharedDir /disk1/unishared
Group sys
Serial serial_number
RFSflag No
REPflag No
Backup No
ConfProduct No
OverWrite Yes
Confirm Yes
SaveDir save
udtinstall -f filename
# ./udtinstall -f install.param
Welcome to the UniData RDBMS.
http://www.rocketsoftware.com/software/data/u2
Enter the Serial Number displayed on your "Software Product
Start installing/upgrading UniData RDBMS Release 8.1.
Using UDTBIN=/disk1/ud81/bin
SM has already been stopped.
CLEANUPD has already been stopped.
SMM is not running.
SBCS has already been stopped.
SMM is not running.
Unirpcd has already been stopped
Unidata 8.1 has been shut down.
Changing files’ ownership and group name ...
.
.
.
Creating/Updating /usr/ud81/include directory...
Creating/Updating /disk1/ud81/ods directory...
Creating/Updating /disk1/ud81/lib directory...
Creating/Updating /disk1/ud81/sys directory...
Creating/Updating /disk1/ud81/demo directory...
Creating/Updating /disk1/ud81/work directory...
Creating/Updating /disk1/ud81/objcall directory...
Checking UNIX system configuration for running UniData ...
Update VOC files in /usr/ud81/sys /usr/ud81/demo ...
You now have completed the installation process. The following
directories are not required for running udt, you may either
remove them to save some disk space or keep them there for
future use:
/disk1/ud81/bin/include
/disk1/ud81/bin/lib
/disk1/ud81/bin/work
/disk1/ud81/bin/demo
Install unishared components...
Installed /usr/unishared/icsdk version 2.5.
Installed /usr/unishared/unirpc version 10.1.0.
Updating /usr/unishared/sharedby...
76
Troubleshooting tips
Done.
Updating /usr/unishared/unirpc/unirpcservices...
Done.
Congratulations! You have successfully installed/upgraded to
UniData RDBMS 8.1. Run startud to start UniData 8.1.
You should now complete steps 20 through 23 of the step-by-step installation instructions.
Troubleshooting tips
This section describes the cause of three problems commonly encountered during the UniData
installation.
Problem:
Installation completes, but UniData will not start. In this case, you won’t see the normal message at
the end of the installation.
Cause:
These failures are usually related to a UniData configuration parameter or a UNIX kernel parameter.
Check the smm.errlog file located in udtbin. The most common adjustments are: N_PUTThis UniData
configuration parameter, which controls the size of the system buffer for RFS, has a default value of
8192. You may have to decrease it to 4096, depending on the size of shmmax * shmseg. If this result
is greater than 8 MG, you will have to adjust N_PUT. N_TMQ and N_PGQThese UniData configuration
parameters are numbers of UNIX message queues created for communication between user processes
and the Recoverable File System. By default, each parameter is set to one queue for every four users.
Add these to the ten queues for the other UniData daemons, and adjust the UNIX kernel parameter
msgmni (number of message queues on your system) accordingly. If you can’t increase msgmni,
temporarily reduce N_TMQ and N_PGQ until the kernel can be rebuilt.
Problem:
The smm.errlog contains a message similar to:Exit: smm: cannot allocate semaphore for udtno xx
errno xx Exit: SMM can’t setup Control Table List
Cause:
The number of semaphores available system-wide is not adequate for the number of users on your
system. Increase the kernel parameter defining the number of semaphores available system-wide,
normally semmns, to at least NUSERS + 10. If you cannot rebuild the kernel, you must decrease the
NUSERS parameter in the udtconfig file, located in /usr/ud81/include, until the kernel can be rebuilt.
Problem:
Message “Warning: As the ‘ranlib’ command is not available for this system, UniData libraries will
not be ready for rebuilding udt. The utilities makeudt and makesvr will not work” is displayed during
installation.
Cause:
This occurs on an AIX system that has not had the Application Development Toolkit installed. This is
not a problem unless your application requires C routines that need to be linked into UniData. This
linking process (makeudt) requires other utilities from this toolkit as well. If you don’t need to link
C routines, ignore these messages. If you need to link C routines, install the AIX Toolkit and rerun
udtinstall.
Note: If you answered the last prompt in udtinstall with exit, you need to reload your UniData tape
first.
Problem:
77
Chapter 5: UniData RDBMS concurrent installation
Shared memory problems when editing large items with Alternative Editor (AE). An example of a
shared memory error is:Error when creating a shared memory segment size=1440416), errno=22
Cause:
If you experience shared memory errors, see Administering UniData.
1. Log on as an administrator
You must log on with Administrator privileges to install UniData. Either log on to the Administrator
account on the Windows system, or log on as a member of the local Administrators group.
Warning: After the installation is complete, you cannot run UniData’s Telnet Service or UniData’s
Serial Terminal Support Service at the same time as other Telnet or Serial terminal support
services. You must stop these services whenever you wish to use the ones you previously installed.
78
5. Accept license agreement
Note: Do not install the UniData Telnet Service or the UniData Serial Terminal Support Service if
there is a Telnet service or serial terminal support service from another vendor currently running
on your Windows system. Exit the installation, stop any such services, and restart the installation
process.
79
Chapter 5: UniData RDBMS concurrent installation
Click Back to return to the previous screen. Click Cancel to exit the installation process without saving
changes.
9. Copy files
The installation process now copies files, creates the program group and icons, and updates the
Registry.
Click Next to begin copying files. Click Back to return to the previous screen. Click Cancel to exit the
installation process without saving changes.
Note: When you install UniData products, you have a ten day trial period before you must
authorize your configuration with Rocket Software. For the UniData RDBMS, the trial period starts
automatically.
80
Chapter 6: UniData RDBMS upgrade installation
This chapter is intended for those who are upgrading to UniData Release 8.1 on UNIX or Windows
platforms.
On UniData for UNIX, answers to the prompts in the installation script are kept in the install.param file
located in udtbin. This file contains responses that are most likely inappropriate for your installation
after it is loaded from tape. After you complete the installation process, your responses to the
installation prompts are written to this file.
You may edit the install.param file to customize your installation, then use the customized file as part
of the installation process without having to provide input to the installation prompts. If you want to
use this option, proceed to Installing using the install.param file, on page 92.
Note: If installing UniData on a Solaris zone, the UUID (Universally Unique Identifier) is required. If
the command zoneadm list -pic returns no value in the 5th field then UniData will become
unlicensed on a reboot of the server. If the UUID is blank, then confirm that the
/etc/zones/index file on the child zone matches the information for this server in the
/etc/zones/index file on the global zone. Following is an example of the command output:
Note: If you are upgrading from Release 3.3.2 or later and made your modifications to the
cfuncdef_user file, you do not need to make any changes to the cfuncdef file. If you made
modifications to the cfuncdef file in the old version of UniData, these changes should be saved
to the cfuncdef_user file in the udthome/work directory so you will not have to make the same
changes with each upgrade of UniData. See Administering UniData for information about make files
and cfuncdef_user.
81
Chapter 6: UniData RDBMS upgrade installation
# printenv
_=/usr/bin/printenv
MANPATH=/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/man:/u
sr/local/man/%L:/usr/local/man:/opt/upgrade/share/man/%L:/opt/upgrade/share/man:
/usr/dt/share/man:/opt/pd/share/man/%L:/opt/pd/share/man:/opt/ignite/share/man/%
L:/opt/ignite/share/man
PATH=/disk1/ud81/bin:/usr/bin:/usr/sbin:/sbin
.
.
.
UDTHOME=/disk1/ud81
SHELL=/bin/csh
UDTBIN=/disk1/ud81/bin
TERM=vt100
PWD=/disk1/ud81/demo
TZ=MST7MDT
#
If the UDTHOME and UDTBIN environment variables are not set or are set incorrectly, use the following
examples to set them to your existing version of UniData. These examples use /disk1/ud81 as the
location of UDTHOME and /disk1/ud81/bin as the location of UDTBIN. Substitute your paths for
udthome and udtbin.
If you are using XML, you must also set your library path. The following table shows the library path
environment variables by platform:
82
3. Change directories
3. Change directories
Your current working directory must be the udtbin directory you defined in step 2. Change to this
directory and execute the pwd command to check your location.
# cd $UDTBIN
# pwd
/disk1/ud81/bin
#
# listuser
Licensed/Effective # of Users Udt Sql Total
32 / 32 0 0 0
UDTNO USRNBR UID USRNAME USRTYPE TTY TIME DATE
#
5. Stop UniData
Stop the existing UniData daemons with the stopud command, then verify that all daemons have
been stopped by using the showud command. Be sure to use stopud even if your system seems to be
down to make certain all processes and ipc structures are cleaned up. Do not run UniData during the
upgrade process; doing so could corrupt your UniData software.
In the following example, stopud is executed followed by showud to verify that all daemons have
stopped:
# ./stopud
Using UDTBIN=/disk1/ud81/bin
SM has already been stopped.
CLEANUPD stopped successfully.
SBCS stopped successfully.
SMM stopped successfully.
Unidata R8.1 has been shut down.
# ./showud
UID PID TIME COMMAND
#
83
Chapter 6: UniData RDBMS upgrade installation
7. Enter ./updatesys
Enter ./updatesys at the system prompt. This begins the upgrade process.
International upgrade
The UNIX LANG environment variable affects the behavior of UniData. Before you upgrade UniData,
you should be aware of the consequences of using a LANG setting other than "C." If you use a LANG
setting other than "C," note that certain UniData commands may cause unpredictable results, such as
the UniBasic UPCASE and DOWNCASE commands, and the MCU and MCL conversion codes.
If you are upgrading UniData in an environment that does not support ASCII characters 192 and 250
through 255 as internal markers, read UniData International before proceeding with the installation.
Tip: We strongly recommend that the value of LANG is consistent for all users. Consider setting the
LANG environment variable in the .profile or .login script.
# locale -a
C
POSIX
C.iso88591
C.utf8
univ.utf8
ar_DZ.arabic8
ar_SA.arabic8
ar_SA.iso88596
bg_BG.iso88595
cs_CZ.iso88592
da_DK.iso88591
da_DK.roman8
nl_NL.iso88591
nl_NL.roman8
.
.
.
#
During the installation process, UniData changes the LANG environment variable to “C” for installation
processing and displays the following message:
# updatesys
Welcome to the UniData RDBMS.
http://www.rocketsoftware.com/software/data/u2
WARNING:
-- environment variable LANG is not set to ‘C’
-- it will be set to ‘C’ by Unidata for installation
-- see Unidata Installation Guide for more details
Would you like to continue? [Yes]:
84
NonInternational upgrade
If you press ENTER to accept the default answer of Yes, UniData continues the upgrade process using
the LANG group of "C." If desired, you can change your LANG environment variable after the upgrade is
complete. If you answer No to the above prompt, UniData exits the upgrade process.
NonInternational upgrade
If you are executing a default upgrade, the following screen appears:
# ./updatesys
Welcome to the UniData RDBMS.
http://www.rocketsoftware.com/software/data/u2
WARNING: If UniData system is still running, it will be
stopped with force. This may not guarantee the consistency of
your database files, so we recommend that you stop the system
with ‘stopud’ before installing/upgrading UniData.
Would you like to continue? [Yes]:
Press ENTER to accept the default of Yes if you want to continue with the upgrade process. If you do
not want to proceed at this time, enter No.
Note: You must enter "Yes", "yes", or "YES" and "No", "no", or "NO" rather than "Y" or "N" for all
prompts in the installation process.
85
Chapter 6: UniData RDBMS upgrade installation
For example, if your license number is 12345678-UDT, enter 12345678 without the -UDT extension.
86
16. Back up existing directories
If you choose to install Replication at this time, enter Yes. The installation process creates a default
configuration file, creates the log files, and turns on Replication:
Warning: When licensing UniData, you must be using a terminal supported by vvtermcap.
vvtermcap is a special UniData termcap-like file located in the udtbin directory. UniData
supports the following terminal types: ANSI, DEC VT100, DEC VT220, VT52 and WYSE 50. If you are
installing UniData from a different type of terminal, do not configure the product at the end of the
installation process.
87
Chapter 6: UniData RDBMS upgrade installation
CheckLang No
OverWrite Yes
Confirm Yes
SaveDir save
StopSys Yes
WorkDir /disk1/ud81/work
LibDir /disk1/ud81/lib
LogDir /disk1/ud81/log
UnisharedDir /usr/unishared
Group sys
Serial serial_number
RFSflag Yes
REPflagNo
Backup Yes
ConfProduct No
PreviousVer 73
Are those values correct? [Yes]:
88
22. Choose to release disk space
If you authorize UniData as part of the installation process, UniData executes the systest command
again to determine configuration parameters for the number of authorized users. If your kernel
parameters are not adequate to support the number of authorized users, UniData displays messages
similar to the following:
You may not be able to run full number of users sessions (1250)
as configured due to the current semmnu setting (100) in
your Unix system. You need to increase semmnu to 3750 and
rebuild your Unix kernel.
The number of global tables(SHM_GNTBLS) should not be greater than SHMMNI.
No enough message queue identifiers. Please make N_TMQ and N_PGQ
smaller or enlarge MSGMNI.
There’s no enough semaphore identifiers in the system. Please decrease
NUSERS or enlarge SEMMNI.
There’s no enough semaphore undo structures in the system. Please
decrease NUSERS or enlarge SEMMNU.
If you see messages similar to those in the preceding example, you must change your kernel
parameters before you will be able to start UniData.
See Administering the Recoverable File System for information on RFS configuration parameters and
Administering UniData for information about configuration parameters and system tuning.
89
Chapter 6: UniData RDBMS upgrade installation
# ./startud
Using UDTBIN=/disk1/ud81/bin
All output and error logs have been saved to ./saved_logs directory.
SMM is started.
SBCS is started.
CLEANUPD is started.
Unirpcd is started
#
You can now run UniData. Change directories using the UNIX cd command to the demo account
located in udthome/demo. Enter the full path of the bin directory, followed by the udt command (if
you have set your environment variables, the default is udt, as shown in the following example). If you
are using device licensing, enter udtts to start a UniData session.
# cd ../demo
# udt
Before users can access UniData, you must set environment variables for all users. Consider using
a .login or .profile script. You can include the full UniData paths there. You will also need to make sure
each user’s path includes the udtbin path. For detailed information about this, see the Administering
UniData manual.
90
27. Run updatevoc
Description
Run the system-level updatevoc command for each account after you install a new version of UniData.
The command adds new VOC entries to the account. UniData reads the new entries from a file called
VOCUPGRADE, which the upgrade process places in your udtbin directory.
Parameters
The following table describes each parameter of the updatevoc syntax.
Parameter Description
[-A] Traverses all subdirectories.
[-C] Records changes made to existing entries in a file named vocupgrade, in the
directory from which updatevoc was executed.
[-I] Runs interactively, prompting the user for verification when an entry in
VOCUPGRADE will result in changes to an existing entry in the VOC file.
[-O] Updates all VOC entries in VOCUPGRADE, overwriting existing VOC entries
without prompting for verification.
[-N] Records changes not made due to conflicts with existing entries in a file named
vocupgrade, in the directory updatevoc was run from.
[-S] Suppresses informational messages normally displayed after each change to the
VOC file.
[directory] Specifies a directory on which to run updatevoc.
91
Chapter 6: UniData RDBMS upgrade installation
2. Change Directories
Your current working directory must be the directory in which the previous UniData executables
are installed. Change to this directory and execute the pwd command to check your location.
# cd $UDTBIN
# pwd/disk1/ud81/bin
#
# pg install.param
UdtHome /disk2/srcman/alpha/ud_PEAK_981110
WorkDir /disk2/srcman/alpha/ud_PEAK_981110/work
LibDir /disk2/srcman/alpha/ud_PEAK_981110/lib
LogDir /disk2/srcman/alpha/ud_PEAK_981110/log
Serial HPUX11
Group unisrc
StopSys Yes
RFSflag Yes
OverWrite No
Backup No
ConfProduct No
SaveDir save
Use any UNIX text editor to customize the prompt responses listed in the install.param file, or create
your own file with the required responses. In the following example, the paths for UdtHome, WorkDir,
LibDir, and LogDir are customized using /disk1/ud81 as udthome. Group is changed to sys:
# pg install.param
CheckLang Yes
StopSys Yes
UdtHome /disk1/ud81
WorkDir /disk1/ud81/work
LibDir /disk1/ud81/lib
LogDir /disk1/ud81/log
UnisharedDir /usr/unishared
Group sys
Serial serial_number
RFSflag No
REPflag No
Backup No
92
Installing using the install.param file
ConfProduct No
OverWrite Yes
Confirm Yes
SaveDir save
udtinstall -f filename
# ./udtinstall -f install.param
Welcome to the UniData RDBMS.
http://www.rocketsoftware.com/software/data/u2
Enter the Serial Number displayed on your "Software Product
Start installing/upgrading UniData RDBMS Release 8.1.
Using UDTBIN=/disk1/ud81/bin
SM has already been stopped.
CLEANUPD has already been stopped.
SMM is not running.
SBCS has already been stopped.
SMM is not running.
Unirpcd has already been stopped
Unidata 8.1 has been shut down.
Changing files’ ownership and group name ...
.
.
.
Creating/Updating /usr/ud81/include directory...
Creating/Updating /disk1/ud81/ods directory...
Creating/Updating /disk1/ud81/lib directory...
Creating/Updating /disk1/ud81/sys directory...
Creating/Updating /disk1/ud81/demo directory...
Creating/Updating /disk1/ud81/work directory...
Creating/Updating /disk1/ud81/objcall directory...
Checking UNIX system configuration for running UniData ...
Update VOC files in /disk1/ud81/sys /disk1/ud81/demo ...
You now have completed the installation process. The following
directories are not required for running udt, you may either
remove them to save some disk space or keep them there for
future use:
/disk1/ud81/bin/include
/disk1/ud81/bin/lib
/disk1/ud81/bin/work
/disk1/ud81/bin/demo
Install unishared components...
Installed /usr/unishared/icsdk version 2.5.
Installed /usr/unishared/unirpc version 10.1.0.
Updating /usr/unishared/sharedby...
Done.
Updating /usr/unishared/unirpc/unirpcservices...
Done.
Congratulations! You have successfully installed/upgraded to
UniData RDBMS 8.1. Run startud to start UniData 8.1.
You should now complete steps 24 through 27 of the step-by-step installation instructions.
93
Chapter 6: UniData RDBMS upgrade installation
Troubleshooting tips
This section describes the cause of three problems commonly encountered during the UniData
installation.
Problem:
Installation completes, but UniData will not start.
Cause:
These failures are usually related to a UniData configuration parameter or a UNIX kernel parameter.
Check the smm.errlog file located in udtbin. The most common adjustments are: N_PUT This UniData
configuration parameter, which controls the size of the system buffer for RFS, has a default value of
8192. You may have to decrease it to 4096, depending on the size of shmmax * shmseg. If this result is
greater than 8 MB, you will have to adjust N_PUT. N_TMQ and N_PGQ. These UniData configuration
parameters are numbers of UNIX message queues created for communication between user processes
and the Recoverable File System. By default, each parameter is set to one queue for every four users.
Add these to the ten queues for the other UniData daemons, and adjust the UNIX kernel parameter
msgmni (number of message queues on your system) accordingly. If you can’t increase msgmni,
temporarily reduce N_TMQ and N_PGQ until the kernel can be rebuilt.
Problem:
If the smm.errlog contains a message similar to:
Cause:
The number of semaphores available system-wide is not adequate for the number of users on your
system. Increase the kernel parameter defining the number of semaphores available system-wide,
normally semmns, to at least NUSERS + 10. If you cannot rebuild the kernel, you must decrease the
NUSERS parameter in the udtconfig file, located in /usr/ud81/include, until the kernel can be rebuilt.
Problem:
Message “Warning: As the ‘ranlib’ command is not available for this system, UniData libraries will
not be ready for rebuilding udt. The utilities makeudt and makesvr will not work” is displayed during
installation.
Cause:
This occurs on an AIX system that has not had the Application Development Toolkit installed. This is
not a problem unless your application requires C routines that need to be linked into UniData. This
linking process (makeudt) requires other utilities from this toolkit as well. If you don’t need to link
C routines, ignore these messages. If you need to link C routines, install the AIX Toolkit and rerun
udtinstall. UniData uses the Visual Age Compiler on AIX not the GNU (gcc) compiler.
Note: If you answered the last prompt in udtinstall with exit, you need to reload your UniData tape
first.
Problem:
Shared memory problems when editing large items with the Alternative Editor (AE). An example of a
shared memory error is:
Cause:
94
Step-by-step installation on UniData for Windows platforms
2. Log on as an administrator
You must log on with Administrator privileges to install UniData.
95
Chapter 6: UniData RDBMS upgrade installation
Warning: After the installation, you will not be able to run UniData’s Telnet Service or UniData’s
Serial Terminal Support Service at the same time as other Telnet or Serial terminal support
services. You must stop these whenever you wish to use the ones you installed previously.
7. Upgrade UniData
If you want to select new program features to install, or select program features to remove, select
Modify. If you want to reinstall all of the program features from the previous installation, select
Repair.
Follow the instructions in UniData RDBMS advanced installation, on page 42. When the installation
process prompts for the directory where you want to install UniData, enter the path to the directory
installed on your PC that you want to update, as shown in the following example:
96
8. Backup UniData
Note: If you are upgrading your UniData version and you have created indexes on any of the
data files that get installed in the UniData demo account (for instance, CLIENTS), you will
encounter problems if you select Demo Account when you upgrade. The files and indexes won’t
be synchronized, and any attempt to use your indexes will fail. To prevent these problems, either
refrain from upgrading the demo database or remove all the indexes (with the DELETE.INDEX
command) and re-create them after the upgrade.
8. Backup UniData
Starting with UniData 8.1, the windows installation has the ability to backup the current installation
before proceeding with an upgrade.
If upgrading UniData into an existing UniData path, you will see the following:
97
Chapter 6: UniData RDBMS upgrade installation
98
12. Update alternate global catalog spaces
Warning: Do not set your UDTHOME environment variable to the UniData home you want to
upgrade.
Note: When you install UniData products, you have a ten day trial period before you must
authorize your configuration with Rocket Software. For the UniData RDBMS, the trial period starts
automatically.
99
Chapter 6: UniData RDBMS upgrade installation
In the $UDTHOME\backups\ud_version directory (path given in the backup screen), execute the
UDRestore.exe file. The startup Welcome screen displays. Click Next and the following displays:
The Installation screens display, beginning with selecting the Destination Path.
100
Chapter 7: UniData RDBMS patch installation
This chapter is intended for those who are installing a patch release of UniData Release 8.1 on a UNIX
platform.
Answers to the prompts in the installation script are kept in the install.param file located in udtbin.
This file contains responses that are most likely inappropriate for your installation after it is loaded
from tape. You may edit the install.param file to customize your installation, then use the customized
file as part of the installation process without having to provide input to the installation prompts. If
you want to use this option, proceed to Installing using the install.param file, on page 113.
After you complete the installation process, your responses to the installation prompts are written to
this file.
Overwritten files
A patch installation overwrites the following files and/or directories:
▪ The contents of udtbin.
▪ The udtconfig file located in /usr/ud81/include.
▪ The logconfig file located in /usr/ud81/include.
▪ The arch_backup and arch_restore files located in /usr/ud81/include.
▪ The contents of the /usr/ud81/ods directory.
▪ The base.mk, cfuncdef, and callbas.mk files in udthome/work.
▪ The files provided by UniData in the udthome/demo directory (for example, the CLIENTS,
ORDERS, and INVENTORY files).
▪ The log files, if you are running the Recoverable File System.
During the patch installation process, you have the opportunity to choose whether to back up the /
usr/ud81/include, udthome/work and udthome/log directories as part of the upgrade process.
If you choose to backup these files, UniData creates a directory called backup in udtbin, which
contains the include, log, and work directories as they existed before the upgrade process started. You
may want to additionally backup these files in an area outside of the UniData directory structure in
case you have to rerun the upgrade process.
If you want to restore a file that was saved in the backup directory, you can copy the file from the
udtbin/backup directory to the current file. In the following example, the udtconfig file is copied
from the backup directory to /usr/ud81/include using the UNIX cp command:
# pwd
/usr/ud81/include
# cp /disk1/ud81/bin/backup/include/udtconfig udtconfig
#
In addition to the backup directory, a copy of the udtconfig file, called udtconfig.bak, is written to
usr/ud81/include directory. The upgrade process also prompts you to indicate whether or
101
Chapter 7: UniData RDBMS patch installation
not you want to overwrite the existing udthome/work directory. If you have linked C routines with
UniData, do not overwrite the directory during the upgrade process.
Updated files
A patch installation updates the following files and/or directories:
▪ The VOC file in each UniData account after running updatevoc.
▪ The global catalog space located in udthome/sys.
You do not have to recompile or recatalog your globally cataloged programs after a patch installation.
Step-by-step installation
Follow the steps in this section for a patch installation. You must log on with root permissions to
perform the installation.
Note: If installing UniData on a Solaris zone, the UUID (Universally Unique Identifier) is required. If
the command zoneadm list -pic returns no value in the 5th field then UniData will become
unlicensed on a reboot of the server. If the UUID is blank, then confirm that the
/etc/zones/index file on the child zone matches the information for this server in the
/etc/zones/index file on the global zone. Following isan example of the command output:
Note: If you made your modifications to the cfuncdef_user file in your previous version of
UniData 8.1, you do not need to make any changes to the cfuncdef file. If you made modifications
to the cfuncdef file in the previous version of UniData, these changes should be saved to the
cfuncdef_user file in the udthome/work directory so you will not have to make the same changes
with each upgrade of UniData. See Administering UniData for information about make files and
cfuncdef_user.
102
2. Check environment variables
# printenv
MANPATH=/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/
man:/usr/local/man/%L:/usr/local/man:/opt/pd/share/man/%L:/opt/pd/share/
man:/opt/hpnp//man:/opt/graphics/starbase/share/man:/opt/audio/share/
man:/opt/blinklink/share/man:/opt/ansic/share/man/
%L:/opt/ansic/share/man:/opt/langtools/share/man/
%L:/opt/langtools/share/man:/opt/video/share/
man:/opt/videoout/share/man:/opt/image/share/
man:/opt/imake/man:/opt/aCC/share/man:/opt/CC/share/man
PATH=/disk1/ud81/bin:/usr/bin:/usr/sbin:/sbin
COLUMNS=80
.
.
.
UDTHOME=/disk1/ud81
SHELL=/bin/csh
UDTBIN=/disk1/ud81/bin
If the UDTHOME and UDTBIN environment variables are not set or are set incorrectly, use the following
examples to set them to your existing version of UniData. These examples use /disk1/ud81 as
the location of UDTHOME and /disk1/ud81/bin as the location of UDTBIN. Substitute your paths for
udthome and udtbin.
If you are using XML, you must also set your library path. The following table shows the library path
environment variables by platform:
103
Chapter 7: UniData RDBMS patch installation
3. Change directories
Your current working directory must be the directory where the previous UniData executables are
installed. Change to this directory and execute the pwd command to check your location.
# cd $UDTBIN
# pwd
/disk1/ud81/bin
#
# listuser
Licensed/Effective # of Users Udt Sql Total
32 / 32 0 0 0
UDTNO USRNBR UID USRNAME USRTYPE TTY TIME DATE
#
5. Stop UniData
Stop the existing UniData daemons with the stopud command, then verify that all daemons have been
stopped by using the showud command. Be sure to use stopud even if your system seems to be down
to make certain all processes and ipc structures are cleaned up. Do not run UniData during the patch
installation process; doing so could corrupt your UniData software.
In the following example, stopud is executed followed by showud to verify that all daemons have
stopped:
# ./stopud
Using UDTBIN=/disk1/ud81/bin
SM stopped successfully.
CLEANUPD stopped successfully.
SBCS stopped successfully.
SMM stopped successfully.
Unirpcd has already been stopped
Unidata R8.1 has been shut down.
# ./showud
UID PID TIME COMMAND
#
104
6. Download the UniData zip file
7. Enter ./updatesys
Enter ./updatesys at the system prompt. This begins the patch installation process.
International installation
The UNIX LANG environment variable affects the behavior of UniData. Before you install UniData, you
should be aware of the consequences of using a LANG setting other than “C.” If you use a LANG setting
other than “C,” note that certain UniData commands may cause unpredictable results, such as the
UniBasic UPCASE and DOWNCASE commands, and the MCU and MCL conversion codes.
If you are installing UniData in an environment that does not support ASCII characters 250 through
255, and ASCII character 192 as internal markers, read UniData International before proceeding with
the installation.
Note: We strongly recommend that the value of LANG is consistent for all users. Consider setting
the LANG environment variable in the .profile or .login script.
# locale -a
C
POSIX
C.iso88591
C.utf8
univ.utf8
ar_DZ.arabic8
ar_SA.arabic8
ar_SA.iso88596
bg_BG.iso88595
cs_CZ.iso88592
da_DK.iso88591
da_DK.roman8
nl_NL.iso88591
nl_NL.roman8
.
.
.
#
During the installation process, UniData changes the LANG environment variable to “C” for installation
processing and displays the following message:
# udtinstall
Welcome to the UniData RDBMS.
105
Chapter 7: UniData RDBMS patch installation
http://www.rocketsoftware.com/software/data/u2
WARNING:
-- environment variable LANG is not set to ‘C’
-- it will be set to ‘C’ by Unidata for installation
-- see Unidata Installation Guide for more details
Would you like to continue? [Yes]:
If you press ENTER to accept the default answer of Yes, UniData continues the installation process
using the LANG group of "C." If desired, you can change your LANG environment variable after the
installation process is complete. If you answer No to the above prompt, UniData exits the installation
process.
NonInternational installation
If you are executing a default installation, the following screen appears:
# ./updatesys
Welcome to the UniData RDBMS.
http://www.rocketsoftware.com/software/data/u2
WARNING: If UniData system is still running, it will be
stopped with force. This may not guarantee the consistency of
your database files, so we recommend that you stop the system
with ‘stopud’ before installing/upgrading UniData.
Would you like to continue? [Yes]:
Press ENTER to accept the default of Yes if you want to continue with the installation process. If you
do not want to proceed at this time, enter No.
Note: You must enter “Yes” , “yes”, or “YES” and “No”, “no” or “NO” rather than “Y” or “N” for all
prompts in the installation process.
106
10. Enter the location of the log files
For example, if your license number is 12345678-UDT, enter 12345678 without the -UDT extension.
107
Chapter 7: UniData RDBMS patch installation
Warning: When licensing UniData, you must be using a terminal supported by vvtermcap.
vvtermcap is a special UniData termcap-like file located in the udtbin directory. UniData
supports the following terminal types: ANSI, DEC VT100, DEC VT220, VT52 and WYSE 50. If you are
installing UniData from a different type of terminal, do not configure the product at the end of the
installation process.
108
19. Enter old version number of UniData
109
Chapter 7: UniData RDBMS patch installation
If you authorize UniData as part of the installation process, UniData executes the systest command
again to determine configuration parameters for the number of authorized users. If your kernel
parameters are not adequate to support the number of authorized users, UniData displays messages
similar to the following:
You may not be able to run full number of users sessions (1250)
as configured due to the current semmnu setting (100) in
your Unix system. You need to increase semmnu to 3750 and
rebuild your Unix kernel.
The number of global tables(SHM_GNTBLS) should not be greater than SHMMNI.
No enough message queue identifiers. Please make N_TMQ and N_PGQ
smaller or enlarge MSGMNI.
There’s no enough semaphore identifiers in the system. Please
decrease NUSERS or enlarge SEMMNI.
There’s no enough semaphore undo structures in the system. Please
decrease NUSERS or enlarge SEMMNU.
If you see messages similar to those in the preceding example, you must change your kernel
parameters before you will be able to start UniData.
See Administering the Recoverable File System for information on RFS configuration parameters and
Administering UniData for information about configuration parameters and system tuning.
110
25. Check environment variables
# cp /disk1/ud81/bin/backup/include/udtconfig
/usr/ud81/include/udtconfig
#
# cntl_install
cntl_install utility resets Unidata System
after a full database backup (Image Copy).
This means, all log (and archive) files will
also be initialized for re-use.
Do you want to continue?(y/n) [n] y
Installing Logs (and Archives) after cntl_install
........
#
Note: If you are running UniData with archiving enabled, you do not have to restore or edit the
archconfig file, since it is not overwritten by the patch installation.
111
Chapter 7: UniData RDBMS patch installation
# ./startud
Using UDTBIN=/disk1/ud81/bin
All output and error logs have been saved to ./saved_logs directory.
SMM is started.
SBCS is started.
CLEANUPD is started.
Unirpcd is started
#
You can now run UniData. Change directories using the UNIX cd command to the demo account
located in udthome/demo. Enter the full path name of the bin directory, followed by the udt
command (if you have set your environment variables, the default is udt, as in the following example).
# cd ../demo
# udt
Note: Before users can access UniData, you must set environment variables for all users. Consider
using a .login or .profile script. You can include the full UniData paths there. You will also need to
make sure each user’s path includes the udtbin path. For detailed information, see Administering
UniData.
Description
The system-level updatevoc command should be run for each account after you install a new version
of UniData. The command adds new VOC entries to the account. The system reads the new entries
from a file called VOCUPGRADE, which the upgrade process places in your udtbin directory.
Parameters
The following table describes each parameter of the updatevoc syntax.
112
Installing using the install.param file
Parameter Description
[-A] Traverses all subdirectories.
[-C] Records changes made to existing entries in a file named vocupgrade, in the
directory updatevoc was run from.
[-I] Runs interactively, prompting the user for verification when an entry in
VOCUPGRADE will result in changes to an existing entry in the VOC file.
[-O] Updates all VOC entries in VOCUPGRADE, overwriting existing VOC entries
without prompting for verification.
[-N] Records changes not made due to conflicts with existing entries in a file named
vocupgrade, in the directory updatevoc was run from.
[-S] Suppresses informational messages normally displayed after each change to the
VOC file.
[directory] Specifies a directory on which to run updatevoc.
# pg install.param
UdtHome /disk2/srcman/alpha/ud_PEAK_981110
WorkDir /disk2/srcman/alpha/ud_PEAK_981110/work
LibDir /disk2/srcman/alpha/ud_PEAK_981110/lib
LogDir /disk2/srcman/alpha/ud_PEAK_981110/log
Serial HPUX11
Group unisrc
StopSys Yes
RFSflag Yes
OverWrite No
Backup No
ConfProduct No
SaveDir save
Use any UNIX text editor to customize the prompt responses listed in the install.param file, or create
your own file with the required responses. In the following example, the paths for UdtHome, WorkDir,
LibDir, and LogDir are customized using /disk1/ud81 as udthome. Group is changed to sys:
# pg install.param
CheckLang Yes
StopSys Yes
UdtHome /disk1/ud81
WorkDir /disk1/ud81/work
LibDir /disk1/ud81/lib
LogDir /disk1/ud81/log
UnisharedDir /disk1/unishared
Group sys
Serial serial_number
RFSflag No
REPflag No
Backup No
ConfProduct No
OverWrite Yes
Confirm Yes
113
Chapter 7: UniData RDBMS patch installation
SaveDir save
updatesys -f filename
# ./updatesys -f install.param
Welcome to the UniData RDBMS.
http://www.rocketsoftware.com/software/data/u2
Enter the Serial Number displayed on your "Software Product
Start installing/upgrading UniData RDBMS Release 8.1.
Using UDTBIN=/disk1/ud81/bin
SM has already been stopped.
CLEANUPD has already been stopped.
SMM is not running.
SBCS has already been stopped.
SMM is not running.
Unirpcd has already been stopped
Unidata 8.1 has been shut down.
Changing files’ ownership and group name ...
.
.
.
Creating/Updating /usr/ud81/include directory...
Creating/Updating /disk1/ud81/ods directory...
Creating/Updating /disk1/ud81/lib directory...
Creating/Updating /disk1/ud81/sys directory...
Creating/Updating /disk1/ud81/demo directory...
Creating/Updating /disk1/ud81/work directory...
Creating/Updating /disk1/ud81/objcall directory...
Checking UNIX system configuration for running UniData ...
Update VOC files in /usr/ud81/sys /usr/ud81/demo ...
You now have completed the installation process. The following directories
are not required for running udt, you may eitherremove them to save some
disk space or keep them there forfuture use:
/disk1/ud81/bin/include
/disk1/ud81/bin/lib
/disk1/ud81/bin/work
/disk1/ud81/bin/demo
Install unishared components...
Installed /usr/unishared/icsdk version 2.5.
Installed /usr/unishared/unirpc version 10.1.0.
Updating /usr/unishared/sharedby...
Done.
Updating /usr/unishared/unirpc/unirpcservices...
Done.
Congratulations! You have successfully installed/upgraded to
UniData RDBMS 8.1. Run startud to start UniData 8.1.
You should now complete steps 25 through 30 of the step-by-step installation instructions.
Troubleshooting tips
This section describes the cause of three problems commonly encountered during the UniData
installation.
Problem:
114
Troubleshooting tips
115
Chapter 8: Licensing UniData products
This chapter covers licensing UniData after you have installed it. This chapter covers the following
topics:
▪ Information about licensing.
▪ Licensing steps.
▪ The confprod program.
▪ The udtconf program.
About licensing
The licensing process allows you to define a software license expiration date based on the license
you purchase. UniData begins to issue warnings to the console every hour, beginning 10 days before
the expiration date. This warning process and the grace period allow you to get a new authorization
before UniData terminates.
Licensing UniData
You can license UniData products from UniAdmin, or from by entering the confprod command from
the command line.
116
Licensing procedure
Licensing procedure
In order to license UniData, you must complete the following steps. Each step is explained in detail
later in this chapter:
1. Determine the number of users and the UniData product set for your system. On UniData for
UNIX, your installation media comes preset with a default of eight users, and all layered products
set to N. On UniData for Windows platforms, your installation media comes preset with a default
of 32 users. You set the number of users and authorized products for your system when you
run the confprod program. If the number of users and authorized products on your Product
Configuration Sheet differs from what you ordered, contact your UniData software distributor or
account manager.
2. Run the confprod program and enter the number of users and the authorized product set into the
Configuration and Authorization screen to generate a configuration code.
3. Contact Rocket Software with the generated configuration code to obtain an authorization code.
4. Enter the authorization code into the Configuration and Authorization screen of the confprod
program. On UniData for UNIX, the product fields that display Y or N indicate whether you are
licensed to use the product. On UniData for Windows Platforms, the check box next to a product
indicates whether you are licensed to use that product. The product fields that display numbers
show how many users are authorized to use that product.
5. Run udtconf to update the UniData configuration parameters for the number of authorized users.
6. If you are running the Recoverable File System, adjust the log configuration file and reinitialize
the log and archive files.
Note: UniData functions for up to 10 days after installation without an authorization code. You
should allow sufficient time to contact Rocket Software with your configuration code and receive
an authorization code. Any change in the configuration starts the same 30-day countdown. Even if
you immediately return your settings to their former values, you must contact Rocket Software for
a new authorization code.
Tip: If the configuration provided to you matches what you requested from your UniData supplier,
you should consider leaving it the way you received it to avoid any purchasing discrepancies or
problems.
On UniData for UNIX, the confprod program requires that you use a terminal supported by vvtermcap.
vvtermcap is a special UniData termcap-like file. confprod, and udtconf (the shared memory
configuration tool) rely on vvtermcap. UniData expects to find this file in udtbin. If vvtermcap is not
located in udtbin, you must set the VVTERMCAP environment variable to the path where vvtermcap
resides.
UniData supports the following terminal types:
▪ ANSI
▪ DEC VT100
▪ DEC VT220
▪ VT52
▪ WYSE 50
vvtermcap also includes a sample definition that is tunable to your specific terminal requirements. As
the system administrator, you should make sure your terminal emulation is listed. If not, you can copy
the “Test” terminal definition and modify it to meet your needs.
117
Chapter 8: Licensing UniData products
1. Change directories
Change directories to the udtbin directory in which you installed UniData. Change directories using
the UNIX cd command and then confirm your location using the pwd command as shown in the
following example:
# cd /usr/ud81/bin
# pwd
/usr/ud81/bin
#
2. Run confprod
You must log on as root to run confprod.
The confprod application is used to obtain the configuration code after installing UniData. The
following describes how to use confprod:
To start the application, enter the following command from the udtbin directory:
# ./confprod
118
3. Match your product configuration sheet
If you have previously set the configuration and obtained authorization, the Authorization field should
say Yes, indicating that you are authorized until you change the configuration. If you are already
authorized and the number of users and UniData products is correct, no further action is required until
you make changes.
119
Chapter 8: Licensing UniData products
Note: The screen instructions call for CTRL plus the letter on the screen (U, F, A, D, or E); however,
the necessity for CTRL depends on your operating system. Try both to see if you need to enter CTRL
plus the letter, or just the letter.
9. Exit licensing
Press CTRL+E (Exit) to exit the licensing process.
# showud
UID PID TIME COMMAND
root 28643 0:00 /disk1/ud81/bin/aimglog 0 18367
120
11. Run udtconf
If UniData is running, ask all users to log out of UniData, then stop UniData with the stopud command.
121
Chapter 8: Licensing UniData products
To advance to a field displayed on the screen, press TAB. To page down, press CTRL+D. To page up,
enter CTRL+U.
The udtconf utility displays warning messages if some of the kernel parameters are not adequate
to support the values udtconf calculates. Make sure that the kernel parameter for semaphore undo
structures, usually semmnu, is adequate to support the number of authorized users prior to running
udtconf.
Settings for the udtconfig parameters NUSERS, SHM_GNTBLS, N_TMQ, and N_PGQ are based on the
number of authorized users. Although udtconf displays warning messages if kernel parameters are not
adequate to support these settings, the udtconfig file is updated with the values you set if you choose
to ignore the warnings. In this case, UniData may not be able to start. For more information about
configuring your UniData system, see Administering UniData.
122
Saving configuration parameters
When all configuration parameters have been checked, the system displays the message “Shared
memory related configuration values are OK!”
udtconf suggests values assuming that UniData is the only software product on your system. If that is
true, as long as the current kernel settings for semaphore undo structures, shared memory segments,
and so forth, are at least equal to the suggested values, it should not be necessary to rebuild your
kernel. If you have additional applications running, you need to consider the combined effect of
UniData and all other applications when evaluating your kernel.
Exit udtconf
To exit the udtconf utility, press CTRL+E. If you have made changes to configuration parameters,
make sure to save the changes using CTRL+V before exiting the program.
123
Chapter 8: Licensing UniData products
# pg logconfig
/disk1/ud81/log/a_0000 021 4096 0 250
/disk1/ud81/log/a_0001 021 4096 0 250
/disk1/ud81/log/b_0000 022 4096 0 250
/disk1/ud81/log/b_0001 022 4096 0 250
/disk1/ud81/log/a_0002 021 4096 0 250
/disk1/ud81/log/a_0003 021 4096 0 250
/disk1/ud81/log/b_0002 022 4096 0 250
/disk1/ud81/log/b_0003 022 4096 0 250
/disk1/ud81/log/filelog_0 0120 4096 0 126
(EOF):
# cntl_install
cntl_install utility resets Unidata System
after a full database backup (Image Copy).
This means, all log (and archive) files will
also be initialized for re-use.
Do you want to continue?(y/n) [n] y
Installing Logs (and Archives) after cntl_install
........
#
124
How UniData counts licenses
If you are authorizing UniData separately from performing an installation, you may now start
UniData with the startud command.
125
Chapter 8: Licensing UniData products
2. Verify configuration
Verify that the configuration displayed in the Configure Product/License dialog box matches the
configuration on the Product Configuration sheet shipped with UniData.
If the number of users, connection pools, or device licenses displayed in the UniData RDBMS,
Connection Pooling, and Device Licenses boxes do not agree with your Production Configuration
sheet, click the appropriate box and enter the correct number of users or connection pools.
Review the layered products selected. If you are authorized to use a product that is not selected, select
the check box next to the appropriate product. If a product is selected that you are not authorized to
use, click the check box next to the appropriate product to clear it.
Authorize UniData
To obtain an authorization code, click Copy next to the appropriate link for your geography,
either https://u2tc.rocketsoftware.com/authprod.asp for the United States and Canada or https://
u2tcint.rocketsoftware.com/authprod.asp if outside the United States or Canada.
After obtaining the authorization code, enter the code in the Authorization Code box, or click Paste,
and then click OK. Click Close to the exit the program without saving changes.
126
Updating a UniData license
Note: You must log on as root on UniData for UNIX or Administrator on UniData for Windows
Platforms to authorize the product.
Note: If you do not have your Product Configuration sheet, or if you encounter problems
authorizing UniData, contact Rocket Software.
127
Appendix A: Introduction to udtsetup
Starting at UniData 8.1.0, a new installation/upgrade script has been included with the UniData media
for UNIX and Linux platforms. This new script is an improvement over the existing udtinstall and
updatesys utilities in many ways.
See the list below for a summary of the benefits of this new installation method.
▪ Installing UniData, on page 131 – Including Basic and Advanced - Adding UniData to a new system
▪ Upgrading UniData, on page 146 – Including Upgrade Installation
▪ Concurrent Installation of UniData, on page 162 – Upgrading an Existing major version of UniData
Concurrent Installation (Adding a new major version of UniData, running both major versions at
the same time, UDTHOME/UDTBIN would be different paths between the two major versions.)
Naming conventions
The following naming conventions are used throughout this book:
▪ UDTHOME/$UDTHOME – UniData Home Directory environment variable
▪ UDTBIN/$UDTBIN – UniData Bin Directory environment variable – This is usually a ‘bin’
subdirectory instead $UDTHOME
▪ /usr/ud## - The ## is the major version of UniData without periods. For example, UniData 8.1
would be shown as: /usr/ud81/include/path81
▪ ‘< text >’ - Shown in example output – This is an action that is suppressed from the example. For
instance the systest output that is several pages long is shown with these brackets.
▪ Directory path used in examples – The examples use the /disk1 directory path, the defaults used
in the script is /usr/ud## for UniData and /usr/unishared for the Unishared path
▪ For the question/prompts during the example, if no text is shown at the start of the next line then
an Enter was used.
Improvements
The new installation/upgrade scripts for udtsetup include the following improvements:
▪ One Installation/upgrade script – All three major install types are supported in the one script.
If udtinstall was used then the /usr/ud##/include, $UDTHOME/lib, $UDTHOME/log,
or $UDTHOME/sys (including the global catalog space) was removed. With udtsetup, checks
are done to verify the installation type (Install, Upgrade, or Concurrent), so if UniData is being
upgraded, the catalog space will not be cleared.
▪ Tar file extraction done By Udtsetup – The recommended method of installing/upgrading UniData
with udtsetup is to extract the udtsetup file from that tar file then allow the udtsetup script to
extract the remaining files (included in tar file only with UniData 8.1.0 and higher). The udtsetup
script validates before doing the full tar file extraction to avoid unnecessary downtime if there are
problems with the installation media. See OS/platform media validation, on page 182 for the
various ways to notify the udtsetup script of where the media is located.
▪ Web Authorization – If using the ‘Web Authorization’ (W) or ‘Confprod with Web Authorization’ (CW)
options for the Authorization method, after supplying licensing details (serial number, user count,
etc.) and U2 Business Connect required info, a call can be made during the udtsetup script to
authorize UniData for you. The details entered must match U2 Business Connect records. For an
example of Web Authorization, see Web authorization, on page 185. This is only supported with
UniData version 7.2.0 or higher.
▪ Backup and restore – For upgrade installs, the udtinstall/updatesys method had a backup option
but it only backed up /usr/ud##/include, $UDTHOME/work and $UDTHOME/log. With
128
Improvements
this script, it backs up the /usr/ud##, $UDTHOME, $UDTBIN, /.udlibs*, and more. For an
example of the backup steps, see Backup questions, on page 151.
▪ Check and fix permissions – If options are selected (disabled by default), a permission log can be
generated during an installation/upgrade so that if a permissions issue arises later on, permissions
can be changed back to the values used at installation time. Also, on upgrades, a second check can
be done and any differences can be fixed by the udtsetup script. See Permission questions, on page
152.
▪ Media validation– Before altering the system, the tar file supplied is checked to see if it is for the
correct operating system and confirms if systest works. If these checks fail, then the system is not
altered. See OS/platform media validation, on page 182.
▪ Upgrade validation – Several changes have been done to improve upgrades:
▫ The udtsetup process confirms that UniData is not running, including the UniRPC daemon.
▫ The ‘fuser’ utility confirms that no UniData bin files are in use. In previous versions of UniData,
if UniData processes were still running, those files wouldn’t be updated and will cause errors
when trying to use those outdated files later.
▫ A check is done to find all previously known UniData major versions. If UniData is already
installed, then in the ‘UniData Version to be upgraded’ question, only the versions currently
installed are listed. Previously, only the major version set in the script was reported.
▫ The ‘Install Serial Number’ is retrieved from the existing installation. In previous versions of
UniData, this was always set to ‘serial_number’
▪ URI (Uniform Resource Identifier) support – Installation files can be retrieved from Internet
resources. The udtsetup script uses the ‘curl’ utility which is available on all major platforms. The
udtsetup script must exist locally first before these files can be downloaded. These options are
currently only available through command line options. See Command line options, on page 175.
▪ Custom configuration files – If custom versions of the UniData configuration files are found, these
can be retrieved by the udtsetup script and copied into place. This saves time configuring these
files on new systems. Most of the configuration files used by UniData are supported (common
files being udtconfig, ud_database, logconfig, etc.). Some of the files are copied directly, others
have keywords that can be updated without being copied. See Custom configuration files, on page
193. These same configuration files are supported with the URI feature as well.
▪ Custom commands - The udtsetup process will check for a file called ‘commands’ in the custom
directory and execute any attached scripts. See Custom commands, on page 197.
▪ Replication and Recoverable File System (RFS) prompts – With the udtsetup script, the replication
and RFS files are configured with default settings even if the prompts are set to No. The flags in
udtconfig are only enabled if these prompts are set to Yes. When using the udtinstall/updatesys
scripts, if these prompts were set to No, then no files are setup. If a customer decides to add these
components later, an administrator is required to manually set up the files or reinstall UniData.
▪ Improved logging – There are 10 levels of logging available to the script (see Improved logging and
exit codes, on page 177. The default level is fine for most users, and the logging level should only
need to be increased if instructed by the Rocket U2 Technical Support group. The last 10 calls to
the udtsetup script will be captured in the $UDTBIN/saved_logs/udtsetup.log file. There
are also logs in $UDTBIN/saved_logs, starting with ‘udtsetup’ for permissions changes, the tar
file extraction output, and a warning log.
▪ Parameter file – In previous versions of UniData, the udtinstall/updatesys scripts supported a
Parameter file for recording answers to install prompts. This functionality has been integrated into
udtsetup. There are 40+ parameters available. If the upgrade/install prompt does not have a value
for the question encountered, the user will be prompted for this information. Web Authorization,
Check Permissions, Backup, and other new features have parameter file support included. Some
parameters are used in both types of parameter files. There is no validation done if using a
parameter file from udtinstall/updatesys with udtsetup and vise-versa. The parameter file from
udtsetup is saved to $UDTBIN/saved_logs/udtsetup.param. A copy parameter that is set
in udtsetup parameter files is ScriptVersion. See Parameter file, on page 178.
129
Appendix A: Introduction to udtsetup
▪ Unique messages and exit codes – Each abort has a unique exit code and a unique message. The
unique exit codes will help in troubleshooting. Corrective action is noted in messages whenever
possible.
▪ Environment Variables – The UDTHOME, UDTBIN, and LANG environment variables do not need
to be set in order to use this script. If using the old installation method (see Restrictions, on page
130), then the UDTBIN environment variable will need to be set.
▪ Start UDT at end of script – With udtsetup, UniData automatically starts at the end of the script by
default. With udtinstall/updatesys, the administrator must start UniData manually after the install
completes.
▪ Backward compatibility – The udtsetup script was developed before the release of UniData 8.1,
and as a result it has only been tested against UniData 7.2. 7.3, and 8.1. No testing has been done
against versions before UniData 7.2 but in general it should work. The UniData Version is read
from the tar file and checks are done internally in the script based on the version. There is only
one script for all Unix/Linux platforms, so this script can be copied between servers and will work
correctly. See technote #UDT-11605 to get a copy of the udtsetup script and related licensing
program in case you are not installing UniData 8.1. The script will be included with the product
media starting at UniData 8.1.0.
▪ Exit Early/Quit supported – Before UniData 8.1.0, udtinstall/updatesys will hang if a user types ‘Q’
at a prompt. This is fixed in UDT 8.1.0 of udtinstall, updatesys and udtsetup. For udtsetup, quit will
be disabled after the media has been extracted to the UniData Bin directory. If using udtsetup, a
message is displayed after the ‘quit’ was entered explaining how to restart the process will the
same settings. See QUIT/EXIT early, on page 178.
▪ Compressed media files supported – If the udtsetup script is available outside of the media tar file,
the udtsetup can uncompress certain file types to extract the UniData binaries from the bin.tar
file and will then compress the tar file back to the original name. The file types supported are .Z,
.zip, and .gz.
▪ Help and version details – Help details, including command line options, are shown with the ‘-
h’ and ‘-ah’ options. Also, there is an internal version kept inside the udtsetup script, use the ‘-v’
option to show the version.
▪ Follow of script is similar to udtinstall/updatesys – The learning curve for this new script should
be low since it looks and feels similar to the original udtinstall/updatesys scripts. Several prompts
that look the same have been improved in this script.
▪ Data Copied to new install directory – If UniData is being moved on the system to a new location,
the original data is copied first before an installation/upgrade is performed.
Restrictions
The latest version of UniData has the following restrictions for the installation process:
▪ The old installation method used with udtinstall of extracting to $UDTBIN, then running the install
script, is supported only for Installation and Concurrent Installations. Upgrades must use the new
method of supplying a tar file, since the contents of the $UDTBIN directory cannot be verified to be
the latest upgrade version. If using the old install method, the $UDTBIN environment variable must
be set first.
▪ For URI options, the only tool supported is ‘curl’.
▪ If using URI options and configuration the repsys file, the EXCEPTION_ACTION script is not copied
from the URI location. Support for this may be added in the future.
▪ If using custom commands, bypass the LOGIN paragraph to avoid the custom script failing. During
this segment, a ‘UDTSETUP’ environment variable is set to 1 to help modify the LOGIN paragraph
to allow for this. See Custom commands, on page 197 for a code example.
▪ Unable to run the script from the / or /etc directory.
130
Examples
Examples
New major features in udtsetup can be found in the following sections:
▪ Web authorization – Full example, on page 142
▪ Backup – Full example, on page 159
▪ Restore – Only details given, example not shown, see Restore, on page 188
▪ Check and fix permissions – Full example, on page 159
Installing UniData
Follow the steps in this section for a basic or advanced installation. Text referring to ## means the
major UniData version, for example 73, 81, etc.
The examples will show an advanced installation. The only difference between basic and advanced is
that the ‘basic’ install has the UniData home directory set to /usr/ud## (major version number), and
‘advanced’ is anywhere else on the system. On UniData for UNIX/Linux, answers to the prompts in
the udtsetup script are kept in the udtsetup.param file located in $UDTBIN/saved_logs. See
Parameter file, on page 178 for more information on the use of the parameter file.
The udtsetup will create the UniData home and bin directories during the install. If the install aborts,
these directories will be deleted. The parent directory of UniData home will not be created during
the script. All screen messages are written to the /tmp/udtsetup.partial.log file. After the installation/
upgrade completes, the file is moved to the $UDTBIN/saved_logs/udtsetup.log file. There
is also a /tmp/udtsetup.warning.log file that is moved to $UDTBIN/saved_logs after
completion.
131
Appendix A: Introduction to udtsetup
<screen is cleared>
7. Answer Yes to the Software License Agreement. You can type D to display the license details. All
other answers will abort the installation.
Example output:
9. Enter the UniData Bin directory. The default value for this prompt is found by first checking for
$UDTBIN being set, then the location in /usr/ud##/path## file, otherwise, the default will be
the UniData home value used in the previous prompt plus /bin on the end.
If the value used in this prompt does not exist as a directory, then it will be created.
If the UniData bin fails the directory creation, the installation will abort.
If this directory was created during the script and the installation aborts for other reasons later on
then this directory is removed. If the UDTBIN variable is not set a warning is displayed.
Example output:
132
Step-by-step installation instructions
The type of installation and version are displayed here. If you use the ‘-sb’ option, the build
number will be displayed, if possible.
Example output:
10. LANG variable warning is displayed. The UNIX LANG environment variable affects the behavior
of UniData. Before you install UniData, you should be aware of the consequences of using a
LANG setting other than “C.” If you use a LANG setting other than “C,” note that certain UniData
commands may cause unpredictable results, such as the UniBasic UPCASE and DOWNCASE
commands, and the MCU and MCL conversion codes.
If you are installing UniData in an environment that does not support ASCII characters 250
through 255, and ASCII character 192 as internal markers, read the UniData International Guide
before proceeding with the installation.
Tip: We strongly recommend that the value of LANG is consistent for all users. Consider
setting the LANG environment variable in the .profile or .login script.
a. When choosing a LANG setting for your system, make sure the LANG setting you choose is
supported by UniData.
b. To find the supported LANG settings for your system, execute the locale -a command, as
shown in the following example:
# locale -a
C
POSIX
C.iso88591
C.utf8
univ.utf8
ar_DZ.arabic8
ar_SA.arabic8
ar_SA.iso88596
bg_BG.iso88595
cs_CZ.iso88592
da_DK.iso88591
da_DK.roman8
nl_NL.iso88591
nl_NL.roman8
c. During the installation process, UniData changes the LANG environment variable to “C” for
installation processing and displays the following message. Answer Yes to continue.
Example output:
WARNING:
133
Appendix A: Introduction to udtsetup
11. Enter the serial number found in Rocket U2 license correspondence. This information is not
required as part of the installation. On an upgrade, this prompt will default to the previous serial
number used.
Example output:
b. Enter the UniData Connection Pooling user count. Enter the user count for connection
pooling licenses. This is a purchased add-on. Enterprise licenses have a couple of connection
pooling licenses included.
Example output:
134
Installation prompts – licensing questions
Device licensing allows for sessions to share a license if started from the same workstation
and using approved telnet/UniRPC Clients. This value is different depending on your license
type. The defaults for each edition are as follows:
▪ Workgroup and Enterprise Edition: the default is set to 10
▪ Server Edition: Default is 0, unless an add-on is configured on your license. Maximum
value is 10.
With this prompt, 0 and 1 mean the same thing.
Example output:
d. Enter Yes if you have the Network File Access (NFA) add-on.
Example output:
e. Enter Yes if you have the Recoverable File System (RFS) add-on.
Example output:
f. Enter Yes if you have the External Database Access (EDA) add-on.
Example output:
3. Enter U2 Business Connect Required Information (Authorization Mode ‘W’ or ‘CW’ only).
In order for the web authorization call to work properly several pieces of information is needed
by the web service. If you have used the U2 Tech Connect website to authorize UniData previously
these prompts will look familiar.
a. Enter your Company Name
Example output:
135
Appendix A: Introduction to udtsetup
Example output:
All Licensing Types will continue the installation process from here.
136
Installation prompts – post licensing questions
another directory, enter the full path. You do not have to create the log file directory prior to the
installation/upgrade.
Example output:
137
Appendix A: Introduction to udtsetup
Example output:
9. Default Permissions.
A new feature in udtsetup is for tracking permission changes. The default for this prompt is No.
Default permissions can be logged during the installation, so that if a permissions issue arises
later, an option can be ran with udtsetup to restore the permissions at time of installation/
upgrade. See Check and fix permissions, on page 188.
Example output:
Do you want to log default permissions after the install? [No]:
Yes
10. Review Input Data.
UniData displays a summary of the information input at each prompt before proceeding with
the installation. Review the summary carefully. If all values are correct, press Enter. If a prompt
is incorrect answer No, and then restart the installation to correct the value. There is a second
summary of inputs if licensing parameters were set.
Example output:
CheckLang Yes
CheckPerms No
ConfProduct W
Group sys
LibDir /disk1/ud81/lib
LogDir /disk1/ud81/log
REPflag No
RFSflag No
ScriptVersion 81
Serial 12345678
Startud Yes
UdtBin /disk1/ud81/bin
UdtHome /disk1/ud81
UnisharedDir /disk1/unishared
WorkDir /disk1/ud81/work
11. Review Licensing Input Data (for Authorization mode ‘W’ or ‘CW’ only).
UniData displays a summary of the information input at each of the licensing prompts before
proceeding with the installation. These options will only display if the ‘W’ or ‘CW’ authorization
options are used. Review the summary carefully. If all values are correct, press Enter. If a prompt
is incorrect answer No, and then restart the installation to correct the value.
Example output:
LicCompany My Company
LicContact My Name
LicEDA Yes
LicEmail myname@myco.com
LicExpiryDate 01/01/4000
LicNFA Yes
LicNumCP 0
LicNumDL 10
LicNumUsers 25
LicRFS Yes
138
Installation prompts – post licensing questions
< systest results shown here are suppressed from this example >
139
Appendix A: Introduction to udtsetup
Congratulations!
You have successfully installed Rocket UniData RDBMS 8.1.0.
UniData has already been started.
140
Post installation tasks
UDTBIN. The LANG setting should also be set. The following examples show how to do this by
using the paths previously provided for UDTHOME and UDTBIN:
If you are using XML or for UniData 8.1+, you must also set your library path. At UniData 8.1.0, the
product uses more dynamic libraries than just the XML libraries.
The following list shows the library path environment variables by platform:
AIX LIBPATH=$LIBPATH:$UDTBIN
HP SHLIB_PATH=$SHLIB_PATH:$UDTBIN
SOLARIS LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$UDTBIN
LINUX LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$UDTBIN
Note: For Linux, the UniData Bin (UDTBIN) path is automatically added to the system library
settings starting with UniData 8.1 during the install script.
TRU64 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$UDTBIN
SCO LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$UDTBIN
3. Run makeudt.
If your application links in C routines with CALLC, you need to relink the new udt by running
makeudt now. For information on makeudt, see Administering UniData and Developing UniBasic
Applications.
4. Start UniData (if not started during the installation).
You can now start UniData with the startud command. The following example shows the output
from startud:
Example output:
# UDTBIN/startud
Using UDTBIN=/disk1/ud81/bin
SMM is started.
Unirpcd is started
SBCS is started.
CLEANUPD is started.
141
Appendix A: Introduction to udtsetup
You can now run UniData. Change directories using the UNIX cd command to the $UDTHOME/
demo account. Enter the full path name of the bin directory, followed by the udt command (if you
have set your environment variables, the default is udt, as shown in the following example) or
type $UDTBIN/udt at the prompt.
If you are using device licensing, enter udtts.
# cd $UDTHOME/demo
# udt
UniData Release 8.1 Build: (89262)
© Rocket Software, Inc. 1985-2015.
All rights reserved.
Note: Before users can access UniData, you must set environment variables for all users.
Consider using a .login or .profile script. You can include the full UniData paths there. You also
need to make sure each user’s path includes the UDTBIN path. For detailed information about
this, see Administering UniData on UNIX.
Full example
# ./udtsetup
Welcome to the Rocket UniData RDBMS, performing startup tasks...
Extracting files needed during setup process...
Validating tar file.
Using /disk1/u2install/bin.tar during this process.
http://www.rocketsoftware.com/u2
142
Full example
WARNING:
143
Appendix A: Introduction to udtsetup
CheckLang Yes
CheckPerms No
ConfProduct W
Group sys
LibDir /disk1/ud81/lib
LogDir /disk1/ud81/log
REPflag No
RFSflag No
ScriptVersion 81
Serial 12345678
Startud Yes
UdtBin /disk1/ud81/bin
UdtHome /disk1/ud81
UnisharedDir /disk1/unishared
WorkDir /disk1/ud81/work
LicCompany My Company
LicContact My Name
LicEDA Yes
LicEmail myname@myco.com
LicExpiryDate 01/01/4000
LicNFA Yes
LicNumCP 0
LicNumDL 10
LicNumUsers 25
LicRFS Yes
LicReason Upgrading to UniData 8.1.0
LicSeasonal No
LicSubKey Yes
Serial 12345678
144
Full example
< systest results shown here are suppressed from this example >
Congratulations!
145
Appendix A: Introduction to udtsetup
Upgrading UniData
Follow the steps in this section for an upgrade (Upgrade Installation) or Patch Upgrade (Patch
Installation). Text referring to ## means the major UniData version, for example 73, 81, etc.
The examples in this section will show an upgrade installation, specifically, upgrading from UniData
7.3.6 to UniData 8.1.0 in the /disk1/unidata directory. Only the UniData 8.1.0 upgrade portion will
be shown. The UDTHOME and UDTBIN variables have already been defined in this example. The
permissions and backup/restore features are shown here as well.
The only difference between the two upgrade types is that the ‘upgrade (Upgrade Installation)’
upgrades between major UniData versions (7.2.0 to 7.3.6) and the Patch Upgrade upgrades between
point releases at the same version (8.1.1 to 8.1.4). Typically, the UniData home directory would
remain the same in this scenario. If it does change then the script will copy the current UniData home
directory.
On UniData for UNIX/Linux, answers to the prompts in the udtsetup script are kept in the
udtsetup.param file located in $UDTBIN/saved_logs. See the Parameter file, on page 178 for
more information on the use of the parameter file.
All screen messages are written to the /tmp/udtsetup.partial.log file. After the installation/upgrade
completes, the file is moved to the $UDTBIN/saved_logs/udtsetup.log file. There is also a /
tmp/udtsetup.warning.log file that is moved to $UDTBIN/saved_logs after completion.
With installation using udtsetup, you can extract files to $UDTBIN first, then run udtsetup as it was
used with the udtinstall/updatesys previously. This method is not supported when performing an
upgrade. The process will prompt for a tar file location. This limitation is deliberate because if files
are extracted to $UDTBIN before starting the udtsetup process, the effectiveness of the permissions
validation and backup/restore features is negated.
Note: If you are upgrading from an older major UDT version, the archconfig and logconfig files
in the configuration path are renamed to avoid starting up two versions of the database and
corrupting RFS information. This does not apply to concurrent or new installs.
Note: If you are doing an upgrade and the UDTHOME/UDTBIN environment variables are already
set (and are set to /usr/ud## and /usr/ud##/bin), the udthome and udtbin prompts are skipped.
1. Copy the UniData media (bin.tar file) to local directory (not $UDTBIN) on server.
2. Download the media from https://u2tc.rocketsoftware.com for the United States and Canada, or
https://u2tcint.rocketsoftware.com for regions outside of North America. The media is normally
stored in zip format on these servers.
3. Unzip these files and copy the bin.tar file to your UNIX/Linux server.
It is recommended to place the file outside your planned $UDTHOME or $UDTBIN directories.
4. Extract the udtsetup script from the media.
5. Execute the script with this command:
146
Step-by-step upgrade of UniData for UNIX/Linux
<screen is cleared>
7. Answer Yes to the Software License Agreement. You can type D to display the license details. All
other answers will abort the installation.
Example output:
147
Appendix A: Introduction to udtsetup
If more than one major version of UniData is found on the system then a prompt will display
asking which version to upgrade from. Only the versions found will be listed and the latest version
found will be the default value. If only one major version was found on the system, then this
prompt is skipped.
Example output:
12. LANG variable warning is displayed. The UNIX LANG environment variable affects the behavior
of UniData. Before you install UniData, you should be aware of the consequences of using a
LANG setting other than “C.” If you use a LANG setting other than “C,” note that certain UniData
commands may cause unpredictable results, such as the UniBasic UPCASE and DOWNCASE
commands, and the MCU and MCL conversion codes.
If you are installing UniData in an environment that does not support ASCII characters 250
through 255, and ASCII character 192 as internal markers, read the UniData International Guide
before proceeding with the installation.
Tip: We strongly recommend that the value of LANG is consistent for all users. Consider
setting the LANG environment variable in the .profile or .login script.
a. When choosing a LANG setting for your system, make sure the LANG setting you choose is
supported by UniData.
b. To find the supported LANG settings for your system, execute the locale -a command, as
shown in the following example:
# locale -a
C
POSIX
C.iso88591
C.utf8
univ.utf8
ar_DZ.arabic8
ar_SA.arabic8
ar_SA.iso88596
bg_BG.iso88595
cs_CZ.iso88592
da_DK.iso88591
da_DK.roman8
nl_NL.iso88591
nl_NL.roman8
c. During the installation process, UniData changes the LANG environment variable to “C” for
installation processing and displays the following message. Answer Yes to continue.
Example output:
WARNING:
148
Step-by-step upgrade of UniData for UNIX/Linux
13. Enter the serial number found in Rocket U2 license correspondence. This information is not
required as part of the installation. On an upgrade, this prompt will default to the previous serial
number used.
Example output:
Enter the 'Install Serial Number' [12345678]:
14. Enter the serial number found in Rocket U2 license correspondence. This information is not
required as part of the installation. On an upgrade, this prompt will default to the previous serial
number used.
Example output:
149
Appendix A: Introduction to udtsetup
Example output:
150
Backup questions
Yes
Backup questions
Backup files are stored in tar format. Key directories are backed up to either a designated directory or
the parent directory of each path. Key directories/files for the core UniData product can be backed up.
User directories will not be backed up within this functionality. The default for this option is No, so if a
backup is desired you must type Yes.
See Backup/restore control file, on page 188 for details about Backup/Restore functionality,
including additional commands and details on what is backed up.
During an upgrade, you will need to answer the following questions about backup files:
151
Appendix A: Introduction to udtsetup
Example output:
Permission questions
Log Default Permissions
Fix permissions
On upgrades, a second question asks if you want to restore the permissions changed during the
upgrade process back to what was previously used. The new permissions list is generated after the fix
permission work is done.
Example output:
152
Upgrade prompts – post backup and permissions questions
UniData displays a summary of the information input at each prompt before proceeding with
the installation. Review the summary carefully. If all values are correct, press Enter. If a prompt
is incorrect answer No, and then restart the installation to correct the value. There is a second
summary of inputs if licensing parameters were set.
Example output:
Backup Yes
BackupDir /disk1/backups
BackupPrefix udtbackup_20140131_
CheckPerms Yes
ConfProduct N
FixPerms Yes
Group sys
LibDir /disk1/unidata/lib
LogDir /disk1/unidata/log
OverWrite Yes
PreviousVer 73
REPflag No
RFSflag No
ScriptVersion 81
Serial 12345678
Startud Yes
UdtBin /disk1/unidata/bin
UdtHome /disk1/unidata
UnisharedDir /disk1/unishared
Upgrade Yes
WorkDir /disk1/unidata/work
2. Review Licensing Input Data (for Authorization mode ‘W’ or ‘CW’ only).
UniData displays a summary of the information input at each of the licensing prompts before
proceeding with the installation. These options will only display if the ‘W’ or ‘CW’ authorization
options are used. Review the summary carefully. If all values are correct, press Enter. If a prompt
is incorrect answer No, and then restart the installation to correct the value.
Example output:
LicCompany My Company
LicContact My Name
LicEDA Yes
LicEmail myname@myco.com
LicExpiryDate 01/01/4000
LicNFA Yes
LicNumCP 0
LicNumDL 10
LicNumUsers 25
LicRFS Yes
LicReason Upgrading to UniData 8.1.0
LicSeasonal No
LicSubkey Yes
Serial 12345678
153
Appendix A: Introduction to udtsetup
Backing up /usr/ud81...
Backing up /disk1/unidata/bin...
Backing up /disk1/unidata/lib...
Backing up /disk1/unidata/sys...
Backing up /disk1/unidata/parttbl...
Backing up /disk1/unidata/demo...
Backing up /disk1/unidata/logs...
Backing up /disk1/unidata/objcall...
Backing up /disk1/unidata/work...
Backing up /disk1/unishared...
Backup process has completed.
154
Upgrade prompts – post backup and permissions questions
Now that backup and permissions checks are done, the UniData bin directory can be changed.
Files are extracted to UDTBIN and the permissions are set on the files. This permissions change is
still done if performing permission verification steps.
Example output:
Following is an example if the master key was transferred (not shown in the full example):
155
Appendix A: Introduction to udtsetup
< systest results shown here are suppressed from this example >
Fixing permissions...
Generating new permissions list...
156
Post upgrade tasks
Congratulations!
You have successfully installed Rocket UniData RDBMS 8.1.0.
UniData has already been started.
157
Appendix A: Introduction to udtsetup
UDTHOME=/disk1/ud81;export UDTHOME
UDTBIN=/disk1/ud81/bin;export UDTBIN
LANG=C;export LANG
If you are using XML or for UniData 8.1+, you must also set your library path. At UniData 8.1.0, the
product uses more dynamic libraries than just the XML libraries.
The following list shows the library path environment variables by platform:
AIX LIBPATH=$LIBPATH:$UDTBIN
HP SHLIB_PATH=$SHLIB_PATH:$UDTBIN
SOLARIS LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$UDTBIN
LINUX LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$UDTBIN
Note: For Linux, the UniData Bin (UDTBIN) path is automatically added to the system library
settings starting with UniData 8.1 during the install script.
# UDTBIN/startud
Using UDTBIN=/disk1/ud81/bin
SMM is started.
Unirpcd is started
SBCS is started.
CLEANUPD is started.
You can now run UniData. Change directories using the UNIX cd command to the $UDTHOME/
demo account. Enter the full path name of the bin directory, followed by the udt command (if you
158
Full example
have set your environment variables, the default is udt, as shown in the following example) or
type $UDTBIN/udt at the prompt.
If you are using device licensing, enter udtts.
# cd $UDTHOME/demo
# udt
UniData Release 8.1 Build: (89262)
© Rocket Software, Inc. 1985-2015.
All rights reserved.
Note: Before users can access UniData, you must set environment variables for all users.
Consider using a .login or .profile script. You can include the full UniData paths there. You also
need to make sure each user’s path includes the UDTBIN path. For detailed information about
this, see Administering UniData on UNIX.
5. After the upgrade has completed the udtsetup script and bin.tar file can be removed from
the system. To reinstall UniData, the media will need to be copied to the server and udtsetup will
need to be extracted again.
Full example
# ./udtsetup
Welcome to the Rocket UniData RDBMS, performing startup tasks...
Extracting files needed during setup process...
Validating tar file.
Using /disk1/u2install/bin.tar during this process.
http://www.rocketsoftware.com/u2
159
Appendix A: Introduction to udtsetup
Backup Yes
BackupDir /disk1/backups
BackupPrefix udtbackup_20140131_
CheckPerms Yes
ConfProduct N
FixPerms Yes
Group sys
LibDir /disk1/unidata/lib
LogDir /disk1/unidata/log
OverWrite Yes
PreviousVer 73
REPflag No
RFSflag No
ScriptVersion 81
Serial 12345678
Startud Yes
UdtBin /disk1/unidata/bin
UdtHome /disk1/unidata
UnisharedDir /disk1/unishared
Upgrade Yes
WorkDir /disk1/unidata/work
160
Full example
Backing up /usr/ud81...
Backing up /disk1/unidata/bin...
Backing up /disk1/unidata/lib...
Backing up /disk1/unidata/sys...
Backing up /disk1/unidata/parttbl...
Backing up /disk1/unidata/demo...
Backing up /disk1/unidata/logs...
Backing up /disk1/unidata/objcall...
Backing up /disk1/unidata/work...
Backing up /disk1/unishared...
Backup process has completed.
< systest results shown here are suppressed from this example >
161
Appendix A: Introduction to udtsetup
Fixing permissions...
Generating new permissions list...
Updating UD.ACCOUNT file...
Starting UniData...
Fri Jan 31 15:59:53 UniData has not been authorized.
Fri Jan 31 15:59:53 UniData RDBMS will stop in 10 days!
Congratulations!
You have successfully upgraded to Rocket UniData RDBMS 8.1.0.
UniData has already been started.
162
Step-by-step upgrade of UniData for UNIX/Linux
On UniData for UNIX/Linux, answers to the prompts in the udtsetup script are kept in the
udtsetup.param file located in $UDTBIN/saved_logs. See Parameter file, on page 178 for
more information on the use of the parameter file.
The udtsetup will create the UniData home and bin directories during the install. If the install aborts,
these directories will be deleted. The parent directory of UniData home will not be created during the
script.
All screen messages are written to the /tmp/udtsetup.partial.log file. After the installation/
upgrade completes, the file is moved to the $UDTBIN/saved_logs/udtsetup.log file. There is
also a /tmp/udtsetup.warning.log file that is moved to $UDTBIN/saved_logs after completion.
<screen is cleared>
7. Answer Yes to the Software License Agreement. You can type D to display the license details. All
other answers will abort the installation.
163
Appendix A: Introduction to udtsetup
Example output:
9. Enter the UniData Bin directory. The default value for this prompt is found by first checking for
$UDTBIN being set, then the location in /usr/ud##/path## file, otherwise, the default will be
the UniData home value used in the previous prompt plus /bin on the end.
If the value used in this prompt does not exist as a directory, then it will be created.
If the UniData bin fails the directory creation, the installation will abort.
If this directory was created during the script and the installation aborts for other reasons later on
then this directory is removed. If the UDTBIN variable is not set a warning is displayed.
Example output:
12. LANG variable warning is displayed. The UNIX LANG environment variable affects the behavior
of UniData. Before you install UniData, you should be aware of the consequences of using a
164
Step-by-step upgrade of UniData for UNIX/Linux
LANG setting other than “C.” If you use a LANG setting other than “C,” note that certain UniData
commands may cause unpredictable results, such as the UniBasic UPCASE and DOWNCASE
commands, and the MCU and MCL conversion codes.
If you are installing UniData in an environment that does not support ASCII characters 250
through 255, and ASCII character 192 as internal markers, read the UniData International Guide
before proceeding with the installation.
Tip: We strongly recommend that the value of LANG is consistent for all users. Consider
setting the LANG environment variable in the .profile or .login script.
a. When choosing a LANG setting for your system, make sure the LANG setting you choose is
supported by UniData.
b. To find the supported LANG settings for your system, execute the locale -a command, as
shown in the following example:
# locale -a
C
POSIX
C.iso88591
C.utf8
univ.utf8
ar_DZ.arabic8
ar_SA.arabic8
ar_SA.iso88596
bg_BG.iso88595
cs_CZ.iso88592
da_DK.iso88591
da_DK.roman8
nl_NL.iso88591
nl_NL.roman8
c. During the installation process, UniData changes the LANG environment variable to “C” for
installation processing and displays the following message. Answer Yes to continue.
Example output:
WARNING:
13. Enter the serial number found in Rocket U2 license correspondence. This information is not
required as part of the installation. On an upgrade, this prompt will default to the previous serial
number used.
When performing a concurrent installation, this value is not read from an existing file path.
Example output:
165
Appendix A: Introduction to udtsetup
Connect website to validate the licensing. If an authorization code is returned UniData will be
authorized.
▪ C – Confprod. Confprod is called to do licensing. If this mode is used a warning is displayed if
your term type does not work properly. Confprod needs vt100 emulation to work properly.
▪ CW – Confprod with Web Authorization. Still use confprod (see other options for term type
warning). Then makes same calls that the ‘W – Web Authorization’ option uses.
The ‘W’ and ‘CW’ options will only display if the UniData version being installed/upgraded to is
UniData 7.2.0 or later.
If the ‘W’ option is used and the authorization process fails, the licensing values are still set on the
system and a message is displayed on how to correct the problem.
If using Personal Edition, all of the authorization methods are skipped.
See Web authorization, on page 185 for more details.
Example output:
166
Step-by-step upgrade of UniData for UNIX/Linux
The unishared directory contains files necessary for the unircpd daemon. Press Enter to accept
the default location of udthome/unishared, or enter an alternate path. In the example below, the
/.unishared file already existed so the location was read from that file.
Example output:
167
Appendix A: Introduction to udtsetup
Udtsetup added a new prompt that is enabled by default to start UniData at the end of the
installation/upgrade. Answer No if you do not want UniData to start at the end of the script.
Example output:
CheckPerms Yes
ConfProduct N
Group sys
LibDir /disk1/ud81/lib
LogDir /disk1/ud81/log
REPflag Yes
REPsysid den-vm-t08_81
RFSflag Yes
ScriptVersion 81
Serial 12345678
Startud Yes
UdtBin /disk1/ud81/bin
UdtHome /disk1/ud81
UnisharedDir /disk1/unishared
Upgrade No
WorkDir /disk1/ud81/work
26. Review Licensing Input Data (for Authorization mode ‘W’ or ‘CW’ only).
UniData displays a summary of the information input at each of the licensing prompts before
proceeding with the installation. These options will only display if the ‘W’ or ‘CW’ authorization
options are used. Review the summary carefully. If all values are correct, press Enter. If a prompt
is incorrect answer No, and then restart the installation to correct the value.
Example output:
LicCompany My Company
LicContact My Name
LicEDA Yes
LicEmail myname@myco.com
LicExpiryDate 01/01/4000
LicNFA Yes
LicNumCP 0
LicNumDL 10
168
Step-by-step upgrade of UniData for UNIX/Linux
LicNumUsers 25
LicRFS Yes
LicReason Upgrading to UniData 8.1.0
LicSeasonal No
LicSubkey Yes
Serial 12345678
< systest results shown here are suppressed from this example >
169
Appendix A: Introduction to udtsetup
........
Starting UniData...
Sat Feb 1 07:01:59 UniData has not been authorized.
Sat Feb 1 07:01:59 UniData RDBMS will stop in 10 days!
170
Post installation tasks
If the custom commands script was found, it will be executed here. See Custom commands, on
page 197 for more details.
33. Installation complete.
If the ‘startud’ option was turned off during the install, UniData is stopped first. Finally, a
congratulations/completion message is displayed.
Example output:
Congratulations!
You have successfully installed Rocket UniData RDBMS 8.1.0.
UniData has already been started.
If you are using XML or for UniData 8.1+, you must also set your library path. At UniData 8.1.0, the
product uses more dynamic libraries than just the XML libraries.
The following list shows the library path environment variables by platform:
AIX LIBPATH=$LIBPATH:$UDTBIN
HP SHLIB_PATH=$SHLIB_PATH:$UDTBIN
SOLARIS LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$UDTBIN
LINUX LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$UDTBIN
171
Appendix A: Introduction to udtsetup
Note: For Linux, the UniData Bin (UDTBIN) path is automatically added to the system library
settings starting with UniData 8.1 during the install script.
TRU64 LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$UDTBIN
SCO LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$UDTBIN
3. Run makeudt.
If your application links in C routines with CALLC, you need to relink the new udt by running
makeudt now. For information on makeudt, see Administering UniData and Developing UniBasic
Applications.
4. Start UniData (if not started during the installation).
You can now start UniData with the startud command. The following example shows the output
from startud:
Example output:
# UDTBIN/startud
Using UDTBIN=/disk1/ud81/bin
SMM is started.
Unirpcd is started
SBCS is started.
CLEANUPD is started.
You can now run UniData. Change directories using the UNIX cd command to the $UDTHOME/
demo account. Enter the full path name of the bin directory, followed by the udt command (if you
have set your environment variables, the default is udt, as shown in the following example) or
type $UDTBIN/udt at the prompt.
If you are using device licensing, enter udtts.
# cd $UDTHOME/demo
# udt
UniData Release 8.1 Build: (89262)
© Rocket Software, Inc. 1985-2015.
All rights reserved.
Note: Before users can access UniData, you must set environment variables for all users.
Consider using a .login or .profile script. You can include the full UniData paths there. You also
need to make sure each user’s path includes the UDTBIN path. For detailed information about
this, see Administering UniData on UNIX.
172
Full example
Full example
# ./udtsetup
Welcome to the Rocket UniData RDBMS, performing startup tasks...
Extracting files needed during setup process...
Validating tar file.
Using /disk1/u2install/bin.tar during this process.
http://www.rocketsoftware.com/u2
173
Appendix A: Introduction to udtsetup
CheckPerms Yes
ConfProduct N
Group sys
LibDir /disk1/ud81/lib
LogDir /disk1/ud81/log
REPflag Yes
REPsysid den-vm-t08_81
RFSflag Yes
ScriptVersion 81
Serial 12345678
Startud Yes
UdtBin /disk1/ud81/bin
UdtHome /disk1/ud81
UnisharedDir /disk1/unishared
Upgrade No
WorkDir /disk1/ud81/work
< systest results shown here are suppressed from this example >
174
Additional information about udtsetup features
Starting UniData...
Sat Feb 1 07:01:59 UniData has not been authorized.
Sat Feb 1 07:01:59 UniData RDBMS will stop in 10 days!
Congratulations!
You have successfully installed Rocket UniData RDBMS 8.1.0.
UniData has already been started.
Option Description
-ah Shows all command options available
-c directory_path Custom Configuration Directory Path
-exthelp Extended/Additional Options Available
-f param_file Supply param_file containing inputs (w/sorted output)
-uf param_file Same as -f option but does not sort param_file
-t fname Specifies tar file to use for the installation/upgrade
-uri url Download/Use custom files (param_file,bin.tar)
175
Appendix A: Introduction to udtsetup
Option Description
-urif url/param Download param file from web path given
-urit url/my.tar Download media tar file from web path given
Note: Note: -uri, -urif & -urit use 'curl' to download files
Option Description
-dd Delete extra directories in the bin directory
-hs Hush systest output even if echo is enabled
-kd If debug files used, new versions will use debug files
-ku Keeps udtsetup script (default)
-r param_file Same as -f option, without missing parameter message
-ru Removes udtsetup script at end
-ur param_file Same as -uf option, without missing parameter message
-uriuf url/param Download param file from web path given (unsorted)
Option Description
-sb Shows build# in Version display message
-tv Shows port.note file from tar file, then exits
-udt # Sets the major version used in the script
-udtv Reports UDT Version used in script, then exits
-v Shows version of script
Option Description
UDTCUSTOM Local Custom Directory Path
UDTURI Extra Options for URI calls
UDTTARFILE Local Tar file path
Option Description
-lb List backup files from last installation/upgrade
-rb Removes backup files from last installation/upgrade
-restore Restores UniData to saved version
-restore -force Like -restore option but no prompts
-udtdiag Runs udtdiag v3+, used with -restore option
Option Description
-rp Reset permissions back to stored values
-up Update permissions logged on version installed
176
Improved logging and exit codes
Table 21: Options that exit the script early - Permissions (Upgrades only)
Option Description
-lp Show diff log (must check perms in upgrade)
Exit codes
UNIX/Linux allows for exit codes up to a value of 255. Each location in udtsetup where the process can
exit has a unique exit value. This is helpful if the process is started by another script that can check exit
status codes. This list may change in the future but for the initial versions of the script, the exit codes
are broken up in the following ways:
177
Appendix A: Introduction to udtsetup
QUIT/EXIT early
Udtsetup allows the user to ‘quit’ out of any prompts up until the files are extracted to the UniData bin
directory. If the user does exit early the following is done:
A message displaying how to restart the udtsetup process and use the existing values. If there was an
error in one of the fields you will need to either not use the existing parameter file or modify the file
manually. Here is an example of that message:
If you want to restart this process with the same settings later, run:
udtsetup -r /tmp/udtsetup.param
Note: The /tmp/udtsetup.partial.log and /tmp/udtsetup.warning.log (if > 0 bytes) will remain
to help troubleshoot install issues. These files are moved to $UDTBIN/saved_logs if the
installation/upgrade completes normally.
If the –f or –uf options are used instead of –r or –ur options when restarting the script, each parameter
that was missed will have a message like:
The 'LibDir' parameter was not found, prompting for input.
Parameter file
Instead of being prompted for each question, a parameter file can be supplied to the udtsetup script
to use as an answer sheet for questions encountered. If an answer is not found for a question asked,
then the installation/upgrade will stop and ask the user for the value.
The parameter file for the current installation/upgrade is stored initially in the /tmp/udtsetup.param
file, then moved to $UDTBIN/saved_logs/udtsetup.param after the installation/upgrade
completes. When using the parameter file, it is recommended to have the parameter file stored
outside of the UniData directory. If the file is stored inside the UniData directories, there is the chance
that your parameter file will be overwritten.
To use a parameter file during the udtsetup process, specify the ‘-f param.file’ option. If the file
specified after the –f option is empty or does not exist, then the parameters will be record to that file.
By default, the parameters are sorted in alphabetical order. If sorted order is not desired use the ‘-uf’
option (think ‘unsorted’).
The parameter file is stored with the Parameter name, then spaces, then result.
178
Parameter file
When recording parameters, some parameters that appear in udtsetup.param will not appear in the
‘Summary of Input’ screens or other prompts, for example ScriptVersion. These extra parameters are
needed by the script and will be added if not predefined (if using the ‘-f’ playback option).
An Example parameter file (based on Installing UniData, on page 131 without licensing prompts):
CheckLang Yes
CheckPerms No
ConfProduct N
Confirm Yes
Group sys
LibDir /disk1/ud81/lib
LicAgree Yes
LogDir /disk1/ud81/log
REPflag No
RFSflag No
SaveDir Yes
ScriptVersion 81 (8.1.0)
Serial 12345678
Startud Yes
UdtBin /disk1/ud81/bin
UdtHome /disk1/ud81
UnisharedDir /disk1/unishared
WorkDir /disk1/ud81/work
If the above list of parameters are used on a new installation, the output would look like (only top
portion of output is shown):
# ./udtsetup -f /tmp/udt81.params
Welcome to the Rocket UniData RDBMS, performing startup tasks...
Using parameter data found in: /tmp/udt81.params
Extracting files needed during setup process...
Validating tar file.
Using /disk1/u2install/bin.tar during this process.
http://www.rocketsoftware.com/u2
179
Appendix A: Introduction to udtsetup
WARNING:
<End of Example>
Missing parameter
If the udtsetup script can’t find an answer in the parameter file for a necessary parameter, then the
installation will prompt the user for that answer. If the above example had the ‘Group’ parameter
removed from the parameter file, the script will prompt the user like the following:
Prompted parameters
These are parameters are prompted for during the installation/upgrade script.
Parameter Description
Backup Ask to backup UDT first (was used in old scripts but is drastically different)
BackupDir Backup directory location (path or 'parent')
BackupPrefix Tar file prefix to use (like 20140422_)
CheckBinInstall Installs only, continue if $UDTBIN exists already
CheckHomeInstall Installs only, continue if $UDTHOME/sys exists already
CheckLang Prompt to continue if LANG env setting is not set to 'C'
CheckPerms Check permissions on upgrades
CheckRestore Validation prompt
Confirm Continue installation after validating prompt answers
ConfpdWithWeb Yes/No flag, if used 'C' option on ConfProduct, then asks user if they want
to authorize via web (and currently not authorized).
ConfProduct 'N' (No), 'C' (confprod) or 'W' (Web authorization/U2BC Call) or
'CW' (Confprod and if unauthorized make call to web authorization,
prompts only for U2BC required info)
FixPerms Upgrades only, fixes permissions on files that existed prior upgrade
180
Prompted parameters – authorization
Parameter Description
Group Group ownership of bin directory files
LibDir UniData lib directory
LicAgree Prompt asking use if they agree to the licensing agreement
LogDir UniData log directory (not for UDT 8.1 logging)
OldBIN Old UniData Bin directory (used to move UDTBIN to new path or for
TransMEK functionality)
OldHOME Previous UDT Home directory (New prompt)
OverWrite For upgrades, overwrite WorkDir directory
PreviousVer For upgrades, previous version to upgrade
REPflag Enable Replication
REPsysid Replication System ID (defaults to hostname_version)
RFSflag Enable RFS
SaveDir Prompt asking if you want to delete/keep the $UDTBIN directories: include,
lib, work and demo
Serial Serial/License number (prompted even if not using Confprod/Web
Authorization, see next section for more details)
SkipFailedBackup Skips backup if directory path is invalid and continues installation/upgrade
Startud Start UniData at and of installation/upgrade
StopRPC Question to stop UniRPC before continuing (comes into play if unishared
sharedby file has more than one line of db versions listed)
StopSys Question to stop UDT before continuing
TransMEK Transfer ADE master key
UdtBin UniData bin directory
UdtHome UniData home directory
UnisharedDir Unishared directory
Upgrade If Yes, then upgrade is done, if No Concurrent install is done (is not used if
Upgrading to same Major version)
WorkDir UniData work directory
Parameter Description
LicConfirm Summary of Inputs for licensing’ confirmation prompt
LicEDAExternal Database Access (EDA): Y/N
LicExpiryDateExpiration Date: Today or greater, permanent license date is ‘01/01/4000’.
LicNFANetwork File Access (NFA): Y/N
LicNumCPNumber of Connection Pooling Licenses: 0 or higher
LicNumDLNumber of Device Licensing: 0 to 10. If Server Edition a special add-on license is
needed in the records otherwise set this to 10
LicNumUserNumber of Database Licenses/Users: 1 or higher (see seasonal users info below)
LicRFSRecoverable File System (RFS): Y/N
LicSubkey licensing flag (UDT 8.1+)
LicVersionVersion being authorized (has to match version in U2BC records)
181
Appendix A: Introduction to udtsetup
Parameter Description
Serial Serial/License Number: 8 digit license number in U2 Business Connect
records, it may include the –UDT suffix
Parameter Description
LicCompany Your company (For person doing authorization)
LicContact The person performing authorization/licensing request
LicEmail The contact’s email address (this does require a ‘@’ in the value)
LicReason A reason for performing the authorization request
LicSeasonal Y/N flag to tell website that seasonal users are in use. The base user count
[LicNumUsers] will need to be adjusted by the user if this flag is enabled.
There is no auto-update feature.
Parameter Description
CheckDebugFiles Checks existing installation for .d files and if found, after the upgrade the
same .d files will be used
CustomDir Custom directory that contains config/tar files to use
HushSystest Disable screen display of systest output (default is No)
KeepTemp Keeps temp files at end of script (default is No)
KeepUdtSetup Keeps udtsetup script in current directory at end (default is to remove
unless it is in $UDTBIN)
KeepURI Keeps files downloaded via the uri process (default is No)
LogLevel Log level (1 to 10, 1 is default)
ShowBuild Shows build number
URI URI site to use
Parameter Description
ScriptVersion Major UDT version to use (with -udt option, or from port.note)
TarFile Location of tar file to use (default is bin.tar in local directory)
182
Files in use validation
If the tar file is for the wrong platform, then the port.note file is displayed and the script exits. If the
correct platform is used but other validation fails, then a message is displayed to help troubleshoot
the issue. Both UniVerse and UniData technote numbers may be listed in these messages.
Note: The reasons UNV-5566 and UDT-3819 occur have been fixed at UniData 8.1.0, specifically
64-bit only builds and the gdbm library are better linked. This is shown here for informational
purposes only.
There is also a warning displayed for Solaris and Linux systems concerning glibc errors if the
appropriate files are not in place. This behavior in Solaris and Linux can cause unwanted process
aborts that can be resolved. This message will display before the software licensing prompt, for
example:
The second parameter of the file outputted is the pid plus an alpha code. If you then run ps and grep
for the pid you will see which process is using the file, for example (this test server had both Rocket U2
databases installed on it):
183
Appendix A: Introduction to udtsetup
The process holding the file open needs to be stopped, then the udtsetup process needs to be
restarted.
If you add a ‘-tv’ or ‘-gtv’ option to the udtsetup command line, it will report the port.note file contents
of the tar file being used then exit. An example for UniData 7.3.6 is:
Expanding /disk1/u2install/bin.tar.Z
184
Determining installation type
LINUX Information: RHEL 5.8: Linux version 2.6.18-308.el5 Source RPM: glibc-2.5-
81.src.rpm
RHEL 6.0/64-Bit: Linux version 2.6.32-81.el6.x86_64 Source RP
M: glibc-2.12-1.7.el6.src.rpm
SuSE 11/64-Bit: Linux version 2.6.32.12-0.7-default Source RP
M: glibc-2.11.1-0.18.1.src.rpm
Web authorization
There are four valid authorization methods available in udtsetup, details are:
▪ N – None – No licensing prompts are shown including request for confprod.
▪ W – Web Authorization – Follow up questions are shown for each of the licensing items after this
question. At the end of the script, UniData is started and a call is made the the U2 Business Connect
website to validate the licensing. If an authorization code is returned UniData will be authorized.
▪ C – Confprod – Confprod is called to do licensing. If this mode is used a warning is displayed if your
term type does not work properly. Confprod needs vt100 emulation to work properly.
▪ CW – Confprod with Web Authorization – Still use confprod (see other options for term type
warning). Then makes same calls that the ‘W – Web Authorization’ option uses.
See Full parameter list, on page 180 for details on the parameter names involved.
The prompt will look like:
The U2 Business Connect website only returns errors. Warnings are suppressed.
185
Appendix A: Introduction to udtsetup
If using Personal Edition all of the authorization methods are skipped.
The list of licensing parameters may change in the future.
Near the end of the udtsetup script execution, UniData is started (if startud flag is set, web
authorization or custom commands). A call is made to a UniBasic program called ‘DBLICENSE’ in the
$UDTHOME/sys directory. If the authorization is successful then UniData has its licensing refreshed
with the ‘stopsmm –r’ command.
If the authorization is not successful, then the product will start in an unauthorized state. Error
messages from the authorization website are shown to the screen and the udtsetup.log file. If the
appropriate values are changed and the user wants to reauthorize the product, then perform these
steps:
1. '$UDTBIN/startud' (if not running)
2. 'cd \$UDTHOME/sys'
3. '$UDTBIN/udt'
4. 'RUN SYS_BP DBLICENSE'
5. 'quit'
6. '$UDTBIN/stopsmm -r' or restart UniData.
If the UniData version being installed is not UniData 8.1.0 or higher, the DBLICENSE program is not
included with the product (nor is udtsetup). See Tech Note #UDT-11605 to get a copy of the object
code for the _DBLICENSE program. The source of DBLICENSE is not available for public use. The
udtsetup script will convert the DBLICENSE object code to the correct platform.
186
Serial/license number is not valid
The UniData version being installed does not match the value on record.
Please install the version on record or change the records to match.
Note: Only one backup is maintained in the UniData environment. The backup files may still
remain from old upgrades but are no longer tracked by udtsetup.
The backup procedure uses the tar file format only. Each directory/file above is stored in its own tar
file, so you may see several tar files when reviewing the backup files. At UniData 8.1/8.1, the number of
tar files created is usually a minimum of 10.
187
Appendix A: Introduction to udtsetup
The udtsetup script on upgrades asks if you want to do backups just before the summary of inputs
screen. If you answer yes, then a path is requested. There are two options either ‘parent’ which will
store each tar file in the parent location or specify a directory path that exists to store the tar files. The
directory path must exist, the udtsetup script does not create the backup directory path.
Once the backup path is accepted, then a backup prefix prompt is displayed. The default is
‘udtsetup_YYYYMMDD_’. The rest of the file is based on the directory path and includes a .tar
extension. The parameter for this prompt is ‘BackupPrefix’.
List backups
After the upgrade has completed, in the $UDTBIN directory, run udtsetup –lb or udtsetup –
listbackups. This option will list details about the tar files generated during the backup procedure.
The top 10 lines of each tar file are listed.
Restore
If a critical failure occurs in your UniData environment and the decision was made to go back to the
previous version of UniData, then the ‘-restore’ option should be used (assuming the backup option
was used).
If any of the required files/directories listed above are missing, the restore option will not continue.
Use ‘-restore’ to bring up a dialog to asking for confirmation that a restore is being performed. You can
add a ‘-force’ option if you want to bypass this confirmation prompt. Also, the Rocket U2 Technical
Support group recommends using the ‘-udtdiag’ option as well. This will perform a udtdiag of the
system before a restore is performed. It requires udtdiag v3.00 or higher. The udtdiag results will help
the support group in diagnosing the situation. These three options can be combined like ‘-restore –
force –udtdiag’.
When the restore occurs, the existing directory paths are removed and replaced by the contents of the
backup tar file.
Remove backups
If the upgrade of UniData is good and there is no need to restore, use the udtsetup –rb or
udtsetup –removebackups command to remove the tar files created during the backup process
and the related control file.
Note: For initial/full installations, you will need to reinstall UniData to go back to the original
settings.
188
Configuration files
do change the default permissions, so this permissions feature allows for the existing permissions to
be logged, then changed during the normal upgrade process and if selected fixed back to the original
values. New files would be using the default values.
The permissions for the following files/directories are logged if found:
▪ /usr/ud##
▪ $UDTHOME/sys
▪ $UDTHOME/lib
▪ $UDTHOME/demo
▪ $UDTHOME/log
▪ $UDTHOME/logs
▪ $UDTHOME/objcall
▪ $UDTHOME/Sybase
▪ $UDTHOME/work
▪ /.unishared and its related path
▪ /.udlibs*
During the installation/upgrade, the process will prompt to either ‘Do you want to log default
permissions’ on installations or ‘Do you want to check permissions’ on upgrades. The message is
slightly different but the parameter checked is ‘CheckPerms’. If set to yes, and the default is no then
the permissions above are checked.
The following file permissions are logged:
▪ File type
▪ Owner
▪ Group
▪ Permissions (stored in octal format)
On upgrades if the first parameter is enabled, then a second prompt is displayed asking if permissions
should be ‘fixed’ and set back.
Note: This fixing segment may take a few minutes because it needs to compare the permission
values on a minimum of 2,000 files between the old and new environments.
When the ‘fix’ permissions code is executed to compare the differences, a status report of every 500
files are displayed. Use the udtsetup –lp command after the install to show a list of the permission
differences.
If you use the udtsetup –rp command after the installation/upgrade is done, it will reset the
permissions back to the values stored at installation/upgrade time.
If you use the udtsetup –up command, this will clear the stored permission values and update
them to the current values.
Configuration files
There are three configuration files stored for these permission changes in the /usr/ud##/include
directory:
▪ udtpermsprev.info – Previous Permissions (used on upgrades)
▪ udtpermsdiff.info – Compare results of old and new permissions (used with –lp option,
upgrades only)
▪ udtpermscurr.info – Current permissions list (used with -rp and –up options)
If these files are cleared/removed, permissions reset/update options will no longer function.
189
Appendix A: Introduction to udtsetup
190
Testing URI support
Option Description
-uri url Download/Use custom files (param_file,bin.tar)
-urif url/param Download param file from web path given
-urit url/my.tar Download media tar file from web path given
-uriuf url/param Download param file from web path given (unsorted)
-kuri Keeps URI temporary files
Warning: If this option is used the custom directory check in the parameter file is not done. If '-
urit' or '-urif' were previously used, then param_file and bin.tar checks are not done again if
this option is used afterwards.
191
Appendix A: Introduction to udtsetup
Example
Here is a combined parameter example. First, the udtsetup file is downloaded from the web server
(previously extracted from the bin.tar file stored on the server:
There is no option with curl to set permissions on a downloaded file, so permissions will need to
be set manually for udtsetup before you can execute it. For files downloaded inside udtsetup, the
permissions will adjusted during the script.
Next, the –uri option is used to specify the location to download the bin.tar file and a udtconfig
file, the ‘-urif’ is used for a custom named parameter file and -kuri is to keep the files after the UniData
upgrade is completed:
./udtsetup -uri http://192.168.71.218/udt -urif udtsetup.parameters –
kuri
192
Custom configuration files/commands search path
193
Appendix A: Introduction to udtsetup
Otherwise, the check and fix permissions is not used and permission on a config file is not used, then
permissions on that file will be set to the previous value or a default of 644 (rw-r--r--).
Nonsupported files
The sysconfig is not supported since it is a copy of the port.note file and the serial number. Also,
any files not listed below in the supported section are not supported in this functionality.
Note:
Starting at the 8.1.0 release, the default values for several existing udtconfig parameters have
changed. The new values are:
194
ud_database
▪ NUSERS: 256
▪ SHM_GNPAGES: 64
▪ SHM_GPAGESZ: 2048
▪ SHM_LMINENTS: 128
▪ SHM_LMINENTS: 128
▪ SHM_LPAGESZ: 16
▪ SBCS_SHM_SIZE: 4 MB (4194304)
Note: Checking against the udtconfig file uses the Operating System command bc. If bc is not
found, the NUSERS, N_PGQ, N_TMQ and SHM_GNTBLS udtconfig parameters will be updated via
systest.
Checks are only done for LOG_OVERFLO, PART_TBL, REP_LOG_PATH and UDT_LANGGRP all other
lines or commented out versions of these variables are copied into place. The default value scripted
are:
LOG_OVERFLO=$UDTHOME/log/log_overflow_dir
PART_TBL=$UDTHOME/parttbl
REP_LOG_PATH=$UDTHOME/log/replog
UDT_LANGGRP=255/192/129
A full or partial udtconfig file is supported. For the variables listed in the previous bullet point, if
'DEFAULT' is the value, the default values used in the install script will be used.
If a custom archconfig file is found, udtconfig is updated to have N_ARCH match the number of
lines (that start with /)
ARCH_FLAG is not enabled if an archconfig file is found
If a custom logconfig file is found, N_BIMG and N_AIMG are adjusted to match the number of logs.
Note: If the user incorrectly defines this file these parameters may be set incorrectly and
cntl_install may report an error.
If a custom udtconfig file is found, but N_ARCHI, N_BIMG or N_AIMG are not found, the default values
will be add to the custom udtconfig file. This is done so that if a custom archconfig or logconfig file are
found these files will be properly updated.
ud_database
The existing file is backed up then removed.
The 'demo' ID will be replaced with the default value. The rest of the lines are copied.
If the 'UDTHOME=' line is set to 'DEFAULT' then the udtsetup script will replace that with the correct
$UDTHOME path. Otherwise, UDTHOME is checked to see if the account is not set to the current
udthome or does not exist (if so a warning is displayed in the log file).
No other checks are done on the file.
repsys
The existing file is backed up then removed. All lines are kept the same, with the following exceptions:
▪ SYSTEM if blank or set to 'DEFAULT' will set id to hostname_MajorVersion, ie. Myhost_81.
▪ HOSTNAME is set to the current hostname, can use 'DEFAULT'. If using DEFAULT, it will have the
fully qualified hostname (ie. myhostname.myco.com)
▪ VERSION is always set to the current major version (ie. 81), can use 'DEFAULT'.
195
Appendix A: Introduction to udtsetup
Note: If the HOSTNAME value in the custom file matches the current system exactly, the
VERSION will be set to the current version value in the script.
If repsysid was set through another manner (param file or user prompts), that ID will be used
instead.
▪ EXCEPTION_ACTION: If the filename exists in the custom directory path, then it is copied to the
location specified in the repsys file. If the exception action script is in the custom directory and
repsys is not there, the exception action script is not copied. Since this is a custom file name, it is
not supported through the URI options. The directory path referenced in this line will be created if
it does not exist. The permissions on this script is set to 814.
Unless SYSTEM, HOSTNAME or VERSION is set to DEFAULT, only one server set will be changed in this
file since usually multiple system configurations are listed (ie. Publisher and subscriber system info).
logconfig
This file is rebuilt from the custom file and the last field for the file log is set to NUSERS + 1. This will
avoid 'File log too small' errors.
unirpcservices
The file is copied to cat /.unishared/unirpc directory.
The same checks done for the default services types are done and paths will be modified. If there are
any custom service names, those paths will not be modified.
Note: For these files that except ‘DEFAULT’ as a value, the case of the value does not matter. The
script will up-case the value to check for ‘DEFAULT’.
UDTSPOOL.CONFIG
$UDTHOME/sys/UDTSPOOL.CONFIG.current and $UDTHOME/sys/
UDTSPOOL.CONFIG.default are deleted and the custom copy of this file is copied into place.
UD.ACCOUNT
This file is directly copied into $UDTHOME/sys/UD.ACCOUNT, since this is a database file, no checks
are done on the values in the records.
196
Custom commands
parttbl
This file is copied into either default location or location specified by custom udtconfig, file is copied
over with no validation checks.
udtelnetd.conf, .udscrfile
This file is copied to cat /.unishared/unitelnet, no validation checks.
.unisecurity
This file is copied to cat /.unishared, no validation checks
base.mk
This file is copied to $workdir, same libpath check is done on the custom as is done on the standard
install file.
Custom commands
As part of the udtsetup script, administrators can call a custom commands list to perform additional
actions that are needed during installs/upgrades for their own application accounts.
Warning: This functionality allows a user to execute udt in directories. If there LOGIN paragraphs
that ask for input, then this functionality may not work properly. See UDTSETUP environment
variable/LOGIN Paragraph, on page 199 for more details.
The ability to run a custom script is controlled by the commands file. See Custom configuration files/
commands search path, on page 193 for the directory order.
Logging for the custom commands output is written to the udtsetup log file ($UDTBIN/
saved_logs/udtsetup.log) and to the custom log file ($UDTBIN/saved_logs/
udtsetup.custom.log). The custom log file is removed before each execution of udtsetup (when
custom commands are used).
Available parameters
The format of the commands is detailed below.
Checks in udtsetup are based on the first parameter. Parameters are broken up by ‘~’ tilde characters.
If you want to use a different field mark, set line one of the ‘commands’ file to ‘fm=!’ where ! is the
character you want to use. Do not use { or } characters as the special field mark value.
197
Appendix A: Introduction to udtsetup
Timeout message
When the timeout value is reached on a command, it will be killed.
198
Example commands file
#updatevoc's first
updatevoc~/disk1/ud81/demo~/disk1/accounts/udt
updatevoc -OC~/disk1/ud81/sys
# Run commands
# This line runs LISTUSER,PORT.STATUS, a COUNT of File pointers and VERSION
/disk1/ud81/demo~LISTUSER~PORT.STATUS~COUNT VOC WITH F1 = "F"~VERSION
PA
199
Appendix A: Introduction to udtsetup
RUN BP CHECK.FOR.UDTSETUP
IF @USER.RETURN.CODE = “1” THEN GO DONE
DISPLAY “DO REMAINING STEPS HERE”
DONE: *
200