Quantcast
Channel: SCN: Message List - SAP Applications on SAP Adaptive Server Enterprise (SAP ASE)
Viewing all 3678 articles
Browse latest View live

Re: Online Backup and Archive log backup of sybase database on linux.

$
0
0

Hi Sandeep,

Just in case, to clarify, for the script, instead of P01 you should use your <SID>.

 

Cheers,
Victoria.


Re: SAP kernel upgradation

$
0
0

Hello Thavaheer patan,

 

Try This

 

dpmon pf="path of your instance profile"

 

Check also the INSTANCE profiles for the parameter SAPSYSTEMNAME and

make sure it reflects the SID of your system.

 

I hope this helps

 

 

 

 

 

Regards

K.Sandeep


Re: SAP kernel upgradation

Re: Sybase with ECC : Delete / Dump Transaction Log

$
0
0

How do I login into Sybase?

 

As I mentioned earlier, I am absolutely new to Sybase and one of my first issue with it to know how to login to Sybase.

 

I see that there should be something called iSQL, which I cant find anywhere or if I have to call it from command prompt. (and how)

Re: Sybase with ECC : Delete / Dump Transaction Log

$
0
0

Hi danny,

 

Goto :\sybase\SBP\OCS-15_0\bin>isql

double click on that it will open GUI to login into sybase:


provide  Sa user & password..


there you have run that Script, before running the script you have to configure the backup details by using

  • 1588316   SYB: Configure automatic database and log backups

 

Hope it helps you..

 

Regards,

Raj

Re: Sybase with ECC : Delete / Dump Transaction Log

$
0
0

Not sure I understand this fully.

 

But I tried running the SQL utility but had this error. I tried both 64 bit and 32 bit versions. I am going to try and find dll if it is in another folder and copy it across and see if that works.

 

Also do you want me to configure backup details before dumping transaction log?

 

 

Edited: I put these files in the dll folder and ran it. This opened a command prompt with password, when I enter a password, it closes the window.

 

So still not able to connect. At the moment my biggest challenge is to connect to the database as I see it. Also is there a default password for Sybase default master  sapsa?

 

I have SAP system user password and Windows System users, but dont know the sapsa and cant get it for another 2 weeks.

Re: Sybase with ECC : Delete / Dump Transaction Log

$
0
0

Finally I managed to connect to database. I had to use -X as qualifier for encription

 

Raj, is there a command that will simply delete the Transaction Logs. As I understand it, config is for regular work or is it also to resolve this specific case?

Re: Sybase with ECC : Delete / Dump Transaction Log

$
0
0

Hi Danny,

The flag "-X" is always required for isql session as we use network password encryption.
You may also use the "SQL Command Line" from DBACockpit.


To free space/remove inactive portion of the transaction log (would be like "delete"), and have a copy, dump transaction should be run in a regular basis. This is mentioned on the notes pointed by Raj:

  • 1585981   SYB: Ensuring Recoverability for Sybase ASE

The periodicity may depend of your system workload and the size of your transaction log, recommendation is < 1h at least.

 

You can schedule that using DBACockpit, just check the other note Raj well pointed out :

  • 1588316   SYB: Configure automatic database and log backups

 

Regards,
Victoria.


Re: Sybase with ECC : Delete / Dump Transaction Log

$
0
0

Hi Maria

 

I was able to do it somehow ! but I am now concerned that transaction log only gave some 824 KB as dump whereas original database dump gave me 200 GB.

 

So I wonder why SAINT failed. I am going to run it again, but wonder if I should be increasing transaction log file size, if yes how? I will repost this again in another thread, but if you already know the answer please let me know.

 

Sure I am a feel a little lazy and not reading through the sapnote unless I have to. I am only filling in for a Basis guy who is not here for few weeks.

 

DBAcockpit does not work and I am not debugging why.

Re: SAP kernel upgradation

$
0
0

Hi Rajasekhar,

 

 

Yes, my instance is running and i am able to execute all the transactions also.But in OS level when i execute OS level commands i am getting error as shown.

 

 

Regards,

Patan Thavaheer.

Re: SAP kernel upgradation

$
0
0

Hi Sandeep,

 

Yes my SAPSYSTEMNAME and SID are same in default and instance profiles.

 

Regards,

Patan Thavaheer.

Re: SAP kernel upgradation

$
0
0

Hi thavaheer,

 

Have You tried this below

 

dpmon pf=<driveletter>:\usr\sap\SID\profile\SID_DVEBMSGXXX.pfl

 

 

let me Know if it works or not.

 

 

 

Regards

K.Sandeep

Re: Sybase with ECC : Delete / Dump Transaction Log

$
0
0

Log in sybase and run the script as,

 

dump transaction <sid> using config = '<sid>LOG'

go


Before that you have to configure details like Backup destination & backtype.. etc. by using

Note :

  • 1588316   SYB: Configure automatic database and log backups

 

it clear's the Log later you can use it..

 

 

Ragards,

Rajshekar


Re: SAP kernel upgradation

$
0
0

Hi Patan,

 

Login as <sid>adm in to OS and try those commands.

 

it might help.

 

Regards,

Rajshekar

Re: SAP kernel upgradation

$
0
0

Hi Sandeep,

 

I am executing the below commands using <SID>adm only.

 

Please find the output for the following command

 

C:\Users\mitadm>dpmon pf=D:\usr\sap\MIT\SYS\profile\<SID>_DVEBMGS00_XXXXX

DpMonInit failed - possibly no dispatcher running

DpMon: External/Internal dplib version: 120/139

 

Regards,

Patan Thavaheer


Re: SAP kernel upgradation

$
0
0

Hi patan,

 

Can you Please Share the dev_disp Log..

 

and also, Run "sappfpar check pf=<instance profile name>" to see if you get any error & share me log for this also.

 

 

Regards,

Raj

Re: SAP kernel upgradation

$
0
0

Hi Raj,

 

Please find the output

 

 

 

D:\usr\sap\MIT\SYS\profile>sappfpar check pf=<SID>_DVEBMGS00_XXXXXX

 

 

 

 

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

 

 

==   Checking profile:     D:\usr\sap\<SID>\SYS\profile\<SID>_DVEBMGS00_XXXXX

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

 

 

 

 

 

 

 

 

***WARNING: Unexpected parameter: SAPFQDN =milltec.com

***WARNING: Unexpected parameter: service/protectedwebmethods =SDEFAULT

***WARNING: Unexpected parameter: ssl/ssl_lib =D:\usr\sap\<SID>\DVEBMGS00\exe\sapc

rypto.dll

 

 

Shared memory disposition overview

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

Key:        1  Size:        2500 (   0.0 MB) System administration

Key:        2  Size:     5848196 (   5.6 MB) Disp. administration tables

Key:        3  Size:    66864000 (  63.8 MB) Disp. communication areas

Key:        4  Size:      513448 (   0.5 MB) statistic area

Key:        5  Size:        4096 (   0.0 MB) SCSA area

Key:        6  Size:   319488000 ( 304.7 MB) ABAP program buffer

Key:        7  Size:       14838 (   0.0 MB) Update task administration

Key:        8  Size:   134217828 ( 128.0 MB) Paging buffer

Key:        9  Size:   268435556 ( 256.0 MB) Roll buffer

Key:       11  Size:      500000 (   0.5 MB) Factory calender buffer

Key:       12  Size:     6000000 (   5.7 MB) TemSe Char-Code convert Buf.

Key:       13  Size:    60500000 (  57.7 MB) Alert Area

Key:       14  Size:     4400000 (   4.2 MB) Presentation buffer

Key:       16  Size:       22400 (   0.0 MB) Semaphore activity monitoring

Key:       17  Size:     2767448 (   2.6 MB) Roll administration

Key:       18  Size:      917604 (   0.9 MB) Paging adminitration

Key:       19  Size:    30000000 (  28.6 MB) Table-buffer

Key:       30  Size:       20480 (   0.0 MB) Taskhandler runtime admin.

Key:       31  Size:     9612000 (   9.2 MB) Dispatcher request queue

Key:       33  Size:    10240000 (   9.8 MB) Table buffer, part.buffering

Key:       34  Size:    33554432 (  32.0 MB) Enqueue table

Key:       41  Size:    25010000 (  23.9 MB) DB statistics buffer

Key:       42  Size:    70592992 (  67.3 MB) DB TTAB buffer

Key:       43  Size:   273654392 ( 261.0 MB) DB FTAB buffer

Key:       44  Size:    48374392 (  46.1 MB) DB IREC buffer

Key:       45  Size:    33014392 (  31.5 MB) DB short nametab buffer

Key:       46  Size:       20480 (   0.0 MB) DB sync table

Key:       47  Size:     3073024 (   2.9 MB) DB CUA buffer

Key:       48  Size:      500000 (   0.5 MB) Number range buffer

Key:       49  Size:     2968344 (   2.8 MB) Spool admin (SpoolWP+DiaWP)

Key:       51  Size:    18000000 (  17.2 MB) Extended memory admin.

Key:       52  Size:      180000 (   0.2 MB) Message Server buffer

Key:       54  Size:     8396800 (   8.0 MB) Export/Import buffer

Key:       55  Size:        8192 (   0.0 MB) Spool local printer+joblist

Key:       57  Size:     1572864 (   1.5 MB) Profilparameter in shared mem

Key:       58  Size:        4096 (   0.0 MB) Enqueue ID for reset

Key:       62  Size:    85983232 (  82.0 MB) Memory pipes

Key:       63  Size:      409600 (   0.4 MB) ICMAN shared memory

Key:       64  Size:     4202496 (   4.0 MB) Online Text Repository Buf.

Key:       65  Size:     4202496 (   4.0 MB) Export/Import Shared Memory

Key:       81  Size:       21760 (   0.0 MB) Security Audit Log

Key:     1002  Size:      400000 (   0.4 MB) Performance monitoring V01.0

 

 

Nr of operating system shared memory segments: 42

 

 

Shared memory resource requirements estimated

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

Total Nr of shared segments required.....:         42

Shared memory segment size required min..:  319488000 ( 304.7 MB)

 

 

Swap space requirements estimated

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

Shared memory....................: 1463.4 MB

Processes........................:  194.3 MB

Extended Memory .................: 4096.0 MB

------------------------------------------------

Total, minimum requirement.......: 5753.8 MB

Process local heaps, worst case..: 4094.0 MB

Total, worst case requirement....: 9847.8 MB

 

 

Errors detected..................:    0

Warnings detected................:    3

 

 

And the dev_disp log is

 

 

 

---------------------------------------------------

trc file: "dev_disp", trc level: 1, release: "720"

---------------------------------------------------

sysno      00

sid        MIT

systemid   562 (PC with Windows NT)

relno      7200

patchlevel 0

patchno    500

intno      20020600

make       multithreaded, Unicode, 64 bit, optimized

profile    \\MIGIDES\sapmnt\MIT\SYS\profile\MIT_DVEBMGS00_MIGIDES

pid        2032

 

 

kernel runs with dp version 139000(ext=120000) (@(#) DPLIB-INT-VERSION-139000-UC)

length of sys_adm_ext is 588 bytes

*** SWITCH TRC-HIDE on ***

***LOG Q00=> DpSapEnvInit, DPStart (00 2032) [dpxxdisp.c   1319]

  shared lib "dw_xml.dll" version 500 successfully loaded

  shared lib "dw_xtc.dll" version 500 successfully loaded

  shared lib "dw_stl.dll" version 500 successfully loaded

  shared lib "dw_gui.dll" version 500 successfully loaded

  shared lib "dw_mdm.dll" version 500 successfully loaded

  shared lib "dw_rndrt.dll" version 500 successfully loaded

  shared lib "dw_abp.dll" version 500 successfully loaded

  shared lib "dw_sym.dll" version 500 successfully loaded

  shared lib "dw_aci.dll" version 500 successfully loaded

rdisp/softcancel_sequence :  -> 0,5,-1

use internal message server connection to port 3900

rdisp/dynamic_wp_check : 1

rdisp/calculateLoadAverage : 1

 

 

Mon Nov 10 09:00:47 2014

*** WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 4 seconds

 

 

Mon Nov 10 09:00:48 2014

***LOG GZZ=> 1 possible network problems detected - check tracefile and adjust the DNS settings [dpxxtool2.c  6457]

MtxInit: 30000 0 0

DpSysAdmExtInit: ABAP is active

DpSysAdmExtInit: VMC (JAVA VM in WP) is not active

DpIPCInit2: write dp-profile-values into sys_adm_ext

DpIPCInit2: start server >MIGIDES_MIT_00                          <

DpShMCreate: sizeof(wp_adm) 42864 (2256)

DpShMCreate: sizeof(tm_adm) 5517056 (27448)

DpShMCreate: sizeof(wp_ca_adm) 64000 (64)

DpShMCreate: sizeof(appc_ca_adm) 64000 (64)

DpCommTableSize: max/headSize/ftSize/tableSize=500/16/1384064/1384080

DpShMCreate: sizeof(comm_adm) 1384080 (2744)

DpSlockTableSize: max/headSize/ftSize/fiSize/tableSize=0/0/0/0/0

DpShMCreate: sizeof(slock_adm) 0 (296)

DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0

DpShMCreate: sizeof(file_adm) 0 (80)

DpShMCreate: sizeof(vmc_adm) 0 (2160)

DpShMCreate: sizeof(wall_adm) (41664/42896/64/192)

DpShMCreate: sizeof(gw_adm) 48

DpShMCreate: sizeof(j2ee_adm) 3952

DpShMCreate: SHM_DP_ADM_KEY (addr: 0000000009D90050, size: 7174832)

DpShMCreate: allocated sys_adm at 0000000009D90060

DpShMCreate: allocated wp_adm_list at 0000000009D930B0

DpShMCreate: allocated wp_adm at 0000000009D932A0

DpShMCreate: allocated tm_adm_list at 0000000009D9DA20

DpShMCreate: allocated tm_adm at 0000000009D9DA70

DpShMCreate: allocated wp_ca_adm at 000000000A2E0980

DpShMCreate: allocated appc_ca_adm at 000000000A2F0390

DpShMCreate: allocated comm_adm at 000000000A2FFDA0

DpShMCreate: system runs without slock table

DpShMCreate: system runs without file table

DpShMCreate: allocated vmc_adm_list at 000000000A451C40

DpShMCreate: system runs without vmc_adm

DpShMCreate: allocated gw_adm at 000000000A451CF0

DpShMCreate: allocated j2ee_adm at 000000000A451D30

DpShMCreate: allocated ca_info at 000000000A452CB0

DpShMCreate: allocated wall_adm at 000000000A452D40

DpCommAttachTable: attached comm table (header=000000000A2FFDA0/ft=000000000A2FFDB0)

DpSysAdmIntInit: initialize sys_adm

rdisp/test_roll : roll strategy is DP_NORMAL_ROLL

dia token check not active (10 token)

MBUF state OFF

DpCommInitTable: init table for 500 entries

DpRqQInit: keep protect_queue / slots_per_queue 0 / 2001 in sys_adm

rdisp/queue_size_check_value :  -> on,50,30,40,500,50,500,80

EmInit: MmSetImplementation( 2 ).

MM global diagnostic options set: 0

<ES> client 0 initializing ....

<ES> EsILock: use spinlock for locking

<ES> InitFreeList

<ES> block size is 4096 kByte.

<ES> Info: em/initial_size_MB( 4094MB) not multiple of em/blocksize_KB( 4096KB)

<ES> Info: em/initial_size_MB rounded up to 4096MB

Using implementation view

<EsNT> Using memory model view.

<EsNT> Memory Reset disabled as NT default

<ES> 1023 blocks reserved for free list.

ES initialized.

mm.dump: set maximum dump mem to 192 MB

mm.dump: set global maximum dump mem to 192 MB

EsRegisterEmCheck: Register EmGetEsHandles at 0000000140A2A5A0

DpVmcSetActive: set vmc state DP_VMC_NOT_ACTIVE

MPI: dynamic quotas disabled.

MPI init: pipes=4000 buffers=1279 reserved=383 quota=10%

rdisp/http_min_wait_dia_wp : 1 -> 1

***LOG CPS=> DpLoopInit, ICU ( 4.0.1 4.0.1 5.1) [dpxxdisp.c   1705]

***LOG Q0K=> DpMsAttach, mscon ( MIGIDES) [dpxxdisp.c   12693]

MBUF state LOADING

DpStartStopMsg: send start message (myname is >MIGIDES_MIT_00                          <)

 

 

Mon Nov 10 09:00:49 2014

DpStartStopMsg: start msg sent

CCMS: Initialized monitoring segment of size 60000000.

CCMS: Initialized CCMS Headers in the shared monitoring segment.

CCMS: Checking Downtime Configuration of Monitoring Segment.

CCMS: AlMsUpload called by wp 1024.

 

 

Mon Nov 10 09:00:50 2014

CCMS: AlMsUpload successful for D:\usr\sap\MIT\DVEBMGS00\log\ALMTTREE.DAT (3938 MTEs).

 

 

Mon Nov 10 09:00:51 2014

CCMS: start to initalize 3.X shared alert area (first segment).

DpMBufHwIdSet: set Hardware-ID

***LOG Q1C=> DpMBufHwIdSet [dpxxmbuf.c   1296]

MBUF state ACTIVE

DpWpBlksLow: max wp blocks in queue is 800 (80 %)

MBUF component UP

DpMsgProcess: 1 server in MBUF

DpAppcBlksLow: max appc blocks in queue is 500 (50 %)

 

 

Mon Nov 10 09:02:12 2014

DpModState: change server state from STARTING to ACTIVE

 

 

Mon Nov 10 09:02:31 2014

DpWpConf: requested operation mode switch:

DIA 10->10 BTC 3->3 UPD 1->1 UP2 1->1 ENQ 1->1 SPO 1->1 RESTR 0->0 DYN 2->2

DpWpConf: operation mode switch complete

 

 

Mon Nov 10 09:04:08 2014

*** ERROR => DpMsgProcess: MsReceive () -> MSEPARTNERUNKNOWN, partner: -                    [dpxxdisp.c   2597]

 

 

Mon Nov 10 09:04:22 2014

*** ERROR => DpMsgProcess: MsReceive () -> MSEPARTNERUNKNOWN, partner: -                    [dpxxdisp.c   2597]

 

 

Regards,

Patan Thavaheer.

Re: SAP kernel upgradation

Re: SAP on Sybase ASE for Windows Server 2008 R2 - in a Failover cluster environment with RDM

$
0
0

Hi jeff,

i have attached the log results for your reference.

 

C:\Users\sybjep>isql -SJEP -Usapsa -DJEP

Password:

1> exec sp_helpindex 'SAPSR3.ZRFID_ASSIGNMENT'

2> go

Object has the following indexes

 

 

index_name

         index_keys

 

 

 

 

         index_description

 

 

         index_max_rows_per_page

 

 

         index_fillfactor

         index_reservepagegap

 

 

         index_created

 

 

         index_local

------------------------------------------------------------------------

         -----------------------------------------------------------------------

--------------------------------------------------------------------------------

-----------------------------------------

         -----------------------------------------------------------------------

---------

         -----------------------------------------------------------------------

---------------------

         ----------------------------------------------------------------

         -----------------------------------------------------------------------

---------

         -----------------------------------------------------------------------

-----

         ------------------------------------------------

ZRFID_ASSIGNMENT~0

          MANDT, RFID1, EBELN, BEDAT, MBLNR, MJAHR, ZEILE

 

 

 

 

         nonclustered, unique

 

 

                               0

 

 

                        0

                            0

 

 

         Feb 23 2014  9:01AM

 

 

         Global Index

 

 

(1 row affected)

index_ptn_name

 

 

         index_ptn_seg

-------------------------------------------------------------------------------

---------------------------------

         ----------------------------------------------------

ZRFID_ASSIGNMENT~0_603067545

 

 

         default

 

 

(1 row affected)

(return status = 0)

1> exec sp_helpindex 'SAPSR3.ZHU_RFID'

2> go

Object has the following indexes

 

 

index_name

         index_keys

 

 

         index_description

 

 

         index_max_rows_per_page

 

 

         index_fillfactor

         index_reservepagegap

 

 

         index_created

 

 

         index_local

------------------------------------------------

         -----------------------------------------------------------------------

-----------------------------------------------------------------------------

         -----------------------------------------------------------------------

---------

         -----------------------------------------------------------------------

---------------------

         ----------------------------------------------------------------

         -----------------------------------------------------------------------

---------

         -----------------------------------------------------------------------

-----

         ------------------------------------------------

ZHU_RFID~0

          MANDT, HUNO, ZRFID_MAT, KDAUF, KDPOS

 

 

         nonclustered, unique

 

 

                               0

 

 

                        0

                            0

 

 

         Feb 23 2014  9:00AM

 

 

         Global Index

ZHU_RFID~WIP

          MANDT, KDAUF, TCODE

 

 

         nonclustered

 

 

                               0

 

 

                        0

                            0

 

 

         May 14 2014 10:10AM

 

 

         Global Index

 

 

(2 rows affected)

index_ptn_name

 

 

         index_ptn_seg

-------------------------------------------------------------------------------

-------------

         ----------------------------------------------------

ZHU_RFID~0_1491350638

 

 

         default

ZHU_RFID~WIP_1491350638

 

 

         default

 

 

(2 rows affected)

(return status = 0)

1>

Re: SAP on Sybase ASE for Windows Server 2008 R2 - in a Failover cluster environment with RDM

$
0
0

Sort of what I expected.   All the physical IO and probably most of the CPU usage you are seeing is due to those queries.   With respect to your earlier concern and the log device, I would make it a very low priority right now.   Your #1 priority - and this should be treated as an *immediate* action is to add a couple of indexes.   I will explain why:

 

Take the top query in that output from earlier:

 

SELECT TOP1 FROM "ZRFID_ASSIGNMENT" WHERE "MANDT"= ? AND "RFID2" = ?

 

The only index on ZRFID_ASSIGNMENT is on the keys {MANDT, RFID1, EBELN, BEDAT, MBLNR, MJAHR, ZEILE}   ....note that the second column is RFID1 and not RFID2.   Consequently, the database has no choice other than to tablescan this table - which could drive a lot of physical reads, except DBA Cockpit is showing 0 for Total PhysicalReads.....but 17 billion logical reads.   All you need to do is:

 

create nonclustered index SAPSR3."ZRFID_ASSIGNMENT~Z0"

       on "ZRFID_ASSIGNMENT" ("MANDT","RFID2")

       with statistics hashing, statistics using 100 values

 

then

 

exec sp_recompile 'SAPSR3.ZRFID_ASSIGNMENT'

 

....and that query will be a ton faster and likely not consume as much data cache.

 

Similarly the second query:

 

SELECT * FROM "ZHU_RFID" WHERE "MANDT"=? and "ZRFID_MAT" IN (?, ?, ?, ?, ?, ?, ?, ?, ...)

 

That table has two indexes:

 

ZHU_RFID~0         {MANDT, HUNO, ZRFID_MAT, KDAUF, KDPOS}

ZHU_RFID~WIP    {MANDT, KDAUF, TCODE}

 

It is possible that the query shoud use ZHU_RFID~0 index as ZRFID_MAT is the third column - but since HUNO is not in the query, the optimizer has to look at how unique the HUNO column is and determine if it can simply do an OR strategy and use the index or if the HUNO column is too unique, then it has to consider an index leaf scan.   In this case, with the large IN() clause, it would have to make this determination for each of the IN() clause values and then aggregate the result to see if a table scan would be faster.   I suspect, it considered the latter....or an index leaf scan.    I would add an index:

 

create nonclustered index SAPSR3."ZHU_RFID~Z1"

       on "ZHU_RFID" ("MANDT","ZRFID_MAT")

       with statistics hashing, statistics using 100 values


As with the first query, this was not a major contributor to Physical Reads directly - OTHER than possibly that because of all the table scans, it was causing a lot of cache volatility resulting in tables being re-scanned as these table scans consumed memory.    If these tables are small, I would also consider adding them to the queue cache (see SAPNote on Best Practices).

 

However, if you look at the results you published, you will see a query that *DOES* do a lot of physical reads:

 

SELECT * FROM "ZMM_RFID_TRSPOST" WHERE "MANDT"=? AND "TOPLANT"=? AND "UBNUM" = ? OR "MANDT"=? AND "TOPLANT"=? AND "UBNUM" = ? ....

 

Which did 18 million physical reads.   If you do a sp_helpindex on that table, I suspect you will not find an index on the keys {MANDT,TOPLANT,UBNUM} which it needs.    Given that all of these are "Z" tables, I wonder if in the old system, no one sync'd the catalog with the indexes that were created on these tables and as a result, during migration, these indexes were not created as they were not in the catalog.   

 

What you also may want to do is do the same as before (use DBACockpit --> Performance --> Statement Cache) and this time click on the TotalPhysicalReads column to sort by Physical Reads.    Also, expand the query column or at least when posting, show enough that we can see the table names involved.    There is another query at line 5 of the original post that begins:

 

SELECT "EBELN", "EBELP", "ZEKKN", "VGABE", "GJAHR", "BELNR", ....

 

Which is also driving a large number of physical reads....but not enough of the query is visible to see even what table it is on - let alone the WHERE clause predicates to see what indexing should have been available.   However, with 14554 executions and 474096550 TotalLogicalReads + 3391082 TotalPhysicalReads, that is 32575 LogicalReads and 233 PhysicalReads per execution...that's a bit much unless the query is returning thousands of rows for every execution.  It is likely that either ASE is using a partial index that isn't very useful for the query as a whole or that there is a lot of data skew driving a table scan for one set of values but that cached plan is then used for others.   Impossible to tell without seeing the query, the indexes and some other data......but it also may not be one of the worst offenders as there may be even worse queries not visible in your output.   One option to consider is that most SAP screens (including DBACockpit) have the ability to output to a MS Excel spreadsheet.   If you get the results, you may want to do that as it is easier to work from vs. screen images and the full query text will likely be there as well.

Viewing all 3678 articles
Browse latest View live


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