Quantcast
Channel: SCN : Document List - SAP on SQL Server

Featured Content in SAP on SQL Server

$
0
0

Supported SQL Server Version for SAP NetWeaver 7.4 SR2 NEW !

Note that for SAP NetWeaver 7.4 SR2 (SAP NetWeaver 7.4 SP8)  only SQL Server 2012 is supported. 21 Oct 2014

 

Analyzing Network Errors on SQL Server

SAP application servers occasionally lose connections to the SQL Server database server. This paper discusses how to approach the problem of solving intermittent connection loss, and some common causes of connection problems. Important SAP notes and the preferred problem-solving approach are identified. 19 Feb 2014

 

SQL Server 2012 Column-Store Available For All Major SAP BW Releases

SQL Server 2012 introduced a new storage format for data. Besides the traditional row-oriented store, there is now also a column-oriented store available. The column-oriented store is optimized for aggregating mass data, while the row-oriented store can be optimally used when accessing just a single row. SQL Server 2012 column-store support has been integrated into all major SAP BW releases. You can now benefit from increased query performance and reduced disk space requirements. 05 Nov 2012

 

SAP Database Performance Warehouse for SQL Server in Solution Manager 7.1

The SAP Database Performance Warehouse (DPW) contains key database performance indicators of your SAP system landscape for status reporting and long term performance analysis. It is used by the Solution Manager Diagnostics (SMD) back-end and is therefore an integrated part of SAP Solution Manager. For information about SAP DPW for the previous SAP Solution Manager version 7.0 EHP1, see the following presentation26 Jan 2012

 

Immense Disk Space Savings with SQL Server

Database compression dramatically reduces the disk space needed for an SAP NetWeaver system running on SQL Server. As of SQL Server 2008 R2, this uses an improved encoding algorithm for Unicode, also known as Unicode-compression. This results in less storage requirements for SAP Unicode systems. For more information, see this blog. In May 2011, SAP changed the default compression type from ROW to PAGE compression, which led to an additional reduction in the database size. For more information, see this document. 22 Sep 2011

 

The DBA Cockpit and Microsoft SQL Server

The DBA Cockpit is a powerful feature for SAP NetWeaver applications. The following presentations provide tips and advice on how system administrators can use the DBA Cockpit for local monitoring and analysis of Microsoft SQL Server systems. Each presentation includes a PowerPoint with audible narration.

31 Aug 2011

 

 

See more recently featured content


SAP on MS SQL Server - Installation and Upgrade

$
0
0

Here you can find resources and guides to help you install or upgrade your SAP system with MS SQL Server. Technical documentation of this type is available on SAP Service Marketplace (SMP), for which an SMP login is required. You can find out more about SMP access in this helpful FAQ.

SAP BW Columnstore Optimized Flat Cube on Microsoft SQL Server

$
0
0

The Columnstore Optimized Flat Cube is an alternative cube design that is available as of SAP BW 7.4 SP 8 on Microsoft SQL Server. It uses the same simplified database structures as the HANA Optimized Cube, which results in simplified BW queries and reduced disk space usage.

View this Document

KBAs/Notes released/updated on April 2015

$
0
0

The purpose of this document is to provide a list of KBAs/Notes that were released/updated on April 2015.

 

BC-DB-MSS*

948633Hangman.vbs
1644499Database connectivity from Linux to SQL Server
1702408Configuration Parameters for SQL Server 2012
1744217MSSQL: Improving the database performance
1743611SQL Server Setup Check reports: "Triggers not from SAP are not supported!"
1760299MSSQL: Special characters appear damaged on database level
1820535Unspecified error occurred in GET_RAT_VERSION(2) or SMSS_SYST_SETUP(2)
1823300Which SQL Server Native Client version (SNAC) is used by the ABAP workprocesses
1874995SQL error 195: 'OBJECT_SCHEMA_NAME' is not a recognized built-in function
1975120DBAcockpit SQL Server Setup Check: Alert warning message 'Core limited edition
1986775Configuration Parameters for SQL Server 2014
2052771MSS: Additional Information – Software Update Manager 1.0 SP13
2054911How to verify which SQL Server process belongs to an SAP work process
2109404Signal 11 in DBCON connections to SQL Server
2115361error in SUM Phase DBCLONE - Incorrect syntax near the keyword 'with'
2116639SQL Server 2014 Columnstore documentation
2142959How to check the version of Microsoft JDBC Driver for SQL Server
2151084Database Size History display error in column AllocSpace
2153121StmtCacheGetFreeItem: NULL (freelist && preppedlist NULL)
2154018SQL error SQL code -1:  Invalid Descriptor Index
2154386Arithmetic overflow error converting IDENTITY to data type int in table DDLOG
2155071Error when executing script sap_create_clr_objects
2155097Possible Loss of Decimal Accuracy Extracting Data on Linux from SQL Server
2155771DBACOCKPIT -  SQL error 208: Invalid object name 'sap_get_para'.
2157512Error selecting properties of <SID> database in SQL Server Management Studio

 

BW-SYS-DB-MSS

2153188SQL Error 35377
2155419Dump ASSERTION_FAILED when running  RS_BW_POST_MIGRATION

 

Please note, in order to view the contents of the guides and SAP Notes, you will need to be logged into Service Marketplace.

Installation guides and notes for SQL Server Netweaver based products

$
0
0

The purpose of this document is to provide a location list of the installation guides for SQL Server Netweaver based products and notes.

 

Guides

 

https://service.sap.com/instguides

  • Database Upgrades
    • MS SQL Server
      • Upgrade to and Installation of SQL Server 2000
      • Upgrade to and Installation of SQL Server 2005
      • Upgrade to and Installation of SQL Server 2008 (R2)
      • Upgrade to and Installation of SQL Server 2012
      • Upgrade to and Installation of SQL Server 2014

 

Notes

 

Note Number

Note Title
209596Setting Up Microsoft SQL Server 2000
799058Setting Up Microsoft SQL Server 2005
1152240Setting Up Microsoft SQL Server 2008 (R2)
1676665Setting Up Microsoft SQL Server 2012
1966701Setting Up Microsoft SQL Server 2014

 

Please note, in order to view the contents of the guides and SAP Notes, you will need to be logged into Service Marketplace.

Download Media for Microsoft SQL Server for SAP NetWeaver based systems

$
0
0

The purpose of this document is to clarify about the access to the download media of SQL Server.

 

New General Download Restrictions for all SQL Server Releases:

As of April 2015, downloading the SQL Server installation media for NetWeaver based systems from the SAP Service Market Place is restricted to SAP customers who have licensed Microsoft SQL Server through SAP. SAP customers who have acquired their SQL Server license from Microsoft or a re-seller, needs to obtain the installation media from Microsoft or the re-seller.

 

 

SQL Server 2014 Download Restrictions:

As of SQL Server 2014, Microsoft has included new Use Terms in the licenses sold under the reselling agreement with SAP. As a re-seller, we must notify customers of the new Use Terms and we must receive acknowledgement of the customers' receipt of the terms. Therefore, all customers who have purchased their SQL Server license from SAP must contact their SAP Account Executive (or SAP Partner/Re-seller) in order to obtain a copy of the new use terms via an Amendment and sign their receipt of the Amendment. If you have not signed the agreement you will not be able to see the SQL Server 2014 in the download area of SAP Service Marketplace!

 

Regarding the new Use Terms, see SAP Note 2139358 for more details on the change. Once you have returned the signed Amendment, SAP will enable download of SQL Server 2014 and subsequent editions for your installations.

 

SAP Notes about Installation Media:

 

Note NumberNote Title
1970448SAP Installation Media and SQL4SAP for SQL Server 2014
1684545SAP Installation Media and SQL4SAP for SQL Server 2012
1144459SAP Installation Media and SQL4SAP for SQL Server 2008 (R2)
896566SQL4SAP and SAP Installation Media for SQL Server 2005

Important SAP Notes on SQL Server

$
0
0

Here you can find important SAP notes about SQL Server (SMP login required):


Note Number: TitleSubject
555223: FAQ: Microsoft SQL ServerFAQs

1076022: Release planning for Microsoft SQL Server 2008 (R2)
1152240: Setting Up Microsoft SQL Server 2008 (R2)
1144459: SQL4SAP and SAP Installation Media for SQL Server 2008

1473016: Service Pack Installation for SQL Server 2008
1279358: Cumulative Update Installation for SQL Server 2008
1260968: COPYTOSHADOW: R3trans loses reports

1237682: Configuration Parameters for SQL Server 2008

1600699: Microsoft jdbc driver 1.2 support

62988: Service Packs for Microsoft SQL Server

1733195: Microsoft SQL Server version and download list

Installation and Administration of SQL Server 2008 (R2)

398136: Support Policy for Microsoft SQL Server

1177356: MS SQL Server: End of Support for SAP Releases

Non-Release Specific Support Information

1027512: MSSQL: DBA cockpit for basis release 7.00 and later

683447: SAP Tools for MS SQL Server

SAP SQL Server Database Tools

1248222: ODBC DBSL profile parameters and connect options

208632: TCP/IP network protocol for MSSQL

128126: Database Connect for external tools

1601608: How to access an external SQL Server database

Database Connectivity / Database Library / Profile Parameter

142731: DBCC checks of SQL Server

Database Consistency Checks

767691: Migration of SAP Systems to/from MS SQL Server

151603: Copying an SQL Server database

1086375: There is already an object named '..' in the database

592514: MSSQL: internal database users, permissions and security

1294762: SCHEMA4SAP.VBS

Database Migrations / Copying Databases/ Logins, Users and Schemas

1488135: Database compression for SQL Server

1459005: Enabling index compression for SQL Server

Database Compression

1238993: Proportional File Auto-Growth with SQL Server 2008

363018: File management for SQL Server

Database File Administration

32129: Deadlock analysis for the SQL server

Deadlocks

869407: Partitioning on MS SQL Server

1471910: SQL Server Partitioning in System Copies and DB Migrations

Table Partitioning (only relevant for SAP BW based systems)

965908: SQL Server Database Mirroring and SAP Applications

493290: Configuring SQL server Log shipping

High Availability

44449: Backup strategies with the SQL server

1297986: Backup and Restore strategy for MS SQL Server

1420452: FAQ: Restore and recovery with MS SQL Server

1048382: SQL Server: Third Party Backup Tool support

Backup and Recovery

1744217: Basic requirements to improve the performance of a SQL Server database

1241751: SQL Server minimal logging extensions

1134345: Using locked pages for SQL Server

929031: Using SQL Server Profiler for JAVA (and ABAP)

159171: Recompilation of Stored Procedures

General Performance

129385: Database hints in Open SQL

133381: Database-Hints in Open SQL for MS SQL Server

1552952: Parameter maxmarkercnt increased to 10000

Performance -> Optimizer Hints

1380493: SQL Server Transparent Data Encryption (TDE)

Security

KBAs/Notes released/updated on May/June 2015

$
0
0

The purpose of this document is to provide a list of KBAs/Notes that were released/updated on May/June 2015.


BC-DB-MSS*

Note/KBADescription
948633Hangman.vbs
62988Service packs for MS SQL Server
1145221JDBC driver exchange to Microsoft JDBC Driver
555223FAQ: Microsoft SQL Server
1544360MSSQL: SQL Error 402 during database compression with report MSSCOMPRESS
1552392MSSQL: Transactions DB02 and ST04 fail with "Database '' does not exist" or "In
1558087SQL Server Statistics Maintenance
1583335MSSQL: Incorrect syntax near keyword 'key' in developer traces
1585966Code injection vulnerability in RSMSSPARTDRIV_FORMS with Basis Release 6.40 (#1
1596753Could not load file or assembly when using the SQL Server Management Studio
1601608How to access an external Microsoft SQL Server database
1609770Tracing database queries executed by sapinst, SWPM or SAP Tools for SQL Server
1644499Database connectivity from Linux to SQL Server
1645041FAQ: Microsoft SQL Server logins and their usage in SAP environment
1644991SQL error 15063
1647670Errors due to deferred transaction with MS SQL Server
1648817Disallow Page Level Locks for Microsoft SQL Server
1649078Disabling autostats for certain tables with Microsoft SQL Server
1649349Unable to find MSP file applying SP3 for Microsoft SQL Server 2005
1651862Release planning for Microsoft SQL Server 2012
1674075MSSQL: Database import with R3load fails with: ERROR: unknown template variable
1660220Microsoft SQL Server: Common misconceptions
1667685Correction needed for MSS_FORMAT_RELEASE
1670649MSSQL: sapinst fails in step ExeProcs at stored procedure sap_z_collector for S
1676665Setting up Microsoft SQL Server 2012
1681476sapdbctrl list throws exception
1683385MSSQL: Manually exporting and importing Microsoft SQL Server tables
1693672sapdbctrl list: instance not displayed
1733195Microsoft SQL Server version and download list
1735624MSSQL: SQL Error 3930 shortly after midnight
1743072MSSQL: Login for java stack user SAP<SID>DB fails
1744025Index creation in SE14 fails with incorrect syntax near keyword with
1744217MSSQL: Improving the database performance
1747875MSSQL: Performance problems when accessing certain tables
1760299MSSQL: Special characters appear damaged on database level
1765304MSSQL: SQL error "-2146892976" / SSPI Handshake failed
1768312DBIF_DSQL2_SQL_ERROR when accessing external SQL Server after kernel upgrade
1768363Transaction log file still appears in monitoring transactions after deletion
1790349How to deinstall the SQL Server 2008 (R2) Management Tools only
1788862SQL Error 15406 Principal "sa" does not exist in transactions DB02, SM21, ST11
1803687SQL Error 7139: Length of <datatype> data to be replicated exceeds configured m
1820535Unspecified error occurred in GET_RAT_VERSION(2) or SMSS_SYST_SETUP(2)
1834490SAP_COLLECTOR_FOR_PERFMONITOR fails with SQL Error 512
1834785Cannot use Large Page Extensions:  lock memory privilege was not granted.
1879841R3load: syntax error on export of splitted tables
1926582SQL error 0 when connecting to both IBM DB2 and SQL Server from Linux
1952968Can a non-sap usage database be added in the existing SAP SQL Server enviroment
1966701Setting up Microsoft SQL Server 2014
1966681Release planning for Microsoft SQL Server 2014
2114876Release Planning SAP BW for SQL Server Columnstore
2155771DBACOCKPIT - SQL error 208: Invalid object name 'sap_get_para'.
2052771MSS: Additional Information – Software Update Manager 1.0 SP13
2109404Signal 11 in DBCON connections to SQL Server
2115516Continuous growth of the tempdb transaction log in SQL Server
2116639SQL Server 2014 Columnstore documentation
2144575An improved prefer_join method for FOR ALL ENTRIES
2149905Error in DBACOCKPIT when statements contain comments with a filename path
2152992sapdbctrl: Login failed for user domain\host$
2154018SQL error SQL code -1: Invalid Descriptor Index
2155097Possible Loss of Decimal Accuracy Extracting Data on Linux from SQL Server
2155071Error when executing script sap_create_clr_objects
2173632Clarification of Core based licensing
2183638OSQL call failed for MSSUPGGETREL - PREP_PRE_CHECK/DBCHK_PRE
2186781CREATE UNIQUE INDEX terminated because a duplicate key

 

BC-DB-MSS-CCM*

Note/KBADescription
1588547MSSQL: RZ20 and/or SQL Server Setup Check report "There are different versions
1648566How to collect a blocking lockstats history in transaction DBACockpit
1899404SQL errors 15250 and 15234 appear in the system log
1664359RZ20: Rebuilding the MS SQL Server Monitoring Tree
1665356MSSQL: Update Tabstats job fails with SQL Error 15250
1803619Database Extractor Setup fails with: Wrong number of input parameters [sap_set_
1736430SAP CCMS Cleanup Saplocks SQL Agent job is missing
1738605CX_SY_ARITHMETIC_OVERFLOW dump for SAP_COLLECTOR_FOR_PERFMONITOR job
1741937MSSQL: Finding all tables and indexes which were created within a specific time
1743611SQL Server Setup Check reports: "Triggers not from SAP are not supported!"
1744830How to reset DBACockpit settings in order to rerun the Solution Manager Wizard
1835477MSS: Single Table Analysis causes error CX_SY_STRUCT_COMP_TYPE
2153963DBACOCKPIT (DB13 and DB12) not working correctly with SQL Server AlwaysOn and M
2174759Data is not sorted in DBACOCKPIT SQL Statements
2176849Invalid column name in sap_get_dvm_table_sizes
2177932DB02 Transaction - Authorization Error
683447SAP Tools for MS SQL Server
1526169SQL4SAP.vbs fails with WMI error (Windows Management Instrumentation)
1541738Creating a modified 6.40 Installation Master DVD
1768319Installing MS SQL Server fails with: Error 1639 Invalid command line argument

 

BW-SYS-DB-MSS*

Note/KBADescription
739650/SAPAPO/RLGCOPY: RAISE_EXCEPTION X_MESSAGE in SAPLRSDRD
2029797Support for Flat Cube on Microsoft SQL Server
2153188SQL Error 35377
2164234MSS Prerequisite note: CL_RSMSS_SWITCH
2167992SQL Error 8152 During BW Cube Compression

 

KBAs/Notes that belongs to other components but are related to SAP NetWeaver on SQL Server:

 

ComponentKBA/NoteDescription
BC-INS888210NW 7.**: System copy (supplementary note)
BC-UPG-TLS-TLJ2169201SUM fails in GRANT-SHADOW-PRIVILEGES phase when using MSSQL database
BW-BEX-OT-DBIF1557321Numeric Overflow during standard BW processes
BW-SYS-DB2168105Conversion from star to flat InfoCube may create compressed records with duplic
BC-CCM-MON1265134DBA Cockpit: Connection of a remote database
BC-DB1602869Bad performance when using transaction SE16 or SE16N to browse data
BC-DB-DB61951491Minimal DB system platform requirements for SAP NetWeaver 7.4 SP08
BC-DB-DB6-CCM2067630DBA Cockpit: Missing authorizations during administration of jobs and scripts
SV-BO-DB706478Preventing Basis tables from increasing considerably

 

Please note, in order to view the contents of the guides and SAP Notes, you will need to be logged into Service Marketplace.


Increase the DATAFILE size using Sql Command Editor in SAP

$
0
0

The Following steps describes how to increase the DATAFILE size if there is no space left in each file and the status of the each DATAFILE showing RED color in DB02 Transaction

 

Step1: Check the available space from transaction DB02

 

Space Overview Screen

Goto Files Tab -> Free Space in Disk

 

If there is enough space available we can increase the space from the same drive

 

Also check the existing free space left for each file , If the Exception  Column in Database Files tab showing RED there is no free space left

1.png

 

If its Green there is some space exists

 

 

 

Step 2: If there is no free space and the Exception Column showing RED , We need to increase the space

 

To do this goto transaction DB02 -> Diagnostics -> SQL Command Editor from SAP

and execute the following command

 

ALTER DATABASE <SID> MODIFY FILE (NAME = '<SID>DATA2',SIZE = 6144)

 

Here SIZE in MBs and should be greater than existing files size

2.png

 

Do this for remaining all the DATA Files and make sure the free space should be greater than 10 % overall.

 

2.png

 

Taking transaction log backup from SAP Gui Using SQL Query from Sql Command Editor

 

Use the following Query to take Transaction log backup using Sql Command Editor in to a DISK


BACKUP LOG <SID> TO DISK = ‘D:\<FILENAME>.TRN

 

2.png

 

 

 

 

 

 

 

 

 

 

 

Thanks,

Chandrababu

Step by step SQLServer upgrade from 2008 R2 SP3 to 2012

$
0
0

This document is about upgrading from SQLServer 2008R2 to SQLServer 2012.

 

Useful docs to perform the operation :

 

SAP notes :

 

     1676665 - Setting up Microsoft SQL Server 2012

     1651862 - Release planning for Microsoft SQL Server 2012

     1684545 - SAP Installation Media and SQL4SAP for SQL Server 2012

 

Installation and upgrade guide :


The SQLServer upgrade and installation guide for SAP is also highly useful.

Located here :

 

http://service.sap.com/instguides -> Database Upgrades -> MS SQL Server

     Upgrade to and Installation of SQL Server 2012 in an SAP Environment


 

 

Starting point :

 

I'm currently running SQLServer 2008R2 SP3.

These are my system information :

 

Source sys char1.png

Source sys char2.png

You have to pay attention to the SAP release / SPS level you are running. This has to be compatible with the target SQLServer release.

Also, you have to pay attention to your SAP kernel release. The target kernel release has to be compatible with your target SQLServer Version.

 

In general, before performing the DB upgrade, at least the SAP kernel update should be done.


The SQLServer upgrade process:


It mainly consists of 2 phases.

1 you perform the update using the SQLServer media.

2 you perform the post update tasks for SAP using the SWPM.



Example :



Now , provided all the pre requisites are satisfied in terrms of SAP application / kernel releases, you can perform the update  :


Stop SAP.

Stop the SQLServer db services.

--> Do it as usual using the SAP MMC to stop the SAP Instance and also stop any SAP and SQLserver related services.


Once you have downloaded and extracted the SQLserver medium ( Here it was 51047515 media DVD ) , run the update

Start the upgrade using setup.exe :


F:\SQLSERVER2012\51047515\x86-x64\EnterpriseEdition\setup.exe


sqlserver upgrade1.png


And we have performed the following choices :

 

sqlserver upgrade2.png


sqlserver upgrade3.png

sqlserver upgrade4.png


sqlserver upgrade5.png


sqlserver upgrade7.png

 

In the above screen, you have nothing to provide. The product key  is there by default.

 

Highlight from Matt's comment about the license key :

 

One thing to note, however, is that the SQL Server product key is only there by default if you are using installation media provided by SAP as part of a runtime license. Not every customer obtains their SQL Server license from SAP -- some buy it directly from Microsoft -- and so in that case this field is not pre-populated.

 

sqlserver upgrade8.png

You accept the license agreement.

sqlserver upgrade9.png

sqlserver upgrade10.png

 

In the next screen, you choose the instance to upgrade.

sqlserver upgrade11.png

The choices will be done by default, based on the installed features :

sqlserver upgrade12.png

You validate this screen.

sqlserver upgrade13.png

You validate this screen.

sqlserver upgrade14.png

You validate this screen.

sqlserver upgrade15.png

We kept here the default choice:

sqlserver upgrade16.png

We kept here the default choice here also :

sqlserver upgrade17.png

sqlserver upgrade18.png

With this last screen we are ready to upgrade :

sqlserver upgrade19.png

And then the upgrade runs :

sqlserver upgrade20.png

Once done, you'll have these summary screens. you'll need to restart the Server :

sqlserver upgrade21.png

sqlserver upgrade22.png

Now the process is completed and the system restarted you can proceed with the second phase using the SWPM to perform the SAP post upgarde steps :


Let' s run the SWPM to finalize the upgrade :


We performed the following choices :

Generic Installation Options -> MS SQL Server -> Database upgrade Completion :

sqlserver upgrade23.png

 

sqlserver upgrade24.png

Once it is completed you get this screen :

sqlserver upgrade25.png

Nothing much to say about it as this part of the process is usually smooth and fast.

Before giving the system back you update the stats :

sqlserver upgrade26.png

And set this option.

sqlserver upgrade27.png

 

You can  then restart your SAP instance and perform some quick checks.

sqlserver upgrade28.png

And there it is. You' re now running SQLServer 2012.

 

Should you have external Application servers connecting to the DB server you'll have to update the SQLServer client software using the corresponding SNAC package.

 

You'll also have to check the SQLServer agnt parameters on the DB server as described in the SQLServer installation / update guide.

 

And then you're done !

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 








Latest Images