Skip to content

Instantly share code, notes, and snippets.

@keoy7am
Forked from nagetsum/SAP_ASE_installation.txt
Created September 1, 2021 13:13
Show Gist options
  • Save keoy7am/72d014cad6e157c48ae877f6757b325c to your computer and use it in GitHub Desktop.
Save keoy7am/72d014cad6e157c48ae877f6757b325c to your computer and use it in GitHub Desktop.
= How to install SAP ASE 16.0 SP03 for Linux
1. Download product binally
Download product binally(ASE_Suite.linuxamd64.tgz) from below url instruction:
https://help.sap.com/viewer/23c3bb4a29be443ea887fa10871a30f8/16.0.3.8/en-US/c14592e2df414678b3620e75ccbc0248.html
2. Install
```
mkdir ~/tmp
mv ASE_Suite.linuxamd64.tgz ~/tmp
cd ~/tmp
tar xvzf ASE_Suite.linuxamd64.tgz
mkdir -p /opt/sap
chown nagetsum:nagetsum /opt/sap
./setup.bin -i console
インストールの準備
インストーラー アーカイブから JRE を抽出しています...
JRE を展開しています...
インストーラー アーカイブからインストール リソースを抽出しています...
このシステム環境のインストーラーを構成しています...
インストーラーを起動しています...
===============================================================================
ロケールを選択...
----------
1- English
->2- 日本語
ロケールを番号で選択: 1
===============================================================================
SAP Adaptive Server Enterprise (created with InstallAnywhere)
-------------------------------------------------------------------------------
Preparing CONSOLE Mode Installation...
===============================================================================
Introduction
------------
InstallAnywhere will guide you through the installation of SAP Adaptive Server
Enterprise 16.0 SP03 PL02.
It is strongly recommended that you quit all programs before continuing with
this installation.
Respond to each prompt to proceed to the next step in the installation. If
you want to change something on a previous step, type 'back'.
You may cancel this installation at any time by typing 'quit'.
PRESS <ENTER> TO CONTINUE:
===============================================================================
Choose Install Folder
---------------------
Where would you like to install?
Default Install Folder: /opt/sap
ENTER AN ABSOLUTE PATH, OR PRESS <ENTER> TO ACCEPT THE DEFAULT
:
===============================================================================
Choose Install Set
------------------
Please choose the Install Set to be installed by this installer.
->1- Typical
2- Typical SAP ASE, database always-on option
3- Full
4- Customize...
ENTER THE NUMBER FOR THE INSTALL SET, OR PRESS <ENTER> TO ACCEPT THE DEFAULT
:
===============================================================================
Software License Type Selection
-------------------------------
What would you like to do?
->1- Install licensed copy of SAP Adaptive Server Enterprise
2- Install Express Edition of SAP Adaptive Server Enterprise
3- Evaluate SAP Adaptive Server Enterprise
Enter one of the options above: 2
===============================================================================
End-user License Agreement
--------------------------
1) All regions
Please enter the number of the location you are installing. (1-1) (Default:
1): 1
LICENSE AGREEMENT
SAP(r) ADAPTIVE SERVER(r) ENTERPRISE
EXPRESS EDITION
VERSION 16.0.x
NOTICE TO USER: Scroll down and read this License
Agreement (this "Agreement") carefully. This is a legally
binding Agreement between you (or your employer or company,
as applicable) ("Licensee" or "You") and the SAP entity
authorized to distribute the Program (as defined below) in
the country in which you are located ("SAP").
By clicking "Accept" or "Agree," You agree to all of the
terms and conditions stated in this Agreement. If You do
not agree to these terms, do not click "Accept" or "Agree."
If You are entering into this Agreement on behalf of your
employer or company, You represent and warrant that You have
Press ENTER to read the text [Type 'back' and press ENTER to skip the text]
: back
I agree to the terms of the SAP license for the install location specified.
(Y/N): Y
===============================================================================
Pre-Installation Summary
------------------------
Please Review the Following Before Continuing:
Product Name:
SAP Adaptive Server Enterprise
Install Folder:
/opt/sap
Product Features:
SAP Adaptive Server Enterprise,
Open Client,
DB-Library,
jConnect 16.0 for JDBC,
Interactive SQL,
QPTune,
SySAM License Utilities,
Remote Command and Control Agent for SAP ASE,
SAP ASE ODBC Driver,
SAP ASE Extension Module for Python,
SAP ASE Database Driver for PERL,
SAP ASE Extension Module for PHP,
Cockpit,
SAP ASE Cockpit
Disk Space Information (for Installation Target):
Required: 1,840,306,225 Bytes
Available: 11,035,082,752 Bytes
PRESS <ENTER> TO CONTINUE:
===============================================================================
Ready To Install
----------------
InstallAnywhere is now ready to install SAP Adaptive Server Enterprise onto
your system at the following location:
/opt/sap
PRESS <ENTER> TO INSTALL:
===============================================================================
Installing...
-------------
[==================|==================|==================|==================]
[------------------|------------------|------------------|------------------]
===============================================================================
Configure New Servers
---------------------
The SAP Adaptive Server Enterprise includes products that require
configuration. If you choose to configure the products on this screen, you
will be given the option to specify custom values for each product. If you
choose not to configure the products now, you can configure them later.
Please deselect any products that you do not want to configure now :
[ ] 1 - Configure new SAP ASE
[ ] 2 - Configure new Backup Server
[ ] 3 - Configure new XP Server
[ ] 4 - Configure new Job Scheduler
[ ] 5 - Enable Self Management
[ ] 6 - Configure Historical Monitoring Data Repository
[ ] 7 - Configure Cockpit
** NOTE: The Historical Monitoring Data Repository should only be configured
if you are using SAP ASE in SAP Business Applications. Use in a standalone SAP
ASE is not supported.
To select an item enter its number, or 0 when you are finished: (Default: 0)
: 1
[X] 1 - Configure new SAP ASE
[ ] 2 - Configure new Backup Server
[ ] 3 - Configure new XP Server
[ ] 4 - Configure new Job Scheduler
[ ] 5 - Enable Self Management
[ ] 6 - Configure Historical Monitoring Data Repository
[ ] 7 - Configure Cockpit
** NOTE: The Historical Monitoring Data Repository should only be configured
if you are using SAP ASE in SAP Business Applications. Use in a standalone SAP
ASE is not supported.
To select an item enter its number, or 0 when you are finished: (Default: 0)
: 7
[X] 1 - Configure new SAP ASE
[ ] 2 - Configure new Backup Server
[ ] 3 - Configure new XP Server
[ ] 4 - Configure new Job Scheduler
[ ] 5 - Enable Self Management
[ ] 6 - Configure Historical Monitoring Data Repository
[X] 7 - Configure Cockpit
** NOTE: The Historical Monitoring Data Repository should only be configured
if you are using SAP ASE in SAP Business Applications. Use in a standalone SAP
ASE is not supported.
To select an item enter its number, or 0 when you are finished: (Default: 0)
:
===============================================================================
Configure Servers with Different User Account
---------------------------------------------
Do you want to configure the server(s) under different user account?
1- Yes
->2- No
Enter one of the options above:
===============================================================================
User Configuration Data Directory
---------------------------------
Enter the directory where you want to store user data files such as interfaces
file, RUN_<server> file, error log, etc.. The files for the server(s) you
about to create will be placed in this directory.
Data Directory (Default: /opt/sap):
===============================================================================
Configure New SAP ASE
---------------------
SAP ASE Name (Default: NAGETSUM):
System Administrator's Password:
Confirm System Administrator's Password:
Host Name (Default: nagetsum.nrt.csb):
Port Number (Default: 5000):
Error Log (Default: /opt/sap/ASE-16_0/install/NAGETSUM.log):
Application Type
->1- Mixed (OLTP/DSS)
2- Online Transaction Proccessing (OLTP)
3- Decision Support Systems (DSS)
Select an application type:
Page Size
1- 2k
->2- 4k
3- 8k
4- 16k
Select a page size:
Warning: You have selected 4k as the logical page size for the
SAP ASE. If you plan to load dump from another database,
make sure this logical page size matches the size of the source
database. The default logical page size in previous SAP ASE
versions was 2KB.
PRESS <ENTER> TO CONTINUE:
->1- us_english
Default Language:
1- cp437 : Code Page 437, (United States) character set.
2- cp850 : Code Page 850 (Multilingual) character set.
3- iso15 : ISO_8859-15:1998, Latin9, Western Europe
->4- iso_1 : ISO 8859-1 (Latin-1) - Western European 8-bit character set.
5- mac : Macintosh default character set for Western European locales.
6- roman8 : Hewlett-Packard proprietary character set for European locales.
7- roman9 : Hewlett-Packard proprietary character set for European locales.
8- utf8 : Unicode 3.1 UTF-8 Character Set
Default Character Set: 8
->1- altdict : Alternate (lower-case first) dictionary ordering
2- altnoacc : Alternate (lower-case first) accent-insensitive dictionary
ordering
3- altnocsp : Alternate (lower-case first) case-insensitive dictionary ordering
with order-by preference
4- big5bin : Ordering that matches the binary ordering of the big5 character
set
5- bin_utf8 : Binary ordering, for the ISO 10646-1, UTF-8 multibyte encoding
character set (utf8).
6- binary : Binary ordering for UTF-16
7- cp932bin : Ordering that matches the binary ordering of the cp932 character
set
8- cyrdict : Common cyrillic dictionary ordering
9- cyrnocs : Common cyrillic case-insensitive dictionary ordering
10- defaultml : Default Unicode multi-lingual ordering
11- dict : General-purpose dictionary ordering
12- dynix : Chinese phonetic ordering
13- elldict : Greek dictionary ordering
14- espdict : Spanish dictionary ordering
15- espnoac : Spanish accent-insenitive dictionary ordering
16- espnocs : Spanish case-insensitive dictionary ordering
17- eucjisbn : Ordering that matches the binary ordering of the EUCJIS
character set
18- euckscbn : Ordering that matches the binary ordering of the EUCKSC
character set
19- gb2312bn : Ordering that matches the binary ordering of the gb2312
character set
20- gbpinyin : Chinese phonetic ordering
21- gbpinyinnocs : Chinese phonetic ordering with no case preference
22- hundict : Hungarian dictionary ordering
23- hunnoac : Hungarian accent-insensitive dictionary ordering
24- hunnocs : Hungarian case-insensitive dictionary ordering
25- iso14651 : Ordering as per ISO14651 standard
26- noaccent : General-purpose accent-insensitive dictionary ordering
27- nocase : General-purpose case-insensitive dictionary ordering
28- nocasep : General-purpose case-insensitive dictionary ordering with
order-by preference
29- rusdict : Russian dictionary ordering
30- rusnocs : Russian case-insensitive dictionary ordering
31- scandict : Scandinavian dictionary ordering
32- scannocp : Scandinavian case-insensitive dictionary ordering with order-by
preference
33- sjisbin : Ordering that matches the binary ordering of the SJIS character
set
34- thaidict : Thai dictionary ordering
35- turdict : Turkish dictionary ordering
36- turknoac : Turkish accent-insensitive dictionary ordering
37- turknocs : Turkish case-insensitive dictionary ordering
38- utf8_nocase : Case insensitive ordering, for use with any utf8-based 8-bit
environment.
39- utf8bin : Ordering for UTF-16 that matches the binary ordering of UTF-8
Default Sort Order:
Enable SAP ASE for SAP ASE Cockpit monitoring
1- No
->2- Yes
Do you want to enable SAP ASE for SAP ASE Cockpit monitoring?:
Technical user (Default: tech_user):
Technical user password:
Confirm technical user password:
Optimize SAP ASE Configuration
->1- No
2- Yes
Do you want to optimize SAP ASE configuration?:
Create sample databases
->1- No
2- Yes
Do you want to create sample databases?: 2
Master Device (Default: /opt/sap/data/master.dat):
Master Device Size (MB) (Default: 65):
Master Database Size (MB) (Default: 26):
System Procedure Device (Default: /opt/sap/data/sysprocs.dat):
System Procedure Device Size (MB) (Default: 196):
System Procedure Database Size (MB) (Default: 196):
System Device (Default: /opt/sap/data/sybsysdb.dat):
System Device Size (MB) (Default: 6):
System Database Size (MB) (Default: 6):
Tempdb Device (Default: /opt/sap/data/tempdbdev.dat):
Tempdb Device Size (MB) (Default: 100):
Tempdb Database Size (MB) (Default: 100):
Enable PCI
->1- No
2- Yes
Do you want to configure PCI/JAVA?:
===============================================================================
Cockpit Host and Ports
----------------------
Enter the host and port numbers for Cockpit.
Host Name (Default: nagetsum.nrt.csb):
HTTP Port: [integer (1025-65535)] (Default: 4282):
HTTPS Port: [integer (1025-65535)] (Default: 4283):
TDS Port: [integer (1025-65535)] (Default: 4998):
RMI Port: [integer (1025-65535)] (Default: 4992):
===============================================================================
Cockpit Users and Passwords
---------------------------
Enter logins and passwords for Cockpit.
Cockpit administrator user (Default: sccadmin):
Cockpit administrator password:
Confirm Cockpit administrator password:
Cockpit agent administrator user (Default: uafadmin):
Cockpit agent administrator password:
Confirm Cockpit agent administrator password:
Cockpit repository password:
Confirm Cockpit repository password:
===============================================================================
New Server Configuration Summary
--------------------------------
SAP ASE
SAP ASE Name NAGETSUM
System Administrator's Password ******
Enable SAP ASE for SAP ASE Cockpit monitoring true
Technical user tech_user
Technical user password ********
Host Name ********
Port Number 5000
Application Type Mixed (OLTP/DSS)
Create sample databases true
Page Size 4k
Error Log
/opt/sap/ASE-16_0/install/NAGETSU
Default Language us_english
Default Character Set utf8
Default Sort Order altdict
Master Device /opt/sap/data/master.dat
Master Device Size (MB) 65
Master Database Size (MB) 26
System Procedure Device /opt/sap/data/sysprocs.dat
System Procedure Device Size (MB) 196
System Procedure Database Size (MB) 196
System Device /opt/sap/data/sybsysdb.dat
System Device Size (MB) 6
System Database Size (MB) 6
Tempdb Device /opt/sap/data/tempdbdev.dat
Tempdb Device Size (MB) 100
Tempdb Database Size (MB) 100
Enable PCI false
Optimize SAP ASE Configuration false
Cockpit
Cockpit HTTP Port 4282
Cockpit HTTPS Port 4283
TDS Port 4998
RMI Port 4992
Cockpit administrator user sccadmin
Cockpit administrator password ********
Cockpit agent administrator user uafadmin
Cockpit agent administrator password ********
Cockpit repository password ********
Do you want to continue? (Default: yes):
===============================================================================
Configure New SAP ASE
---------------------
Warning: You have selected '4k' as the logical page size for the SAP Adaptive
Server Enterprise. If you plan to load dump from another database, make sure
this logical page size matches the size of the source database. The default
logical page size in previous SAP Adaptive Server Enterprise versions was 2KB.
Building SAP Adaptive Server Enterprise 'NAGETSUM':
Writing entry into directory services...
Directory services entry complete.
Building master device...
Master device complete.
Writing RUN_NAGETSUM file...
RUN_NAGETSUM file complete.
Starting server...
Server started.
Set SA password...
SA password is set.
Building sysprocs device and sybsystemprocs database...
sysprocs device and sybsystemprocs database created.
Running installmaster script to install system stored procedures...
installmaster: 10% complete.
installmaster: 20% complete.
installmaster: 30% complete.
installmaster: 40% complete.
installmaster: 50% complete.
installmaster: 60% complete.
installmaster: 70% complete.
installmaster: 80% complete.
installmaster: 90% complete.
installmaster: 100% complete.
installmaster script complete.
Creating two-phase commit database...
Two phase commit database complete.
Extending tempdb database ...
Extending tempdb database complete.
Installing common character sets (Code Page 437, Code Page 850, ISO Latin-1,
Macintosh and HP Roman-8)...
Character sets installed.
Setting server name in SAP Adaptive Server Enterprise...
Server name added.
Enable SAP Adaptive Server Enterprise for Adaptive Server Enterprise Cockpit
monitoring...
Adaptive Server Enterprise is enabled for Adaptive Server Enterprise Cockpit
monitoring.
Setting optimization goal...
Setting optimization goal complete.
Server 'NAGETSUM' was successfully created.
===============================================================================
Set SAP ASE Default Language
----------------------------
Installing character set 'UTF-8' in the SAP Adaptive Server Enterprise...
Character set 'UTF-8' was successfully installed in the SAP Adaptive Server
Enterprise.
Installing character set 'ISO_8859-15:1998' in the SAP Adaptive Server
Enterprise...
Character set 'ISO_8859-15:1998' was successfully installed in the SAP
Adaptive
Server Enterprise.
Installing character set 'roman9' in the SAP Adaptive Server Enterprise...
Character set 'roman9' was successfully installed in the SAP Adaptive Server
Enterprise.
Making 'UTF-8' the SAP Adaptive Server Enterprise's default character set...
Making 'Alternate (lower-case first) dictionary ordering' the SAP Adaptive
Server Enterprise's default sort order...
The SAP Adaptive Server Enterprise's default character set is now 'UTF-8'.
The SAP Adaptive Server Enterprise's default sort order is now 'Alternate
(lower-case first) dictionary ordering'.
Done
===============================================================================
Create sample databases
-----------------------
Creating the "pubs2" database
CREATE DATABASE: allocating 1792 logical pages (7.0 megabytes) on disk
'master'
(1792 logical pages requested).
Database 'pubs2' is now online.
Database option 'trunc log on chkpt' turned ON for database 'pubs2'.
Running CHECKPOINT on database 'pubs2' for option 'trunc log on chkpt' to take
effect.
(return status = 0)
Type added.
(return status = 0)
Type added.
(return status = 0)
New primary key added.
(return status = 0)
New primary key added.
(return status = 0)
New primary key added.
(return status = 0)
New primary key added.
(return status = 0)
New primary key added.
(return status = 0)
New primary key added.
(return status = 0)
New primary key added.
(return status = 0)
New primary key added.
(return status = 0)
New primary key added.
(return status = 0)
New primary key added.
(return status = 0)
New primary key added.
(return status = 0)
New foreign key added.
(return status = 0)
New foreign key added.
(return status = 0)
New foreign key added.
(return status = 0)
New foreign key added.
(return status = 0)
New foreign key added.
(return status = 0)
New foreign key added.
(return status = 0)
New foreign key added.
(return status = 0)
New foreign key added.
(return status = 0)
New foreign key added.
(return status = 0)
New foreign key added.
(return status = 0)
Default bound to column.
(return status = 0)
Default bound to column.
(return status = 0)
Default bound to column.
(return status = 0)
Rule bound to table column.
(return status = 0)
Rule bound to table column.
(return status = 0)
Rule bound to table column.
(return status = 0)
(return status = 0)
===============================================================================
Create sample databases
-----------------------
(1 row affected)
Database option 'select into/bulkcopy/pllsort' turned ON for database 'pubs2'.
Running CHECKPOINT on database 'pubs2' for option 'select
into/bulkcopy/pllsort'
to take effect.
(return status = 0)
(1 row affected)
(1 row affected)
(1 row affected)
(1 row affected)
(1 row affected)
(1 row affected)
(1 row affected)
(1 row affected)
Return parameters:
txts
------------------
0x000000000000252c
(1 row affected)
(1 row affected)
Return parameters:
txts
------------------
0x0000000000002554
(1 row affected)
(1 row affected)
Return parameters:
txts
------------------
0x0000000000002578
(1 row affected)
(1 row affected)
Return parameters:
txts
------------------
0x00000000000025a5
(1 row affected)
(1 row affected)
Return parameters:
txts
------------------
0x00000000000025c3
(1 row affected)
(1 row affected)
Return parameters:
txts
------------------
0x00000000000025fd
Database option 'select into/bulkcopy/pllsort' turned OFF for database
'pubs2'.
Running CHECKPOINT on database 'pubs2' for option 'select
into/bulkcopy/pllsort'
to take effect.
(return status = 0)
The script installpix is complete.
No further action on your part is required.
===============================================================================
Create sample databases
-----------------------
Creating the "pubs3" database
CREATE DATABASE: allocating 1536 logical pages (6.0 megabytes) on disk
'master'
(1536 logical pages requested).
Database 'pubs3' is now online.
Database option 'trunc log on chkpt' turned ON for database 'pubs3'.
Running CHECKPOINT on database 'pubs3' for option 'trunc log on chkpt' to take
effect.
(return status = 0)
Type added.
(return status = 0)
Type added.
(return status = 0)
Default bound to column.
(return status = 0)
Default bound to column.
(return status = 0)
Default bound to column.
(return status = 0)
Rule bound to table column.
(return status = 0)
Rule bound to table column.
(return status = 0)
Rule bound to table column.
(return status = 0)
(return status = 0)
===============================================================================
Installation Completed
----------------------
The installation was successful.
Please check regularly for updates at http://service.sap.com.
PRESS <ENTER> TO EXIT THE INSTALLER:
```
3. Check server "NAGETSUM" which is created in the install process ([X] 1 - Configure new SAP ASE ) is started via showserver command
```
$ /opt/sap/ASE-16_0/install/showserver
F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD
0 S nagetsum 3110 3109 7 80 0 - 167435 futex_ 13:39 ? 00:00:43 /opt/sap/ASE-16_0/bin/dataserver -sNAGETSUM -d/opt/sap/data/master.dat -e/opt/sap/ASE-16_0/install/NAGETSUM.log -c/opt/sap/ASE-16_0/NAGETSUM.cfg -M/opt/sap/ASE-16_0 -N/opt/sap/ASE-16_0/sysam/NAGETSUM.properties -i/opt/sap
```
4. Check pubs2 database which is created in the install process
```
$ /opt/sap/OCS-16_0/bin/isql64 -S NAGETSUM -U sa -P nagetsum
1> sp_helpdb
2> go
name db_size owner dbid created durability lobcomplvl
inrowlen
status
-------------- ------------- ----- ----- ------------ ----------- ----------
--------
-----------------------------------------------------------------------------------------
master 26.0 MB sa 1 Mar 30, 2020 full 0
NULL
mixed log and data
model 6.0 MB sa 3 Mar 30, 2020 full 0
NULL
mixed log and data
pubs2 7.0 MB sa 4 Mar 30, 2020 full 0
NULL
trunc log on chkpt, mixed log and data
pubs3 6.0 MB sa 5 Mar 30, 2020 full 0
NULL
trunc log on chkpt, mixed log and data
sybsystemdb 12.0 MB sa 31513 Mar 30, 2020 full 0
NULL
mixed log and data
sybsystemprocs 196.0 MB sa 31514 Mar 30, 2020 full 0
NULL
trunc log on chkpt, mixed log and data
tempdb 106.0 MB sa 2 Mar 30, 2020 no_recovery 0
NULL
select into/bulkcopy/pllsort, trunc log on chkpt, mixed log and data, a
llow wide dol rows
(1 row affected)
(return status = 0)
1> use pubs2
2> go
1> sp_help
2> go
Name Owner Object_type
----------------------- ----- ----------------
sysquerymetrics dbo view
titleview dbo view
au_pix dbo user table
authors dbo user table
blurbs dbo user table
discounts dbo user table
publishers dbo user table
roysched dbo user table
sales dbo user table
salesdetail dbo user table
stores dbo user table
titleauthor dbo user table
titles dbo user table
...
1> sp_help sales
2> go
Name Owner Object_type Object_status Create_date
----- ----- ----------- ------------- -------------------
sales dbo user table -- none -- Mar 30 2020 1:40PM
(1 row affected)
Column_name Type Length Prec Scale Nulls Not_compressed Default_name
Rule_name Access_Rule_name Computed_Column_object Identity
----------- -------- ------ ---- ----- ----- -------------- ------------
--------- ---------------- ---------------------- ----------
stor_id char 4 NULL NULL 0 0 NULL
NULL NULL NULL 0
ord_num varchar 20 NULL NULL 0 0 NULL
NULL NULL NULL 0
date datetime 8 NULL NULL 0 0 NULL
NULL NULL NULL 0
Object has the following indexes
```
JDBC driver location is `/opt/sap/jConnect-16_0/classes/jconn4.jar`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment