安装SAP NetWeaver AS ABAP开发者版7.52 SP04时遇数据库目录未找到错误
问题场景
在VirtualBox中基于openSUSE系统安装SAP NetWeaver AS ABAP Developer Edition 7.52 SP04时,触发报错:Assertion failed: Unable to find database home folder,相关安装日志如下:
ERROR 2024-04-18 19:07:50.256 (root/sapinst) (startInstallation) [CInstallerCallBackImpl.cpp:259] id=ind-rel.ind-os.ind-db.assertionFailed errno=CJS-00030 CInstallerCallBackImpl::abortInstallation()
Assertion failed: Unable to find database home folder.
ERROR 2024-04-18 19:07:50.257 (root/sapinst) (startInstallation) [iaxxbjsmod.cpp:83] id=modlib.jslib.caughtException errno=MUT-03025
Caught ESAPinstException in module call: Assertion failed: Unable to find database home folder..
ERROR 2024-04-18 19:07:50.404 (root/sapinst) (startInstallation) [CSiStepExecute.cpp:1104] id=controller.stepExecuted errno=FCO-00011 CSiStepExecute::execute()
The step syb_dialog_check_sw_folder with step key |offlineadjustment_dialogs|ind|ind|ind|ind|0|0|offlineadjustment_db_post|ind|ind|ind|ind|db_post|0|syb_rename_db_post_dia|ind|ind|ind|ind|syb|0|NW_SYB_DB_REN|ind|ind|ind|ind|syb2|0|syb_dialog_check_sw_folder was executed with status ERROR (Last error reported by the step: Assertion failed: Unable to find database home folder).
解决思路
检查Sybase ASE数据库路径配置
该报错针对Sybase ASE数据库,安装程序无法识别数据库主目录。确认安装介质中Sybase相关文件夹路径是否正确,安装向导中指定的数据库主文件夹需指向解压后SAP安装包内的DB目录(通常为NW_ABAP_752_SP04_xxx/DB)。验证文件权限
以root用户运行安装程序时,执行chmod -R 755 /path/to/sap-install-media赋予安装介质所在目录及所有子目录可读可执行权限,避免因权限不足导致安装程序无法读取数据库目录。补充openSUSE系统依赖
确认openSUSE已安装Sybase ASE所需依赖包,比如libaio1、libncurses5等,可通过zypper install libaio1 ncurses命令补充安装,部分系统可能需要启用额外软件源。核对VirtualBox虚拟机配置
若使用共享文件夹存放安装介质,需确保挂载正常,路径无中文或特殊字符,安装程序能正常访问共享目录内的文件;同时虚拟机内存建议分配至少8GB,避免资源不足导致安装程序异常。重新解压安装介质
若安装介质解压过程中出现文件损坏或缺失,会导致目录识别失败。删除现有解压目录,用unzip或7z等工具完整重新解压SAP安装包,确保所有文件和目录正确生成。
内容的提问来源于stack exchange,提问作者Cevz

