Quantcast
Viewing all articles
Browse latest Browse all 2997

Migration Error - SQL1505 -Create unique index aborted on duplicate key

Hello Gurus,

 

We are doing a test OS/DB migration for SAP ERP 6.0 EHP6 on Windows 2008 R2 / Oracle 11.2.0.3 to  RHEL 6.4 / SAP ASE 16.0.

 

During the DB Import on the target system , ABAP DB import [ package import] is getting failed with the below error  during the COEP-Post [ index creation] part.


==========================================================================================================

/usr/sap/DEV/SYS/exe/run/R3load -i COEP__DT.cmd -dbcodepage 4103 -k 1G5fdEM50DwIrBzjt6TE5Pae -l COEP__DT.log -c 99000000 -loadprocedure fast

 

(DB) INFO: connected to DB

 

(RTF) ########## WARNING ###########

        Without ORDER BY PRIMARY KEY the exported data may be unusable for some databases

 

(SQL) INFO: Searching for SQL file SQLFiles.LST

(SQL) INFO: SQLFiles.LST not found

(SQL) INFO: Searching for SQL file /mediadump/DEV_Export/ABAP/DB/SQLFiles.LST

(SQL) INFO: found /mediadump/DEV_Export/ABAP/DB/SQLFiles.LST

(SQL) INFO: Trying to open /mediadump/DEV_Export/ABAP/DB/SQLFiles.LST

(SQL) INFO: /mediadump/DEV_Export/ABAP/DB/SQLFiles.LST opened

(SQL) INFO: Searching for SQL file APPL1.SQL

(SQL) INFO: APPL1.SQL not found

(SQL) INFO: Searching for SQL file /mediadump/DEV_Export/ABAP/DB/SYB/APPL1.SQL

(SQL) INFO: /mediadump/DEV_Export/ABAP/DB/SYB/APPL1.SQL not found

(DB) ERROR: DDL statement failed

(DROP INDEX "COEP"."COEP~0")

DbSlExecute: rc = 103

  (SQL error 3701)

  error message returned by DbSl:

[ASE Error SQL3701][SAP][ASE ODBC Driver][Adaptive Server Enterprise]Cannot drop the index 'COEP.COEP~0', because it doesn't exist in the system catalogs.

 

(IMP) INFO: a failed DROP attempt is not necessarily a problem

(DB) ERROR: DDL statement failed

(CREATE UNIQUE  INDEX "COEP~0" ON "COEP" ( "MANDT", "KOKRS", "BELNR", "BUZEI" ) with consumers = 3 )

DbSlExecute: rc = 99

  (SQL error 1505)

  error message returned by DbSl:

[ASE Error SQL1505][SAP][ASE ODBC Driver][Adaptive Server Enterprise]Create unique index aborted on duplicate key.  Primary key is '"400", "1000", "0000000001", "001"'

 

(DB) INFO: disconnected from DB

================================================================================================

This is one of the largest tables in our DB, and the table itself was split into 30 packages and all of them were imported successfully.

Since this is a critical table,  we do not want to proceed without creating the index by marking the indexes in the .TSK files with ign and then continuing the DB Import.

 

Also, we have also updated the Kernel & DBSL to the latest 721_EXT PL 300 and the R3load /R3trans  disp+work etc to the latest 311 PL.

 

Additional information -

As we were getting the error - Create index with sorted_data was aborted because of row out of order. Primary key of first out of order row is '"400", "SPOOL0000010924", 1, 36' [ similar errors for few other packages ]

 

As per SAP Note 1836598 - SYB: Heterogenous system copy with target database ASE fails with SQL error 1530 , we already copied the

DDLSYB_LRG.TPL to DDLSYB.TPL in the installation directory. So now this error has also been rectified and now the Import is stared without sort order.


Also , after following this approach also, we continued to get errors only for 2 packages  [ both indexes ]  i.e. SOFFCONT1-post & CMFP-post packages .  We checked the packages and these are 2 indexes were failing, So we chose to mark the .TSK file with the IGN [ignore] option for these packages and proceed with the DB Import and build them once the import is completed.

 

Is this a viable option / recommended approach ?


Please advise.


Warm Regards,

Prashant Vijaydas


Viewing all articles
Browse latest Browse all 2997

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>