Professional Documents
Culture Documents
AMOS 22.6 AMOS Database Standards
AMOS 22.6 AMOS Database Standards
AMOS 22.6 AMOS Database Standards
Version: 22.6
Date: 01.06.2022
© 2022 Swiss Aviation Software Ltd.
1. AMOS & Database Standards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1 AMOS & Database Standards Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.2 General Remarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.3 Application Server Hardware Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.4 SAP ASE Hardware Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.5 SAP ASE Installation Defaults . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.6 Oracle Hardware Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
1.7 Oracle Installation Defaults . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
1.8 PostgreSQL Hardware Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
1.9 PostgreSQL Installation Defaults . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
1.10 Appendix . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
1.11 Document Information AMOS & DB Standards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
3/33
SWISS-AS.COM
4/33
SWISS-AS.COM
5/33
General Remarks
The database server configuration needs to be adjusted to meet the requirements of the AMOS application server.
This documents specifies the hardware resources and parameter settings recommended by Swiss AS for the six
common scenarios mentioned below. The specification in this document is valid for a single AMOS application
server running in a production environment. For multiple AMOS servers some parameters and hardware
specifications have to be adjusted.
The actual hardware sizing and parameter setting in a customer environment might vary dependent on the way this
customer uses AMOS, but should take these standards into consideration.
Sizing Classes
As many settings depend on the size of the customer in terms of concurrent users and managed aircrafts, the
following classes have been used throughout this document:
Size XS S M L XL XXL
Note that the number of aircrafts play a more significant role in sizing the hardware.
SWISS-AS.COM
6/33
for multiple AMOS servers running on the same host, the corresponding parameters have to be cumulated
systems used for release change tests should have similar setup as the production in order to provide
comparable performance
we recommend to keep the free space on applic drive always greater than twice the java memory allocated
to AMOS. This is to avoid the drive to be full in case of a Java heap dump creation.
AMOS uses /tmp as default temporary folder on Linux, it is recommended to allocate enough space on that
folder accordingly depending on the AMOS usage. Having a separate mount point should be considered.
Type XS S M L XL XXL
Hardware Requirements
Memory 6 GB 8 GB 10 GB 10 GB 18 GB 24 GB
/webdrive (Linux) or E:\webdrive (Windows) 100 GB 100 GB 300 GB 300 GB 500 GB 500 GB
SWISS-AS.COM
7/33
Hardware Requirements
OS 1 1 1 2 2 2
Total 6 6 8 12 16 16
Memory Total 8 GB 8 GB 12 GB 24 GB 48 GB 64 GB
Disk Space
SWISS-AS.COM
8/33
Description XS S M L XL XXL
max memory 6 GB 6 GB 10 GB 22 GB 44 GB 64 GB
kernel resource memory 7000 - adapt to shown value if an error message is raised
Database parameters that are independent on the size of the AMOS environment:
Installation Defaults
Default sa User: sa
SWISS-AS.COM
9/33
directio = false
Parameters
enable literal 1
number of locks 100000 per engine dependent on the size of syb_default_pool thread pool
(sp_helpthread) and amount of available CPU cores
SWISS-AS.COM
10/33
disk i/o structures max async i/o's per It is slightly more efficient for Adaptive Server to delay the I
engine * max /O because it cannot get a disk I/O structure than because
online engines the I/O request exceeds max i/os per server.
max async i/o's per server max async i/o's per static parameter
engine * max
online engines same value as disk i/o structures
start xp server during boot 0 keep default or reset to default if XP was removed (see
AMOS Installation Guide)
license information 0
number of devices 20
Monitoring
to enable monitoring
enable monitoring 1
SWISS-AS.COM
11/33
max SQL text monitored 16384 increased so new AMOS HK can display even very long
queries
Advanced Parameters
Database Caches
SWISS-AS.COM
12/33
tempdbcache 1000 MB
tempdbcache pools:
Thread Pools
Sybase 15.7: see size- cannot be changed unless static parameter 'max online
syb_default_pool dependent engines' has been increased
thread_count parameters above
Databases Devices
production
2000 MB log
training
SWISS-AS.COM
13/33
1000 MB log
directio = false
delayed commit =
true
Backup Files
compression level
3-5 or 101
AMOS Parameters
Parameter Value Remarks
SWISS-AS.COM
14/33
General requirements
AMOS only supports setup in CDB/PDB architecture. The legacy architecture (valid until Oracle 11gR2) is no
longer supported. Please consider this also during your Database upgrade.
General sizing
This is a general sizing recommendation. Swiss-AS will always issue project-specific hardware requirements
prior to installation.
Hardware Requirements
CPUs DBMS 1 2 2 4 6 8
Total 1 2 2 4 6 8
Memory Monitoring Agent 0,5 0,5 0,5 0,5G 0,5G 0,5G e.g. AMOSmonitoring
G G G DBagent
OS 3 3 3 3 GB 3 GB 3 GB
GB GB GB
SWISS-AS.COM
15/33
Disk Space
/applic 100 100 100 100 100 GB 100 GB Oracle binaries (DB +
(Linux) or GB GB GB GB GRID) only
(add 100 G more if you plan
D:\applic to upgrade / run in parallel
(Windows) for some time)
ASM AU_SIZE = 4 MB
Diskgroups
+REDO 5 redo groups with each having one 5 redo groups with each Redo logs
member of 512 MB: 5 GB having one member of
1024 MB: 10 GB
SWISS-AS.COM
16/33
+RECO 300 300 600 1000 2000 2000 Fast recovery area (archive
GB GB GB GB GB GB log, flashback log, rman
backups)
Tablespaces
For TEMP TBS it is advised to have at least as many temp datafiles as there are instances, to avoid I/O congestion.
For later Oracle releases (19c++), a separate UNDO per PDB is needed.
SWISS-AS.COM
17/33
General Notes
The following settings apply to Linux. If you run Oracle Database on a different Operating System settings may be
different. Please contact Swiss AS for details.
Huge Pages:
Always use huge pages if SGA > 4 GB. To calculate the number of huge pages, please use the Oracle provided
hugepages_settings.sh script.
Timezone Setting
Swiss AS recommends to set the database and host timezone to UTC.
Patching
Quartely
Oracle releases patchset bundles every quarter (01 / 04 / 07 / 10: January, April, July and October). Since Oracle
12.2 they are called RUs ("release updates"). It is mandatory to install these patch bundles at least once every 3
quarters. So the maximum gap is no larger than 9 months behind on patches. Customers are advised to patch
every other quarter (= every 6 months) to stay no more than 6 months behind on security, performance and
functionality issues. As always patching has to be applied and tested in a dedicated test environment first and
needs at least 4 weeks to test the implications.
It is recommended to install the April and October patches (04 and 10). Swiss AS does not test and
therefore not support the January or July patches, unless there is a special note requesting the customer
to do so as an exception.
SWISS-AS.COM
18/33
One-off patches
The following one off patches are required for proper AMOS operation. They are mandatory to be installed.
Oracle 12.2.211019 (October 2021 RU GI + DB) (last supported RU) (Oracle 12.2 only supported until AMOS 19.12)
27579159
32356628
32327201
33956157 (DataPump)
32327201 (Timezone)
Oracle Homes
For maintenance, test and predictability reasons, every AMOS installation for each individual environment needs to
be installed into a separate ORACLE home ("DB home"). The GRID home can be shared on a cluster, as long as
the database configuration ensures sufficient resource separation in concurrency situations. The Grid home version
always has to be the same level or newer than the DB home version. It is recommended to have the latest Grid
software in place, even if your database version is not updated to the same level yet, as this will allow a smoother
migration afterwards.
Oracle Grid $ORACLE_BASE/<Version> $ORACLE_BASE use Grid >= 19.15.0.0 with 19.15.0.0
Home HAS /grid /19.0.0.0/grid DB software for new-install
SWISS-AS.COM
19/33
AMOS Parameters
Parameter Value Remarks
Database Parameters
DB Instance
processes 1024
log_buffer 134217728
audit_trail DB default
audit_sys_operations TRUE
db_create_file_dest <+DATA>
db_recovery_file_dest <+RECO>
parallel_adaptive_mu False
lti_user
SWISS-AS.COM
20/33
Parallel_threads_per 1
_cpu
db_create_online_log <+RECO> diskgroup Check for high redundancy diskgroup (or use external
_dest_1 redundancy)
log_archive_dest_sta ENABLE
te_1
_parallel_adaptive_m 2 deprecated
ax_users
cursor_sharing FORCE
disk_asynch_io TRUE
pga_aggregate_target 4096M
pga_aggregate_limit 8192M monitor and increase for higher numer of concurrent users
accordingly
(minimum / adjust for your individual environment size)
log_checkpoints_to_a TRUE
lert
open_cursors 1000
archive_lag_target 3600
RESOURCE_MANA default_plan
GER_PLAN
recyclebin OFF
session_cached_curs 200
ors
SWISS-AS.COM
21/33
use_large_pages ONLY
db_securefiles ALWAYS
ASM Instance
asm_power_limit 4
audit_sys_operations TRUE
audit_syslog_level local0.info
pga_aggregate_target (default)
processes (default)
Storage configuration
General rule
Use RAID 1-0 (Strip and mirror). Don't use RAID5 or RAID6 for performance reasons.
SWISS-AS.COM
22/33
AMOSDAT_<en +<DATA_<env Data 8192 Actual diskgroup name can differ, this is an
v> >> example only
+<REDO> Redolog
RMAN parameters
Data Guard
valid_for=(ALL_LOGFILES,ALL_ROLES)
DB_UNIQUE_NAME=<db_unique_name>
ALTERNATE=LOG_ARCHIVE_DEST_1
SWISS-AS.COM
23/33
SWISS-AS.COM
24/33
Hardware Requirements
Total 2 6 8 12 16 16
Memory Total 4 GB 6 GB 12 GB 24 GB 48 GB 64 GB
Disk Space
/applic (Linux) 20 GB 20 GB 20 GB 20 GB 20 GB 20 GB
D:\applic (Windows)
/data/postgres (Linux) 10 GB 10 GB 10 GB 20 GB 20 GB 40 GB
E:\data\ (Windows)
F:\data\ (Windows)
H:\backup (Windows)
SWISS-AS.COM
25/33
DB Port 5432
Default postgres
admin user
DB name prod
Data amos_prod_data
Tablespace
Index amos_prod_index
Tablespace
Unprivileged amosuser_prod
Login Role
Parameters
SWISS-AS.COM
26/33
autovacuum on
autovacuum_
max_workers XS S M L XL XXL
3 3 4 5 5 6
autovacuum_ 50
vacuum_thre
shold
autovacuum_ 0.1
vacuum_scal
e_factor
checkpoint_c 0.9
ompletion_tar
get
checkpoint_ti
meout XS S M L XL XXL
default_statist 100
ics_target
SWISS-AS.COM
27/33
logging_colle on
ctor
log_filename postgresql-%Y-%m-%d.log
log_min_mes warning
sages
log_rotation_ 0
age
log_rotation_ 1GB
size
maintenance
_work_mem XS S M L XL XXL
max_connecti static
ons XS S M L XL XXL
25 40 90 90 150 150
max_wal_size 4 GB
min_wal_size 2 GB
password_en scram-sha-256
cryption
SWISS-AS.COM
28/33
ssl on
superuser_re 3 static
served_conn
ections
synchronous_ on / local
commit
track_activity 8192
_query_size
track_counts on
wal_buffers -1
wal_compres off
sion
Backup
or /backup/pgbackrest
AMOS Parameters
Parameter Value Remarks
SWISS-AS.COM
29/33
Patching stragtegy
PostgreSQL releases patches 4 times a year (usually February, May, August and November). It is mandatory to
install these patches at least once every 4 quarters. So the maximum gap is no larger than 12 months behind on
patches. Customers are advised to patch every other quarter (= every 6 months) to stay no more than 6 months
behind on security, performance and functionality issues. As always patching has to be applied and tested in a
dedicated test environment first and needs at least 4 weeks to test the implications.
It is recommended to install the May and November patches. Swiss AS does not test and therefore not support the
February or August patches, unless there is a special note requesting the customer to do so as an exception.
SWISS-AS.COM
30/33
Appendix
Cache configuration
-- cache configuration
use master
exec sp_configure "max memory",3072000 -- general parameters
exec sp_cacheconfig "default data cache","4000M" -- caches
exec sp_poolconfig "default data cache","800M","32K"
exec sp_poolconfig "default data cache","100M","8K"
exec sp_cacheconfig "tempdbcache","1000M"
exec sp_poolconfig "tempdbcache","200M","32K"
exec sp_bindcache tempdbcache,tempdb
SWISS-AS.COM
31/33
General parameters
-- general parameters
use master
exec sp_configure "number of user connections",200
exec sp_configure "procedure cache size",512000
exec sp_configure "statement cache",10000
exec sp_configure "enable literal",1
exec sp_configure "number of open objects",25000
exec sp_configure "number of open indexes",15000
exec sp_configure "number of open partitions",15000
exec sp_configure "number of locks",300000 -- 100000 per thread
exec sp_configure "lock hashtable size", 16384
exec sp_configure "histogram steps",20
exec sp_configure "max online engines",3
exec sp_configure "number of engines at startup",3 -- 15.5 and below
alter thread pool syb_default_pool with thread count=3 -- 15.7 and above
exec sp_configure "disk i/o structures",4096
exec sp_configure "max async i/os per engine",4096
exec sp_configure "max async i/os per server",65536
exec sp_configure "i/o polling process count",30 -- only if running in process mode
exec sp_configure "allow sql server async i/o",1
exec sp_configure "number of aux scan descriptors",1024
exec sp_configure "disable disk mirroring",0
exec sp_configure "xp_cmdshell context",0
exec sp_configure "start xp server during boot",1
exec sp_configure "license information",0
exec sp_configure "number of devices",20
exec sp_configure "optimizer level",0,"ase_current"
exec sp_configure "optimization goal",0,"allrows_oltp"
exec sp_configure "heap memory per user",100000
exec sp_configure "cpu grace time", 3000
Monitoring parameters
-- monitoring parameters
grant role "mon_role" to sa
exec sp_configure "enable monitoring",1
exec sp_configure "enable spinlock monitoring",1
exec sp_configure "sql text pipe active",1
exec sp_configure "sql text pipe max messages",10000
exec sp_configure "plan text pipe active",0
exec sp_configure "statement pipe active",1
exec sp_configure "statement pipe max messages",10000
exec sp_configure "errorlog pipe active",1
exec sp_configure "errorlog pipe max messages",10000
exec sp_configure "deadlock pipe active",1
exec sp_configure "deadlock pipe max messages",10000
exec sp_configure "wait event timing",1
exec sp_configure "process wait events",1
exec sp_configure "object lockwait timing",1
exec sp_configure "SQL batch capture",1
exec sp_configure "statement statistics active",1
exec sp_configure "per object statistics active",1
exec sp_configure "max SQL text monitored",16384 -- static!
exec sp_configure "enable stmt cache monitoring",1
SWISS-AS.COM
32/33
SWISS-AS.COM
33/33
SWISS-AS.COM