Quantcast
Channel: SCN : Discussion List - SAP on Oracle
Viewing all articles
Browse latest Browse all 1892

SQL error 1452 on TPALOG

$
0
0

Dear All,

I am 3rd time getting following error during system Import after successfully exported  while i execute SMIGR_CREATE_DDL and past the output of these file in <EXPORT_DIR>/ABAP/DB/ORA .

 

(DB) INFO: TPALOG created #20120202220412

(IMP) INFO: import of TPALOG completed (117599 rows) #20120202220415

DbSl Trace: Error 1452 in exec_immediate() from oci_execute_stmt(), orpc=0

DbSl Trace: ORA-1452 occurred when executing SQL stmt (parse error offset=34)

(DB) ERROR: DDL statement failed
 (CREATE UNIQUE INDEX "TPALOG~0" ON "TPALOG"
 ( "TRTIME", "TRKORR", "TARSYSTEM", "TRCLI", "TRSTEP" )
TABLESPACE PSAPSR3 STORAGE (INITIAL 2071552 NEXT 0000000080K MINEXTENTS 0000000001
 MAXEXTENTS 2147483645 PCTINCREASE 0 ) NOLOGGING COMPUTE STATISTICS )
 DbSlExecute: rc = 99
  (SQL error 1452)  error message returned by DbSl:
ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found
(DB) INFO: disconnected from DB

 

SQL> desc SAPSR3.TPALOG;
 Name                                      Null?    Type
 ----------------------------------------- -------- --------------

 TRTIME                                    NOT NULL VARCHAR2(42)
 TRKORR                                    NOT NULL VARCHAR2(60)
 TARSYSTEM                                 NOT NULL VARCHAR2(30)
 TRCLI                                     NOT NULL VARCHAR2(9)
 TRSTEP                                    NOT NULL VARCHAR2(3)
 ALLCLI                                    NOT NULL VARCHAR2(3)
 PROJECT                                   NOT NULL VARCHAR2(60)
 TRUSER                                    NOT NULL VARCHAR2(36)
 RETCODE                                   NOT NULL VARCHAR2(12)
 HOST                                      NOT NULL VARCHAR2(96)
 ADMIN                                     NOT NULL VARCHAR2(36)
 TPSTAT_KEY                                NOT NULL VARCHAR2(60)
 LINESEQUENCE                              NOT NULL VARCHAR2(51)

SQL> select alldata.rowid, alldata.* from SAPSR3.TPALOG alldata,  2  (SELECT TRTIME, TRKORR, TARSYSTEM, TRCLI, TRSTEP, ALLCLI, PROJECT, TRUSER,
RETCODE, HOST, ADMIN, TPSTAT_KEY, LINESEQUENCE FROM SAPSR3.TPALOG GROUP BY TRTIM
E, TRKORR, TARSYSTEM, TRCLI, TRSTEP, ALLCLI, PROJECT, TRUSER, RETCODE, HOST, ADM
IN, TPSTAT_KEY, LINESEQUENCE HAVING COUNT(*) > 1) keydata where  3  alldata.TRTIME=keydata.TRTIME  4  alldata.TRKORR=keydata.TRKORR  5  alldata.TARSYSTEM=keydata.TARSYSTEM  6  alldata.TRCLI=keydata.TRCLI  7  alldata.TRSTEP=keydata.TRSTEP  8  alldata.ALLCLI=keydata.ALLCLI  9  alldata.PROJECT=keydata.PROJECT
 10  alldata.TRUSER=keydata.TRUSER
 11  alldata.RETCODE=keydata.RETCODE
 12  alldata.HOST=keydata.HOST
 13  alldata.ADMIN=keydata.ADMIN
 14  alldata.TPSTAT_KEY=keydata.TPSTAT_KEY
 15  alldata.LINESEQUENCE=LINESEQUENCE.HOST;
alldata.TRKORR=keydata.TRKORR
*
ERROR at line 4:
ORA-00933: SQL command not properly ended

what's issue with above command.

and

how can i resolve this issue? please guide me.

 

Regards,


Viewing all articles
Browse latest Browse all 1892

Trending Articles



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