Fixed SAP Business One Control Center | Export Backup Failure

 

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

  1. In Control Center/SLD → DB Instances and Companies, click Show Export Log for the affected company.
  2. You’ll see entries similar to:
  3. run_backup.sh(...) ... BackupUtility check_open_sessions ...
  4. 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

  1. Log in to the B1 Server Tools host (root or sudo).
  2. Locate the library:
  3. 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

  1. Obtain the SAP HANA Client package for your platform (IMDB_CLIENT…SAR or the extracted HDB_CLIENT_LINUX_X86_64 kit).
  2. Extract if needed and run the installer:
  3. # example if you have hdbinst
  4. ./hdbinst --path=/usr/sap/hdbclient
  5. Verify:
  6. 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

  1. Re-run Export Schema for the company.
  2. 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.


Share on Google Plus

About Pawar Live Study

Search Your Query in Search Box.

0 Comments:

Post a Comment

pawarsolution