3
8/16/2019 0001757691 http://slidepdf.com/reader/full/0001757691 1/3 1. 1757691 - SYB: How to manually update index statistics of a table using isql Version 4 Type SAP Knowledge Base Article Language English Master Language English Component BC-DB-SYB (SAP Business Suite on Sybase ASE Database Platform) Released On 09.09.2015 Please find the original document at https://launchpad.support.sap.com/#/notes/1757691 Symptom You are running SAP Business Suite applications on the SAP ASE database. The system experiences performance problems against one or more jobs/programs all of a sudden or in an untimely manner. In order to mitigate any database-related factors which maybe affecting performance, you would like to update the index statistics of database tables manually via command line tool "isql", in addition to and/or outside of DBACockpit ATM routines. Environment SAP Business Suite running on SAP Sybase ASE 15.7 or SAP ASE 16.0 Cause Following application upgrades, data loads or other similar situations which affect data volume and density, we may find performance problems to arise. In such situations, it is advisable to update the table and/or index statistics for the tables referenced in slow-running queries and jobs. The statistics updates may have to be run outside of the regularly-scheduled DBACockpit ATM routines. For which a manual option is available. Resolution To update index statistics for a given single table: Log on to the operating system with user <sid>adm or syb<sid> 2016-05-14 Page 1/3 © 2016 SAP SE or an SAP affiliate company. All rights reserved

0001757691

Embed Size (px)

Citation preview

Page 1: 0001757691

8/16/2019 0001757691

http://slidepdf.com/reader/full/0001757691 1/3

1.

1757691 - SYB: How to manually update index statistics of atable using isql

Version 4 TypeSAP KnowledgeBase Article

Language English Master Language

English

ComponentBC-DB-SYB (SAP Business Suite onSybase ASE Database Platform)

ReleasedOn

09.09.2015

Please find the original document at https://launchpad.support.sap.com/#/notes/1757691

Symptom

You are running SAP Business Suite applications on the SAP ASE database.

The system experiences performance problems against one or more jobs/programs all of asudden or in an untimely manner.

In order to mitigate any database-related factors which maybe affecting performance, you wouldlike to update the index statistics of database tables manually via command line tool "isql", inaddition to and/or outside of DBACockpit ATM routines.

Environment

SAP Business Suite running on SAP Sybase ASE 15.7 or SAP ASE 16.0

Cause

Following application upgrades, data loads or other similar situations which affect data volumeand density, we may find performance problems to arise.

In such situations, it is advisable to update the table and/or index statistics for the tablesreferenced in slow-running queries and jobs.

The statistics updates may have to be run outside of the regularly-scheduled DBACockpit ATMroutines. For which a manual option is available.

Resolution

To update index statistics for a given single table:

Log on to the operating system with user <sid>adm or syb<sid>

2016-05-14 Page 1/3

© 2016 SAP SE or an SAP affiliate company. All rights reserved

Page 2: 0001757691

8/16/2019 0001757691

http://slidepdf.com/reader/full/0001757691 2/3

2.

3.

1.

2.

Open a shell / command line and connect to the database server using isql. Enter thepassword of sapsa user when prompted:

isql -Usapsa -S<SID> -D<SID> -XPassword:

Use the following command to update the index statistics for AS ABAP tables:

set quoted_identifierongoupdateindex statistics SAPSR3."<TABLENAME>"go

Use the following command to update the index statistics for AS Java tables:

set quoted_identifierongoupdateindex statistics SAPSR3DB."<TABLENAME>"go

Example:

<SID> -D<SID> -X Password: 1> set quoted_identifier on 2> go 1> u pdate index statistics SAPSR3."/1CN/CPASAP00001" 2> go 1>

If you are required to manually update the index statistics for all tables in the <SID> database:

Download the attached archive run_update_index_stats.SAR and extract the relevant scriptfor Windows or UNIX platforms.Execute the script to directly perform the update index statistics commands, eg:

% isql -Usapsa -S<SID> -D<SID> -X -i run_update_index_stats_{win|unix}.sqlPassword:

See Also

The SAP Sybase ASE documentation set provides more details about the update statisticscommand and further options: refer to andPerformance and Tuning Series Reference Manuals:

.Commands

Automatic update index statistics setup is described in article DBA Cockpit: Automatic Table.Maintenance for Sybase ASE

Keywords

2016-05-14 Page 2/3

© 2016 SAP SE or an SAP affiliate company. All rights reserved

Page 3: 0001757691

8/16/2019 0001757691

http://slidepdf.com/reader/full/0001757691 3/3