Để làm quen với NetWeaver Application Server và ngôn ngữ ABAP, ta có thể download SAP NetWeaver AS ABAP Developer Edition về cài đặt trên máy ảo để sử dụng. Bài viết này sẽ hướng dẫn các bạn cài đặt phiên bản mới nhất hiện tại (SAP NetWeaver AS ABAP Developer Edition 7.52 SP01).
* Chuẩn bị phần cứng (hardware)
Bản NetWeaver Developer Edition này có thể chạy trên máy ảo VirtualBox hoặc VMware. Cấu hình tối thiểu cần thiết:
- 4 CPU
- 4 GB RAM
- 8GB Swap (2x RAM)
- 100GB HDD
- OS: Suse Linux Enterprise (SLES), openSUSE, Redhat, Ubuntu…
Ở đây mình sử dụng máy ảo VMware, 4 CPU, 6GB RAM, 20GB Swap, 100GB HDD, hệ điều hành SLES 12 SP3.
SUSE Linux cài đặt bằng tính năng Easy Install của VMware luôn cho nhanh (mount disk iso vào là VMware tự cài).
Sau khi cài đặt OS, cần cài đặt và cấu hình thêm 1 số thứ.
- Cài thêm uuidd (bằng YaST hoặc dòng lệnh)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
vhcalnplci:/soft # zypper in uuidd vhcalnplci:/soft # vhcalnplci:/soft # systemctl start uuidd vhcalnplci:/soft # vhcalnplci:/soft # systemctl status uuidd ◠uuidd.service - Daemon for generating UUIDs Loaded: loaded (/usr/lib/systemd/system/uuidd.service; indirect; vendor preset: disabled) Active: active (running) since Thu 2019-08-22 07:10:43 EDT; 3s ago Main PID: 4265 (uuidd) Tasks: 1 (limit: 512) CGroup: /system.slice/uuidd.service └─4265 /usr/sbin/uuidd --socket-activation Aug 22 07:10:43 vhcalnplci systemd[1]: Started Daemon for generating UUIDs |
- Cấu hình file hosts
Hostname nên để là vhcalnplci (theo recommend của SAP)
1 2 3 4 5 6 |
vhcalnplci:/soft # cat /etc/hosts 127.0.0.1 localhost loopback 192.168.175.128 vhcalnplci vhcalnplci.dummy.nodomain vhcalnplci:/soft # cat /etc/hostname vhcalnplci |
- Cài thêm package libaio1 nếu chưa có, kiểm tra lại
1 2 3 4 5 6 7 8 9 10 11 |
vhcalnplci:/soft # zypper se *libaio* Loading repository data... Reading installed packages... S | Name | Summary | Type --+---------------+------------------------------------------------------------+----------- | libaio | Linux-Native Asynchronous I/O Access Library | srcpackage i | libaio-devel | Development Files for Linux-native Asynchronous I/O Access | package i | libaio1 | Linux-Native Asynchronous I/O Access Library | package | libaio1-32bit | Linux-Native Asynchronous I/O Access Library | package |
* Chuẩn bị phần mềm (software)
Download SAP NetWeaver AS ABAP Developer Edition 7.52 SP01 (10 part) và Sybase ASE Demo license:
- Link: https://developers.sap.com/trials-downloads.html
- Keyword search 1: NetWeaver AS ABAP Developer Edition 7.52 SP01
- Keyword search 2: ASE Demo License
Chép các file download vào thư mục /soft trong máy ảo, hoặc có thể mount shared folder vào máy ảo cũng được.
Giải nén các file mới download được
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
vhcalnplci:/soft # unrar x TD752SP01.part01.rar UNRAR 5.01 freeware Copyright (c) 1993-2013 Alexander Roshal Extracting from TD752SP01.part01.rar Extracting readme.html OK Creating server OK Creating server/TAR OK Creating server/TAR/x86_64 OK Extracting server/TAR/x86_64/sapinst.txt OK Creating img OK Extracting img/sapstyle.css OK Extracting server/TAR/x86_64/SAP_Software_Appliance.xml OK Extracting SAP_COMMUNITY_DEVELOPER_License OK Extracting img/Thumbs.db OK Extracting server/TAR/x86_64/SYBASE_ASE_TD.lic OK Extracting server/TAR/x86_64/SAPHOSTAGENT37_37-20009394.SAR OK Extracting server/TAR/x86_64/SWPM10SP23_5-20009701.SAR OK Extracting install.sh OK Extracting server/TAR/x86_64/dbdata.tgz-aa 10% Extracting from TD752SP01.part02.rar ... server/TAR/x86_64/dbdata.tgz-aa OK Extracting server/TAR/x86_64/dbexe.tgz-aa 20% Extracting from TD752SP01.part03.rar ... Extracting from TD752SP01.part10.rar ... server/TAR/x86_64/dbdata.tgz-ae OK Extracting img/blank.gif OK Extracting img/cd_n702.gif OK Extracting img/sap_logo.gif OK Extracting img/slogan.gif OK Extracting img/spacer.gif OK Extracting img/technology_4.jpg OK Extracting img/top_nav.jpg OK Extracting install.rar OK Creating client OK Creating client/SAPGUI4Windows OK Extracting client/SAPGUI4Windows/50144807_6.ZIP OK Creating client/JavaGUI OK Extracting client/JavaGUI/50144807_7.ZIP OK Extracting client/JavaGUI/PlatinManual_12-20012039.zip OK All OK |
1 2 3 4 5 6 7 8 9 10 |
vhcalnplci:/soft # unrar x ASE_Demo_License_2020_03_Mar_31.rar UNRAR 5.01 freeware Copyright (c) 1993-2013 Alexander Roshal Extracting from ASE_Demo_License_2020_03_Mar_31.rar Extracting ASE license procedure_v3.docx OK Extracting SYBASE_ASE_TD.lic OK All OK |
Kết quả
1 2 3 4 5 6 7 8 9 10 11 |
vhcalnplci:/soft # ls -l total 180 -rw-r--r-- 1 root root 80755 Jan 29 2019 ASE license procedure_v3.docx -rw-r--r-- 1 root root 36270 Sep 9 2016 SAP_COMMUNITY_DEVELOPER_License -rw-r--r-- 1 root root 1001 Oct 18 2018 SYBASE_ASE_TD.lic drwxr-xr-x 1 root root 42 Jul 18 2018 client drwxr-xr-x 1 root root 200 Jul 18 2018 img -rw-r--r-- 1 root root 8942 Aug 23 2018 install.rar -rw-r--r-- 1 root root 31435 Aug 22 2018 install.sh -rw-r--r-- 1 root root 12662 Aug 24 2018 readme.html drwxr-xr-x 1 root root 6 Jul 18 2018 server |
Sửa quyền trên file install.sh
1 |
vhcalnplci:/soft # chmod +x install.sh |
* Cài đặt bằng dòng lệnh
1 |
vhcalnplci:/soft # ./install.sh |
Đồng ý với license term
1 2 |
Do you agree to the above license terms? yes/no: yes |
Nhập password master để tiến hành cài đặt. SAP sẽ cài đặt và start NetWeaver tự động
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
Now we need the passwords for the OS users. Please enter a password which will be used for all operating system users. Please enter a password: sapdev_4U Please re-enter password for verification: sapdev_4U Now we begin with the installation. Be patient, this will take a while ... extracting data archives... extracting /soft/server/TAR/x86_64/dbdata.tgz-* sybase/NPL/sapdata_1/ sybase/NPL/sapdata_1/NPL_data_001.dat ....... Configure profiles for 4GB physical memory Profile /sapmnt/NPL/profile/NPL_D00_vhcalnplci: changing PHYS_MEMSIZE from 30% to 2048 Profile /sapmnt/NPL/profile/NPL_D00_vhcalnplci: changing abap/shared_objects_size_MB from 1024 to 386 Configuring strong TLS according to SAP Note 510007 Profile /sapmnt/NPL/profile/DEFAULT.PFL: adding ssl/ciphersuites = 135:PFS:HIGH::EC_P256:EC_HIGH Profile /sapmnt/NPL/profile/DEFAULT.PFL: adding ssl/client_ciphersuites = 150:PFS:HIGH::EC_P256:EC_HIGH Checking syb Database Database is running ------------------------------------------- Starting Startup Agent sapstartsrv OK Instance Service on host vhcalnplci started ------------------------------------------- starting SAP Instance ASCS01 Startup-Log is written to /home/npladm/startsap_ASCS01.log ------------------------------------------- /usr/sap/NPL/ASCS01/exe/sapcontrol -prot NI_HTTP -nr 01 -function Start Instance on host vhcalnplci started Starting Startup Agent sapstartsrv OK Instance Service on host vhcalnplci started ------------------------------------------- starting SAP Instance D00 Startup-Log is written to /home/npladm/startsap_D00.log ------------------------------------------- /usr/sap/NPL/D00/exe/sapcontrol -prot NI_HTTP -nr 00 -function Start Instance on host vhcalnplci started Installation of NPL successful |
* Kiểm tra và cập nhật license
- Sau khi cài đặt, SAP tự động tạo cho ta các user sau đây trên OS:
Username | Password | Description |
sapadm | master password | Created by SAP hostagent |
npladm | master password | SAP System Administrator |
sybnpl | master password | SAP Database Administrator |
User database
Username | Password | Description |
SAPSR3 | master password | SAP Schema User |
sa | master password | Superuser |
sapsa | master password | Superuser |
sapsso | master password | Superuser |
User trong client 000
Username | Password | Description |
DDIC | Down1oad | Data Dictionary User |
SAP* | Down1oad | SAP Administrator |
Ngoài ra, còn tạo sẵn 2 user dành cho việc phát triển ứng dụng là DEVELOPER và BWDEVELOPER trong client 001 (Password: Down1oad)
- Kiểm tra SAP Netweaver đã start bằng 2 lệnh dưới đây
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
vhcalnplci:/soft # su - npladm vhcalnplci:npladm 3> sapcontrol -nr 01 -function GetProcessList 26.08.2019 10:46:49 GetProcessList OK name, description, dispstatus, textstatus, starttime, elapsedtime, pid msg_server, MessageServer, GREEN, Running, 2019 08 26 10:45:27, 0:01:22, 23677 enserver, EnqueueServer, GREEN, Running, 2019 08 26 10:45:27, 0:01:22, 23678 vhcalnplci:npladm 4> sapcontrol -nr 00 -function GetProcessList 26.08.2019 10:47:14 GetProcessList OK name, description, dispstatus, textstatus, starttime, elapsedtime, pid disp+work, Dispatcher, GREEN, Running, 2019 08 26 10:46:19, 0:00:55, 29572 igswd_mt, IGS Watchdog, GREEN, Running, 2019 08 26 10:46:19, 0:00:55, 29573 gwrd, Gateway, GREEN, Running, 2019 08 26 10:46:40, 0:00:34, 29805 icman, ICM, GREEN, Running, 2019 08 26 10:46:40, 0:00:34, 29806 |
=> tất cả đều GREEN là ok
- Kiểm tra license Sybase ASE
1 2 3 |
vhcalnplci /sybase/NPL% isql64 -SNPL -Usapsa -Psapdev_4U -X 1> exec sp_lmconfig 2> go |
Ta thấy có dòng ASE_CORE 2020.1231 4 OK Permanent null => OK
- Cập nhật License SAP DEVELOPER
Cài đặt SAP GUI trên máy client và tạo connection đến hệ thống trên máy ảo với các tham số:
-
- Application server: IP máy ảo
- Instance number: 00
- System ID: NPL
Đăng nhập vào client 000 với user SAP*

Đăng nhập vào hệ thống

Vào SLICENSE lấy hardware key
Vào https://go.support.sap.com/minisap/#/minisap để lấy license Demo theo các bước sau

Chọn NPL – SAP NetWeaver 7.x (Sybase ASE)

Điền thông tin cá nhân

Agree with License
Sau đó chọn Generate để download được về 1 file license tên là NPL.txt. Trong SLICENSE, chọn Install -> chọn file NPL.txt để cài đặt

Hệ thống trở thành DEMOSYSTEM sau khi cài đặt license
Như vậy là ta đã cài đặt thành công SAP NetWeaver AS ABAP Developer Edition 7.52 SP01. Các component cài đặt bao gồm

System status

Installed Software Component

Installed Product Version
* Cài đặt bằng giao diện đồ họa
Việc cài đặt bằng darkmode như trên nhanh chóng và đơn giản hơn. Tuy nhiên nếu muốn sử dụng giao diện đồ hoạ để tuỳ chỉnh cài đặt, ta thêm option -g vào
1 |
vhcalnplci:/soft # ./install.sh -g |
Sau khi giải nén, SAP yêu cầu mở giao diện cài đặt bằng browser:
********************************************************************************
Open your browser and paste the following URL address to access the GUI
https://vhcalnplci:4237/sapinst/docs/index.html
Logon users: [root]
********************************************************************************
Từ đây ta có thể cài đặt bình thường. Sau khi cài đặt xong ta cũng vào kiểm tra và cập nhật license như trên để có được hệ thống SAP NetWeaver AS ABAP Developer Edition 7.52 SP01 sẵn sàng sử dụng.
Leave a Reply