Created
August 21, 2019 01:27
-
-
Save surjikal/efade21dfbe7e66684fd303d657db29f to your computer and use it in GitHub Desktop.
[Copy database SAP Hana] SQL command to create a copy database in SAP Hana #Hana
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Default B1_SHF folder: /usr/sap/SAPBusinessOne/B1_SHF | |
-- Create a new backup | |
EXPORT "SBODEMOIE"."*" AS BINARY INTO '/usr/sap/NDB/HDB00/backup/data' WITH REPLACE THREADS 10; | |
-- Duplicate a database (but you need to create a backup before) | |
import "SBODEMOIE"."*" as binary from '/usr/sap/NDB/HDB00/backup/data' with ignore existing threads 10 rename schema "SBODEMOIE" to "DEMODB_1"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment