Verify that your server computer meets the minimum requirements for running the SAP ASE 16.0 SP04 server software:
Breakdown of Disk Space Requirements for SAP ASE Server Software: Total 10 GB minimum (approximate)
Size | Purpose |
---|---|
2048 MB | Software files |
1024 MB | master device |
1024 MB | sysprocsdev device |
2048 MB | tempdb device |
2048 MB (minimum) | Each LeasePak data device |
1024 MB (minimum) | Each LeasePak log device |
60 KB per lease or loan in LeasePak (approximate) | Database records related to each lease or loan |
Read the following SAP ASE manuals to prepare for the software installation:
'sybase'
.'sybase'
. Give the account a primary OS group of 'sybase'
.'sybase'
user and set the locale to C by adding the following code:
Shell | Login file | Code to add |
---|---|---|
Bash | .bash_profile |
export LANG=C |
Bourne or Korn | .profile |
LANG=C |
C or T | .login |
setenv LANG C |
'sybase'
user and set the stack size
to unlimited by adding the following code:Shell | Login file | Code to add |
---|---|---|
Bash | .bash_profile | ulimit -s unlimited |
Bourne or Korn | .profile | ulimit -s unlimited |
C or T | .login | limit stacksize unlimited |
Download and install the latest Linux operating system patches from your OS vendor.
Check the SAP ASE Installation Guide and Release Bulletin for information on the required Linux OS patches.
Linux Kernel Parameters
Parameter | Description | Recommended Value |
---|---|---|
kernel.shmmax | shared memory maximum | At least as large as the Adaptive Server 'total logical memory' configuration parameter plus the amount of shared memory required by non-DBMS components such as the LeasePak Queue Manager. |
As the root user:
/etc/sysctl.conf
file and add the kernel parameter settings:
kernel.shmmax = shared_memory_maximum
# sysctl -p
SAP ASE starts in threaded mode by default. Netsol recommends that you take the default and run SAP ASE in threaded mode. If for some reason you need to switch to process mode, you must set Linux kernel parameters kernel.exec-shield and kernel.randomize_va_space to a value of 0 in order to maintain compatibility.
Database devices can be stored on either filesystem files or raw volumes/partitions. Filesystem files are recommended because they are easier to maintain.
If the database devices will be stored on raw volumes/partitions:
The SAP ASE and LeasePak database devices are listed below.
Examples | Your Values | |
---|---|---|
Type | raw partition | |
Owner:Group | sybase:sybase | |
Permissions | 660 | |
Device name | master | |
Device size | 512 MB minimum | |
Database name | master | |
Database size | 256 MB minimum |
Examples | Your Values | |
---|---|---|
Type | raw partition | |
Owner:Group | sybase:sybase | |
Permissions | 660 | |
Device name | sysprocsdev | |
Device size | 512 MB minimum | |
Database name | sybsystemprocs | |
Database size | 256 MB minimum |
Examples | Your Values | |
---|---|---|
Type | raw partition | |
Owner:Group | sybase:sybase | |
Permissions | 660 | |
Device name | tempdbdev | |
Device size | 2048 MB minimum | |
Database name | tempdb | |
Database size | 2048 MB minimum |
Examples | Your Values | |
---|---|---|
Type | raw partition | |
Owner:Group | sybase:sybase | |
Permissions | 660 | |
Device name | systemdbdev | |
Device size | 32 MB minimum | |
Database name | sybsystemdb | |
Database size | 16 MB minimum |
Examples | Your Values | |
---|---|---|
Type | raw partition | |
Owner:Group | sybase:sybase | |
Permissions | 660 | |
Device names | lpak_data_01, lpak_data_02, etc | |
Device size | 2048 MB minimum | |
Database name | lpr_production | |
Database size | 2048 MB minimum |
Examples | Your Values | |
---|---|---|
Type | raw partition | |
Owner:Group | sybase:sybase | |
Permissions | 660 | |
Device names | lpak_log_01, lpak_log_02, etc | |
Device size | 1024 MB minimum |
Install the SAP ASE server software (SAP Adaptive Server Enterprise Edition 16.0 SP04 for Linux on X86_64 64 BIT). Make sure to install the latest available EBF. Installation of the SAP ASE server software and EBFs is beyond the scope of the System Administration Guide. Refer to your SAP ASE documentation for installation procedures.
When installing the SAP ASE server software, specify a Page Size of 2K.
LeasePak requires the Adaptive Server Page Size to be 2K. The Adaptive Server default Page Size is 4K, so you need to override the default Page Size during the installation of the SAP ASE server software.
Adaptive Server will function properly without adding the port numbers to /etc/services. However, SAP recommends adding the port numbers to /etc/services to prevent other applications from using the same port numbers.
In this example, assume these port numbers are in use by SAP ASE:
As the root user, edit the /etc/services
file:
sap-ase 5000/tcp # SAP Adaptive Server
sap-ase 5000/udp # SAP Adaptive server
sap-bck 5001/tcp # SAP Backup Server
sap-bck 5001/udp # SAP Backup Server
sap-mon 5002/tcp # SAP Monitor Server
sap-mon 5002/udp # SAP Monitor Server
Edit the login file of the 'sybase'
user and add code to "source" the SAP-supplied
environment variable script:
Shell | Login file | Code to add |
---|---|---|
Bash | .bash_profile |
. sap_top_directory/SYBASE.sh |
Bourne or Korn | .profile |
. sap_top_directory/SYBASE.sh |
C or T | .login |
source sap_top_directory/SYBASE.csh |
The DSQUERY environment variable contains the Adaptive Server name that client programs attempt to connect to
if no Adaptive Server is specified with a command line option. Optionally edit the login file of the
'sybase'
user and add code to define DSQUERY:
Shell | Login file | Code to add |
---|---|---|
Bash | .bash_profile |
export DSQUERY=Adaptive_Server_name |
Bourne or Korn | .profile |
DSQUERY=Adaptive_Server_name |
C or T | .login |
setenv DSQUERY Adaptive_Server_name |
Verify you are running the correct version of SAP ASE for your platform.
To display the SAP ASE version, execute the following in isql:
select @@version
go
The correct version of SAP ASE is Adaptive Server Enterprise 16.0 SP04 with the latest EBF.
Remove the master device from the pool of default devices by executing the following in isql as user 'sa':
sp_diskdefault master, defaultoff
go
User 'sa' is the System Administrator DBMS user account created when you installed the SAP ASE software.
Remove the master device from the tempdb database segments by executing the following in isql as 'sa':
use tempdb
go
sp_dropsegment "default", tempdb, master
go
sp_dropsegment "system", tempdb, master
go
sp_dropsegment "logsegment", tempdb, master
go
The raw partitions which were created for the LeasePak database(s) and transaction log(s) must be initialized
and mapped to SAP ASE database devices by running the SAP ASE 'disk init'
command.
For more information on the disk init command, refer to your SAP ASE documentation or contact your NetSol representative.
To avoid problems recovering data from a server crash, create and initialize separate partitions for the data and transaction log segments of the LeasePak database. Do not place either segment on the partitions used by the SAP ASE system databases such as master, sybsystemprocs, or tempdb.
Database devices can be stored on either filesystem files or raw volumes/partitions.
If your database devices are stored on filesystem files, run sp_helpdevice
in isql to verify that:
The SAP ASE configuration parameters listed below fall into one of 3 categories: those where LeasePak requires the listed value, those where the listed value is a minimum, and those listing an optimal value. Enter the required values exactly as listed. For those listing minimum or optimal values, you can adjust them as needed (within any specified minimum/maximum bounds) to achieve peak DBMS server performance.
To ensure LeasePak functions correctly, if a configuration parameter is not explicitly listed here, generally leave the configuration parameter at the SAP ASE default value. In particular, leave 'max parallel degree' set to 1, 'enable literal autoparam' set to 0, and 'statement cache size' set to 0. Those are usually the SAP ASE defaults, but check the parameter value to be sure. For more information, contact your NetSol representative.
Some of the configuration parameters require a reboot of Adaptive Server in order for the change to take effect.
'allow sql server async i/o'
Description | Required Value |
---|---|
Switch for whether or not to use asynchronous I/O | 1 (use asynchronous I/O) |
'default data cache'
Description | Optimal Value |
---|---|
Size of the data cache in megabytes (MB) | Depends on the size and activity of your database(s) and the amount of available memory. There is a point of diminishing returns beyond which increasing the size of the data cache consumes extra resources without improving performance. |
To configure the size of the default data cache to number_of_megabytes, execute the following
in isql as 'sa':
sp_cacheconfig 'default data cache', "number_of_megabytesM"
go
To display the size of the default data cache in megabytes, execute the following in isql:
sp_cacheconfig 'default data cache'
go
'default network packet size'
Description | Required Value |
---|---|
Default packet size for data passed between the DBMS server and DBMS clients | 4096 bytes |
Set the 'max network packet size' parameter to 4096 before setting the 'default network packet size' to 4096.
'max memory'
Description | Minimum Value |
---|---|
Maximum amount of shared memory that SAP ASE can allocate for its own use | Value of the 'total logical memory' read-only configuration parameter |
To calculate your value for 'max memory', first use the formula from 'total logical memory' to determine
the value of 'total logical memory' in megabytes (MB). This is the minimum number_of_megabytes value for the
following equation:
number_of_megabytes * 512 = value_of_max_memory
You may use a larger value for number_of_megabytes as needed. Once you have determined the
value_of_max_memory, execute the following in isql as 'sa':
sp_configure 'max memory', value_of_max_memory
go
Also see 'total logical memory'.
'max network packet size'
Description | Minimum Value |
---|---|
Maximum packet size for data passed between the DBMS server and DBMS clients | 4096 bytes |
'max online engines'
Description | Minimum Value |
---|---|
Maximum number of engines that can be online at any one time | 1 |
'number of devices'
Description | Minimum Value |
---|---|
Maximum number of available devices | 50 |
'number of locks'
Description | Minimum Value |
---|---|
Maximum number of available locks within SAP ASE | 30000 |
'number of open databases'
Description | Minimum Value |
---|---|
Maximum number of databases that can be open simultaneously (including the SAP ASE administrative databases, such as master, tempdb, sybsystemprocs, and sybsystemdb) | 25 |
'number of open databases'
in the SAP ASE error log file.
If there are entries in the error log file similar to the following:Increase the config parameter 'number of open databases' to avoid descriptor reuse.
Reuse may result in performance degradation.
'number of open indexes'
Description | Minimum Value |
---|---|
Maximum number of indexes that can be open simultaneously | 4000 |
'number of open indexes'
in the SAP ASE error log file.
If there are entries in the error log file similar to the following:Increase the config parameter 'number of open indexes' to avoid descriptor reuse.
Reuse may result in performance degradation.
'number of open objects'
Description | Minimum Value |
---|---|
Maximum number of objects that can be open simultaneously | 4000 |
'number of open objects'
in the SAP ASE error log file.
If there are entries in the error log file similar to the following:Increase the config parameter 'number of open objects' to avoid descriptor reuse.
Reuse may result in performance degradation.
'number of open partitions'
Description | Minimum Value |
---|---|
Maximum number of partitions that can be open simultaneously | 4000 |
'number of open partitions'
in the SAP ASE error log file.
If there are entries in the error log file similar to the following:Increase the config parameter 'number of open partitions' to avoid descriptor reuse.
Reuse may result in performance degradation.
'number of user connections'
Description | Minimum Value |
---|---|
Maximum number of simultaneous connections to the DBMS server | M * ( G + 2), where M is maximum concurrent users and G is the average number of Genform windows concurrently open for each user. |
'procedure cache size'
Description | Optimal Value |
---|---|
Size of the procedure cache | Approximately 200 MB |
To determine the procedure cache size, use this equation:
number_of_megabytes * 512 = size_of_procedure_cache
To configure the parameter, execute the following in isql as 'sa':
sp_configure 'procedure cache size', size_of_procedure_cache
go
For example, to configure the procedure cache for 200 MB:
200 * 512 = 102400
sp_configure 'procedure cache size', 102400
go
'total logical memory'
'total logical memory' is the amount of memory required by the current configuration of SAP ASE.
It is a read-only parameter, meaning you cannot make changes to it.
To determine the value of 'total logical memory' in megabytes (MB), first execute the following in isql:
sp_configure 'total logical memory'
go
Then take the number from the 'Run Value' column (not the 'Memory Used' column) and divide it by 512 to obtain
the value in megabytes (MB):
number from 'Run Value' / 512 = value of 'total logical memory' in MB