on 01-11-2011 2:01 PM
Hello MAXDB experts,
I am trying to perform an SQL analysis on a customer system with MAXDB 7.8.01.019. Unfortunately it doesn't work.
- The runtime for the SQL statements in the resource monitor is much too high (factor 1000000). It seems that this is a known problem (PTS 1195067).
- The command monitor dosn't display execution plans. Error message: "Fehler bei der Bestimmung des Ausführungsplans".
Furthermore the SQL statements are displaced from table sysmonitor after a few seconds. I assume this is related to the first problem (factor 1000000). I already tried to use higher threshold values (e.g. runtime >=500000 ms or 500000000 ms instead of 500 ms), but it didn't work.
Best regards
Thomas Fleer
I patched the DBSL lib to the latest version 272 for SAP kernel 7.00, but it didn't help.
So I created a SAPSMP call.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Additional info:
If statements are "small", explain works, if they are bigger, I see in the workprocess trace:
C Thu Jan 20 23:38:42 2011
C *** ERROR => Too few input values (0)
[dbslsdb.cpp 6642]
C Dumping statement ...
C 0 TEXT 1889 SELECT "OBJNR" , "GJAHR" , "WRTTP" , "VERSN" , "KS
C TAR" , "VRGNG" , "BEKNZ" , "TWAER" , "PERBL" , "ME
C INH" , "BELTP" , "HRKFT" , SUM( "WTG001" ) "WTG001
C " , SUM( "WTG002" ) "WTG002" , SUM( "WTG003" ) "WT
C G003" , SUM( "WTG004" ) "WTG004" , SUM( "WTG005" )
C "WTG005" , SUM( "WTG006" ) "WTG006" , SUM( "WTG00
C 7" ) "WTG007" , SUM( "WTG008" ) "WTG008" , SUM( "W
C TG009" ) "WTG009" , SUM( "WTG010" ) "WTG010" , SUM
C ( "WTG011" ) "WTG011" , SUM( "WTG012" ) "WTG012" ,
C SUM( "WTG013" ) "WTG013" , SUM( "WTG014" ) "WTG01
....
and eventually
C token_cnt=39, input_cnt=0, marker_cnt=19, stmt_length=2216
B ***LOG BZY=> unexpected return code 6 calling XPL [dbacfun#3 @ 644] [dbacfun 0644 ]
This is kernel PL 126 and lib_dbsl 111, checked on Solaris SPARC and Linux x86_64.
Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is a known problem. See PTS 1224066.
Is the release which you have written (7.8.01.19) correct? In that release the problem should be fixed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Adrian,
no problem.
Example:
SQL-Anweisung
SELECT
"MANDANT" , "OBJECTCLAS" , "OBJECTID" , "CHANGENR" , "USERNAME" ,
"UDATE" , "UTIME" , "TCODE" , "PLANCHNGNR" , "ACT_CHNGNO" ,
"WAS_PLANND" , "CHANGE_IND" , "LANGU" , "VERSION"
FROM
"CDHDR"
WHERE
"MANDANT" = ? AND "OBJECTCLAS" = ? AND "UDATE" = ?
Variablen
P1 (RA,5 ) = 0x010
P2 (RA,10 ) = 0xMATERIAL
P3 (RA,10 ) = 0x20110110
-> Fehler bei der Bestimmung des Ausführungsplans (EXPLAIN).
Meldungsnr. SADA501
If I cut & paste your statement and input it into the EXPLAIN editor of transaction ST05, it works fine in my system (which however has release 7.8.01.010).
Perhaps there is a error message in the SM50 trace of your system. To check this proceed as follows: Before you press the "Explain" button go into debugging mode by entering /H in the ok-code. Afterwards press on the "Explain" button. Now you are in debugger and can enter "PID" in the OK-code. This will tell you the Work Process number you are currently in. Remember this number. Now press F8 to finish the Debugger and to produce the error. Now call transaction SM50, mark the line with the WP number which you have remembered and click on the icon "display file". Scroll to the last page of the list. Hopefully you will see there some hint of why the explain is not working. If you can't find anything useful there I think you should open a support message so that we can remotely logon into your system and analyze the problem directly in your system.
Hi Adrian,
After using the EXPLAIN, the folling error message is written in the workprocess trace file:
B ***LOG BY2=> sql error -8006 performing XPL [dbacfun#11 @ 644] [dbacfun 0644 ]
B ***LOG BY0=> POS(231) Data types must be compatible [dbacfun#11 @ 644] [dbacfun 0644 ]
It seems this error occurs for every SQL statement.
I found the very old SAP note 692188 dealing with this problem (error in DBSL lib).
The affected system is running on SAP-Kernel 7.00 Patch 277 and DBSL lib 247.
Do I have to open an official SAPSMP call now?
Regards
Thomas
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.