SAP Business One Control Center — Backup/Export Failure
Error:
/usr/sap/SAPBusinessOne/ServerTools/Backup/bin/BackupUtility: error while
loading shared libraries: libodbcHDB.so: cannot open shared object file: No
such file or directory
1) Confirm the symptom from Control Center
- In Control
Center/SLD → DB Instances and Companies, click Show Export Log for the
affected company.
- You’ll
see entries similar to:
- run_backup.sh(...)
... BackupUtility check_open_sessions ...
- BackupUtility:
error while loading shared libraries: libodbcHDB.so: cannot open shared object
file
Meaning: The Backup Utility cannot find the SAP HANA ODBC
library (libodbcHDB.so). Without this library, schema Export/Import/Backup
operations fail.
2) Diagnose on the Linux server
- Log in
to the B1 Server Tools host (root or sudo).
- Locate
the library:
- find /
-name "libodbcHDB.so" 2>/dev/null
- Expected
default location: /usr/sap/hdbclient/libodbcHDB.so.
- If the
file is found but the error persists, skip to Step 3A.
- If the
file is NOT found, install the HANA Client as in Step 3B.
3) Remediate
3A) Library exists → add it to the runtime path
Add the HANA client directory to the loader path so BackupUtility
can find it.
Option 1 (system-wide, preferred):
echo "/usr/sap/hdbclient" >
/etc/ld.so.conf.d/hdbclient.conf
ldconfig
3B) Library missing → install SAP HANA Client
- Obtain
the SAP HANA Client package for your platform (IMDB_CLIENT…SAR or the
extracted HDB_CLIENT_LINUX_X86_64 kit).
- Extract
if needed and run the installer:
- #
example if you have hdbinst
- ./hdbinst
--path=/usr/sap/hdbclient
- Verify:
- ls -l
/usr/sap/hdbclient/libodbcHDB.so
Installing to /usr/sap/hdbclient keeps B1 defaults happy. If
you choose a different path, use Step 3A to register it.
4) Ensure backup target path exists and is writable
Control Center writes to:
/hana/shared/backup_service/backups
Check and fix permissions if required:
mkdir -p /hana/shared/backup_service/backups
chown <sid>adm:sapsys
/hana/shared/backup_service/backups
chmod 775 /hana/shared/backup_service/backups
5) Restart services
systemctl restart b1servertools # or: service b1servertools restart
(Optional) If HANA client path changes were
broad/system-wide, also restart the HANA instance window if required for your
environment.
From Control Center
- Re-run
Export Schema for the company.
- Open Show
Export Log. A healthy run shows lines like:
Now you will showing the log files backup and check on this location
backup will be successfully exported/imported.

0 Comments:
Post a Comment
pawarsolution