LeasePak Server Preparation and Installation

PI v.1810 created at Fri Aug 13 00:51:12 -0700 2010
The procedures in this document cover: If there is already a LeasePak installation on the Application host, the installation procedure is as described here; if the database system is already installed on the DBMS host, it is recommended that the administrator review the preparation sections of this document to insure that all required items are in order.
Once LeasePak and the database system are installed, the administrator should consult LeasePak Server Configuration and Maintenance to complete the tasks to bring LeasePak to a usable level.
If there is an existing LeasePak installation on the same or different hosts, the document LeasePak Server Upgrade and Conversion should be consulted for the procedures for transferring the data and settings from the existing installation into the new installation of LeasePak v62a.

Preparation


System Requirements
IMPORTANT NOTE
System Requirements
The administrator should review the System Requirements before beginning the installation process to ensure that the platform meets the minimum requirements for LeasePak 6.2a.
Procedure Overview
Preparation and Installation Steps
  1. This is the procedure for installing LeasePak 6.2a on an application host.
  2. Make the necessary OS kernel adjustments and other OS preparations for LeasePak installation.
  3. Create the required OS groups, administrative users, and server directories for database system and LeasePak installation.
  4. Prepare the DBMS host using the document specific to your DBMS, or database system.
  5. Copy the LeasePak license file(s) to the /tmp directory.
  6. Run the LeasePak SETUP program.
  7. Following installation, the administrator should consult LeasePak Server Configuration and Maintenance for post-installation tasks. If there is a previous installation of LeasePak on any server, the procedures for transferring the data into LeasePak v62a are as outlined in LeasePak Server Upgrade and Conversion.
Application Host Preparation
Checking the OS Version - OS Verification
What You Need To Know To Understand This Section ...
Installing LeasePak on a Supported Application Host Operating System
NetSol only supports certain OS's in certain LeasePak versions, making identification of the OS version important.
The method of checking the OS version varies depending on platform:
O.S. Command Required OS Version Additional Information Supported DBMS Versions
HP-UX swlist HP-UX B.11.11 HP 11i Sybase 12.5.*
Linux uname -r Linux 2.6.18 minimum kernel version RHEL5 64-bit Oracle 11gR2
Sun showrev SunOS 5.9 Solaris 9 Sybase 12.5.*
Oracle 9iR2
Infrastructure - Groups, Users, Devices, and Filesystems
Learning About LeasePak Users
Refer to the document User Accounts. for a complete discussion of LeasePak Users, Groups, and related topics. The following tables only enumerate the accounts required for installation without much discussion, as that may be found at the above link.
Required OS Groups
Often Called* Description Suggested Value Your Value
$NSTGROUP LeasePak users' group; the OS group that all LeasePak users must have as their primary group. nst
Oracle DBMS primary installation group orainv
Oracle DBMS secondary installation group oradba
Sybase DBMS installation group sybase
* Often Called - this refers to names by which some entities are referred to in this documentation and also casually by NetSol staff and users, usually but not always the environment variable in which the name is stored. Not every entity has an often called name; in these cases this item is left blank.
IMPORTANT NOTE
Linux administrators
The primary group of all LeasePak users must be the $NSTGROUP group. By default, Red Hat will create an individual group for each user; the administrator must either turn this feature off before creating users or turn it off for each LeasePak user account created, or later change the primary group of the LeasePak users to $NSTGROUP.
The OS file /etc/group stores the names of the OS groups. In the case of secondary groups, sometimes called supplemental groups, the membership of a user in a group as a secondary group is determined by the user's name being listed after the group name in /etc/group. However, this is not so for primary groups; primary group membership is determined by placing the GID in the group field of the user's entry in the /etc/passwd file.
Required OS Users
Often Called* Description Suggested Name Group Name Your Name Your Group
Oracle DBMS installation user; Oracle software owner oracle orainv (primary)
oradba (secondary)
Sybase DBMS installation user; Sybase software owner sybase sybase
$NSTADMIN LeasePak Release Administrator nsadm62a $NSTGROUP
$NSTDBA LeasePak Database Administrator nsdba62a $NSTGROUP
IMPORTANT NOTE
$NSTADMIN and $NSTDBA
These are highly specialized accounts. Their environment variables should always point to the administrative environment (adm_ora or adm_syb) where SETUP initially placed them. Do not change the environment for either of these accounts manually or by using change_env, or set either of them up as LeasePak users.
Because these accounts must remain as configured by SETUP, NetSol strongly recommends that separate $NSTADMIN and $NSTDBA users be set up for each LeasePak release, and that they follow a naming convention that embeds the LeasePak release version in the user names.
Devices and Filesystems
CD-ROM Device
NetSol recommends that the CD-ROM device be attached directly to the application host (not over a network) to avoid problems where the directory paths might undergo unexpected case translation.
If the administrator prefers, the contents of the distribution CD or the distribution archive downloaded from NetSol may be copied into an application host directory, and that directory then used in lieu of using an actual CD, as a virtual CD or pseudo-CD, as it were.
OS Typical Path Your Path
HP-UX /SD-CDROM
Linux /mnt/cdrom
Sun /cdrom
Virtual CD
All platforms
requires about 300MB of space
/shipcd
mkdir /opt/shipcd
ln -s /opt/shipcd /shipcd
Filesystem Sizes
The following filesystems should already exist on the Application host or on the DBMS host; others will be created by SETUP, and others the administrator will have to set up. Each such type is indicated under Origin.
Parameter Comments Suggested Value Origin Your Value
1 Home Directory
Standard part of all supported OSes. Each LeasePak user has as directory under /home on the application host.
Path /home OS not optional
Size calculate from numbers and sizes of user-generated reports plus an allowance for leasepak_error.log 200 MB minimum; 4 GB normal
2 Temporary Directories
Standard parts of all supported OSes.
Path Used extensively by the NetSol Utility Scripts, and by some LeasePak reports, and the Queue Manager. /tmp OS not optional
Size 1.2 GB minimum; 2 GB normal
Path Potential extensive use by the Queue Manager on Linux, and by some LeasePak processes. /var/tmp OS not optional
Part of the /var filesystem
Path Potentially used by the Queue Manager on Linux. /var/spool OS not optional
Part of the /var filesystem
Size /var filesystem 1.2 GB minimum; 2 GB normal
3 Swap partition
This is part of the standard OS install. Not optional
Size 3 times physical memory is typical
40MB per concurrent LeasePak connection
OS
$NSTDIR - LeasePak and Queue Manager Installation Directories
LeasePak Directory Layouts
The following diagram illustrates the directory layout used on the HP and Solaris platforms. Text in bold are the variable names used to describe the layout and directories.
                                   /
                                   | .......................................$EFSDIR
                                   |/
                                  opt
                                   |
                      +------------+--------+------------+-------------+
                      |                     | ...........|.............|....$NSTDIR
                      |                     |/           |             |
                     qm                    msi        oracle        sybase
                      |                     |      
                  +---+------+       +------+-------+
                  |          |   ....|......|.......|.......................$QMPPATH
                  |          |  /    |      |       |
                  |          | /     |      | ......|.......................$TOPDIR
                  |          |/      |      |/      |
                v61a        v62a    v61a   v62a    cst......................$CSTDIR
                  |          |                      |
                  |          |  ....................|.......................$QMDIR
                  |          | /                    |                            
               qm_3_17    qm_3_17             +-----+-----+        
                                              |           |        
                                          6.10.8765   6.20.7654 
In v62a Linux, NetSol is consolidating some of the directory structures used to install LeasePak and its Queue Manager. Where before, two directories, indeed two filesystems, were recommended, NetSol now recommends one.
The diagram below depicts this new structure. bold items are shell environment variable references to the various directory components. Dotted lines ... and / connect each reference to the component it names.
                                  /
                                  |
                                 opt.......................$EFSDIR
                                  |
                                 nst.......................$NSTDIR
                                  |
                   +--------------+---------------+
                   |              |               |
                   |     .........|...............|........$QMPPATH
                   |    /         |               |
                   |   /          | ..............|........$TOPDIR
                   |  /           |/              |
           qm_${INST_ID}62a      v62a            cst.......$CSTDIR
                   |                              |
                   | .............................|........$QMDIR
                   |/                             |
                qm_3_31                     +-----+-----+
                                            |           |
                                        6.20.8765   6.20.7654 
The rules for both layouts are:
  • $NSTDIR is central. NetSol suggests naming it nst but that is optional.
  • $NSTDIR's parent directory is $EFSDIR, the External File System (meaning external to LeasePak)
  • $EFSDIR cannot be / (root).
  • $TOPDIR's parent directory is $NSTDIR. $TOPDIR must still be the LeasePak release version, as it has always been.
  • $QMPURPOSE
    • Linux:
      $QMPURPOSE is qm_${INST_ID}62a, for example qm_prod62a
      Parallel to $TOPDIR is $QMPPATH, the Queue Manager Parent Path. $QMPPATH consists of $NSTDIR/$QMPURPOSE.
    • HP-UX & Solaris::
      $QMPURPOSE is qm/v62a
      Parallel to $NSTDIR is $QMPPATH, the Queue Manager Parent Path. $QMPPATH consists of $EFSDIR/$QMPURPOSE.
  • $QMRELS is used frequently in this document and in the LeasePak administration scripts, and is equal to qm_+$QM_VERSION. In v62a, then, $QMRELS will be qm_3_17 or qm_3_31. See LeasePak Server and Queue Manager Directories
  • Finally below $QMPPATH is $QMDIR, which is $QMPPATH/$QMRELS.
  • Parallel to $TOPDIR is $CSTDIR, which has a child directory for each build attached to any of the $TOPDIRs release instances under $NSTDIR.
  • All of the directories below $NSTDIR must follow the Queue Manager naming restrictions: lower case alpha, digits, and underscore only are allowed. No directories with . (period) or - (hyphen) in their names are allowed.
IMPORTANT NOTE
Changes to the Queue Manager in v62a and Before
Beginning in about Version 5.3a, Queue Manager self configures, leaving only the establishment of queues, printers, and print queues for the administrator.
The most immediate difference is that in v62a the SETUP program, once the Queue Manager software is installed, calls a special version of the Queue Manager Config file, which obtains parameters from the execution environment and fully parameterizes a clone of itself. There is no editing of the Config file required to set parameters such as Config:SYSTEM and Config:MAXDEV, etc.
Beginning with Version 6.2a on Linux, the Queue Manager temporary directory and the Queue Manager spool directory are site-configurable; the administrator can select between two filesystem locations for each of these directories. The choices for location of the temporary directory are /var/tmp (recommended) and /tmp. The choices for location of the spool directory are /var/spool (recommended) and $QMDIR/spool. The final component after /var/tmp, /tmp, and /var/spool is $QMPURPOSE, or qm_${INST_ID}62a.
LeasePak Server and LeasePak Queue Manager Directories
Selecting the right names to use in the installation
Being hierarchical, the $NSTDIR directory structures have many parent/child relationships, which complicate the documentation of the layout. The following tables attempt to explain the relationships and terminology of the directories. Five tables follow:
Parameters and Paths
Parameter Purpose Suggested Names Notes
$EFSDIR A file system that holds non-OS-provided software packages /opt Cannot be /
$NSTDIR Holds NetSol Technologies products $EFSDIR/nst nst is recommended
$TOPDIR Holds the Server instance of a LeasePak release $NSTDIR/v62a v62a is required
$CSTDIR Holds the End-User Customized Code Objects $NSTDIR/cst cst is recommended
$QMPURPOSE A component in names describing the Queue Manager and connecting it to a LeasePak instance. Linux:
     qm_${INST_ID}62a
HP-UX & Solaris:
     qm/v62a
component value formation is fixed
$QMRELS A component in path names for Queue Manager instances connected to LeasePak; specifically the final component of the path where the Queue Manager software and configuration is stored. Provides a clearly delineated division between different versions of the Queue Manager software. qm_$QM_VERSION component value formation is fixed
$QMPPATH This is the path at which the $QMRELS (see above) is located holding the Queue Manager software Linux:
     $NSTDIR/$QMPURPOSE
HP-UX & Solaris:
     $EFSDIR/$QMPURPOSE
may be overridden by operator
$QMDIR Holds the Queue Manager software and configuration $QMPPATH/$QMRELS path formation is fixed
$SYSTMPDIR System directory that holds temporary files for many applications Linux:
     /var/tmp
       or
     /tmp
HP-UX & Solaris:
     /tmp
Linux:
     choice between two system
     temporary directories
HP-UX & Solaris:
     location fixed
$QMTMPDIR Directory used by the Queue Manager to hold its many temporary files. $SYSTMPDIR/$QMPURPOSE path formation is fixed
$QMSPOOLDIR Directory used by the Queue Manager to contain the filesystem components of the queues themselves, as well as the files that represent or contain jobs waiting for execution. Linux:
     /var/spool/$QMPURPOSE
       or
     $QMDIR/spool
HP-UX & Solaris:
     $QMDIR/spool
Linux:
     choice between two approaches
       under the system spooler directory
       traditional, under $QMDIR
HP-UX & Solaris:
     single approach
       traditional, under $QMDIR
About $QM_VERSION
$QM_VERSION is the supported version of the Queue Manager on the installation platform. $QMRELS is qm_ plus $QM_VERSION. The following table shows the currently supported versions of the Queue Manager software:
Supported Queue Manager Versions
Platform Queue Manager Version
$QM_VERSION
Queue Manager Release
$QMRELS
HP-UX 3_17 qm_3_17
Linux RHEL5 3_31 qm_3_32
Sun 3_17 qm_3_17
Standard Filesystems
In the ensuing discussions, when the term standard filesystem (or Std FS) is used, it is intended to mean the recommended type of filesystem for each platform as set forth below:
O.S. Standard Filesystem
HP-UX HFS or VxFS
Linux RHEL5 ext3
Sun UFS
Filesystem Layouts
NetSol is recommending that $NSTDIR be on one filesystem. If the administrator prefers to use separate filesystems, then the following table should be consulted to guide the layout of the $NSTDIR structure on different combinations of filesystems:
# #1 #2 #3 #4
Filesystems
# of filesystems FS #1
Directories
Min space req
FS type
FS #2
Directories
Min space req
FS type
FS #3
Directories
Min space req
FS type
FS #4
Directories
Min space req
FS type
1 $NSTDIR
$QMTOPDIR
$TOPDIR
$CSTDIR
1.8GB
Std FS
2 $NSTDIR
$TOPDIR
$CSTDIR
1.5GB
Std FS
$QMDIR
300MB
Std FS
2 $NSTDIR
$QMDIR
$CSTDIR
400MB
Std FS
$TOPDIR
1.4GB
Std FS
3 $NSTDIR
$CSTDIR
100MB
Std FS
$QMDIR
300MB
Std FS
$TOPDIR
1.4GB
Std FS
4 $NSTDIR
10MB
Std FS
$QMDIR
.3GB
Std FS
$TOPDIR
1.4GB
Std FS
$CSTDIR
100MB
Std FS
Installing LeasePak v62a across more than 4 separate filesystems is not recommended. The administrator should not relocate arbitrary parts of $QMDIR and of $TOPDIR to other filesystems, without guidance from NetSol.
LeasePak Server and LeasePak Queue Manager Directories
Creating and Provisioning
Parameter Path Owner:Group Access Modes Made By Cfg Input
$EFSDIR /opt OS values OS values OS or admin no
$NSTDIR $EFSDIR/nst root:${NSTGROUP} 0750 SETUP no
$TOPDIR $NSTDIR/v62a ${NSTADMIN}:${NSTGROUP} 0755 SETUP yes
$CSTDIR $NSTDIR/cst root:${NSTGROUP} 0775 SETUP yes
$QMPPATH $NSTDIR/$QMPURPOSE    or $EFSDIR/$QMPURPOSE root:sys 0777 SETUP yes
$QMDIR $QMPPATH/$QMRELS ${NSTADMIN}:${NSTGROUP} 0750 SETUP no
$SYSTMPDIR Linux:
     /var/tmp
       or
     /tmp
HP & Solaris:
     /tmp
OS values OS values OS yes
$QMTMPDIR $SYSTMPDIR/$QMPURPOSE root:root 0777 SETUP no
Config:LNMDIR
Config:SORTDIR
Config:MBXDIR
Config:TRACE
$QMTMPDIR/lnm
$QMTMPDIR/sor
$QMTMPDIR/mbx
$QMTMPDIR/log
root:root 0777 SETUP no
$QMSPOOLDIR Linux:
     /var/spool/$QMPURPOSE
       or
     $QMDIR/spool
HP & Solaris:
     $QMDIR/spool
${NSTADMIN}:${NSTGROUP} 0777 SETUP yes
Internet and Init Services Installed by LeasePak
Parameter Service location SETUP Prompt
Service name Comments
$QMINITFNAME $INITDIR Install Queue Mgr startup/shutdown in rc1.d/rc3.d?
nst_qm_${INST_ID}62a handles starting and stopping the Queues
(no parameter used) $INITDIR Install Oracle startup/shutdown in rc1.d/rc3.d?
nst_dbora handles starting and stopping the Oracle instances listed in $DBMS_INSTANCES_LIST
(no parameter used) $INITDIR Install Sybase startup/shutdown in rc1.d/rc3.d?
nst_dbsyb handles starting and stopping the Sybase dataservers and possibly the backup server
$LPKD_SVC_ID /etc/services Install LeasePak TCP port in inet configuration?
nst_lp62a${INST_ID}_$LEASEPAKD_PORT Handles dispatch of connection requests to leasepakd
$MPWD_SVC_ID /etc/services Install mPower TCP port in inet configuration?
nst_mp62a${INST_ID}_$MPOWERD_PORT Handles dispatch of connection requests to mPowerd
Locale - LeasePak Uses Vanilla "C" locale
The LeasePak server runs exclusively under the C locale. This is enforced through the LeasePak startup files. This locale is available on all supported platforms. The character set of this locale is ASCII with 8-bit extensions. Unicode, UTF8, and UTF16 are not compatible with LeasePak.
Queue Manager License - Temporary License file
About the Queue Manager License File
The Queue Manager used by LeasePak has a separate license file. This file is a text file obtained through the NetSol Help Desk. When the administrator is ready to install LeasePak for the very first time on the application host, s/he should contact the NetSol Help Desk, who will send a temporary license via email. The administrator should copy the file onto the application host as /etc/S7.license, and set its access modes to root:root 444.
If a temporary license is issued, it must be replaced before expiration with a permenant license.
Obtaining the permanent license is not possible until the Queue Manager is installed with the rest of the LeasePak release. See below Obtaining the Permanent License.
DBMS Host Preparation
Database Systems - DBMS Installation Overview
DBMS Installation Overview
The LLDBs of the LeasePak environments are supported and controlled by database systems, or DBMSes. LeasePak v62a supports two database systems, Oracle and Sybase; a site can run both database systems simultaneously if the client has purchased the proper licenses from the DBMS vendor and from NetSol. Or the site can run just one database system.
The following tables document directories connected in some way to both the database system(s) and the LeasePak server. They are by no means exhaustive or complete. See the Oracle Server SAG or the Sybase Server SAG for detailed information on the installation and configuration of the respective database systems and the hosts that support them.
The software for the two database systems should be segragated in separate directories, they do not necessarily need to be on separate filesystems, though of course they can be. The location of the database system software as appropriate does not have any bearing on the location of the disk storage segments used by either system to store the contents of databases. That is a matter for the Oracle and Sybase chapters of this Guide.
If the Application Host is separate from the DBMS Host, utilizing what is called the Split System, the recommended method for setting this up is to install LeasePak v62a and the database client software on the Application host and the database server software on the DBMS host. This is because the LeasePak server software acts as a client to the database servers and so requires the client libraries and other data that are part of the database system install. Contact the NetSol Help Desk for more information on setting up the Split System.
Oracle 9i on Solaris 9 and 11g on Linux RHEL5
See the Oracle Server SAG for complete details on the installation and configuration of the Oracle 9iR2 and Oracle 11gR2 database systems. In LeasePak release v62a, Oracle 9iR2 is supported on Solaris 9 only, and Oracle 11gR2 is supported on Linux RHEL5 only.
Name Suggested Names Notes
Oracle 9i - Solaris 9
/opt/oracle base directory for Oracle installation. This would be the mountpoint if separate filesystems are used.
$ORADIR /opt/oracle/product/9.2 becomes the value of $ORACLE_HOME
3.5 GB minimum minimum disk space for /opt/oracle
Oracle 11g - Linux RHEL5
/opt/oracle The apex of the Oracle installation. This would be the mountpoint if a separate filesystem is used.
$ORACLE_BASE /opt/oracle/11 Oracle's base directory for product installation
$ORA_PRODSRV product/11.2.0/dbhome_1 with ORACLE_BASE becomes the value of $ORACLE_HOME. This is the location of the 64-bit Oracle Database Server, which must be installed on all machines that are to support an Oracle Instance, such as a Combined Host (serves as both an Application host and as a DBMS Host in a Unified System), or as a DBMS Host in a Split System.
$ORA_PRODCLT product/11.2.0/client_1
This is the location of the 32-bit Oracle Database client, which is required for the LeasePak server processes to communicate with and utilize an Oracle database. It must be installed on all machnes that are to support LeasePak server processes, such as a Combined Host (serves as both an Application host and as a DBMS Host in a Unified System), or as an Application host in a Split System.
When a machine serves as an Application host, the value of $ORACLE_HOME is $ORACLE_BASEK/K$ORA_PRODCLT.
4.5 GB minimum
1.5 GB minimum
disk space for /opt/oracle (Oracle 64-bit server installation)
disk space for /opt/oracle (Oracle 32-bit client-only installation)
Additional disk space above the minimum is recommended to accomodate Oracle log and trace files
IMPORTANT NOTE
About the Oracle 11g directory structure
Oracle 11g requires there to be an ORACLE_BASE directory where various Oracle products may be installed. The default LeasePak name for this directory is /opt/oracle/11. Products such as server or client database software are then installed in ORACLE_BASE.
Oracle provides two versions of the 11gR2 database system on RHEL5: a 64-bit and a 32-bit product. An Oracle instance runs only on the 64-bit server product. A 32-bit application such as LeasePak requires the 32-bit client product in order to interface with the Oracle instance.
Depending on the system topology chosen (that is, a Unified System or a Split System), the two products may occur in any of the following combinations:
System Topology
Types Unified System Split System
Hosts Combined Host Application Host DBMS Host
product/11.2.0 Directories dbhome_1 client_1 dbhome_1 client_1 dbhome_1 client_1
Software 64-bit server 32-bit client * n/u 32-bit client 64-bit server * n/u
See the Oracle Server SAG elsewhere in this Guide for more details on installing the Oracle database system.
CRITICAL NOTE
Oracle Locale Settings / NLS_LANG
Oracle's NLS_LANG environment variable contains locale information for the Oracle client processes. The Oracle server also has its locale information (see Oracle Server SAG). Locale information includes character set and language. If the client and server character sets do not match, then all data that passes between them (data and SQL) must be translated from one character set to the other. This is expensive and sometimes characters in one character set may have no equivalent in the other character set, leading to data corruption.
The LeasePak server supports only 7 and 8 bit character sets; in Oracle terms this means that Oracle NLS_LANG is quite limited in its possible values. At this time, LeasePak requires either American_America.WE8ISO8859P1 or American_America.US7ASCII as the value of NLS_LANG. The NetSol Utility Scripts handle setting NLS_LANG for all instances of the LeasePak server, but only to WE8ISO8859P1. Contact the NetSol Help Desk for assistance in getting NLS_LANG set to US7ASCII.
Sybase ASE 12.5 on HP-UX 11i and on Solaris 9
See the Sybase Server SAG for complete details on the installation and configuration of the Sybase 12.5.x database system. In LeasePak release v62a, Sybase 12.5.x is supported on HP-UX 11i and on Solaris 9.
Name Suggested Names Notes
Sybase 12.5.x - HP-UX 11i and Solaris 9
$SYBDIR /opt/sybase base directory for Sybase install. This would be the mountpoint if a separate filesystem is used. Becomes the value of $SYBASE.
2 GB minimum minimum disk space for /opt/sybase
Additional Preparation
HP-UX Preparation - Setting HP-UX Kernel Parameters
HP Kernel parameters and other changes needed by LeasePak and the Queue Manager
Note that there may also be kernel parameter changes in addition to the ones below related to the database systems. See the Sybase Server SAG elsewhere in this Guide.
Use SAM or direct commands to configure the following kernel parameters on the application host. After setting the parameters, you must rebuild the kernel and reboot the application host in order for the changes to take effect.
The kernel parameter values listed are minimum guidelines only. You may need to adjust these values to achieve optimal application host performance. If you've already configured the kernel parameters for a previous LeasePak installation, your existing kernel parameters will, in most cases, work.
Description Minimum Value Your Value
maxdsiz
maximum data segment size for a process executing in memory 0x08000000 (hex)
maxswapchunks
maximum allocated swap space configured swap space (in megabytes) / 2 * (size of swchunk)
maxusers
resource allocation parameter 4 * average number of concurrent users
msg*
configure msgseg, msgmnb, and msgssz first, then set msgmax
msgseg
number of message segments available on a single message queue 4096 segments
msgmnb
maximum size of all messages existing simultaneously on a single message queue 32768 bytes
msgsz
message segment size 8 bytes
msgmax
maximum size of any single message 32768 bytes
nflocks
maximum number of available file locks 2000 file locks
nproc
maximum number of concurrent processes 20 + (8 * maxusers)
npty
maximum number of available pseudo ttys 2 * maximum number of concurrent users
nstrpty
maximum number of available streams-based pseudo ttys 2 * maximum number of concurrent users
semmnu
maximum number of processes with pending undo operations on a semaphore 60 processes
swchunk
swap chunk size 2048 kilobytes
Linux Preparation - /usr/bin/isql and the sudoers file in RHEL5
Linux Kernel parameters and other changes needed by LeasePak and the Queue Manager
There are no kernel parameter changes required by LeasePak or the Queue Manager for Linux RHEL5.
Note that there may be kernel parameter changes related to the database systems. See the Sybase Server SAG and the Oracle Server SAG elsewhere in this Guide.
isql: MySql or Sybase?
RedHat installs the MySql database system by default, including the executable /usr/bin/isql. Being in the default PATH value before LeasePak directories are added, /usr/bin usually comes before any DBMS or LeasePak additions, so /usr/bin/isql tends to be found before the Sybase isql. This will cause errors in any LeasePak shell script using isql.
Allowing a default installation of MySql on a LeasePak host is inherently incompatible with the operation of Sybase. NetSol strongly recommmends not installing MySql on the LeasePak host. Where MySql is installed alongside Sybase, the administrator must remove, rename, or relocate /usr/bin/isql so that LeasePak shell scripts will not find the MySql version when searching for the Sybase isql.
Additions to the sudoers File
Linux by default allows only root (the system administrator) to change the ownership of files. LeasePak has several processes where it is necessary for a LeasePak administrative user to change the ownership of files that it owns. For this reason, there must be entries in the system file /etc/sudoers to allow $NSTADMIN and $NSTDBA to use the chown command.
To edit /etc/sudoers the operator needs to log onto the application host as root, and execute:
  #  visudo 
(visudo is all one word). This places a lock on the /etc/sudoers file so only one user at a time can edit it, and puts the operator into a vi session on /etc/sudoers. Make the following changes:
  1. If there is no entry like this:
      User_Alias NST = 
    make one and add the names of $NSTADMIN and $NSTDBA separated by commas after the =.
    Use the actual login names, not the environment variables, for the entry:
      User_Alias NST = nsadm62a, nsdba62a
    If there is already a User_Alias NST = line, add the login names of $NSTADMIN and $NSTDBA to the list.
  2. If there is no entry like this:
      NST    ALL=NOPASSWD:/bin/chown, /bin/chgrp
    then make one.
    Save and quit vi by:
      :wq(ENTER) 
    Now, anyone whose login name is in the User_Alias NST can run chown and chgrp as if they were logged in as root.
  3. In subsequent LeasePak installations on the same application host, the administrator need only add the login names of new $NSTADMIN and $NSTDBA users to the User_Alias NST.
Linux Software Packages
The RedHat xinetd package must be installed on the Application server in order for leasepakd or mpowerd to properly function. Use the RedHat yum package manager as root to install this package.
#  yum install xinetd	
Sun Preparation - Setting Solaris Kernel Parameters
Sun Kernel parameters and other changes needed by LeasePak and the Queue Manager
Use vi to edit /etc/system to configure the following kernel parameters. After setting the parameters, you must reboot the application host in order for the changes to take effect.
The parameter values listed are minimum guidelines only. You may need to adjust these values to achieve optimal server performance. If you've already configured the kernel parameters for a previous LeasePak installation, your existing kernel parameters will, in most cases, work in the new version.
Description Minimum Value Your Value
msgsys:msginfo_msgmax
maximum size of any single message 32768 bytes
msgsys:msginfo_msgmnb
maximum number of bytes on a single message queue 32768 bytes
rstchown
enable users to chown their own files 0
semsys:seminfo_semume
maximum number of processes with pending undo operations on a semaphore 60 processes
Preparation Checklist
List of Pre-Installation Tasks For the Administrator
The below table attempts to summarize all of the tasks that the Administrator must tend to before running SETUP to install LeasePak. This list does not and is not intended to replace careful reading and consideration of the information given in this Guide.
Note also that this table does not include some important implementation decisions that must be made prior to installation; please read the Setup Questions section carefully as well, and fill out the worksheet located there; there is some overlap between this worksheet and that one, but they are not equivalent.
Preparation Checklist
Description Suggested Value Your Value Done?
Application Host Preparation
OS Verification
HP-UX B.11.11 Sybase 12.5.*
64-bit Linux 2.6.18 minimum kernel Oracle 11gR2
SunOS 5.9 Sybase 12.5.*
Oracle 9iR2
Additional Application Host Preparation
Setting HP-UX Kernel Parameters
maxdsiz 0x08000000 (hex)
maxswapchunks swap space/2 * (size of swchunk)
maxusers 4 * average concurrent users
msgseg 4096 segments
msgmnb 32768 bytes
msgsz 8 bytes
msgmax 32768 bytes
nflocks 2000 file locks
nproc 20 + (8 * maxusers)
npty 2 * max concurrent users
nstrpty 2 * max concurrent users
semmnu 60 processes
swchunk 2048 kilobytes
/usr/bin/isql and the sudoers file in RHEL5
/usr/bin/isql remove,
rename,
or relocate
add to /etc/sudoers User_Alias NST = nsadm62a, nsdba62a
NST ALL=NOPASSWD:/bin/chown, /bin/chgrp
Setting Solaris Kernel Parameters
msgsys:msginfo_msgmax 32768 bytes
msgsys:msginfo_msgmnb 32768 bytes
rstchown 0
semsys:seminfo_semume 60 processes
Application Host - Groups and Users
Required OS Groups
LeasePak Primary Group
$NSTGROUP
nst
Oracle DBMS primary installation group orainv
Oracle DBMS secondary installation group oradba
Sybase DBMS installation group sybase
Required OS Users
Oracle DBMS installation user; Oracle owner
$ORAINSTACCT
oracle (primary group=orainv;secondary=oradba)
Sybase DBMS installation user; Sybase owner sybase (primary group=sybase)
LeasePak Release Administrator
$NSTADMIN
nsadm62a (primary group=$NSTGROUP)
LeasePak Database Administrator
$NSTDBA
nsdba62a (primary group=$NSTGROUP)
DBMS Host Preparation
Oracle 9i on Solaris 9
mountpoint (if used) /opt/oracle
size of /opt/oracle 3.5GB
$ORADIR
$ORACLE_HOME
contains the Oracle database system software
/opt/oracle/product/9.2
Oracle 11g on Linux RHEL5
mountpoint (if used) /opt/oracle
size of /opt/oracle 3.5GB
ORACLE_BASE
base directory for Oracle software products
/opt/oracle/11

$ORA_PROD
contain the Oracle database system and database client software
product/11.2.0/dbhome_1    or
product/11.2.0/client_1
$ORACLE_BASE/$ORA_PROD
the value of $ORACLE_HOME
mandatory
Sybase ASE 12.5 on HP-UX 11i and on Solaris 9
mountpoint (if used) /opt/sybase
size of /opt/sybase 2GB
$SYBDIR
$SYBASE
contains the Sybase database system software
/opt/sybase
Application Host - Devices and Filesystems
CD-Rom
CD-ROM Path /SD-CDROM
/mnt/cdrom
/cdrom
/shipcd
Filesystem Sizes
size of /home
$HOME
200MB to 4.0+GB
size of /tmp 1.2 to 2.0+GB
size of /var 1.2 to 2.0+GB
size of swap 3 x physical memory
LeasePak Server and Queue Manager Directories
$EFSDIR
contains LeasePak, Oracle & Sybase
/opt (must already exist)
$SYSTMPDIR
temporary directory
/var/tmp (must already exist) or
/tmp (must already exist)
$NSTDIR
contains LeasePak
$EFSDIR/nst (SETUP creates this)
$TOPDIR
contains a LeasePak instance
$NSTDIR/v62a (SETUP creates this)
$CSTDIR
contains end-user customized files
$NSTDIR/cst (SETUP creates this)
$QMPURPOSE common pathname component Linux: qm_${INST_ID}62a
   or
HP-UX & SunOS: qm/v62a
(component)
$QMRELS common pathname component qm_$QM_VERSION
(component)
$QMPPATH
contains the Queue Manager instance
Linux: $NSTDIR/$QMPURPOSE
   or
HP-UX & SunOS: $EFSDIR/$QMPURPOSE
(SETUP creates these)
Location of the queues belonging to the Queue Manager instance Linux: /var/spool/$QMPURPOSE
   or
HP-UX & SunOS: $QMDIR/spool
(SETUP creates these)

Installation

LeasePak License File
Setting Up the LeasePak License File(s)
Each licensee of LeasePak receives a license file for each database system that they have purchased license to use. The license file(s) are named:
  • @@lplicense.ora - for Oracle
  • @@lplicense.syb - for Sybase
Where the @@ is replaced by the licensee's two-letter client code, for example My Leasing Company, Inc, might have an Oracle license named MLlicense.ora.
Normally these files are obtained from NetSol's ftp site, in coordination with the NetSol Help Desk.
It is possible for licenses to be provided on a standard double-density MS-DOS FAT12 format 3.5" diskette.
The goal of this step is to copy the license file(s) to the application host's /tmp directory and ensure that the files are named lplicense.ora or lplicense.syb before SETUP is run.
IMPORTANT NOTE
If ftp is used ...
... at any point to obtain the license file or to copy it onto the application host, the operator must make sure that the file is transferred in Binary mode each and every time!
Transferring the license file in Text mode thoroughly corrupts the file. This will not be detected until the first time someone attempts to run a LeasePak driver with it, when it will cause the driver to abort.
LeasePak SETUP Program
SETUP Options
SETUP case
SETUP may be upper or lower case
  • Installing from CD:
    • HP-UX - usually SETUP, but may be setup
    • Sun - setup
    • Linux - setup
    • If all else fails, list the files on the CD!
  • Installing from CD copy on local disk:
    • All - SETUP
CRITICAL NOTE
Install as root
It is critical that installation be performed by root (the system administrator).
It is equally critical that the shell session have NO LeasePak variables defined. If using the su command, the administrator must use 'su -' to prevent the shell session from being contaminated.
Hacking platform_matrix
platform_matrix is a NetSol Utility Script that is used to track the versions of the many software packages used in LeasePak. As of v62a, there are 17 different packages to track, obviously not every platform requires all 17. The basic premise is to discern the OS the operator is using, and combine that with a LeasePak release version (such as v62a), and identify what the other software package's versions should be.
The goal of platform_matrix is this: to allow the NetSol Utility Scripts to behave appropriately depending on where they are running. To do this, there must be some limitation of the combinations that NetSol can support. It is a result of this pragmatism, that LeasePak cannot support every combination, some combinations of software are going to be fully supported and other combinations, perhaps equally viable and functional, get excluded.
This engenders the necessity of verifying the platform combination that the software finds itself on. The intent of this process is to recognize the platform in use so that the installation and configuration take place correctly. There is no attempt to pass judgment on anyone's configuration, but inevitably there are configurations that the scripts do not recognize, and a failure is reported. And these failures engender hacking platform_matrix in order to accomplish the installation.
In v62a, NetSol has provided an "out" to allow for these unforeseen variations. By setting the environment variable $MSIDBG_PLATFORM to one of the recognized platform ids and exporting it before running SETUP or cfg_gen, the logic will bypass platform_matrix -autodetect, and use instead $MSIDBG_PLATFORM.
Recognized platform ID OS Type OS Version
hp11 hp-ux hp-ux11
hp11i hp-ux hp-ux11i
sun8 or sol8 sunos solaris8
sun9 or sol9 sunos solaris9
rh4 linux rh4
rh5 linux rh5
In v62a, NetSol completely eliminated the Linux kernel version from the platform_matrix process. Instead the file /etc/redhat-release is used. In RHEL5, the file contains:
 Red Hat Enterprise Linux Server release 5.4 (Tikanga) 
The OS type (HP-UX, SunOS or Linux), plus the OS Release (e.g., B.11.11, or 5.9 or 5, plus the LeasePak release version , select a row in platform_matrix. For example, HP-UX + B.11.11 + v62a creates the selector hp-ux_b.11.11_v62a, which is unique. One of the most important values retrieved is the $PLAT_CFG which is the platform part of the selector used by cfg_gen in the *.mtx template files; this value plus the packages specified in PKG statements in $live/lib/*.cfg selects the proper blocks of variables to be incorporated into the generated config files.
NetSol hopes that these changes will eliminate the need for manually hacking the program on every install.
Disabling db_add_srvadm
db_add_srvadm is a NetSol Utility Script that is used to create or update the $SRVADM DBMS user account under each installed DBMS. This account is granted privileges sufficient to administer all aspects of the DBMS supporting LeasePak. It was designed to provide the system administrator a user account that can handle the administrative needs of LeasePak, but without divulging the database system root user (sysdba or sa) password to subordinates.
However, creating this user involves someone wielding the database system root user (sysdba or sa) password during SETUP. Also, some sites do not want the $SRVADM to be able to create user accounts, nor a number of other abilities that are assigned to $SRVADM.
Therefore NetSol is providing a means by which the database system root user password is NOT prompted for, and the $SRVADM user is not created. When the administrator choses to exercise this option, he then becomes responsible for the creation of $SRVADM according to NetSol specifications, less any objectionable grants of privilege, and for the execution of $SRVADM's functions according to NetSol specifications that he has not given privilege to $SRVADM to do.
To engage this capability, the administrator must do the following before running SETUP, within the same shell session as will be used to run SETUP:
Shell Commands to disable db_add_srvadm
sh, ksh, bash NSTOPT_CREATE_SRVADM=N
export NSTOPT_CREATE_SRVADM
csh, tcsh setenv NSTOPT_CREATE_SRVADM N
There are a number of requirements that must be met if the administrator chooses to use this capability.
This is a summary of the points listed in detail below:
The detailed points:
  • $SRVADM must be created by the DBMS administrator before SETUP is run. The requirements for $SRVADM vary by database system. See also Database Server Administrator.
    DBMS Requirements for Creating the $SRVADM user
    Oracle The following are the commands used to create the Oracle $SRVADM
    CREATE USER $SRVADM             IDENTIFIED BY $PWD_SRVADM;
    GRANT CREATE SESSION            TO $SRVADM WITH ADMIN OPTION;
    GRANT ALTER SESSION             TO $SRVADM WITH ADMIN OPTION;
    GRANT CREATE USER               TO $SRVADM;
    GRANT ALTER USER                TO $SRVADM;
    GRANT DROP USER                 TO $SRVADM;
    GRANT CREATE ROLE               TO $SRVADM;
    GRANT DROP ANY ROLE             TO $SRVADM;
    GRANT CREATE TABLE              TO $SRVADM WITH ADMIN OPTION;
    GRANT CREATE VIEW               TO $SRVADM WITH ADMIN OPTION;
    GRANT CREATE TRIGGER            TO $SRVADM WITH ADMIN OPTION;
    GRANT CREATE PROCEDURE          TO $SRVADM WITH ADMIN OPTION;
    GRANT CREATE TABLESPACE         TO $SRVADM;
    GRANT ALTER TABLESPACE          TO $SRVADM;
    GRANT SELECT_CATALOG_ROLE       TO $SRVADM;
    GRANT ANALYZE ANY DICTIONARY,
          ANALYZE ANY               TO $SRVADM;
    ALTER USER $SRVADM              DEFAULT ROLE SELECT_CATALOG_ROLE;
    ALTER USER $SRVADM              DEFAULT TABLESPACE $ORA_DFLTSEG;
    Sybase The Sybase $SRVADM is created as follows:
    use master
    go
    exec sp_addlogin $SRVADM, $PWD_SRVADM
    grant role sa_role to $SRVADM
    grant role sso_role to $SRVADM
    go
  • If the LLDB and its owner are created by the DBMS administrator, it should be done according to the information below, which varies according to the database system. See also Creating LeasePak Logical Databases.
    DBMS Requirements for Creating LLDBs & DBOs
    Oracle The Oracle LLDB and its owner are the same entity. These are the requirements for creating the owner/LLDB:
    CREATE USER $MSIDB_DBNAME        IDENTIFIED BY $PWD_MSIDB_DBNAME;
    CREATE ROLE msi_$MSIDB_DBNAME    NOT IDENTIFIED;
    CREATE ROLE msir_$MSIDB_DBNAME   NOT IDENTIFIED;
    GRANT CREATE SESSION             TO $MSIDB_DBNAME;
    GRANT CREATE TABLE               TO $MSIDB_DBNAME;
    GRANT CREATE VIEW                TO $MSIDB_DBNAME;
    GRANT CREATE TRIGGER             TO $MSIDB_DBNAME;
    GRANT CREATE PROCEDURE           TO $MSIDB_DBNAME;
    GRANT ALTER SESSION              TO $MSIDB_DBNAME;
    GRANT msi_$MSIDB_DBNAME          TO $MSIDB_DBNAME WITH ADMIN OPTION;
    GRANT msir_$MSIDB_DBNAME         TO $MSIDB_DBNAME WITH ADMIN OPTION;
    ALTER USER $MSIDB_DBNAME         DEFAULT ROLE msi_$MSIDB_DBNAME,
                                                  msir_$MSIDB_DBNAME;
    ALTER USER $MSIDB_DBNAME         DEFAULT TABLESPACE $ORA_DFLTSEG
                                     QUOTA quota ON tablespace;

    where quota is either numberM if using a common storage segment (tablespace), or UNLIMITED if using a dedicated storage segment.
    The file $uetc/physdb.msirc must be updated, with ownership given to $NSTDBA, and the contents:
         setenv MSIDB_SEG01 "tablespace,quota"
    where tablespace and quota must match the values used in creating the LLDB above
    Sybase The Sybase LLDB is created as an actual Sybase database; its owner is created separately. Following are the requirements for creating the database:
    use master
    go
    create database $MSIDB_DBNAME
         on datadev = datasize
         log on logdev = logsize
    go
    exec sp_dboption $MSIDB_DBNAME 'trunc log on chkpt', true
    go
    use $MSIDB_DBNAME
    go
    checkpoint
    go
    exec sp_addgroup msi
    exec sp_addgroup msir
    go
    The 'trunc log on chkpt' option is NOT valid for production LLDBs and must be replaced with an option that will allow for proper database recovery in the event of failure or error.
    The file $uetc/physdb.msirc must be updated, with ownership given to $NSTDBA, and the contents:
         setenv MSIDB_SEG01 "datadev,datasize,DATA"
         setenv MSIDB_SEG02 "logdev,logsize,LOG"
    where the devices and sizes must match the values used in creating the LLDB above
    The Sybase database owner is created as shown below. If the $SYB_AUTODBO SETUP option is set to Y, then the database owner's name should be the same as the LLDB name ($MSIDB_DBNAME).
    use master
    go
    exec sp_addlogin $DBO, $PWD_DBO
    exec sp_locklogin $DBO, 'lock'
    exec sp_modifylogin $DBO, defdb, master
    exec sp_locklogin $DBO, 'unlock'
    go
    use $MSIDB_DBNAME
    go
    exec sp_changedbowner $DBO
    go
    all The NetSol Utility Script db_setup_phys may be run to update the physdb.msirc file. This interactive script requires the $SRVADM account password, but does not modify the database system master tables.
    Under this arrangement, the DBMS administrator will perform the functions handled by the -b and possibly the -p options of db_create; the $NSTDBA may thereafter execute db_create -ocs. db_create will persist in requiring the $SRVADM password; this is not actually used for the -o, -c, and -s options. These three options are equivalent to using:
         db_load_obj
         db_load_code
         db_set_security
  • If the $SRVADM is not to create users, then the DBMS administrator will need to create all user accounts in the database system. A distinction is made between users who are to be LLDB owners and users who are not. The creation of all database system users except $SRVADM may be deferred until after SETUP has been run. See also LeasePak non-Administrative User Accounts. The NetSol Utility Scriptdb_add_user is used by the $NSTDBA to enable a user to access a particular LLDB. See also Granting Access to an LLDB to a user.
    DBMS Requirements for Creating non-Administrative Users
    Oracle CREATE USER $DBMS_USER IDENTIFIED BY $PWD_DBMS_USER;
    GRANT CREATE SESSION   TO $DBMS_USER;
    ALTER USER $DBMS_USER  DEFAULT ROLE NONE;
    ALTER USER $DBMS_USER  DEFAULT TABLESPACE $ORA_DFLTSEG;
    Sybase use master
    go
    exec sp_addlogin $DBMS_USER, $PWD_DBMS_USER
    exec sp_locklogin $DBMS_USER, 'lock'
    exec sp_modifylogin $DBMS_USER, defdb, master
    exec sp_locklogin $DBMS_USER, 'unlock'
    go
  • If the $SRVADM is not to create or alter tablespaces, then the DBMS Administrator must manage these functions. Tablespaces and their datafiles used by LeasePak must be made with the following characteristics:
    Oracle only - Requirements for tablespaces and datafiles
    To create a tablespace:
    CREATE TABLESPACE $TABLESPACE DATAFILE '$DATAFILE_PATH' SIZE $DATAFILE_SIZE
    ATTRIBUTES="AUTOEXTEND OFF EXTENT MANAGEMENT LOCAL AUTOALLOCATE SEGMENT SPACE MANAGEMENT AUTO";
    To add a datafile:
    ALTER TABLESPACE $TABLESPACE ADD $FILETYPE '$DATAFILE_PATH' SIZE $DATAFILE_SIZE AUTOEXTEND OFF;
SETUP command-line options
  • SETUP -h
    to list out the different options available. Does not install any software
  • SETUP $TOPDIR
    to install all parts of the package (this is sometimes called plain SETUP)
  • SETUP -b $TOPDIR
    to install just the build part of the package
  • SETUP -l $TOPDIR
    (minus small L) to install a new license file
Plain SETUP starts out with an interview, a series of questions tailored to the platform that allows the administrator to specify values for the site and hosts involved. Before running SETUP, the administrator should review the section below on SETUP Questions, and have the answers prepared for the actual installation.
Only the output of SETUP -h is shown here. See below for examples of installation.
  # /shipcd/SETUP -h
    Usage: SETUP [-Bbchlq] LeasePak-top-directory
      options should be combined into single -... parameter;
        order is not important; duplicates are ignored.
      With no options, all install sections are performed:
        Base, Config, QM, Build, and License
      Options that include 'h' display this help screen
        and then quit.
      With any options present, Base, Config, QM, Build and License
        are all turned off; the options then each turn a
        particular section on again.
      Options that include 'b' turn on Build
      Options that include 'l' turn on License(s)
                    
Note that the -B, -c and -q options are not available at this time.
SETUP Questions
What You Need To Know To Understand This Section ...
SETUP's Interview Questions
In the column labeled # HLS will appear below each question number a combination of [H-][L-][S-] signifying that the question is impossible on HP-UX (-..) or possible on HP-UX (H..), impossible on Linux (.-.) or possible on Linux (.L., impossible or possible on SunOS (..- or ..S), resulting in combinations such as H-S or HL-, etc.
How To Interact With the Setup Interview
This section explains how to understand and respond to the questions in the interview.
The interview is conducted via simple Bourne-shell scripting. As such, it does not have line editing capabilities built in. Basically, when it needs a response from the operator, it suspends all other activities and waits until the operator (1) types zero or more characters and presses ENTER, or (2) presses CTRL-C or some other key combination that interrupts the script, terminating the interview program, and possibly SETUP.
The only way to go "backwards" in the interview is to stop the interview with CTRL-C, and rerunning, that is, starting over. Each time the interview is completed the input gathered is printed to the screen, allowing the operator to scroll back through the displayed responses to verify that they are as intended. Then the operator is given the opportunity to re-run the interview or to accept the input as it then stands.
When each question is presented, it is printed such that the right margin is aligned in the same column throughout the interview. There is a colon and a space at the end of the question, where the operator is to type his or her response. Immediately before the colon is a pair of square brackets [ ], sometimes with a value in between them like [this]. This value is the default value. That is, this value represents the answer to the question that is used if the operator does not make any input of his or her own.
The operator cannot modify the default value, he or she can only accept it in its entirety, or can type a different value. Even if the operator wants to use 99% of the default value, he or she must type the entire input value in, or accept the default unchanged. To accept the displayed default value, the operator makes no input, not even a space, but simply presses ENTER. There is no attempt to display the accepted default in a way that looks as if it were typed in by the operator.
There are questions that have no default answers; these have either empty brackets [ ] or no brackets at all.
Some questions are multiple choice, and will mention in their prompts what the choices are and what they signify. After the question, and before the default value in brackets, the possible choices are usually presented inside of parentheses, in a /-separated list of values like this: (Y/N) or (AB/CD/EF). These values are never case sensitive, in other words, the response to (Y/N) may be Y, y, N, or n.
A few questions allow the operator to include the default value as part of their response, by replacing any + in their response with the default value. So, if the question were asked:
Enter a plus sign (+) to include the default banana in your response ...
Enter the fruits you would like for breakfast. [banana]:
If the operator then types: orange grapefruit + blueberry, the results will be orange grapefruit banana blueberry as if the word banana had been typed as part of the response. This capability is accessible only when and as described in the prompts.
A few questions present default values, but also will accept a blank response as valid, as well as values typed in by the operator, and the default value if accepted by the operator. To distinguish between a blank response intended to accept the default value and a blank response intended to be blank, the operator is allowed to enter an asterisk * to indicate a blank response. So the prompt:
Enter "*" to indicate blankness, or enter your own feeling [love]:
can be responded to by:
  • pressing ENTER (value then is love)
  • typing in a response then pressing ENTER: friendliness (value then is friendliness)
  • typing * then pressing ENTER (value then is blank)
This capability is accessible only when and as described in the prompts.
In the following discussion of the interview questions, the prompts that contain variable values as their defaults are presented as:
This question has a variable default value [**]:
and in the discussion of the defaults, possible defaults are likewise marked with the two asterisks (**) to indicate that they may appear in the default brackets in the question.
#
HLS
Question Your Value
Explanation Default Value
1
LeasePak Instance ID
1a
HLS
A previous instance of LeasePak (v62a.$INST_ID)
exists at this location; overwrite? (Y/N) [N]
This question appears only if there is already an instance of LeasePak already in the same $TOPDIR. To be considered to be a pre-existing instance, the file $TOPDIR/etc/relscfg.msirc must exist, indicating that the installation of the previous instance at least completed the interview phase.
    Operator answers:
  • No to the over-write? question, the installation is aborted and no changes are made to the previous LeasePak instance.
  • Yes to the over-write? question, then the entire pre-existing LeasePak instance is completely erased, except:
    • the $TOPDIR/env directory is preserved except for the adm_* environments which are removed
    • the $datasets directory containing user data-sets is preserved
    • the previous $TOPDIR/etc/relscfg.msirc is preserved and its contents are used through most of the interview as defaults
N
1b
HLS
v62a previously installed at other location(s).
Is this to be a separate install? (Y/N) [Y]
If another instance of the release was installed at another location on the Application host, and the registry entries describing it are intact, then this question is posed to the operator.
    Operator answers:
  • No to the separate install? question, then it is assumed that the operator made an error in the $TOPDIR given to SETUP and the installation is aborted.
  • Yes to the separate install? question, then the installation proceeds.
Y
1c
HLS
Keep the identifier of the previous installation (prev ID)? (Y/N) [Y]
This question appears only if there was a previously installed LeasePak Instance in the same $TOPDIR.
    Operator answers:
  • No, then the interview continues with question 1d.
  • Yes, then the interview continues with question 2a.
Y
1d
HLS
Short identifier for this instance (2 to 4 characters) [**]
This is the LeasePak Instance ID, and is not to be confused with the Oracle Instance name. The LeasePak Instance ID is used in the naming of some Queue Manager directories, and in the names of services connected directly to the LeasePak instance. **On a new install, there is no default value. On an install in the same location, the ID from the previous LeasePak instance will default.
1c
HLS
Comment to accompany the Instance ID when needed (0 to 20 characters) [**]
The Instance ID Comment appears only in the entries in /etc/services for internet services directly connected to the LeasePak instance. **On a new install, there is no default value. On an install in the same location, the ID Comment from the previous LeasePak instance will default.
#
HLS
Question Your Value
Explanation Default Value
2
Server Name
2a
HLS
Name of the LeasePak Application Host [**]
hostname of server where SETUP is being run; the hostname and uname -n commands should return the same value as both are used in LeasePak. Also, a cluster name may be used here for sites that support hot roll-over, where one diskarray can be supported by a second application host when the primary application host fails **the result of the uname -n command
2b
HLS
Path of End User Customized Code directory [$NSTDIR/cst]
Must be a path outside of any specific release, yet should be within the NetSol area of the system. User-customized code, both SQL and shell script, is maintained here by the user for each build installed in an adjacent release instance. $NSTDIR/cst, paralleling the $TOPDIR ($NSTDIR/v62a)
#
HLS
Question Your Value
Explanation Default Value
3
Queue Manager
3a,b,c,d Basic Queue Manager Directory Locations
3a
-L-
Accept default Queue Manager paths? (Y/N) [Y]
Linux only. HP and Solaris installations resume the interview with question 3b.
N :
     questions 3b, 3c, and 3d are asked,
     where the operator may specify alternate paths.
Y :
     the interview skips to question 3e,
     and the default Queue Manager paths will be used.
Y
3b
HLS
Parent of Queue Mgr $QMRELS directory [**]
Linux:
     asked only if question 3a is answered with N
HP & Solaris:
     always asked
This becomes the value of the variable $QMPPATH. $QMDIR is formed by suffixing $QMRELS (qm_$QM_VERSION) to $QMPPATH: $QMPPATH/$QMRELS. $QMDIR is the directory that contains the Queue Manager software and configuration files.
Linux:
     **$NSTDIR/$QMPURPOSE
HP & Solaris:
     **$EFSDIR/$QMPURPOSE
3c
-L-
Select system directory for temporary v62a files: 1=/tmp 2=/var/tmp [**]
Linux: asked only if question 3a is answered N
     1 - /tmp
     2 - /var/tmp
HP & Solaris: not asked
     mandatory value is #1, /tmp
     not editable
The Queue Manager makes extensive use of temporary files. This question allows the Linux administrator to select one of two supported system temporary directories, /tmp or /var/tmp.
This selection (1 or 2) is stored in the variable $QMSYSTMP.
In all cases, the temporary directory is formed by suffixing $QMPURPOSE to the $SYSTMPDIR selected here: $SYSTMPDIR/$QMPURPOSE is stored in the environment variable $QMTMPDIR.
Linux:
     default is **2, /var/tmp
HP & Solaris:
     not editable
3d
-L-
Select directory for printer and batch queues: 1=$QMDIR/spool 2=/var/spool [**]:
Linux: asked only if question 3a is answered N
     1 - $QMDIR/spool
     2 - /var/spool
HP & Solaris: not asked
     mandatory value is #1, $QMDIR/spool
     not editable
The Queue Manager requires space to store the queue structures and the batch and print files pending and during their execution on the queue. This question allows the Linux administrator to select one of two supported spooler directories, $QMDIR/spool or /var/spool.
This selection (1 or 2) is stored in the variable $QMSPOOL.
If the selection is #1, $QMDIR/spool, then that is the value stored in $QMSPOOLDIR. If it is #2, /var/spool, then the value stored in $QMSPOOLDIR is /var/spool/$QMRELS.
Linux:
     default is **2, /var/spool
HP & Solaris: not asked
     not editable
3e,f,g,h,i Required values for the Queue Manager (all supported platforms)
3e
HLS
Install Queue Mgr startup/shutdown in rc1.d/rc3.d? (Y/N) [**]
The $QMINITFNAME service (nst_qm_${INST_ID}62a) starts and stops the Queue Manager depending on system transitions from one run level to another.
Linux: installed using chkconfig utility, which places start or kill links at every run level.
if $INITDIR/$QMINITFNAME:
does not exist: **Y
exists: **N
3f
HLS
Shared memory key for Queue Mgr IPC [62000]
The Queue Manager uses shared memory so that different processes running under it can communicate and avoid resource allocation conflicts. This key is the agreed upon identifier for that shared memory. It is also called Config:SYSTEM. 62000
3g
HLS
Number of simultaneous jobs to allow for per queue[10]
This parameter is highly variable depending on type of hardware, the number of processors, LeasePak modules purchased, modules normally run in EOP, EOP scheduling. EOP is designed to run as many jobs in parallel as this parameter will allow, within the constraints of logical dependencies of the data. See Job Limits.
10
3h
HLS
Number of Queue Mgr devices to configure in shared memory [150]
The number of Queue Manager device slots to allocate in this LeasePak instance, stored in Config:MAXDEV. Roughly, this should be about 30% of the Config:MAXJOB parameter (see below, question 3i). 150
3i
HLS
Number of Queue Mgr jobs to configure in shared memory [512]
The number of Queue Manager job slots to allocate in this LeasePak instance, stored in Config:MAXJOB. Roughly equal to two times the number of concurrent users, plus four times the job limit for each batch queue, plus one for each print queue. See also Device and Job Slots. 512
#
HLS
Question Your Value
Explanation Default Value
4
DBMS configuration
In v62a:
     Question 4a is asked only on Solaris 9, Oracle 9iR2;
     Question 4b is asked only if the answer to question 4a is OS.
4a
--S
DBMS's to support in this release[]
HP-UX: S - Sybase only
Linux: O - Oracle only
Solaris: select:
O - Oracle
S - Sybase
OS - both
4b
--S
Primary DBMS in this release
HP-UX: S - Sybase only; question not asked
Linux: O - Oracle only; question not asked
Solaris: select:
O - Oracle
S - Sybase
The Primary Dbms becomes the one whose administrative environment is pointed to by the administrative accounts and thus is the database system accessible to $NSTADMIN and $NSTDBA by default.
4c
HLS
Naming convention (S=strict, L=Loose, N=New strict) (S/L/N) [S]
NetSol recommends S, the Strict naming convention, and plans to make Strict the only and default choice starting in version v63a S
#
HLS
Question Your Value
Explanation Default Value
5
Oracle configuration
The numbering of the remaining sections of the interview depend on how many DBMS's are chosen. If only one is chosen, then it makes up section 5; if two are chosen, then they make up sections 5 and 6.
Question 5a is asked only on Solaris 9, Oracle 9iR2, in v62a; Questions 5b and 5c are asked only on Linux RHE5, Oracle 11g, in v62a.
5a
--S
Path of Oracle home [/opt/oracle/product/9.2]
the directory where Oracle 9iR2 is installed on the host. The value of $ORACLE_HOME /opt/oracle/product/9.2
5b
-L-
Oracle installation base path [/opt/oracle/11]
the base directory where Oracle software products in Oracle 11gR2 are installed on the host; the name is stored in ORACLE_BASE. /opt/oracle/11
5c
-L-
Oracle server product subdirectory;
enter "*" to indicate this is an Application Host [product/11.2.0/dbhome_1]:
the product sub-directory where the Oracle 64-bit database server software is installed; the name is stored in $ORA_PRODSRV; ORACLE_HOME is equal to $ORACLE_BASE/$ORA_PRODSRV.
To support a local Oracle instance, either in a Unified System or in a Split System as the DBMS Host, the 64-bit database server should be installed in ORACLE_BASE/product/11.2.0/dbhome_1.
To support the LeasePak server, either in a Unified System or in a Split System as the Application Host, the 32-bit administrative Oracle Client software must be installed in $ORACLE_BASE/product/11.2.0/client_1 (see Question 5d below).
If this is an Application Host of a Split System, then the operator should enter * to indicate this; there is no Oracle database server product required on the Application Host of a Split System.
product/11.2.0/dbhome_1
5d
-L-
Oracle client product subdirectory;
enter "*" to indicate this is a DBMS Host [product/11.2.0/client_1]:
The product sub-directory where the Oracle 32-bit administrative Oracle Client software is installed; the name is stored in $ORA_PRODCLT;. On the Application Host of a Split System, ORACLE_HOME is equal to $ORACLE_BASE/$ORA_PRODCLT.
To support a local Oracle instance, either in a Unified System or in a Split System as the DBMS Host, the 64-bit database server should be installed in ORACLE_BASE/product/11.2.0/dbhome_1. (see 5c above)
To support the LeasePak server, either in a Unified System or in a Split System as the Application Host, the 32-bit administrative Oracle Client software must be installed in $ORACLE_BASE/product/11.2.0/client_1.
If this is the DBMS Host of a Split System, then the operator should enter "*" to indicate this; there is no Oracle database client product required on the DBMS Host of a Split System.
product/11.2.0/client_1
5e
-LS
Install Oracle startup/shutdown in rc1.d/rc3.d? (Y/N) [**]
This will create the init service nst_dbora to stop and start the Oracle instances listed in /etc/netsol_dbms_instances Oracle 9iR2:
     if $INITDIR/dbora9i and $INITDIR/nst_dbora do not exist:        **Y else **N
Oracle 11gR2:
     if $INITDIR/nst_dbora does not exist AND the Oracle 64-bit database server product is installed:        **Y else **N
5f
-LS
Enter a plus sign (+) to include the default ** in your response ...
Oracle net service name(s) [**]
The net service name by which the Oracle instance can be found on the network; it must be defined in $ORACLE_HOME/network/admin/tnsnames.ora
The meaning of this prompt is that the operator can enter several Oracle net service names, as long as they exist in the file $ORACLE_HOME/network/admin/tnsnames.ora. Wherever the operator places a + in the input for this parameter, the default value takes its place.
The first net service name is taken as the primary database server. Typically, though not necessarily, it runs on the combined host of a Unified System, or on the DBMS host of a Split System, and any others run remotely elsewhere on the network. The primary database server may run remotely on the network as well.
The database server name is copied into the variable TWO_TASK prior to calling sqlplus to execute SQL commands
Later on, this list of net service names is used to validate the database server entered with the setup_new_env command.
**the first net service name in tnsnames.ora
5g
-LS
Oracle default no-allocate tablespace for LeasePak users [users]
Every Oracle database system user must have a default tablespace.
The owner of the LLDB is granted the use of a tablespace on which to build the LLDB. LeasePak users are granted an Oracle role that permits them to access the objects in the LLDB.
Therefore, LeasePak users do not require actual storage of their own on their default tablespaces. However, they must still each have a default.
This question requires the name of the tablespace which will be assigned to the LeasePak users, and on which they will each have a quota of zero, meaning that they cannot create their own schema objects. This tablespace should already exist, though its existence is not validated by SETUP.
Oracle usually creates a users tablespace; NetSol recommends this as the answer to this question. However, the administrator may designate any non-LeasePak and non-system tablespace as the default for this purpose.
users
#
HLS
Question Your Value
Explanation Default Value
6
Sybase configuration
The numbering of the remaining sections of the interview depend on how many DBMS's are chosen. If only one is chosen, then that section is Section 5. If two are chosen, then those sections are 5 and 6.
6a
H-S
Path of Sybase directory [/opt/sybase]
The path where Sybase 12.5 is installed on the application host; this becomes the value of $SYBASE. $EFSDIR/sybase
6b
H-S
Install Sybase startup/shutdown in rc1.d/rc3.d? (Y/N) [**]
This will create the init service nst_dbsyb. if exists
     $INITDIR/sybase12.5 or
     $INITDIR/nst_dbsyb
           **N
     otherwise **Y
6c
H-S
Include Sybase backup server in startup/shutdown? (Y/N) [Y]
This question appears only if the operator answers Y to question 6b; if the Sybase Backup Server has been configured to run from the application host, then it may be advisable to provide for its starting and stopping in conjunction with the dataservers Y
6d
H-S
Enter a plus sign (+) to include the default ** in your response ...
Sybase Dataserver name(s) [**]
The dataserver name by which the Sybase database system can be found on the network; it must be defined in $SYBASE/interfaces
The meaning of this prompt is that the operator can enter several Sybase dataserver names, as long as they exist in the file $SYBASE/interfaces. Wherever the operator places a + in the input for this parameter, the default value takes its place.
The first dataserver name is taken as the primary database server. Typically, though not necessarily, it runs on the application host, and any others run remotely elsewhere on the network. The primary database server may run remotely on the network as well.
The database server name is copied into the variable DSQUERY prior to calling isql to execute SQL commands
**the first dataserver name in $SYBASE/interfaces
6e
H-S
Sybase Backup Server name [**]
This question is asked only if the answer to question 6c was Y. SETUP tries to obtain the backup server from $SYBASE/interfaces, but it can easily be fooled by names that match its algorithm too closely. The operator must type in the correct name if SETUP does not present the correct name as a default. This value is required in order to start and stop the backup server in coordination with the dataserver(s) through the init service nst_dbsyb **An apparent backup server name from $SYBASE/interfaces
6f
H-S
Automatically create Sybase database owner names? (Y/N) [Y]
As described in db_create, each LLDB requires an owner, or DBO. If the operator selects Y to the SETUP question, then the DBO will always be created automatically with the same name as the LLDB, giving the semblance of operating the same way Oracle does. If the operator selects N, then the operator will have to provide a DBO name as well as a password each time an LLDB is created. Y
#
HLS
Question Your Value
Explanation Default Value
7
Required Leasepak & DBMS roles
The numbering of the remaining sections of the interview depend on how many DBMS's are chosen. If only one is chosen, then this is section 6; if two were chosen, then this is section 7.

These roles are discussed in detail in Admin Accounts.
7a
HLS
Database server administrator name [srvadm]
The Database server administrator is a database server-only role. This role is granted authority to create new database system users, to grant them access to LLDBs, to create new LLDBs.

The name of the Database server administrator is stored in the variable $SRVADM.
srvadm
7b
HLS
NST Admin login name [nsadm62a]
The LeasePak release administrator is an OS user, responsible for managing the OS side of LeasePak. Often referred to as the $NSTADMIN, it owns the bulk of the OS files that comprise the release. Is the only user generally authorized to execute NetSol Utility Scripts commands nsadm62a
7c
HLS
NST DBA login name [nsdba62a]
The LeasePak database administrator is an OS user, responsible for managing the DBMS side of LeasePak. Often referred to as the $NSTDBA, it alone can execute the $ubin/db_* utilities. nsdba62a
7d
HLS
NST group name [nst]
The primary group, or login group, for all LeasePak user and admin accounts. Stored in $NSTGROUP. nst
#
HLS
Question Your Value
Explanation Default Value
8
Leasepakd daemon configuration
The numbering of the remaining sections of the interview depend on how many DBMS's are chosen. If only one is chosen, then this is section 7; if two were chosen, then this is section 8.
8a
HLS
TCP port assignment for leasepakd inet daemon [6200]
Any free TCP port available in /etc/services above 1024. The leasepakd service is installed with the service name nst_lp62a${INST_ID}_$LEASEPAKD_PORT. 6200
8b
HLS
Max bad logins before lockout (0=disabled) [0]
This parameter controls the bad-login lockout feature. The value must be 0 or greater. Zero disables the feature. Positive integers are taken to be the # of consecutive bad logins allowed before the system locks the user out. Only an administrator or administrative user can unlock such an account. 0
8c
HLS
Install LeasePak TCP port in inet configuration? (Y/N) [**]
Yes must be entered in order for the port to be installed and to be accessible to LeasePak client connections. If nst_lp62a${INST_ID}_-
$LEASEPAKD_PORT exists in /etc/services,
then
       **N
else
       **Y
#
HLS
Question Your Value
Explanation Default Value
9
mPowerd daemon configuration
The numbering of the remaining sections of the interview depend on how many DBMS's are chosen. If only one is chosen, then this is section 8; if two were chosen, then this is section 9.
9a
HLS
Install mPowerd daemon (Y/N) [N]
If Yes is selected, questions 9b, 9c, and 9d are asked and the mPowerd service is installed with the service name nst_mp62a${INST_ID}_$MPOWERD_PORT. N
9b
HLS
TCP port assignment for mPowerd inet daemon [**]
Always defaults to $LEASEPAKD_PORT + 6. The TCP port for the mPowerd internet service to listen for incoming XML client connections. Must be greater than 1024. **$LEASEPAKD_PORT + 6
9c
HLS
Max bad logins before lockout (0=disabled) [0]
This parameter controls the bad-login lockout feature. The value must be 0 or greater. Zero disables the feature. Positive integers are taken to be the # of consecutive bad logins allowed before the system locks the user out. Only an administrator or administrative user can unlock such an account. 0
9d
HLS
Install mPower TCP port in inet configuration? (Y/N) [**]
Yes must be entered in order for the port to be installed and to be accessible to mPower client connections. If nst_mp62a${INST_ID}_-
$MPOWERD_PORT exists in /etc/services,
then
       **N
else
       **Y
    # /shipcd/SETUP /opt/nst/v62a
  2010-04-15 12:39:18 SETUP /opt/nst/v62a: Loading setup VERSION file ...
  2010-04-15 12:39:18 SETUP /opt/nst/v62a: Setting up top dir ...
  2010-04-15 12:39:18 SETUP /opt/nst/v62a: Clearing /opt/nst/v62a ...
  2010-04-15 12:39:18 SETUP /opt/nst/v62a: Loading in basic system image ...
  2010-04-15 12:39:18 SETUP /opt/nst/v62a: Extending /shipcd/VERSION ...
  2010-04-15 12:39:18 SETUP /opt/nst/v62a: Loading Queue Manager script library ...
  2010-04-15 12:39:18 SETUP /opt/nst/v62a: Reading in extended version file ...
  2010-04-15 12:39:18 SETUP /opt/nst/v62a: Running 'Configure Release' utility ...
  
  2010-04-15 12:39:19: reg_rels: Start: -fi /etc/netsol.conf v62a 
  2010-04-15 12:39:19: reg_rels: End
  
  Configure Release -- Type Ctrl-C at any time to abort operation
  
  ==> 1.  Instance Name <==
                       Short identifier for this instance (2 to 4 characters) []: prod
         Comment to accompany the identifier when needed (0 to 20 characters) []: Production System
  ==> 2.  Server Name <==
                                 Name of the LeasePak Application Host [leaseco]: 
                       Path of End User Customized Code directory [/opt/nst/cst]: 
  ==> 3.  Queue Manager <==
                                                 No existing Queue Manager found
                                   Accept default Queue Manager paths? (Y/N) [Y]: n
                 Parent of Queue Mgr qm_3_31 directory [/opt/nst/qm_prod62a]: /usr/shared/qm_prod62a
         Select system directory for temporary v62a files: 1=/tmp 2=/var/tmp [2]: 1
  Select directory for printer and batch queues: 1=$QMDIR/spool 2=/var/spool [2]: 2
                    Install Queue Mgr startup/shutdown in rc1.d/rc3.d? (Y/N) [Y]: 
                                     Shared memory key for Queue Mgr IPC [62000]:
                 Number of Queue Mgr devices to configure in shared memory [150]: 
                    Number of Queue Mgr jobs to configure in shared memory [512]: 313
                          Number of simultaneous jobs to allow for per queue[10]: 8
  ==> 4.  DBMS configuration <==
                 Naming convention (S=strict, L=Loose, N=New strict) (S/L/N) [S]: 
  ==> 5.  Oracle configuration <==
                                  Oracle installation base path [/opt/oracle/11]: 
                                              Oracle server product subdirectory;
     enter "*" to indicate this is an Application Host [product/11.2.0/dbhome_1]: 
                                              Oracle client product subdirectory;
             enter "*" to indicate this is a DBMS Host [product/11.2.0/client_1]: 
                       Install Oracle startup/shutdown in rc1.d/rc3.d? (Y/N) [N]: y
        Enter a plus sign (+) to include the default LEASECO in your response ...
                                            Oracle net service name(s) [LEASECO]: + SOLARIS_ORACLE
                Oracle default no-allocate tablespace for LeasePak users [users]: 
  ==> 6.  Required Leasepak & DBMS roles <==
                                     Database server administrator name [srvadm]: 
                                                 NST Admin login name [nsadm62a]: 
                                                   NST DBA login name [nsdba62a]: 
                                                          NST group name [users]: 
  ==> 7.  Leasepakd daemon configuration <==
                            TCP port assignment for leasepakd inet daemon [6200]: 
                                  Max bad logins before lockout (0=disabled) [0]: 
                      Install LeasePak TCP port in inet configuration? (Y/N) [Y]: 
  ==> 8.  mPowerd daemon configuration <==
                                                Install mPowerd daemon (Y/N) [N]: n
  
  ==> 1.  Instance Name <==
   Release Inst Mode: NEW
         Instance Id: prod
    Instance Id Cmnt: Production System
       Top Directory: /opt/nst/v62a
       NST Directory: /opt/nst
   External File Sys: /opt
                LPI
v62a.prod ==> 2. Server Name <== Unix OS type: Linux Server name: leaseco Release path: /opt/nst/v62a Release sequence: 620 Custom code path: /opt/nst/cst Init directory: /etc/init.d ==> 3. Queue Manager <== Install type: new Accept std paths? N Queue Mgr path: /opt/nst/qm/qm_prod62a/qm_3_31 QMI
3_31.prod Queue Mgr in Rc? Y Queue Mgr shmemkey: 62000 Max Queue devices: 150 Max Queue jobs: 313 Queue Mgr systmp: 1 Queue Mgr tmp dir: /tmp/qm_prod62a Queue Mgr spool: 2 QueueMgr spool dir: /var/spool/qm_prod62a Queue Mgr purpose: qm_prod62a Queue job limit: 8 Queue job lim file: /opt/nst/qm/qm_prod62a/qm_3_31/library/qjob_limit Calc QMgr params? N ==> 4. DBMS configuration <== DBMS's in use: ora Primary DBMS: ora Naming convention: S ==> 5. Oracle configuration <== Oracle major rev: 11 Oracle base: /opt/oracle/11 Unified host: Oracle srv product: product/11.2.0/dbhome_1 Oracle clt product: product/11.2.0/client_1 Oracle home: /opt/oracle/11/product/11.2.0/dbhome_1 Oracle library: /opt/oracle/11/product/11.2.0/client_1/lib Oracle utility pth: /opt/oracle/11/product/11.2.0/dbhome_1/bin Oracle in Rc? Y Oracle inst acct: Oracle services: LEASECO SOLARIS_ORACLE Oracle service nm: LEASECO Oracle def tblspc: users Oracle NLS_LANG: American_America.WE8ISO8859P1 ==> 6. Required Leasepak & DBMS roles <== DBMS server admin: srvadm NST Admin login: nsadm62a NST DBA login: nsdba62a NST group: nst ==> 7. Leasepakd daemon configuration <== Leasepakd Port: 6200 Lockout Count: 0 Install Port? Y Port installtype: ni Port to replace: LPKI
6200.prod Configuration complete 2010-04-15 12:46:29 SETUP /opt/nst/v62a: 'Configure Release' terminated normally Do you wish to [R]erun 'Configure Release' or to [C]ontinue with installation? (R/C): c 2010-04-15 12:46:51 SETUP /opt/nst/v62a: Response=c; continuing with installation ... 2010-04-15 12:46:51 SETUP /opt/nst/v62a: Loading the release configuration created by 'Configure Release' ... 2010-04-15 12:46:51 SETUP /opt/nst/v62a: Queue Manager installation type is new 2010-04-15 12:46:51 SETUP /opt/nst/v62a: Setting up Queue Manager dir ... 2010-04-15 12:46:52 SETUP /opt/nst/v62a: Installing Queue Manager ... 2010-04-15 12:46:52 SETUP /opt/nst/v62a: Attaching to Dedicated Queue Manager instance ... 2010-04-15 12:46:52 SETUP /opt/nst/v62a: Setting up basic Queue Manager configuration; Administrator must handle print and batch queue setup 2010-04-15 12:46:52 SETUP /opt/nst/v62a: Setting Queue Manager job limit ... 2010-04-15 12:46:52 SETUP /opt/nst/v62a: Queue Manager configuration complete 2010-04-15 12:46:52 SETUP /opt/nst/v62a: Queue Manager installed 2010-04-15 12:46:52 SETUP /opt/nst/v62a: Setting up Customized Software directory /opt/nst/cst ... 2010-04-15 12:46:52 SETUP /opt/nst/v62a: Installing build 6.20.3118 ... 2010-04-15 12:46:55 SETUP /opt/nst/v62a: Build 6.20.3118 installed 2010-04-15 12:46:55 SETUP /opt/nst/v62a: Attaching build 6.20.3118 to live ... 2010-04-15 12:46:56 SETUP /opt/nst/v62a: Build attached 2010-04-15 12:46:56 SETUP /opt/nst/v62a: Fetch license(s) ... 2010-04-15 12:46:56 SETUP /opt/nst/v62a: Copying /tmp/lplicense.ora ... 2010-04-15 12:46:56 SETUP /opt/nst/v62a: Install license(s) ... 2010-04-15 12:46:56 SETUP /opt/nst/v62a: Setting file protections on v62a 2010-04-15 12:46:56 set_access: Start: /opt/nst/v62a/boot/base_sys.prot 2010-04-15 12:46:56 set_access: End: /opt/nst/v62a/boot/base_sys.prot 2010-04-15 12:46:56 set_access: /opt/nst/v62a/boot/base_sys.prot: 45 Item(s); 0 Error(s) 2010-04-15 12:46:56 SETUP /opt/nst/v62a: Setting file protections on Build 2010-04-15 12:46:56 set_access: Start: /opt/nst/v62a/live/lib/bld.prot 2010-04-15 12:47:16 set_access: End: /opt/nst/v62a/live/lib/bld.prot 2010-04-15 12:47:16 set_access: /opt/nst/v62a/live/lib/bld.prot: 1764 Item(s); 0 Error(s) 2010-04-15 12:47:16 SETUP /opt/nst/v62a: Setting file protections on Queue Manager ... 2010-04-15 12:47:16 set_access: Start: /opt/nst/qm/qm_prod62a/qm_3_31/library/qm_3_31_rt.prot 2010-04-15 12:47:17 set_access: End: /opt/nst/qm/qm_prod62a/qm_3_31/library/qm_3_31_rt.prot 2010-04-15 12:47:17 set_access: /opt/nst/qm/qm_prod62a/qm_3_31/library/qm_3_31_rt.prot: 112 Item(s); 0 Error(s) 2010-04-15 12:47:17 SETUP /opt/nst/v62a: Setting protections on /opt/nst/cst ... 2010-04-15 12:47:17 SETUP /opt/nst/v62a: Loading basic shell function libraries ... 2010-04-15 12:47:17 SETUP /opt/nst/v62a: Creating Queue Manager release tmp directory ... 2010-04-15 12:47:17 SETUP /opt/nst/v62a: Setting up bottom-most Queue Manager tmp directory ... 2010-04-15 12:47:17 SETUP /opt/nst/v62a: Marking Queue Manager install complete ... 2010-04-15 12:47:17 SETUP /opt/nst/v62a: Creating Queue Manager release spool directory ... 2010-04-15 12:47:17 SETUP /opt/nst/v62a: Generating common configuration scripts ... Writing runtime msirc file... USEPKG boot vi.20 USEPKG unix rhes5 USEPKG ora 11g USEPKG dbms vi.20 USEPKG s7 3_31 USEPKG lprt vi.20 USEPKG vms vi.20 USEPKG msi vi.20 Writing lpkd file... USEPKG boot vi.20 USEPKG unix rhes5 USEPKG ora 11g USEPKG dbms vi.20 USEPKG s7 3_31 USEPKG lprt vi.20 USEPKG vms vi.20 USEPKG msi vi.20 Writing com file... USEPKG boot vi.20 USEPKG unix rhes5 USEPKG ora 11g USEPKG dbms vi.20 USEPKG s7 3_31 USEPKG lprt vi.20 USEPKG vms vi.20 USEPKG msi vi.20 File generation complete; installing new config files... Installation of config files is complete 2010-04-15 12:47:28 SETUP /opt/nst/v62a: Configuration generation is complete 2010-04-15 12:47:28 SETUP /opt/nst/v62a: Loading generated settings via boot environment ... 2010-04-15 12:47:28: reg_rels: Start: -r /etc/netsol.conf /opt/nst/v62a 2010-04-15 12:47:28: reg_rels: End 2010-04-15 12:47:28 SETUP /opt/nst/v62a: Performing LeasePak System installation ... 2010-04-15 12:47:28 SETUP: Oracle setup jobs require the password for '/ as sysdba' 2010-04-15 12:47:28 SETUP: Oracle setup jobs also require that the DBMS server processes be running Oracle '/ as sysdba' account 'sysdba' password: ****** 2010-04-15 12:49:55 lp_sys_install: Start - YNYNYN 2010-04-15 12:49:55 lp_sys_install: Install Queue Manager in rc? Y 2010-04-15 12:49:55 lp_sys_install: Installing Queue Manager ... 2010-04-15 12:49:55 lp_sys_install: Creating /etc/rc.d/init.d/nst_qm_prod62a ... 2010-04-15 12:49:55 lp_sys_install: Queue Manager complete 2010-04-15 12:49:55 lp_sys_install: Install Oracle 11g startups in rc? Y 2010-04-15 12:49:55 lp_sys_install: Installing Oracle 11g ... 2010-04-15 12:49:55 lp_sys_install: Creating /etc/rc.d/init.d/nst_dbora ... 2010-04-14 11:30:54 lp_sys_install: * * * Be sure to update /etc/netsol_dbms_instances ($DBMS_INSTANCES_LIST) as needed * * * 2010-04-15 12:49:55 lp_sys_install: Oracle 11g complete 2010-04-15 12:49:55 lp_sys_install: Install leasepakd port in xinetd configuration? Y 2010-04-15 12:49:55 lp_sys_install: Installing leasepakd xinetd config ... 2010-04-15 12:49:55 lp_sys_install: Installing service nst_lp62aprod_6200... 2010-04-15 12:49:55 lp_sys_install: Deleting any existing nst_lp62aprod_6200 or leasepakd_v62a_6200 from /etc/services and /etc/xinetd.d/nst_lp62aprod_6200 ... 2010-04-15 12:49:55 lp_sys_install: Removing nst_lp62aprod_6200 leasepakd_v62a_6200 from (x)inetd configuration ... 2010-04-15 12:49:55 lp_sys_install: Adding nst_lp62aprod_6200 to /etc/services ... 2010-04-15 12:49:55 lp_sys_install: Adding nst_lp62aprod_6200 to /etc/xinetd.d/nst_lp62aprod_6200 ... 2010-04-15 12:49:55 lp_sys_install: Restarting (x)inetd ... Stopping xinetd: [ OK ] Starting xinetd: [ OK ] Reloading configuration: [ OK ] 2010-04-15 12:49:55 lp_sys_install: leasepakd xinetd config complete 2010-04-15 12:49:55 lp_sys_install: Install mPowerd port in xinetd configuration? N 2010-04-15 12:49:55 lp_sys_install: End 2010-04-15 12:49:55 SETUP /opt/nst/v62a: Creating server administrator account(s), 'srvadm', in DBMS(s) ora ... 2010-04-15 12:49:55 db_add_srvadm: Add Oracle server administrator srvadm 2010-04-15 12:49:55 db_add_srvadm: Running commands as sysdba 2010-04-15 12:49:55 db_add_srvadm: Fetching count of srvadm logins in DBMS ora ... 2010-04-15 12:49:55 db_add_srvadm: Oracle server administrator 'srvadm' already exists 2010-04-15 12:49:55 db_add_srvadm: Oracle server administrator will be removed and recreated New Server Administrator 'srvadm' password: ****** 2010-04-15 12:50:40 db_add_srvadm: Oracle server administrator added 2010-04-15 12:50:40 db_add_srvadm: End 2010-04-15 12:50:40 SETUP /opt/nst/v62a: Locating nsadm62a and nsdba62a home directories ... 2010-04-15 12:50:40 SETUP /opt/nst/v62a: Performing DBMS-specific setup tasks ... 2010-04-15 12:50:40 SETUP /opt/nst/v62a: Creating admin environment for ora DBMS ... 2010-04-15 12:50:40 setup_new_env: -tnfc TEST adm_ora ora LEASECO non_admora_62a live; Start 2010-04-15 12:50:40 setup_new_env: Creating environment directory structure... 2010-04-15 12:50:41 setup_new_env: Creating logdb.*... 2010-04-15 12:50:41 setup_new_env: Creating envdb.msirc... 2010-04-15 12:50:41 setup_new_env: Creating msidba placeholder ... 2010-04-15 12:50:41 setup_new_env: Creating .lp*... 2010-04-15 12:50:41 setup_new_env: Setting environment security... 2010-04-15 12:50:41 setup_new_env: End 2010-04-15 12:50:41 SETUP /opt/nst/v62a: Setting file protections on bootstrap files ... 2010-04-15 12:50:41 set_boot_prot: Start 2010-04-15 12:50:41 set_boot_prot: Setting protections on miscellaneous boot files ... 2010-04-15 12:50:41 set_boot_prot: End 2010-04-15 12:50:42 SETUP /opt/nst/v62a: setup is finished #
SETUP Tasks
In the following sections, the output from SETUP shown above is annotated and explained. Places where there is known to be a potential for problems are pointed out.
Installation start
  • SETUP begins with loading the VERSION file. This file is part of the CD image shipped by NetSol, and contains information that is universal to all LeasePak installations in v62a and information that is particular to the hardware platform for which the CD image is intended.
  • The top directory is cleared out. If LeasePak was installed in this area previously, a number of elements of that installation are maintained:
    • the $TOPDIR/env directories, except for adm_*
    • user data sets in $datasets
    • the previous installation's relscfg.msirc
  • The basic system image (top directory tree) is laid down from CD.
  • Additional variables based on the location of SETUP and $TOPDIR are set.
  • The registry is searched for any previous installations of v62a on the same Application host.
  • The Configure Release interview is run. Refer to SETUP Questions for important information about responding to the interview. The operator is given the opportunity to re-run the interview until satisfied with the results, which are displayed after each run.
Installation of the Queue Manager
After the operator types C to continue following the interview, the Queue Manager installation begins in the directory designated in the interview.
  • If the Queue Manager was already installed in that location, certain data is preserved:
    • Printer and Queue definitions: start_queues.com, the printer mapping commands from Config, and DEVINIT
    • The previous installation's ATT attachment file
    • The $QMDIR directory is cleared out and the image from the CD is laid down. A new ATT attachment file is written.
  • The Config file is now self-customizing. The self-modifying file is run and customizes itself to create the new Config. However, the administrator must still enter the printer mapping commands.
  • The queue job limit file is setup.
  • The preserved data from the previous installation, if any, is restored. The preserved printer mapping commands are left in the file $QMDIR/library/PRIOR.QMLP. DEVINIT is restored, as is start_queues.com.
Installation of the Build
  • If this is the first installation under the given $NSTDIR, then the $CSTDIR is set up.
  • The build is installed from CD. It is linked to $TOPDIR/live to become the live build. A subtree for the build is created in $CSTDIR
  • If the platform supports multiple database systems, and if the operator indicated in the interview that fewer than all are to be installed, then any others are removed from the newly-installed build. This means the $live/exe/$DBTYPE and $live/sql/$DBTYPE directories for each uninstalled database system are removed.
Installation of the license file(s)
  • The license file(s) for any remaining database systems should have been copied to the /tmp directory before running SETUP. If SETUP cannot find them, it stops and prompts for the operator to get the file(s) in place. SETUP will not proceed until a license for each installed database system has been found and retrieved.
  • The license file(s) are copied into $CFGDIR, and also to their respective $live/exe/${DBTYPE} directories, where each is renamed to lplicense.dat
Securing the LeasePak Instance
  • The set_access command is run 3 times, once each for base system, for the build, and for the Queue Manager.
  • set_access sets the owner, group and access modes of the files and directories in the list given to it.
  • set_access is designed to tolerate a certain number of errors, usually 50, before aborting in error. The errors are reported to the screen, but only if they exceed the limit in quantity do these errors affect SETUP.
  • There should be zero errors reported. If there are a few, but not enough to cause SETUP to abort, then it is possible that the installation was still successful. However, check with the NetSol Help Desk if any errors are reported during SETUP.
Spooler and Temporary Directories
The Configuration Generator cfg_gen
  • The program cfg_gen is then run. This program takes the relscfg.msirc created by the SETUP interview, the extended VERSION file now in $BOOTDIR/version.msirc, plus the templates in $live/lib/*.mtx and creates 3 files. These files define essentially the entire LeasePak release instance.
  • The first file is ${HOST}_v62a_rt.msirc, and it contains setenv commands to build up the environment. When a LeasePak user logs into the Application host, this file is executed via the user's .lplogin or .lpprofile start-up file, and then that session is fully LeasePak enabled.
  • The second file is ${HOST}_v62a_rt.lpkd, and it contains simple assignments that can be interpreted by leasepakd and mPowerd. When a LeasePak user logs into the Application host through the LeasePak Windows Client, this file is executed to ensure that the user environent is fully setup.
  • The third file is ${HOST}_v62a_rt.com and it contains assignments to the environment in the Queue Manager DCL scripting language. It is executed at the beginning of every EOP batch job to ensure that the environment is fully configured before running the EOP driver.
Registering the Release Instance
  • With the completion of the configuration generation, the release instance can now be registered in the /etc/netsol.conf registry. At this time, this file only associates the instance ID of the LeasePak instance with the top directory and thus also the release version of LeasePak.
Creating the init and internet services
  • Next the program lp_sys_install is run. It is in charge of setting up the services requested by the operator via the interview. lp_sys_install does not start any of the init services; it only installs them.
  • It sets up the Queue Manager init service, nst_qm_${INST_ID}62a, if requested.
  • It sets up the Sybase init service, nst_dbsyb, if requested.
  • It sets up the Oracle init service, nst_dbora, if requested.
  • It sets up the leasepakd internet service nst_lp62a${INST_ID}_$LEASEPAKD_PORT on the $LEASEPAKD_PORT port.
  • It sets up the mpowerd internet service nst_mp62a${INST_ID}_$MPOWERD_PORT on the $MPOWERD_PORT port.
Creating the $SRVADM user
IMPORTANT NOTE
Failed Login/Bad Password Message for Oracle 9iR2 srvadm
If SETUP created the $SRVADM account successfully, yet attempts to use the account receive failed login/bad password messages, the administrator should check for the following Oracle initialization parameter:

     REMOTE_LOGIN_PASSWORDFILE = EXCLUSIVE
Creating adm_syb and/or adm_ora
Securing the LeasePak Instance
Post-SETUP Tasks
Permanent Queue Manager License - Obtaining the Permanent License
Once LeasePak is installed, the administrator should log onto the application host as $NSTADMIN, and execute:
#  gid
This produces output similar to the example below. This output should be emailed to the NetSol Help Desk, who will shortly email back the permanent license. The permenent license file should then replace the temporary license in the /etc directory.
%  gid
       
  VX/RT     00 01 53 48 46 21  00 00 0000 0  
  VX/BASRT  00 01 53 48 46 21  00 00 0000 0  
  VX/SMG    00 01 53 48 46 21  00 00 0000 0  
  VX/DCL    00 01 53 48 46 21  00 00 0000 0  
  VX/BASIC  00 01 53 48 46 21  00 00 0000 0  
  VX/RMS    00 01 53 48 46 21  00 00 0000 0  
  VX/JSP    00 01 53 48 46 21  00 00 0000 0  
  VX/SOR    00 01 53 48 46 21  00 00 0000 0  
  VX/FMS    00 01 53 48 46 21  00 00 0000 0  
  VX/FLT    00 01 53 48 46 21  00 00 0000 0  
  VX/DATAX  00 01 53 48 46 21  00 00 0000 0  
  VX/VTWIN  00 01 53 48 46 21  00 00 0000 0  
  VX/FPP    00 01 53 48 46 21  00 00 0000 0  
  VX/QSORT  00 01 53 48 46 21  00 00 0000 0  
  
  B2/RMS    00 01 53 48 46 21  00 00 0000 0  
  B2/RT     00 01 53 48 46 21  00 00 0000 0  
  BP/RT     00 01 53 48 46 21  00 00 0000 0  
  B2/DATAX  00 01 53 48 46 21  00 00 0000 0  
  B2/QSORT  00 01 53 48 46 21  00 00 0000 0  
  
  BTRAN/BP  00 01 53 48 46 21  00 00 0000 0  
  B2/BTRAN  00 01 53 48 46 21  00 00 0000 0  
  BTRAN/QB  00 01 53 48 46 21  00 00 0000 0  
  BTRAN/CB  00 01 53 48 46 21  00 00 0000 0  
  
  QB/RT     00 01 53 48 46 21  00 00 0000 0  
  CB/RT     00 01 53 48 46 21  00 00 0000 0 
Defining Print and Batch Queues - Completing Queue Manager Setup
After running SETUP, the administrator must complete the Queue Manager setup by defining site batch queues, printers and print queues, and associated devices.
See the following sections:
Oracle Startups - Complete /etc/netsol_dbms_instances
After running SETUP to install LeasePak/Oracle, if the administrator chose to have the Oracle init service nst_dbora installed, the file /etc/netsol_dbms_instances may need to be maintained.
/etc/netsol_dbms_instances contains an assignment to the variable ORA_INSTANCES. The value assigned to ORA_INSTANCES should be a quoted, space-separated list of Oracle instances to be started or stopped on the Application host when the run level changes. These values are used by the service nst_dbora to help manage these instances.