SAP HANA2.0数据库升级实录
SAP HANA数据库系统有点老,需要升级。查看SAP的note,升级还不是光升级HANA就可以,操作系统也需要升级。
1.当前系统状况
1.1 操作系统
hdbbwp:~ # cat /etc/os-release
NAME="SLES"
VERSION="12-SP3"
VERSION_ID="12.3"
PRETTY_NAME="SUSE Linux Enterprise Server 12 SP3"
ID="sles"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles_sap:12:sp3"
1.2 HANA数据库
HANA数据库版本2.00.037.00.1552531011 (fa/hana2sp03)
计划升级HANA sp3到SP7,因为SP7需要SUSE操作系统版本12SP5以上,所以需要先升级SUSE12到SP5,然后再更新数据库。
2.先连接SUE操作系统更新库
hdbbwp:~ # zypper update
Loading repository data...
Reading installed packages...
虽然是云服务器,但是太老了,已EOF,这个简便方式不行了,需要使用另外的方式。
hdbbwp:~ # cd /tmp
hdbbwp:/tmp # wget --no-check-certificate https://52.15.49.139/late_instance_offline_update_ec2_x86_64_SLE12.tar.gz
Connecting to 52.15.49.139:443... connected.
Saving to: ‘late_instance_offline_update_ec2_x86_64_SLE12.tar.gz’
100%[====================================================================================================================================================================================================================================>] 13,809,828 5.57MB/s in 2.4s
2025-02-28 10:34:11 (5.57 MB/s) - ‘late_instance_offline_update_ec2_x86_64_SLE12.tar.gz’ saved [13809828/13809828]
hdbbwp:/tmp # tar -xf late_instance_offline_update_ec2_x86_64_SLE12.tar.gz
hdbbwp:/tmp # cd x86_64
hdbbwp:/tmp/x86_64 # zypper --no-refresh --no-remote --non-interactive in *.rpm
Loading repository data...
Reading installed packages...
The selected package 'libxslt1-1.1.28-6.57.x86_64' from repository 'Plain RPM files cache' has lower version than the installed one. Use 'zypper install --oldpackage libxslt1-1.1.28-6.57.x86_64' to force installation of the package.
'python3-M2Crypto = 0:0.29.0-23.3.5' is already installed.
No update candidate for 'python3-M2Crypto-0.29.0-23.3.5.x86_64'. The highest available version is already installed.
The selected package 'python3-base-3.4.6-24.1.x86_64' from repository 'Plain RPM files cache' has lower version than the installed one. Use 'zypper install --oldpackage python3-base-3.4.6-24.1.x86_64' to force installation of the package.
The selected package 'python3-cssselect-0.8-3.2.1.noarch' from repository 'Plain RPM files cache' has lower version than the installed one. Use 'zypper install --oldpackage python3-cssselect-0.8-3.2.1.noarch' to force installation of the package.
The selected package 'python3-lxml-3.3.5-3.4.1.x86_64' from repository 'Plain RPM files cache' has lower version than the installed one. Use 'zypper install --oldpackage python3-lxml-3.3.5-3.4.1.x86_64' to force installation of the package.
The selected package 'python3-typing-3.6.4-1.3.1.noarch' from repository 'Plain RPM files cache' has lower version than the installed one. Use 'zypper install --oldpackage python3-typing-3.6.4-1.3.1.noarch' to force installation of the package.
The selected package 'python3-zypp-plugin-0.6.3-3.3.1.noarch' from repository 'Plain RPM files cache' has lower version than the installed one. Use 'zypper install --oldpackage python3-zypp-plugin-0.6.3-3.3.1.noarch' to force installation of the package.
The selected package 'python3-3.4.6-24.1.x86_64' from repository 'Plain RPM files cache' has lower version than the installed one. Use 'zypper install --oldpackage python3-3.4.6-24.1.x86_64' to force installation of the package.
Resolving package dependencies...
The following 18 NEW packages are going to be installed:
cloud-regionsrv-client-plugin-ec2 python3-PySocks python3-asn1crypto python3-certifi python3-cffi python3-chardet python3-cryptography python3-idna python3-packaging python3-pip python3-pyOpenSSL python3-pyasn1 python3-pycparser python3-pyparsing python3-setuptools
python3-six python3-urllib3 regionServiceClientConfigEC2
The following package is going to be REMOVED:
regionServiceClientConfigSAPEC2
The following 5 packages are going to be upgraded:
cloud-regionsrv-client libopenssl1_0_0 libpython3_4m1_0 python3-py python3-requests
The following 4 recommended packages were automatically selected:
cloud-regionsrv-client-plugin-ec2 python3-cryptography python3-idna python3-pyOpenSSL
The following 23 packages have no support information from their vendor:
cloud-regionsrv-client cloud-regionsrv-client-plugin-ec2 libopenssl1_0_0 libpython3_4m1_0 python3-PySocks python3-asn1crypto python3-certifi python3-cffi python3-chardet python3-cryptography python3-idna python3-packaging python3-pip python3-py python3-pyOpenSSL
python3-pyasn1 python3-pycparser python3-pyparsing python3-requests python3-setuptools python3-six python3-urllib3 regionServiceClientConfigEC2
5 packages to upgrade, 18 new, 1 to remove.
Overall download size: 6.2 MiB. Already cached: 0 B. After the operation, additional 23.3 MiB will be used.
Continue? [y/n/...? shows all options] (y): y
Retrieving package libopenssl1_0_0-1.0.2p-2.11.x86_64 (1/23), 1.1 MiB ( 2.9 MiB unpacked)
Retrieving package libpython3_4m1_0-3.4.10-25.45.1.x86_64 (2/23), 788.5 KiB ( 2.3 MiB unpacked)
Retrieving package python3-PySocks-1.6.8-3.3.1.noarch (3/23), 23.5 KiB ( 92.3 KiB unpacked)
Retrieving package python3-asn1crypto-0.24.0-2.5.1.noarch (4/23), 173.2 KiB ( 1.3 MiB unpacked)
Retrieving package python3-certifi-2018.4.16-3.3.1.noarch (5/23), 10.9 KiB ( 8.3 KiB unpacked)
Retrieving package python3-chardet-3.0.4-5.3.2.noarch (6/23), 165.5 KiB ( 1.1 MiB unpacked)
Retrieving package python3-idna-2.5-3.10.2.noarch (7/23), 82.9 KiB (786.0 KiB unpacked)
Retrieving package python3-py-1.5.2-8.8.2.noarch (8/23), 169.8 KiB (791.7 KiB unpacked)
Retrieving package python3-pyasn1-0.1.9-4.6.1.noarch (9/23), 107.7 KiB (583.9 KiB unpacked)
Retrieving package python3-pycparser-2.10-5.3.1.noarch (10/23), 164.5 KiB ( 1.1 MiB unpacked)
Retrieving package python3-pyparsing-2.2.0-3.3.1.noarch (11/23), 155.0 KiB (746.4 KiB unpacked)
Retrieving package python3-setuptools-18.0.1-4.3.1.noarch (12/23), 291.1 KiB ( 1.4 MiB unpacked)
Retrieving package python3-six-1.11.0-9.21.2.noarch (13/23), 30.9 KiB ( 94.7 KiB unpacked)
Retrieving package python3-cffi-1.11.2-2.19.2.x86_64 (14/23), 231.6 KiB ( 1.0 MiB unpacked)
Retrieving package python3-pip-10.0.1-11.6.1.noarch