В опте вот эти строки?
Цитата: 23.10.23 17:32:37 -- Check sessions
23.10.23 17:32:38 -- Current SQL queries .......
23.10.23 17:32:38 -- 310-87-9dmx98ax3p5v4-02:33 22.10-SUPERMAG-39-pipe get-39-0-Sm.AppServer.exe-NT AUTHORITY\SYSTEM-SOLEKS\SERVERCO-Sm.AppServer.exe-DEDICATED-begin Supermag.Core.NextMessage(rq=>:rq, rqData=>:rqData, err_code=>:err_code, rqResult=>:rqResult, replyAddress=>:replyAddress); end;-
23.10.23 17:32:38 -- 279-1772-0rnfdvn39g7j5-17:31 23.10-***-3-SQL*Net message from client-3-0-Sm.Main.exe-SERVERCO\***-Sm.Main.exe-DEDICATED-SELECT --+ FIRST_ROWS
SP.SpecItem,SP.DisplayItem,SP.Article,CRD.Name,SP.Quantity,SP.QuantByDoc,(select SPPK.ValidDate from SuperMag.SVSpecPacksWI SPPK where SPPK.DocType = SP.DocType AND SPPK.DocID = SP.DocID AND SPPK.SpecItem = SP.SpecItem),CARD.Deadline,SP.Reason,SP.Country,SP.Excise,SP.GTD,SP.CertNum,SP.ExciseGTDCertTbl,(select SPPK.PacksTbl from SuperMag.SVSpecPacksWI SPPK where SPPK.DocType = SP.DocType AND SPPK.DocID = SP.DocID AND SPPK.SpecItem = SP.SpecItem),SP.ComplexArt,SP.ComplexQuantity,NULL as ComplexCompQuant,SP.CauseType||chr(9)||SP.CauseID||chr(9)||(select SC.DisplayItem from Supermag.SVSpecCauses SC where SC.DocType=SP.CauseType and SC.DocID=SP.CauseID and SC.SpecItem=SP.CauseSpecItem) as Cause,SP.ItemPriceNoTax,SP.TotalPriceNoTax,(select SPVAT.TaxRate from SuperMag.SVSpecVatRateWI SPVAT where SPVAT.DocType=SP.DocType AND SPVAT.DocID=SP.DocID AND SPVAT.SpecItem = SP.SpecItem),(select SPVAT.TaxSum from SuperMag.SVSpecVatWI SPVAT where SPVAT.DocType = SP.DocType AND SPVAT.DocID = SP.DocID AND SPVAT.SpecItem = SP.SpecItem),SP.ItemPrice,SP.TotalPrice,SP.ItemPriceCur,SP.TotalPriceCur,SuperMag.ReadTaxesTblWI(SP.DocID, SP.SpecItem) as TaxesTbl,nvl((select SC.Name from Supermag.SAScales SC, Supermag.SVCardName CRS where CRS.Article=SP.Article and SC.ID=CRS.IDScale),(select '<свойство удалено>' from dual where exists (select * from Supermag.SVSpecScaleWI SS where SS.DocType=SP.DocType and SS.DocID=SP.DocID and SS.SpecItem=SP.SpecItem))) as Scale,(select SUP.SupplierArticle from Supermag.SMSupplyCase SUP where SUP.Article=SP.Article and SUP.IDSupplier=116339) as SupplierArt,CRD.IDMeasurement,CRD.DataType,SP.ItemGrossWeight,SP.TotalGrossWeight,SP.PackName FROM SuperMag.SVSpecWI SP, SuperMag.SVCardName CRD, SuperMag.SMCard CARD WHERE SP.DocType = 'WI' AND SP.DocID = 'АППР0000351' AND CRD.Article = SP.Article AND CARD.Article = SP.Article ORDER BY DisplayItem-select supermag.Core.GetDbName,paramvalue,(select AppRole from supermag.SMClientApps where ID=1) from supermag.SSSysInfo where paramname='Version'
23.10.23 17:32:38 -- Current SQL queries ^^^^^^^
**
Пока открывается накладная, оптимайзер успевает отработать пару раз при запуске вручную