SQL Problem after Hardware Change ?l 2007-07-26 - By Beermann, Albert
Back Hello Everybody ! My application(MaxDB no SAP) connects via odbc to a SAP System with maxdb database(7.5.00.44) and fires the following command: DECLARE PUFFER CURSOR FOR WITH RECURSIVE TMPPUFFER (LEVEL,stlnummer,stlbezeich,stlnr,postp,posnr,matnr,matbezeich,menge,meins ,erskz,stlnrid) AS (SELECT 1, ma2.matnr as stlnummer,stltextd.maktg as stlbezeich,stpo.stlnr, stpo.postp,stpo.posnr,stpo.idnrk as matnr,matextd.maktg as matbezeich,stpo .menge,stpo.meins,stpo.erskz, ma1.stlnr as stlnrid from stpo join mast ma2 on stpo.stlnr = ma2.stlnr and ma2.mandt = '900' join makt matextd on stpo.idnrk = matextd.matnr and matextd.mandt = '900' and matextd.spras = 'D' join makt stltextd on ma2.matnr = stltextd.matnr and stltextd.mandt = '900' and stltextd.spras = 'D' left join mast ma1 on stpo.idnrk = ma1.matnr and ma1.mandt = '900' where stpo.mandt = '900' and stpo.stlty = 'M' and stpo.stlnr = '00216214' UNION ALL SELECT TMPPUFFER.LEVEL + 1, ma2.matnr as stlnummer,stltextd.maktg as stlbezeich, stpo.stlnr, stpo.postp,stpo.posnr,stpo.idnrk as matnr,matextd.maktg as matbezeich,stpo .menge,stpo.meins,stpo.erskz, ma1.stlnr as stlnrid FROM TMPPUFFER,stpo join mast ma2 on stpo.stlnr = ma2.stlnr and ma2.mandt = '900' join makt matextd on stpo.idnrk = matextd.matnr and matextd.mandt = '900' and matextd.spras = 'D' join makt stltextd on ma2.matnr = stltextd.matnr and stltextd.mandt = '900' and stltextd.spras = 'D' left join mast ma1 on stpo.idnrk = ma1.matnr and ma1.mandt = '900' where stpo.mandt = '900' and stpo.stlty = 'M' and stpo.stlnr = TMPPUFFER .stlnrid) SELECT TMPPUFFER.* FROM TMPPUFFER order by level,stlnr,posnr For more than 6 month everything works as expected. I use the result cursor to update spezial tables in my system. Now the SAP System was migrated from HP-UX on a PA-Risc Server to HP-UX on a Integrity Server. (Same MaxDB Version). SAP is running quick and fine, but my command stops with the following error
1526 Connectivity-Fehler: [SAP AG][SQLOD32 DLL][MaxDB] Base table or view already exists;-6000 POS(1) Duplicate table name [SAP AG][SQLOD32 DLL][MaxDB] Base table or view already exists;-6000 POS(1) Duplicate table name S0001 -6000 ???????????????? Any help welcomed
Best regards __ ____ ____ ____ ____ ____ ____ ____ __
<file://%25logonserver%25/netlogon/eMailSignature/pd-logo.bmp> <file:// %25logonserver%25/netlogon/eMailSignature/pd-logo.bmp> Albert Beermann Abteilungsleiter Informationsverarbeitung
Piepenbrock Service GmbH + Co. KG Hannoversche Str. 91-95 49084 Osnabr?ck Tel: +49 (0) 541/5841-868 Fax: +49 (0) 541/5841-869 Mobil: +49 (0) 177/9400868 E-Mail:A.Beermann@(protected) www.piepenbrock.de __ ____ ____ ____ ____ ____ ____ ____ __
Kommanditgesellschaft Sitz Osnabr?ck HRA 6519 AG Osnabr?ck phG: Piepenbrock Service Verwaltungs- und Beteiligungsgesellschaft mbH HRB 19436 AG Osnabr?ck Gesch?ftsf?hrer: Arnulf Piepenbrock, Olaf Piepenbrock Paul Richter St-Nr.FA:66 /204/26100 Osnabr?ck-Stadt Ust.-ID-Nr.: DE 166472497 Sicherheitsnr Bauabzugssteuer: 236620320479
Diese eMail enth?lt vertrauliche und/oder rechtlich gesch?tzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese eMail irrt?mlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten diese eMail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser eMail ist nicht gestattet.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD><TITLE>Nachricht</TITLE> <META http-equiv=Content-Type content="text/html; charset=iso-8859 (See http://iso-8859.ora-code.com)-1"> <META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD> <BODY> <DIV><FONT face=Arial size=2><SPAN class=934002414-26072007>Hello Everybody !</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=934002414-26072007></SPAN></FONT>  ;</DIV> <DIV><FONT face=Arial size=2><SPAN class=934002414-26072007>My application (MaxDB no SAP) connects via odbc to a SAP System with maxdb database(7.5.00.44) and fires the following command:</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=934002414-26072007></SPAN></FONT>  ;</DIV> <DIV><FONT face=Arial size=2>DECLARE PUFFER CURSOR FOR WITH RECURSIVE TMPPUFFER <BR>(LEVEL,stlnummer,stlbezeich,stlnr,postp,posnr,matnr,matbezeich,menge,meins ,erskz,stlnrid) <BR> AS (SELECT 1, ma2.matnr as stlnummer,stltextd.maktg as stlbezeich,stpo.stlnr,<BR> stpo.postp,stpo.posnr,stpo.idnrk as matnr,matextd.maktg as matbezeich,stpo.menge,stpo.meins,stpo.erskz, ma1.stlnr as stlnrid <BR> from stpo <BR> join mast ma2 on stpo.stlnr = ma2.stlnr and ma2.mandt = '900' <BR> join makt matextd on stpo.idnrk = matextd.matnr and matextd.mandt = '900' and matextd.spras = 'D'<BR> join makt stltextd on ma2.matnr = stltextd.matnr and stltextd.mandt = '900' and stltextd.spras = 'D'<BR> left join mast ma1 on stpo.idnrk = ma1.matnr and ma1.mandt = '900' <BR> where stpo.mandt = '900' and stpo.stlty = 'M' and stpo.stlnr = <SPAN class=934002414-26072007>'00216214'</SPAN><BR> UNION ALL SELECT TMPPUFFER.LEVEL + 1, ma2.matnr as stlnummer,stltextd.maktg as stlbezeich , stpo.stlnr,<BR> stpo.postp,stpo.posnr,stpo.idnrk as matnr,matextd.maktg as matbezeich,stpo.menge,stpo.meins,stpo.erskz,<BR> ma1.stlnr as stlnrid <BR> FROM TMPPUFFER,stpo <BR> join mast ma2 on stpo.stlnr = ma2.stlnr and ma2.mandt = '900' <BR> join makt matextd on stpo.idnrk = matextd.matnr and matextd.mandt = '900' and matextd.spras = 'D' <BR> join makt stltextd on ma2.matnr = stltextd.matnr and stltextd.mandt = '900' and stltextd.spras = 'D'<BR> left join mast ma1 on stpo.idnrk = ma1.matnr and ma1.mandt = '900' <BR> where stpo.mandt = '900' and stpo.stlty = 'M' and stpo.stlnr = TMPPUFFER.stlnrid) <BR> SELECT TMPPUFFER.* FROM TMPPUFFER <BR> order by level,stlnr,posnr<BR> </FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2><SPAN class=934002414-26072007>For more than 6 month everything works as expected.</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=934002414-26072007>I use the result cursor to update spezial tables in my system.</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=934002414-26072007></SPAN></FONT>  ;</DIV> <DIV><FONT face=Arial size=2><SPAN class=934002414-26072007>Now the SAP System was migrated from HP-UX on a PA-Risc Server to HP-UX on a Integrity Server. (Same MaxDB Version).</SPAN></FONT></DIV> <DIV><FONT face=Arial size=2><SPAN class=934002414-26072007>SAP is running quick and fine, but my command stops with the following error</SPAN></FONT></DIV><FONT> <DIV><BR><FONT face=Arial size=2> 1526<BR>Connectivity-Fehler: [SAP AG][SQLOD32 DLL][MaxDB] Base table or view already exists;-6000 POS(1) Duplicate table name<BR>[SAP AG][SQLOD32 DLL][MaxDB] Base table or view already exists;-6000 POS(1) Duplicate table name<BR>S0001<BR>-6000</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2><SPAN class=934002414-26072007>????????????????< /SPAN></FONT></DIV> <DIV></FONT><SPAN class=934002414-26072007><FONT face=Arial size=2>Any help welcomed</FONT></SPAN></DIV> <DIV> </DIV> <DIV> <P><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"><SPAN class =934002414-26072007></SPAN></SPAN><SPAN style="FONT-SIZE: 10pt; COLOR: black">B <SPAN class=934002414-26072007>est regards</SPAN><BR>__ ____ ____ ____ ____ ____ ____ ____ __</SPAN><SPAN style= "COLOR: black"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /></SPAN></P> <P></P> <P style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT -FAMILY: Arial"><A></A><SPAN style="mso-spacerun: yes"><FONT color=#000000><SPAN style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial"><A></A><SPAN style= "mso-spacerun: yes"><FONT color=#000000><STRONG>Albert Beermann <BR></STRONG>Abteilungsleiter <BR>Informationsverarbeitung <BR><BR></FONT></SPAN></SPAN></FONT><BR> <IMG src="cid:934002414@(protected) -182E"> Piepenbrock Service GmbH + Co. KG <BR> Hannoversche Str. 91-95 <BR></SPAN></SPAN><FONT color=#000000><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> 49084 Osnabr?ck <BR> Tel: +49 (0) 541/5841-868 <BR> Fa<FONT color=#000000>x: +49 (0) 541/5841-869 <BR> Mobil: +49 (0) 177/9400868 <BR> E-Mail:A.Beermann@(protected) <BR></FONT></SPAN></FONT><SPAN style="FONT -SIZE: 10pt"><FONT face=Arial> www.piepenbrock.de </FONT><BR>__ ____ ____ ____ ____ ____ ____ ____ __<BR><BR><FONT face=Arial color=#000000 size=1>Kommanditgesellschaft Sitz Osnabr?ck HRA 6519 AG Osnabr?ck phG: Piepenbrock Service Verwaltungs- und Beteiligungsgesellschaft mbH HRB 19436 AG Osnabr?ck Gesch?ftsf?hrer: Arnulf Piepenbrock, Olaf Piepenbrock Paul Richter St-Nr.FA:66/204/26100 Osnabr?ck-Stadt Ust.-ID-Nr.: DE 166472497 Sicherheitsnr Bauabzugssteuer: 236620320479 <BR></FONT></SPAN></P></DIV> <P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT color=#000000><FONT size=1>Diese eMail enth?lt vertrauliche und/oder rechtlich gesch?tzte Informationen. Wenn Sie nicht der richtige Adressat sind oder diese eMail irrt?mlich erhalten haben, informieren Sie bitte sofort den Absender und vernichten diese eMail. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser eMail ist nicht gestattet.</FONT></FONT></SPAN></P> <P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN> </P><!--eMS4.8.5.D26M.7Y.2007--> <DIV> </DIV></BODY></HTML>
|
|