on 04-28-2014 11:42 AM
Hello,
We have a client who is working with SAP BusinessOne version for HANA, with HANA PLATFORM rev. 69 and I need to export your database and import it to our development server .
To backup/restore the database I have performed the following steps :
1 - I have made the export of a ' SCHEMA ' with "EXPORT "SBOXXX_ES"."*" AS BINARY INTO '/tmp/SBOXXX_ES' WITH REPLACE THREADS 10;".
2 - I have compressed files in Linux using the command : tar- czvf .....
3 - I've Unzipped the files to our local server.
4 - Performing the ' IMPORT ' command gives me the following errors,I tried two ways to import :
4.1 - IMPORT "SBOGXXX_ES"."*" as binary from '/tmp/SBOXXX_ES' with replace threads 10 rename schema "SBOXXX_ES" to "SBOXXX_ES_2";
Error mesage: SAP DBTech JDBC: [2]: general error: [Other schema]._SYS_SS_CE_1957622_RET not found in the import directory.
4.2 - IMPORT "SBOXXX_ES"."*" as binary from '/tmp/SBOXXX_ES'
with replace threads 10 NO DEPENDENCIES
rename schema "SBOXXX_ES" to "SBOXXX_ES_2";
Error mesage: SAP DBTech JDBC: [2048]: column store error: table import failed: [30111] Binary import failed (could not execute create statement);invalid column view: ODLN: line 7 col 45 (at pos 506) at ptime/query/checker/check_cube.cc:259
I guess when you export the " SCHEMA " exported la la " DEPENDENCIES ON" option and these are generating the first error when importing .
If the error is of the DEPENDENCIES, in which DEPENDENCIES are stored files to edit , and remove all that is giving the error (SYS_SS_CE_1957622_RET ) .
Thank you very much for your support .
Adria.
After time researching these errors with people supporting SAP B1, share the sentences to correct some of the errors with import schema backups, these errors are occurring in version HANA PLATFORM SP06 Rev. 69.
1) Error mesage: "SAP DBTech JDBC: [2]: general error: [Other schema] _SYS_SS_CE_1957622_RET not found in the import directory..."
--SOLUCTION execute linux comands
find <export_dir> -name "create.sql"-print | xargs grep "_SYS_SS_CE_"
find <export_dir> -name "create.info" -print | xargs sed -i '/_SYS_SS_CE_/d'
find <export_dir> -name "create.info" -print | xargs grep "_SYS_SS_CE_"
2) Error message: "[30151] Object not found in the import directory;object=SCHEMA_NAME"
--SOLUCION execute linux commands (you must replace <SCHEMA_NAME> for you database schema name)
find . -name "*.sql" -print | xargs grep -l "[^\"]<SCHEMA_NAME>[^\"]" | wc -l
find . -name "*.sql" -print | xargs sed -i.bak 's/\([^\"]\)\(<SCHEMA_NAME>\)\([^\"]\)/\1"\2"\3/g'
find . -name "*.sql" -print | xargs grep -l "[^\"]<SCHEMA_NAME>[^\"]" | wc -l
3) If you generate a linked StoredProcedures (Ex: CREATE PROCEDURE (..) READS SQL DATA LANGUAGE SQLScript VIEW ... AS WITH RESULT), you must remove them before doing the export schema.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This message was moderated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In Business one Cloud enviroment (version for SAP HANA), when you create tenant from backup, you place HANA Schema backup in windows share in some case, it may happen that there will be a folder with the same name but different writing register.
For example, in my case there were folders with names B1_JOURNALTRANSSOURCEVIEW and B1_JournalTransSourceView (in export\SBODEMORU\B1 folder) and during in process of copying them to Windows Share they merged into one. This caused errors when importing schema.
This situation is solved by adding symbol _ in the name of one of the duplicate folders.
For example in my case I did so:
B1_JournalTransSourceView_
B1_JOURNALTRANSSOURCEVIEW
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had the same Error: "Object not found in the import directory;object=SCHEMA_NAME"
In my case I had to change the folder structure of the import directory which had lowercase letters in it. After I changed all directories into captial letter the import worked fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have same error in HANA pl. rev. 74.3.
for example:
SAP DBTech JDBC: [2048]: column store error: table import failed: [30111] Binary import failed (could not execute create statement);object=DEMO:TMSP_DAB002_TOP5SLPFUTUREREMITBYAGEDATEen,invalid table name: Could not find table/view B1_JournalTransSourceView in schema DEMO: line 22 col 22 (at pos 807) at ptime/query/catalog/catalog.cc:525
Hi Adria,
Have you tried to import, with a different name, on system you did the export? It would be good to know if the problem occurs on both landscapes.
Best regards,
Duncan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Adria,
I asked you to test the import on the system you exported from to determine if the problem is occurring because you are transporting the files from system 1 to system 2. If it works on point of origin we should investigate why the transfer is corrupting the file. I thought it would be ok because you are renaming the schema as part of the process. I would not want to import @point of origin without the rename.
Whenever some one asks me how to export a schema and import it with a different name I provide:
export "SBODEMOGB"."*" as
binary into '/home/SBODEMOGB' with replace threads 10;
import "SBODEMOGB "."*" as
binary from '/home/SBODEMOGB_901' with replace threads 10 rename schema "SBODEMOGB" to
"SBODEMOGB_NEW";
You are using the statement I would provide.
I cannot find an hints for the error reported (SYS_SS_CE_1957622_RET). If you do not see anything more helpful in the trace file I would suggest opening a customer message.
Best regards,
Duncan
Hi Duncan,
Thanks for your support.
Previously, we found problems with transport system1 to system2 files, these are trick compressing files into a single file tar.gz.
I placed an EXPORT and IMPORT a database of system development, and gives another error that there is no COLUMN_VIEW do not understand that this is correctly generated in the source database.
Do not quite understand why we can not perform an EXPORT and IMPORT with the certainty that the IMPORT function properly.
There any restrictions before making EXPORT, for example, users may have been working on this database while of running the EXPORT?
King regards.
Adria.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.