Symptom
After downloading the SAP Business One demo databases from the SAP Help Portal, you need to manually import or restore the databases into SAP Business One.
Solution
- Deploy Demo Databases in SAP Business One, version for SAP HANA
Prerequisites:
-
- You have installed SAP Business One, version for SAP HANA with the required versions. For more information about required SAP Business One versions, see https://help.sap.com/doc/1660bf9ea40a46e1916736665d024dc6/10.0/en-US/B1_Demo_Databases_Overview.pdf.
- You have installed SAP HANA with the required SAP HANA revision. For more information about required SAP HANA revisions, see SAP Note 2826199.
- You have installed SAP HANA Studio.
- You have downloaded the demo databases as *.zip files from the SAP Help Portal at https://help.sap.com/doc/1660bf9ea40a46e1916736665d024dc6/10.0/en-US/B1_Demo_Databases_Overview.pdf and copy the files to the Linux machine on which SAP HANA server is installed.
- On the Linux server, you have extracted the zip files to a directory.
- You have installed SAP Business One, version for SAP HANA with the required versions. For more information about required SAP Business One versions, see https://help.sap.com/doc/1660bf9ea40a46e1916736665d024dc6/10.0/en-US/B1_Demo_Databases_Overview.pdf.
Note: Make ensure that the directory permission for Other is at lease Read and Execute (for example, the octal value is 755).
You can set the directory permission by running the following command:
chmod -R 755 / <Directory Path>
Procedure:
-
- Open SAP HANA Studio and connect to the SAP HANA database server. Ensure that the user name used in SAP HANA Studio is the same one used for the SAP Business One Server installation.
- Check if the schema SBOCOMMON is available in the Catalog. Otherwise, in the System list, right-click a blank space and choose Add System with Different User….
- If the Catalog of the selected SAP HANA database user contains the SBOCOMMON schema, open the SQL console.
- Run the following query to import a demo database:
Import “<Demo Database Name>”.”*” as binary from ‘<Directory of the Extracted Demo Database>’ with ignore existing
Alternatively, you can also rename the database during the importing by using the following query:
Import “<Demo Database Name>”.”*” as binary from ‘<Directory of the Extracted Demo Database>’ with ignore existing
rename SCHEMA “<Demo Database Name >” to “<Demo Database New Name >
- Deploy Demo Databases in SAP Business One Running on Microsoft MS SQL Server
Prerequisites:
-
- You have installed SAP Business One with the required versions. For more information about required SAP Business One versions, see https://help.sap.com/doc/1660bf9ea40a46e1916736665d024dc6/10.0/en-US/B1_Demo_Databases_Overview.pdf.
- You have installed Microsoft SQL with a required revision. For more information about required MS SQL revisions, see SAP Note 928839.
- You have installed Microsoft SQL Management Studio.
- You have downloaded the demo databases as *.zip files from the SAP Help Portal at https://help.sap.com/doc/1660bf9ea40a46e1916736665d024dc6/10.0/en-US/B1_Demo_Databases_Overview.pdf and stored them in a local folder.
- On your PC, you have extracted the *.zip file.
Procedure:
-
- To enable the system to restore the database, close SAP Business One.
- To open SQL Server Management Studio, in Windows, choose Start → All Programs → Microsoft SQL Server <Version> → SQL Server Management Studio.
- Create a new database as follows:
- Right-click the Databases folder and choose Tasks → Restore → Database. The Restore Database window appears.
- Specify a name for your new database (the name of your company in SAP Business One).
- Right-click the new database and choose Tasks → Restore → Database.
- Select the Restore: From Device option and choose Browse.
- In the Specify Backup window, choose Add.
- In the Locate Backup File window, locate and select the file containing the demo database. Choose OK.
- In the Specify Backup window that opens, locate and select the file containing your last full backup. Choose OK.
- In the Restore Database window, select the required back sets and on the Options tab make the following settings:
- Select the Overwrite the existing database checkbox.
- Under the Restore As column, change the path, if necessary, for example, if you are restoring the database on a different server where the path name does not exist.
- In the Recovery completion state area, select the Leave database non-operational but able to restore additional transaction logs option. Choose OK. The system starts restoring the database.
- Wait for the following message:Restore of Database <sid> completed successfully.