Hi...
I am trying to perform an export-import of a HANA DB user instance at schema level including all objects (in my case tables and synonyms) and data.
Export and Import works very well except importing a schema which contains a synonym referred to other existing schema .
Here is a test case
- Schema A with a Table and Schema B to contain a synonym for schema A's table.
- Exported both schemas to CSV which is done successfully and everything looked ok in export location.
- Imported Schema A and then Schema B with the following command.
Command:
IMPORT "<bkup_schema>"."*" FROM '<bkp_location>' WITH RENAME SCHEMA <bkup_schema> TO <brand_new_schema>;
The schema A (with table) imported fine. Schema B (with synonym) gives the below error :
"SAP DBTech JDBC: [2048]: column store error: table import failed: [2003] An index already exists with the same name "
When trying to use "REPLACE" clause in the command the error changes as below:
SAP DBTech JDBC: [2048]: column store error: table import failed: [30117] Binary import failed (cannot execute drop statement)
Has anybody faced this type of error before??