Best Practices SAP ASE v1.4

Click here to load reader

  • date post

    05-Jul-2018
  • Category

    Documents

  • view

    226
  • download

    0

Embed Size (px)

Transcript of Best Practices SAP ASE v1.4

  • 8/16/2019 Best Practices SAP ASE v1.4

    1/69

  • 8/16/2019 Best Practices SAP ASE v1.4

    2/69

  • 8/16/2019 Best Practices SAP ASE v1.4

    3/69

    Best Practices for Migration and Runtime

    3

    Advanced ASE Runtime Configuration ............................................................................................................ 49 Log and Other Named Caches ........................................................................................................................... 49

    Named Cache for SAP Temporary Database ........................................................................................................ 52 Optimize Performance of SAP Queue Tables ....................................................................................................... 53 Optimize Performance of SAP Lookup and Small Tables ....................................................................................... 53 Optimize On-Row LOB Storage ......................................................................................................................... 53 Runtime Configuration for SAP BW .................................................................................................................. 54

    Correction Collections ............................................................................................................................... 54 Table Partitioning of Fact Tables of an InfoCube ........................................................................................... 54 Table Statistics ......................................................................................................................................... 55

    Database Security .......................................................................................................................................... 58 Database Logins and Roles ............................................................................................................................... 58

    sa login .................................................................................................................................................... 58 sapsa Login .............................................................................................................................................. 58 sapsso Login ............................................................................................................................................. 60

    Named DBA Logins .................................................................................................................................. 60

    Named SSO Logins ................................................................................................................................... 60 Automated Job Logins ............................................................................................................................... 60 Operating System ASE SID Account .................................................................................................................. 61 Login Triggers ................................................................................................................................................ 61 Auditing ......................................................................................................................................................... 63

    Additional Sources ......................................................................................................................................... 64

    Appendix ...................................................................................................................................................... 65 Dynamic Cache Sizing ..................................................................................................................................... 65 Check Completeness of Table Statistics ............................................................................................................... 68

  • 8/16/2019 Best Practices SAP ASE v1.4

    4/69

    Best Practices for Migration and Runtime

    4

    Version History

    Version Date Comments 1.0 20.12.2012 Initial Version 1.1 01.03.2013 Formal Update 1.2 30.04.2014 Updated for SAP Sybase ASE 15.7 SP110 1.3 30.04.2015 Updated for SAP Sybase ASE 15.7 SP132 and SAP ASE 16.0 SP01

    Optimized document structure by separating migration- and runtime-related topics.

    1.4 10.09.2015 Update for SAP Business Warehouse

    Most recent version of this best practice guide is always attached to SAP Note 1680803 .

    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ%3D%3D)/bc/bsp/spn/sapnotes/index2.htm?numm=1680803 https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ%3D%3D)/bc/bsp/spn/sapnotes/index2.htm?numm=1680803 https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ%3D%3D)/bc/bsp/spn/sapnotes/index2.htm?numm=1680803

  • 8/16/2019 Best Practices SAP ASE v1.4

    5/69

    Best Practices for Migration and Runtime

    5

    Introduction

    This document describes best practices that are specific to the migration and operation of SAP NetWeaver- based products on SAP Adaptive Server Enterprise (SAP ASE).

    In addition, this guide provides best practices for SAP Business Warehouse (SAP BW) and other SAP applications based on SAP BW, like SCM/APO, SEM, and the SAP Solution Manager.

    Besides the SAP ASE-specific migration optimizations described in this document, there are several database- independent tuning measures that should be considered:

    Sorted and Unsorted Unload Package Splitting Table Splitting R3load Options Migration and Distribution Monitor Defining Unload and Load Order

    Prerequisi tes You should be familiar with performing basic OS administration tasks, understand the basic architecture of SAP

    ASE and know how to use the ASE SQL command line interface (isql).

    For the migration-related chapters, you should also be familiar with the database independent migration process as well as the SAP tools involved (R3load, Migration Monitor, Distribution Monitor and so on). The methods described can be used to optimize the standard system copy procedure.

    The methods and procedures described in this document are dependent on specific enhancements that were provided through various updates of both SAP and ASE binaries. While there are mandatory minimums, because product defects have been fixed in later releases as well as new functionality introduced, it is strongly recommended that you begin with a current supported version of the products and utilities.

    Due to features referenced in this document, it is not recommended that you apply described methods to

    versions earlier than: SAP ASE: SAP ASE 15.7 FOR BUS.SUITE SP135

    SAP ASE 16.0 FOR BUS.SUITE SP01 PL01

    ODBC: SAP ASE 15.7 FOR BUS. SUITE DBCLIENT.SAR SP15 PL0 SAP ASE 16.0 FOR BUS. SUITE DBCLIENT.SAR SP01 PL01/EBF 24040

    DBSL: SAP KERNEL 7.20 EXT 64-BIT UC patch level 610

    R3load: SAP KERNEL 7.20 EXT 64-BIT UC patch level 610

    R3ldctl: SAP KERNEL 7.20 EXT 64-BIT UC patch level 610

    Installer: SAP KERNEL 7.20 EXT 64-BIT UC patch level 610

    See SAP Note 1554717 for up-to-date information on mandatory minimum versions. Earlier installations to previous releases should consider upgrading when possible in order to leverage the new functionality and improvements.

    SAP NetWeaver and SAP Business Suite customers are only allowed to download and use ASE binaries available on the SAP Service Marketplace that are tagged “FOR BUS. SUITE”.

    http://support.sap.com/swdc → Databases → SAP Adaptive Server Enterprise → Database Patches → SAP ASE FOR BUSINESS SUITE

    The Software Provisioning Manager is available on the SAP Service Marketplace:

    http://support.sap.com/swdc → Browse Our Download Catalog → SAP Technology Components → SL TOOLSET → SL TOOLSET 1.0 → Entry by Component → Software Provisioning Manager →

    SOFTWARE PROVISIONING MGR 1.0

    https://css.wdf.sap.corp/sap/support/notes/1554717 https://css.wdf.sap.corp/sap/support/notes/1554717 https://css.wdf.sap.corp/sap/support/notes/1554717 http://support.sap.com/swdc http://support.sap.com/swdc http://support.sap.com/swdc http://support.sap.com/swdc http://support.sap.com/swdc https://css.wdf.sap.corp/sap/support/notes/1554717

  • 8/16/2019 Best Practices SAP ASE v1.4

    6/69

  • 8/16/2019 Best Practices SAP ASE v1.4

    7/69

    Best Practices for Migration and Runtime

    7

    For DBMS data storage, the ext4 or xfs file systems are preferred over ext3 as either can handle large files better than ext3 (ext4 & xfs use extents vs. ext3‘s indirect blocks for allocations in large files among other benefits). For best performance, disable the journal via tune2fs ^has_journal and use the noatime , nodiratime mount options.

    If journaling is not disabled, for ext4 use cache=writeback,barrier=0 mount options in addition to

    noatime , nodi r atime . These options ensure that only meta-data changes to the file system are journaled instead of both meta-data and data changes. For xfs, the recommended mount options are noatime , nodiratime , nobarrier , logbufs=8.

    Memory Configuration/Tuning

    ASE needs shared memory in order to communicate between various processes in the DBMS environment. Other applications may also be using shared memory – as well as the SAP processes i