Professional Documents
Culture Documents
NLS 1
NLS 1
Rainer Uhle
Product Management SAP EDW (BW / HANA), SAP SE
Dr. Peter Zimmerer
Chief Development Architect BW, SAP SE
Public
Abstract
SAP Business Warehouse Near-Line Storage (NLS) allows the implementation of sound data aging strategy
for transactional data. This session covers the latest NLS optimizations regarding NLS Query performance,
a better tool support during NLS implementation, and even more visibility of SAP BW NLS and SAP IQ-
related aspects in the DBA Cockpit.
Disclaimer
This presentation outlines our general product direction and should not be relied on in making a
purchase decision. This presentation is not subject to your license agreement or any other agreement
with SAP. SAP has no obligation to pursue any course of business outlined in this presentation or to
develop or release any functionality mentioned in this presentation. This presentation and SAP's
strategy and possible future developments are subject to change and may be changed by SAP at any
time for any reason without notice. This document is provided without a warranty of any kind, either
express or implied, including but not limited to, the implied warranties of merchantability, fitness for a
particular purpose, or non-infringement. SAP assumes no responsibility for errors or omissions in this
document, except if such damages were caused by SAP intentionally or grossly negligent.
Orchestration
Orchestration
Process
Process
NLS-
• Secondary Database (always SAP IQ)
BW NLS4IQ
Partner
SAP Native • Slave (detouchable without breaking
OEM
SAP the whole system), non-active data,
HANA lower performance accepted, only bulk
loads at scheduled PITs*, entirely read-
only, low frequent access, longer MTTR
acceptable
SAP owned alternative to
existing NLS-Partner Solutions *) MTTR – Mean Time To Recover
PIT - Point in Time
Supported
InfoProvider Standard
Types per
InfoCube w/o DSO PSA
DSO
‚temperature‘
not not
HOT recommended recommended
HANA
currently not currently not
WARM supported supported
not supported
COLD Archive
by SAP (PBS)
Verification Phase:
Load Performance
Technical key of archived records is retrieved and verified for completeness
Improvements under
continous
Deletion Phase:
investigation … Throughput
Before data is deleted from primary database
(still potential for Up to
• Deletion proceeds only if the latest backup includes all the data from the copy
improvements)
phase 250 Mio.
• Data is deleted from the BW database and Archived Data in NLS becomes active rows/h
• IQ Backup Event is Triggered to capture the end state of the NLS database (100 GByte/h)
BW NLS Implementation
Update
InfoProvider capabilities
Newer… coming soon!!
Q1/2011 NLS - Interface (‚Straggler
Q4/2010 Management‘)
Locked
Q3/2010 (SP12)
for Q3/2010
update Q2/2010
Q1/2010
Updates for archived
records in the period
Q1 to Q3 2010 can be
Source managed using DTP
RDBMS
Error Handling after
NLS reload
NLS ‚Latency
Factor‘
Further NLS Read around
Performance 20
Improvements
based on
HANA SDA
available
(SP08)
IQ Backup Automation
Event trigger for incremental backup in IQ during data
relocation to NLS (BW 7.0 SP32)
Analytic Query
VirtualTable can be used in
BW HANA CalcView
NLS-Split • Initial version w/ HANA SP07
• Full plan optimizations w/ HANA SP08
Facts (nearline)
SAP IQ
© 2014 SAP SE or an SAP affiliate company. All rights reserved. Public 20
Runtime Example from E-Procurement without NLS
62 ms runtime
without NLS
(please keep in mind)
Query Result:
Drill down
NavAttr Region
277 ms
drill down into
NavAttr Region
(please keep in mind)
Much more
traffic and
runtime
w/o HANA SDA
Runtime
without
NLS
Runtime with
100% NLS
Facts (nearline)
SAP IQ
© 2014 SAP SE or an SAP affiliate company. All rights reserved. Public 25
Example from Flight Bookings with NLS using HANA CalcView&SQL
• Query processing on InfoProviders should be optimized in a way that meta data on existing NLS
partitions is leveraged in order to avoid unnecessary access to NLS partitions of this InfoProvider in
an early stage of query processing.
• Pruning not only based on primary time characteristic (PTC) but also on additional time
characteristics (OTC) which are consistent (e.g. 0CALDAY/0CALMONTH). A time shift index
provides PTC/OTC intervals in order to support pruning more effectively.
• The index information needs to be calculated for each new partition (i.e. archiving request) moved
to Near-line Storage at the time of relocation. The time shifts will be calculated on archiving request
level between the end of the request’s copy phase and the beginning of its deletion phase.
• Time shift Index based pruning has to be activated by maintaining the RSADMIN parameter
‘RSDA_TIMESHIFT_INDEX’
• ‚ACT‘ or ‚PRD‘ - Index maintenance + query pruning switched on
• ‚INA‘ - only index maintenance
floor()
• SAP BW 7.4 SP08 + HANA SP08 + SAP IQ 16.0 + Remote Source (SDA) configured for NLS Connection
• The allowed characteristics for time slices in the Data Archiving Process shall be only the most refined common time
reference characteristic. Users can only enter relatively time conditions such as ‘Only Data Records Older than’ to ensure
that the resulting Archiving interval is consistently with an lower boundary equal ‘0’ without gaps. This ensures the best
query performance.
• During the execution of a query the inventory-handling in the data-manager checks whether there is an adjoined near-line-
storage and if the time-interval, requested by the query has an overlap with the overall time slice partition in the near-line-
storage (Partition Pruning)
goods receipt
goods issue
t1 t2 persistent
• Technical Content available for Query Selection statistics and Data Size Growth overview
• DAP Mass Maintenance can be found as Housekeeping Task for Data Aging in the Administration area
• The worklist of Data Archiving Processes can be filled using an example InfoProvider, InfoArea selection, and
Naming patterns
• Central input supported for properties regarding NLS Connection, Time Slice Characteristic, and Partition
Characteristic
• Central creation of DAP Variants based on existing DAP worklist, explicit Variant settings, and predefined
Variant patterns
Preparation
Implementation Guide provides
Technical Content for
Selection Statistics
InfoProvider Maintainance
Selection Statistics
Content queries show
Growth per InfoProvider
Query statistics per InfoProvider and
periods
over time
Administration
Housekeeping tasks
Data Aging
• The DBA Cockpit is a platform-independent tool for monitoring and administering your database. The
advantage of using the DBA Cockpit is that it has been specifically designed for the SAP system landscape,
and supports adapting databases for the workload of SAP systems. All important performance tuning,
monitoring, and administration tasks are available in a single transaction
• The dashboard shows a summary of different metrics. Dashboards are defined by a number of plugins, where
each plugin offers an overview of a certain aspect of IQ monitoring. You get information about properties of the
server, database, and connections.
• The dashboard displays when you switch from the System Landscape tab to the Database tab of the DBA
Cockpit.
NLS
Improvements for
combined
DB handling
coming soon!!
(SP09)
In order to improve operations of Near-line Storage if near-line data is unavailable, a new Connection
Mode property of a Near-line Connection has been introduced:
… will be
System End of life of integrated into
Copy system Post Copy
Automation
(PCA)
BW old
Connetion Mode Connetion Mode ‚Read only‘
‚Productive‘
IQ NLS
Connetion Mode ‚Read only‘ Connetion Mode ‚Productive‘
BW new
Time
• …
© 2014 SAP SE or an SAP affiliate company. All rights reserved. Public 47
SAP NetWeaver BW
Product Roadmap Focusing – BW NLS Implementation for Sybase IQ
Recent achievements Upcoming planned release Future innovations
BW NLS Enhancements Data Management Aspects
Implementation specifications
(HANA SP08/09 + BW SP08) Including BW/ IQ NLS in High Availability concept
Optimized performance for NLS read purposes
(HANA DA with BW 7.4 SP05) NLS support for BW Inventory Cubes Migration from former NLS Partner solutions to
Further improvement of NLS Query performance SAP IQ NLS
Supported Platforms Server/Client due to SDA optimizations Sybase IQ Schema Copy
(SDA Virtual Tables can be used in Supporting Sybase IQ Read-only DB spaces
Sybase IQ 16.0 SP3
HANA CalcViews )
Sybase IQ ODBC NLS client for BW AppServer Supporting exceptional insert, updates, and deletes
Generated HANA models of an InfoProvider to write-protected Near-line Partitions (BW SP12)
Windows on x64 64bit, Linux (x86_64 64bit),
support NLS
AIX 64bit, HP-UX, Solaris, OS/400
Extended Pruning for time characteristics
Error DTP Handling in case of NLS caused lock New type of NLS Tables
violations BW NLS Implementation Support Supporting Advanced DataStore Object (ADSO)
Support for Standard DSO with Mass maintenance Support (BW 7.40 SP 8) for
BW 7.3 SP11 (resp. Note 1931784) generating DAPs, DAP Variants, Process Chains
Cloud support for NLS
IQ Backup Automation Further improvements on Administration/ NLSaaS in the HEC
Event trigger for incremental backup in IQ during data Management Aspects
relocation to NLS (BW 7.0 SP32) DBA Cockpit Integration for Sybase IQ
(BW 7.40 SP 8 + downports up to NW 7.02)
- General monitoring capabilities for attached
BW NLS Downport to BW 7.0
Sybase IQ
BW 7.0 SP32 (CW2/2014)
DBs
BW 7.0 SP28 with note 1858550
• InfoProvider data in Near-line Storage will stay partition-wise read-only per default.
• Read-only restriction could be temporarily suspended for exceptional update operations (including INSERT,
UPDATE, and DELETE operations on logical row level)
• Update operations per table will happen in bulk mode with a frequency not essentially higher than 1/day (i.e.
update will be an exceptional case)
• Update operations can be mapped to classical Near-line Interface with backward compatible extensions (see
SAP Note 1025273 "Near-line interface: Technical documentation" for details about the Near-line
Interface).
• Analytic Query access, ETL processes , and Lookups on object level shall rely on a consistent data view
between online data and nearline data.
Online Table
Activation
2012 O11 R12.11 N13.11
ins+
2011 O4 R5.4 N6.4 R8.4 N10.4 R14.4 N15.4 O16
ins- storage)
BW NLS Implementation
InfoProvider
Newer…
Q1/2011
Q4/2010 NLS – Relocation
Daily loads create
Locked
Q3/2010 (on a quarterly basis)
Error DTPs from for Q3/2010
time to time … update Q2/2010
Q1/2010
Weekly jobs
1. Near-line Storage helps to reduce TCO and gives seamless access to massive
amounts of aged resp. inactive data to reveal trends, patterns, correlations
2. With its columnar store and compression mechanisms, SAP IQ ideally complements
SAP HANA as NLS store
3. Finally NLS also supports any kind of inventory handling in BW and opens up a new
category of high volume InfoProviders for NLS based volume optimization
4. SAP HANAs Smart Data Access capabilities guarantee optimized performance for NLS
query access even in case of complex filter criteria.
5. The read-only restriction for NLS data can now be temporarily suspended for
exceptional update operations.
6. With the latest enhancements to their NLS solution SAP competes against all existing
NLS solutions of our certified NLS Development Partners.
SAP NLS is optimized for BW on HANA.
Update support
package to SAP BW
7.3x or higher
Archive historical
DAP … N
DAP 1 data to near-line
storage
Configure SAP NW BW Implementation of data
Install/configure to use SAP Sybase IQ aging strategy in SAP NW
SAP Sybase IQ as near-line storage BW for historical data
Delete already archived
data from online SAP
NetWeaver BW system
Contact information:
Watch on YOUTUBE
http://www.youtube.com/watch?v=0V4cwZFTlYE
https://open.sap.com/courses/bwhana1/
No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP SE or an
SAP affiliate company.
SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP SE
(or an SAP affiliate company) in Germany and other countries. Please see http://global12.sap.com/corporate-en/legal/copyright/index.epx for additional trademark
information and notices.
Some software products marketed by SAP SE and its distributors contain proprietary software components of other software vendors.
National product specifications may vary.
These materials are provided by SAP SE or an SAP affiliate company for informational purposes only, without representation or warranty of any kind, and SAP SE or its
affiliated companies shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP SE or
SAP affiliate company products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing
herein should be construed as constituting an additional warranty.
In particular, SAP SE or its affiliated companies have no obligation to pursue any course of business outlined in this document or any related presentation, or to develop or
release any functionality mentioned therein. This document, or any related presentation, and SAP SE’s or its affiliated companies’ strategy and possible future
developments, products, and/or platform directions and functionality are all subject to change and may be changed by SAP SE or its affiliated companies at any time for any
reason without notice. The information in this document is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. All forward-looking
statements are subject to various risks and uncertainties that could cause actual results to differ materially from expectations. Readers are cautioned not to place undue
reliance on these forward-looking statements, which speak only as of their dates, and they should not be relied upon in making purchasing decisions.