Quantcast
Channel: SCN : All Content - SAP on SQL Server
Viewing all 837 articles
Browse latest View live

Runtime Errors : ZDATE_LARGE_TIME_DIFF

$
0
0

Dear All,

 

I am getting an ABAP DUMP as ZDATE_LARGE_TIME_DIFF

 

Short Text:   Large time difference between application server and database.

 

Time and time zone for database and Application server are same.

 

Please help me to solve this issue.

 

Regards,

Ruchi Dhyani


Implicit conversion from data type varchar to varbinary is not allowed

$
0
0

Hello @all,

 

I want to set a passwort for a SAP useraccount with MS SQL 2005.

 

But I get the following error:

 

update wt1.USR02 set BCODE = 'xxxxxxxxxxxxxxxxx' where BNAME = 'xxx' and MANDT = 'xxx'

 

Msg 257, Level 16, State 3, Line 1

Implicit conversion from data type varchar to varbinary is not allowed. Use the CONVERT function to run this query.

 

On Oracle it works.

 

BCODE is a Hash.

 

Have anybody an idea?

 

Thanks for your help

Karsten

SQL Server 2005:Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)

$
0
0

Dear Experts,

        We are trying to restore the database in 2005, We detach the database and while trying to attach,its showing the error as below:

 

Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)

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

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&LinkId=20476

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

Program Location:

 

   at Microsoft.SqlServer.Management.Smo.Enumerator.Process(Object connectionInfo, Request request)

   at Microsoft.SqlServer.Management.SqlManagerUI.AttachDatabaseData.PrimaryFile.GetOriginalDatabaseName(String primaryFilePath)

   at Microsoft.SqlServer.Management.SqlManagerUI.AttachDatabaseData.PrimaryFile.PopulatePrimaryFileData(String primaryFilePath)

   at Microsoft.SqlServer.Management.SqlManagerUI.AttachDatabaseData.PrimaryFile..ctor(SqlManagementUserControl parent, CDataContainer dc, String fullPath, String databaseOwner, ServerConnection connectionInfo)

   at Microsoft.SqlServer.Management.SqlManagerUI.AttachDatabase.IsSelectedFileValid(BrowseFolder dlg)

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

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

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

Program Location:

   at Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteReader(String sqlCommand)

   at Microsoft.SqlServer.Management.Smo.ExecuteSql.GetDataReader(String query)

   at Microsoft.SqlServer.Management.Smo.DataProvider.SetConnectionAndQuery(ExecuteSql execSql, String query)

   at Microsoft.SqlServer.Management.Smo.ExecuteSql.GetDataProvider(StringCollection query, Object con, StatementBuilder sb, RetriveMode rm)

   at Microsoft.SqlServer.Management.Smo.ExecuteSql.ExecuteWithResults(StringCollection query, Object con, StatementBuilder sb)

   at Microsoft.SqlServer.Management.Smo.SqlObjectBase.FillData(ResultType resultType, StringCollection sql, Object connectionInfo, StatementBuilder sb)

   at Microsoft.SqlServer.Management.Smo.SqlObjectBase.FillDataWithUseFailure(SqlEnumResult sqlresult, ResultType resultType)

   at Microsoft.SqlServer.Management.Smo.SqlObjectBase.BuildResult(EnumResult result)

   at Microsoft.SqlServer.Management.Smo.PrimaryFile.GetData(EnumResult erParent)

   at Microsoft.SqlServer.Management.Smo.Environment.GetData()

   at Microsoft.SqlServer.Management.Smo.Environment.GetData(Request req, Object ci)

   at Microsoft.SqlServer.Management.Smo.Enumerator.GetData(Object connectionInfo, Request request)

   at Microsoft.SqlServer.Management.Smo.Enumerator.Process(Object connectionInfo, Request request)

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

CREATE FILE encountered operating system error 5(Access is denied.) while attempting to open or create the physical file 'F:\NSMDATA1\NSMDATA1.mdf'. (.Net SqlClient Data Provider)

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

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.3042&EvtSrc=MSSQLServer&EvtID=5123&LinkId=20476

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

Server Name: sapsoldms

Error Number: 5123

Severity: 16

State: 20

Line Number: 1

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

Program Location:

   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)

   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)

   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)

   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)

   at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()

   at System.Data.SqlClient.SqlDataReader.get_MetaData()

   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)

   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)

   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)

   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)

   at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)

   at System.Data.SqlClient.SqlCommand.ExecuteReader()

   at Microsoft.SqlServer.Management.Common.ServerConnection.ExecuteReader(String sqlCommand)

System Copy of ECC 5.0 from MSSQL 2005 to MSSQL 2008R2

$
0
0

Dear SCN Collegues,

 

I am trying to perform system copy of ECC 5.0 from MSSQL 2005 to MSSQL 2008 R2 both on Windows 2008R2 using detach / attach method.

 

Steps performed

1) Installed ECC 5.0 on MSSQL 2008R2 on Windows Server 2008 R2.

2) Detached the database.

3) Moved the DATA and LOG file to a different location.

4)Copied the DATA and LOG file of ECC 5.0 on MSSQL 2005 to the respective location on Target Database installed on MSSQL 2008R2.

5) Attached the DATA files to the target database on MSSQL 2008R2.

6) Renamed the DBSID to the target DBSID (as Source DBSID and Target DBSID are different) using MSSQL Database Studio 2008R2.

7) Ran STM on Target to perform post System copy activities.

 

Getting error in performing STM post system Copy(attched DB and Renamed) > Database Copy Completion> in phase

Create SAP Stored procedure

MDB-05053  Errors when executing sql command: [Microsoft][ODBC SQL Server Driver]Associated statement is not prepared
<p> SOLUTION: If this message is displayed as a warning, you can ignore it. If this is an error, contact SAP support.</p>

TRACE      2013-11-22 17:39:57.337 [iaxxejsbas.hpp:488]
           EJS_Base::dispatchFunctionCall()
JS Callback has thrown unknown exception. Rethrowing.

ERROR      2013-11-22 17:39:57.361 [sixxcstepexecute.cpp:971]
FCO-00011  The step ExeProcs with step key |SAPMSSTOOLS|ind|ind|ind|ind|0|0|MssSysCopy|ind|ind|ind|ind|4|0|MssProcs|ind|ind|ind|ind|5|0|ExeProcs was executed with status ERROR ( Last error reported by the step: Errors when executing sql command: [Microsoft][ODBC SQL Server Driver]Associated statement is not prepared
<p> SOLUTION: If this message is displayed as a warning, you can ignore it. If this is an error, contact SAP support.</p>).

TRACE      2013-11-22 17:39:57.409
  Call block:CallBackInCaseOfAnErrorDuringStepExecution
    function:CallTheLogInquirer
is validator: true

WARNING    2013-11-22 17:39:57.410 [iaxxejshlp.cpp:150]
Could not get property IDs of the JavaScript object.

ERROR      2013-11-22 17:39:57.411 [iaxxejsctl.cpp:492]
FJS-00010  Could not get value for property .

TRACE      2013-11-22 17:39:57.452
A problem occurs during execution the inquirer callback. SAPinst will switch back to the standard behaiviour.

TRACE      2013-11-22 17:39:57.452 [iaxxgenimp.cpp:707]
            CGuiEngineImp::showMessageBox

<html> <head> </head> <body> <p> An error occurred while processing option SAP Toools for MS SQL Server > Database Copy Completion( Last error reported by the step: Errors when executing sql command: [Microsoft][ODBC SQL Server Driver]Associated statement is not prepared
<p> SOLUTION: If this message is displayed as a warning, you can ignore it. If this is an error, contact SAP support.</p>). You can now: </p> <ul> <li> Choose <i>Retry</i> to repeat the current step. </li> <li> Choose <i>View Log</i> to get more information about the error. </li> <li> Stop the option and continue with it later. </li> </ul> <p> Log files are written to C:\Program Files/sapinst_instdir/MSS/CPY. </p> </body></html>

TRACE      2013-11-22 17:39:57.453 [iaxxgenimp.cpp:1245]
           CGuiEngineImp::acceptAnswerForBlockingRequest
Waiting for an answer from GUI

 

TRACE      2013-11-22 16:54:02.515

Using custom value flow_trace for property SAPINST_MESSAGE_CONSOLE_THRESHOLD.

 

I may please be guided.

 

Thanks and Regards

Asadul Haq

SAP ERP 6.0 on SQL 2012 distributed environment

$
0
0

Hi All,

 

We are planning to install SAP ERP 6.0 on SQL server 2012 in distributed environment.

 

I have couple questions to start install

 

We have 3 VM server

 

VM1(Windows 2012): Global host/CI install

VM2(windows 2012): SQL server 2012 (for DB install)

VM3(windows 2012): DI install

 

Before I start installation, do I need to add domain\SAP_<SID>_GlobalAdmin group to local administrator group of VM1, VM2 and VM3 servers ?

Do I need any domain user for SQL server install ?

 

Step1:

VM1: I will install Global host.

Step2:

VM2: I will install DB

here I have questions on step 2, before I start install DB do I need to map any folders from global host  to DB ?

What are the folder and how to map ?

Before I start install do i need ask network team to create any shared drives ?

 

Step3:

VM1: I will install Primary instance.

Questions in step3, before staring install do i need make any preparations in CI server like making changes to profile to connect to database host and do ined to map any folders from Database to CI ?

Do I need to install SQL server Native client and client tools in CI server ?

Do i need to add any SQLserver user to the local groups of VM1 server ?

 

Step4:

VM3: I will install DI.

Questions in step4, Do I need to map any folders from CI and DB servers to DI server ?

is their any prerequisites I need to fulfil before I start DI installation ?

 

the above questions I have in mind.

 

I hope somebody can answer the above questions.

 

Thank You,

Phanikumar.

DBACOCKPIT MS SQL - Database is not yet configured for monitoring (Unknown MSSQL version)

$
0
0

Hi experts,

 

I'm new to SAP on MS SQL but usually pretty familiar with DBACOCKPIT. But I can't find the reason for the error messages I'm receiving in our only hosted SAP on MSSQL. Every option in DBACOCKPIT is greyed out and you can't configure anything but the connection, which is working without any problems.

 

So DBACOCKPIT is not usable - as you open it you see the error "Database is not yet configured for monitoring" and in the content area you see the message text "Unspecified error occured in GET_RAT_VERSION(2)" . If you then go to System Configuration and display the configured system you get the error message "Unknown MSSQL version" without any further details. Though it's showing the correct MS SQL version that is installed. In the Administration Data tab of DEV and QAS Collect History Data isn't switched on but in PRD it is and there it's not working either.

I've attached some screenshots (servername blured).

 

Database Release: 10.50.2769

OS: Windows Server 2008 R2

SAP ECC 6.0 without Enhancement Packages

 

Unfortunately we got the systems with a pretty old SP level (Basis 13, Aba 11) which I fear might cause this problem but I'm not sure for I couldn't find any notes or the like that might fix that issue. And I can't explain a total SP update with just wanting to get DBACOCKPIT working - though I'd really like to.

 

I've already worked through the common DBACOCKPIT with MSSQL manuals/documentation and searched for notes (like 1086375 and 1027512), even implemented note 1260665 (though it's not really describing the exact issue)  - but I couldn't solve it or find the reason for this.

 

I haven't found any document guiding through a basic configuration of DBACOCKPIT for MS SQL - either it's just about using this transaction or about configuring external monitoring for MS SQL - doesn't really help.

 

Does anybody have an idea concerning this problem?

Is there any guideline for basic config of DBACOCKPIT with MS SQL?

 

Many thanks for your responses in advance

Best wishes

Marie

Homogeneous System Copy based on MSSQL

$
0
0

Hi Support Gurus,

 

I am performing a homogeneous system copy based on Microsoft SQL Server 2008.I have run System Copy using Sapinst twice and i am not getting the desired result.

The DB size is 3 TB and in both runs i have tried something different.

 

First Run --> I ran Sapinst without using table splitting preparation and package splitting.The run took more than 72 hrs.

Second Run --> I used Table Splitting preparation.I split 31 large tables by taking threshold of 5 GB for each chunk.The splitting ran fine and .WHR files were also generated. I then ran Database Instance Export , using package limit size as 10 GB and specified an order in which tables and packages should be unloaded.This time it took time more than the first run and the size of the Export was also larger.

 

My area of concern is that when i started the export, at that point it was using all the 30 R3 Load processes and the CPU utilization was also good but it left the SAPAPPL1 package for export in the end and only one R3 Load process was working on it.The export of SAPAPPL1 package almost took 3 days.

I don't understand when I had specified a package limit of 10 GB, then why the export was still so large for SAPAPPL1 package and it took 3 days.

 

Please suggest me on what am I missing.Is it the order or the package limit size.

 

 

Thanks & Regards

Sumit Prasad

how to DB connect MS SQL to SAP BW (AIX on Oracle)

$
0
0

Hi BW gurus,

 

I have tried to do some kind of a research for getting the knowledge behind how to do a DB connect from MS SQL to SAP BW.

I have followed the steps that was required to download the Database Share Library file from SAP service market.

 

However, when I downloaded and extract the files on our BW system, it doesn't extract the MS SQL shared library.

 

our BW kernel operating system is AIX and source database is Oracle.

 

Can you please advise me on why is the MS SQL share library was not included in the DBSL compressed file in SAP service market?

 

regards,

will


DB collector and SQL statement history in DBACockpit

$
0
0

Hi experts,

   I monitor our SAP system recently and I find there is probably an expensive SQL statement there.

I try to use SQL statement history but the physical reads data is not very high as I expected. What's wrong?

Is there any other DMVs and extended events I should check?

 

15,245 nuber of physical reads per second at 17:00 ~ 17:20.

sql1.png

Physical reads from 17:00 ~ 17:20 is just 1.1 millions which is not very high(ex: 60M)

sql2.png

Win 2012 - Client can only connect to server when firewall on server is off

$
0
0

Hi all,

 

I have tried so many different things (from making sure TAO is on,  to checking regedit to clarify the port being used by SQL, to starting theSQL Server agent , names pipes etc etc) but i can only connect the client ( SAP 9 pl5) to the server when the firewall on the server is off!  Both server and client machine are on Win 2012 64bit.

 

I have added SAP to the exceptions list,and added ports ( 135, 1433-1444, 2099, 2383, 30000-30001, 4022, 48801) but the client will just not connect unless the firewall on the server is off!!!

 

Any brainy people here can help ?

KBAs/Notes released/updated on November 2013

$
0
0

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

 

BC-DB-MSS*

62988Service packs for MS SQL Server
1054852Recommendations for migrations to Microsoft SQL Server
1152848FAQ: SQL Server Wait Events
1937447Impersonate Session Security Context error
1590981Error when reading long fields in DSQL without is_lob
1780433System copy of SAP systems on Windows 2012 : SQL Server
1926582Sql error 0 happens when connecting from IBM DB on Linux to remote SQL Server
1899404SQL errors 15250 and 15234 appear in the system log
1941524Solution Manager wizard shows wrong authentication
1945718Alert shows that VB tables have auto stats on

 

BW-SYS-DB-MSS*

1937161SMIGR_CREATE_DDL: According infocube has no active version
1347502Selective deletion: SQL error 1913 index already exists
1937158SMIGR_CREATE_DDL: Moved value  is not within the allowed value range
1740888Selective deletion on large info cube aborts on SQL Server
1933175SMIGR_CREATE_DDL:  FATAL ERROR occured while processing table
1944600"Check DB Indexes"  shows a red light for any cube.

 

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

SAP Instance fails to start with dispatcher getting stopped.

$
0
0

Dear Colleagues,

 

I am performing a homogeneous system copy of Solution Manager 7.1 SR1 on Windows Server 2008R2 and MSSQL 2008R2.

Source and Target Box have the same OS and DB version.

Now in the target system at phase START Instance ,I am getting error

 

The DISP+WORK.exe is getting stopped.

 

Attaching the dev_disp.log ,sapinst.log and sapinst_dev.log for your reference.

 

Note : The copy was performed with Media 70SWPM.sar

 

 

With user <sid>adm, the R3trans -x works fine.

 

This is TRACE level 2.

 

Host

<IP>    SAPQUALITY SAPQUALITY.visasteel.com

DEFAULT.PFL

SAPDBHOST = SAPQUALITY

dbms/type = mss

dbs/mss/server = SAPQUALITY\S01

dbs/mss/dbname = S01

dbs/mss/schema = s01

j2ee/dbtype = mss

j2ee/dbhost = SAPQUALITY

j2ee/dbname = S01

SAPSYSTEMNAME = S01

SAPGLOBALHOST = SAPQUALITY

system/type = DS

SAPFQDN = visasteel.com

SAPLOCALHOSTFULL = $(SAPLOCALHOST).$(SAPFQDN)

login/create_sso2_ticket = 2

login/accept_sso2_ticket = 1

icm/host_name_full = $(SAPLOCALHOSTFULL)

login/no_automatic_user_sapstar = 1

icm/conn_timeout = 5000

icm/keep_alive_timeout = 240

rdisp/max_wprun_time = 2400

abap/shared_objects_size_MB = 40

vmcj/enable = off

is/HTTP/show_detailed_errors = FALSE

icf/user_recheck = 1

gw/acl_mode = 1

icm/HTTP/ASJava/disable_url_session_tracking = TRUE

service/protectedwebmethods = SDEFAULT

rdisp/bufrefmode = sendoff

#-----------------------------------------------------------------------

# SAP Message Server for ABAP

#-----------------------------------------------------------------------

rdisp/mshost = SAPQUALITY

rdisp/msserv = sapmsS01

rdisp/msserv_internal = 3902

rdisp/TRACE = 2

#-----------------------------------------------------------------------

# SAP Central Service Instance for J2EE

#-----------------------------------------------------------------------

j2ee/scs/host = SAPQUALITY

j2ee/scs/system = 03

j2ee/ms/port = 3903

ssf/name = SAPSECULIB

login/system_client = 001

rsdb/ssfs_connect = 0

rsec/ssfs_datapath = $(DIR_GLOBAL)$(DIR_SEP)security$(DIR_SEP)rsecssfs$(DIR_SEP)data

rsec/ssfs_keypath = $(DIR_GLOBAL)$(DIR_SEP)security$(DIR_SEP)rsecssfs$(DIR_SEP)key

 

 

 

 

 

Thanks and Regards

Asadul

 

Message was edited by: Md. Asadul Haque Momin

 

Message was edited by: Md. Asadul Haque Momin

SQL error 1-: Function sequence error

$
0
0

Hi Team,

 

Database : MSSQL 2008R2

 

We have successfully done the SAP patching. We are getting below error in SM21

Database error -1 at FET

> Function sequence error

Database error -1

 

JOB : SAP_COLLECTOR_FOR_PERFMONITOR is failing with error

Job started

Step 001 started (program RSCOLL00, variant , user ID DDIC)

Clean_Plan:Cleanup of DB13 Plannings

Clean_Plan:started by RSDBPREV                       on server XXXXXXXXXXX

Clean_Plan:Cleaning up jobs of system PRD

Clean_Plan:finished

SQL error 1-:  Function sequence error

Job cancelled after system exception ERROR_MESSAGE

 

IN ST04 we are getting the error SQL error 1-: Function sequence error in the below status.

 

Kindly help us to resolve the issue

 

Regards

Raghu

ERROR : master database cannot be used by DBSL

$
0
0

Dear Colleagues,

 

I am performing a homogeneous system copy of Solution Manager 7.1 SR1 on Windows Server 2008R2 and MSSQL 2008R2.

Source and Target Box have the same OS and DB version.

Now in the target system at phase START Instance ,I am getting error

 

I have perfromed R3trans -x with Kernel 720(UC) as well as after replacing with Kernel 720_EXT(UC) latest versions

but the error remains unaltered.

 

We have another ABAP instance running in the target box with Kernel 720_EXT (UC)

As a trail i have copied dbmssslib.dll from SAPEXE directory to C:/Windows/sysytem32 but it not help.

 

Another observation : In directory  C:\usr\sap\trans\bin

The TP_DOMAIN_S01.PFL is missing ,only the TP PFL for ABAP instance Q01 TP_DOMAIN_S01.PFL is available.

Attaching the R3trans -x log for your reference.

 

The disp+work gets stopped

R3trans Log RC=> 12:

4 ETW000 R3trans version 6.24 (release 720 - 10.10.13 - 20:13:08 ).

4 ETW000 unicode enabled version

4 ETW000 ===============================================

4 ETW000

4 ETW000 date&time   : 08.12.2013 - 10:45:17

4 ETW000 control file: <no ctrlfile>

4 ETW000 R3trans was called as follows: R3trans -d

4 ETW000  trace at level 2 opened for a given file pointer

4 ETW000  [     dev trc,00000]  Sun Dec 08 10:45:17 2013                                                9008  0.009008

4 ETW000  [     dev trc,00000]  db_con_init called                                                        60  0.009068

4 ETW000  [     dev trc,00000]  set_use_ext_con_info(): rsdb/ssfs_connect not set => ssfs not used       345  0.009413

4 ETW000  [     dev trc,00000]  determine_block_commit: no con_hdl found as blocked for con_name = R/3

4 ETW000                                                                                                  41  0.009454

4 ETW000  [     dev trc,00000]  create_con (con_name=R/3)                                                 25  0.009479

4 ETW000  [     dev trc,00000]  Loading DB library 'dbmssslib.dll' ...                                   336  0.009815

4 ETW000  [     dev trc,00000]  DlLoadLib success: LoadLibrary("dbmssslib.dll"), hdl 0, addr 0000000188360000

4 ETW000                                                                                               41324  0.051139

4 ETW000  [     dev trc,00000]      using "\\sapquality\sapmnt\S01\SYS\exe\uc\NTia64\dbmssslib.dll"       23  0.051162

4 ETW000  [     dev trc,00000]  Library 'dbmssslib.dll' loaded                                            26  0.051188

4 ETW000  [     dev trc,00000]  function DbSlExpFuns loaded from library dbmssslib.dll                    29  0.051217

4 ETW000  [     dev trc,00000]  Version of 'dbmssslib.dll' is "720.00", patchlevel (0.442)               426  0.051643

4 ETW000  [     dev trc,00000]  function dsql_db_init loaded from library dbmssslib.dll                   28  0.051671

4 ETW000  [     dev trc,00000]  function dbdd_exp_funs loaded from library dbmssslib.dll                  22  0.051693

4 ETW000  [     dev trc,00000]  New connection 0 created                                                  48  0.051741

4 ETW000  [     dev trc,00000]  0: name = R/3, con_id = -000000001, state = DISCONNECTED, tx = NO , bc = NO , hc = NO , perm = YES, reco = NO , frco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO , prog = 

4 ETW000                                                                                                  44  0.051785

4 ETW000  [     dev trc,00000]  db_con_connect (con_name=R/3)                                             35  0.051820

4 ETW000  [     dev trc,00000]  determine_block_commit: no con_hdl found as blocked for con_name = R/3

4 ETW000                                                                                                  29  0.051849

4 ETW000  [     dev trc,00000]  find_con_by_name found the following connection:                          20  0.051869

4 ETW000  [     dev trc,00000]  0: name = R/3, con_id = 000000000, state = DISCONNECTED, tx = NO , bc = NO , hc = NO , perm = YES, reco = NO , frco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO , prog = 

4 ETW000                                                                                                  40  0.051909

4 ETW000  [     dev trc,00000]  Thread ID:9316                                                          1311  0.053220

4 ETW000  [     dev trc,00000]  Thank You for using the SLODBC-interface                                  29  0.053249

4 ETW000  [     dev trc,00000]  Using dynamic link library '\\sapquality\sapmnt\S01\SYS\exe\uc\NTia64\dbmssslib.dll'

4 ETW000                                                                                                  41  0.053290

4 ETW000  [     dev trc,00000]  dbmssslib.dll patch info                                                  66  0.053356

4 ETW000  [     dev trc,00000]    SAP patchlevel  0                                                       25  0.053381

4 ETW000  [     dev trc,00000]    SAP patchno  500                                                       127  0.053508

4 ETW000  [     dev trc,00000]    Last MSSQL DBSL patchlevel 0                                            23  0.053531

4 ETW000  [     dev trc,00000]    Last MSSQL DBSL patchno         442                                     23  0.053554

4 ETW000  [     dev trc,00000]    Last MSSQL DBSL patchcomment DBACOCKPIT Auto-injection fails (1901875)

4 ETW000                                                                                                  33  0.053587

4 ETW000  [     dev trc,00000]  ODBC Driver chosen: SQL Server Native Client 10.0 native                1698  0.055285

4 ETW000  [     dev trc,00000]  Network connection used from SAPQUALITY to (local) using tcp:(local)

4 ETW000                                                                                                 518  0.055803

4 ETW000  [     dev trc,00000]  Network connection used from SAPQUALITY to (local) using tcp:(local)

4 ETW000                                                                                              166019  0.221822

4 ETW000  [     dev trc,00000]  Network connection used from SAPQUALITY to (local) using tcp:(local)

4 ETW000                                                                                                7713  0.229535

4 ETW000  [     dev trc,00000]  Driver: sqlncli10.dll Driver release: 10.50.2769                        7203  0.236738

4 ETW000  [     dev trc,00000]  GetDbRelease: 10.50.2769.00                                             1127  0.237865

4 ETW000  [     dev trc,00000]  GetDbRelease: Got DB release numbers (10,50,2769,0)                       72  0.237937

4 ETW000  [     dev trc,00000]  ERROR : master database cannot be used by DBSL.                         8036  0.245973

2EETW169 no connect possible: "DBMS = MSSQL                            ---  SERVER = 'SAPQUALITY' DBNAME = ''"

 

Please guide.

Thanks and Regards

Asadul

SQL Server services problem (doesn´t start)

$
0
0


Hello,

 

I´m facing an error when I try to start the SQL Server database services in Windows Server 2008, for this reason, we can´t start our SAP system.

I done a reboot to the server but even so two MS SQL Server services doesn´t start!

 

When I try to start both services manually, it show me the following errors:

 

Windows could not start the SQL Server Agent (MSSQLSERVER) service on Local Computer.

Error 1068: The dependency service or group failed to start.

09-12-2013 11-49-04.jpg

 


Windows could not start the SQL Server (MSSQLSERVER) on Local Computer. For more information, review the System Event Log. If this is a non-Microsoft service, contact the service vendor, and refer to service-specific error code 1814.

SNAG-0672.jpg

 

I checked the Event Viewer (System) and the only thing that I see is the following details...

 

- For the SQL Server (MSSQLSERVER) service:

 

The SQL Server (MSSQLSERVER) service terminated with service-specific error 1814 (0x716).

SNAG-0675.jpg

SNAG-0676.jpg

 

For the SQL Server Agent (MSSQLSERVER) service:

 

The SQL Server Agent (MSSQLSERVER) service depends on the SQL Server (MSSQLSERVER) service which failed to start because of the following error:

The service has returned a service-specific error code.

SNAG-0679.jpg

SNAG-0680.jpg

 

Any tips?

Can you help me please?

 

Kind regards,

samid raif


Data Hit Ratio shows zero percent in RZ20/ST04

$
0
0

Hi experts,

Data Hit Ratio shows zero percent in RZ20/ST04 although performance counters

are not missing. Please see attachment.

 

a.JPG

a.JPG

How to identify expensive SQL statements in SAP using extended events?

$
0
0

  In SQL server 2008 and later version, Microsoft introduces a new light weight trace tool called extended events. Juergen has showed us how to trace sql_statement_completed in Runing SAP on SQL( Analyzing Statements with Extended Events (Extended Events Part II) - Running SAP Applications on SQL Server - Site Hom…).

 

  However, after some tests, I found I should use rpc_completed instead of sql_statement_completed. I create a new T-SQL to generate rpc_completed extended event and an extract T-SQL to view this data. Hope this can help others who want to identify expensive SQL statements. I give an exmaple below.

 

  There is one issue there. I still can't get the correct plan_handle and extract the execution plan. Maybe someone can tell me how to do it.

 

-- This script creates a extended event

IF EXISTS(SELECT * FROM sys.server_event_sessions WHERE name='RPC_Expensive_Queries')
    DROP EVENT SESSION [RPC_Expensive_Queries] ON SERVER;
GO

CREATE EVENT SESSION [RPC_Expensive_Queries] ON SERVER
    ADD EVENT sqlserver.rpc_completed(
         ACTION (sqlserver.database_id,
                 sqlserver.plan_handle,
                 sqlserver.session_id,
                 sqlserver.sql_text)
    WHERE cpu_time > 1000000000 /*total ms of CPU time, night 0, 000000000*/
       OR duration > 1000000000 /* night 0*/
       OR logical_reads > 100000000 /* eight 0 */
       OR physical_reads > 1000000 /* six 0 */
       OR writes > 100000 ) /*five 0 */
    ADD TARGET package0.ring_buffer(SET max_memory=2048),
    ADD TARGET package0.asynchronous_bucketizer(
        SET filtering_event_name='sqlserver.rpc_completed',
            source='sqlserver.sql_text'),
    ADD TARGET package0.asynchronous_file_target
        (SET FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log\RPC_Expensive_Queries.xel',
        METADATAFILE = N'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log\RPC_Expensive_Queries.xem')
WITH (MAX_MEMORY = 4096KB,
      EVENT_RETENTION_MODE = ALLOW_SINGLE_EVENT_LOSS,
      MAX_DISPATCH_LATENCY = 10 SECONDS,
      MAX_EVENT_SIZE = 0KB,
      MEMORY_PARTITION_MODE = NONE,
      TRACK_CAUSALITY = OFF,
      STARTUP_STATE = OFF)
GO

ALTER EVENT SESSION [RPC_Expensive_Queries] ON SERVER STATE = START
GO

 

 

-- This script extracts xml information

SELECT

data.value (

  '(/event[@name=''rpc_completed'']/@timestamp)[1]',

   'DATETIME') AS [Time],

data.value ('(/event/data[@name=''cpu_time'']/value)[1]', 'BIGINT') AS [CPU (ms)],

data.value ('(/event/data[@name=''duration'']/value)[1]', 'BIGINT') AS [duration (ms)],

-- CONVERT (FLOAT, data.value (

--  '(/event/data[@name=''cpu_time'']/value)[1]', 'BIGINT')) / 1000000 AS [CPU (s)],

-- CONVERT (FLOAT, data.value (

--  '(/event/data[@name=''duration'']/value)[1]', 'BIGINT')) / 1000000 AS [Duration (s)],

        data.value('(/event/data[@name=''logical_reads'']/value)[1]','bigint') LogicalReads,

        data.value('(/event/data[@name=''physical_reads'']/value)[1]','bigint') PhysicalReads,

        data.value('(./data[@name="writes"]/value)[1]', 'bigint') as writes,

data.value ('(/event/action[@name=''sql_text'']/value)[1]','VARCHAR(MAX)') AS [SQL Text],

        data.value ('(/event/data[@name=''statement'']/value)[1]','VARCHAR(MAX)') AS [Statement],

CAST(data.value('(event/action[@name="plan_handle"]/value)[1]', 'varchar(max)') AS XML) as plan_handle

FROM

(SELECT CONVERT (XML, event_data) AS data

FROM sys.fn_xe_file_target_read_file

  ('C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log\RPC_Expensive_Queries*.xel',

  'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log\RPC_Expensive_Queries*.xem', null, null)

) entries 

ORDER BY [Time] DESC;

GO

 

-- This is a expesnive SQL statement I captured. Someone queries a mass data in table MSEG using SE16

<event name="rpc_completed" package="sqlserver" timestamp="2013-12-13T03:42:20.284Z">

  <data name="cpu_time">

    <value>614925000</value>

  </data>

  <data name="duration">

    <value>747622927</value>

  </data>

  <data name="physical_reads">

    <value>10545780</value>

  </data>

  <data name="logical_reads">

    <value>53445177</value>

  </data>

  <data name="writes">

    <value>0</value>

  </data>

  <data name="result">

    <value>0</value>

    <text>OK</text>

  </data>

  <data name="row_count">

    <value>4</value>

  </data>

  <data name="connection_reset_option">

    <value>0</value>

    <text>None</text>

  </data>

  <data name="object_name">

    <value>sp_prepexec</value>

  </data>

  <data name="statement">

    <value>declare @p1 int

set @p1=773450

exec sp_prepexec @p1 output,N'@P1 nvarchar(3),@P2 nvarchar(16)',N'SELECT TOP 4000 "MANDT" AS c ,"MBLNR" AS c ,"MJAHR" AS c ,"ZEILE" AS c ,"LINE_ID" AS c ,"PARENT_ID" AS c ,"LINE_DEPTH" AS c ,"MAA_URZEI" AS c ,"BWART" AS c ,"XAUTO" AS c ,"MATNR" AS c ,"WERKS" AS c ,"LGORT" AS c ,"CHARG" AS c ,"INSMK" AS c ,"ZUSCH" AS c ,"ZUSTD" AS c ,"SOBKZ" AS c ,"LIFNR" AS c ,"KUNNR" AS c ,"KDAUF" AS c ,"KDPOS" AS c ,"KDEIN" AS c ,"PLPLA" AS c ,"SHKZG" AS c ,"WAERS" AS c ,"DMBTR" AS c ,"BNBTR" AS c ,"BUALT" AS c ,"SHKUM" AS c ,"DMBUM" AS c ,"BWTAR" AS c ,"MENGE" AS c ,"MEINS" AS c ,"ERFMG" AS c ,"ERFME" AS c ,"BPMNG" AS c ,"BPRME" AS c ,"EBELN" AS c ,"EBELP" AS c ,"LFBJA" AS c ,"LFBNR" AS c ,"LFPOS" AS c ,"SJAHR" AS c ,"SMBLN" AS c ,"SMBLP" AS c ,"ELIKZ" AS c ,"SGTXT" AS c ,"EQUNR" AS c ,"WEMPF" AS c ,"ABLAD" AS c ,"GSBER" AS c ,"KOKRS" AS c ,"PARGB" AS c ,"PARBU" AS c ,"KOSTL" AS c ,"PROJN" AS c ,"AUFNR" AS c ,"ANLN1" AS c ,"ANLN2" AS c ,"XSKST" AS c ,"XSAUF" AS c ,"XSPRO" AS c ,"XSERG" AS c ,"GJAHR" AS c ,"XRUEM" AS c ,"XRUEJ" AS c ,"BUKRS" AS c ,"BELNR" AS c ,"BUZEI" AS c ,"BELUM" AS c ,"BUZUM" AS c ,"RSNUM" AS c ,"RSPOS" AS c ,"KZEAR" AS c ,"PBAMG" AS c ,"KZSTR" AS c ,"UMMAT" AS c ,"UMWRK" AS c ,"UMLGO" AS c ,"UMCHA" AS c ,"UMZST" AS c ,"UMZUS" AS c ,"UMBAR" AS c ,"UMSOK" AS c ,"KZBEW" AS c ,"KZVBR" AS c ,"KZZUG" AS c ,"WEUNB" AS c ,"PALAN" AS c ,"LGNUM" AS c ,"LGTYP" AS c ,"LGPLA" AS c ,"BESTQ" AS c ,"BWLVS" AS c ,"TBNUM" AS c ,"TBPOS" AS c ,"XBLVS" AS c ,"VSCHN" AS c ,"NSCHN" AS c ,"DYPLA" AS c ,"UBNUM" AS c ,"TBPRI" AS c ,"TANUM" AS c ,"WEANZ" AS c ,"GRUND" AS c ,"EVERS" AS c ,"EVERE" AS c ,"IMKEY" AS c ,"KSTRG" AS c ,"PAOBJNR" AS c ,"PRCTR" AS c ,"PS_PSP_PNR" AS c ,"NPLNR" AS c ,"AUFPL" AS c ,"APLZL" AS c ,"AUFPS" AS c ,"VPTNR" AS c ,"FIPOS" AS c ,"SAKTO" AS c ,"BSTMG" AS c ,"BSTME" AS c ,"XWSBR" AS c ,"EMLIF" AS c ,"EXBWR" AS c ,"VKWRT" AS c ,"AKTNR" AS c ,"ZEKKN" AS c ,"VFDAT" AS c ,"CUOBJ_CH" AS c ,"EXVKW" AS c ,"PPRCTR" AS c ,"RSART" AS c ,"GEBER" AS c ,"FISTL" AS c ,"MATBF" AS c ,"UMMAB" AS c ,"BUSTM" AS c ,"BUSTW" AS c ,"MENGU" AS c ,"WERTU" AS c ,"LBKUM" AS c ,"SALK3" AS c ,"VPRSV" AS c ,"FKBER" AS c ,"DABRBZ" AS c ,"VKWRA" AS c ,"DABRZ" AS c ,"XBEAU" AS c ,"LSMNG" AS c ,"LSMEH" AS c ,"KZBWS" AS c ,"QINSPST" AS c ,"URZEI" AS c ,"J_1BEXBASE" AS c ,"MWSKZ" AS c ,"TXJCD" AS c ,"EMATN" AS c ,"J_1AGIRUPD" AS c ,"VKMWS" AS c ,"HSDAT" AS c ,"BERKZ" AS c ,"MAT_KDAUF" AS c ,"MAT_KDPOS" AS c ,"MAT_PSPNR" AS c ,"XWOFF" AS c ,"BEMOT" AS c ,"PRZNR" AS c ,"LLIEF" AS c ,"LSTAR" AS c ,"XOBEW" AS c ,"GRANT_NBR" AS c ,"ZUSTD_T156M" AS c ,"SPE_GTS_STOCK_TY" AS c ,"KBLNR" AS c ,"KBLPOS" AS c ,"XMACC" AS c ,"VGART_MKPF" AS c ,"BUDAT_MKPF" AS c ,"CPUDT_MKPF" AS c ,"CPUTM_MKPF" AS c ,"USNAM_MKPF" AS c ,"XBLNR_MKPF" AS c ,"TCODE2_MKPF" AS c ,"/BEV2/ED_KZ_VER" AS c ,"/BEV2/ED_USER" AS c ,"/BEV2/ED_AEDAT" AS c ,"/BEV2/ED_AETIM" AS c ,"OINAVNW" AS c ,"OICONDCOD" AS c ,"CONDI" AS c FROM "MSEG" WHERE "MANDT" = @P1 AND "XBLNR_MKPF" = @P2

/* R3:/1BCDWB/DBMSEG:1298 T:MSEG */

',N'218',N'5585577476'

select @p1</value>

  </data>

  <data name="data_stream">

    <value />

  </data>

  <data name="output_parameters">

    <value />

  </data>

  <action name="database_id" package="sqlserver">

    <value>5</value>

  </action>

  <action name="plan_handle" package="sqlserver">

    <value>0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000</value>

  </action>

  <action name="session_id" package="sqlserver">

    <value>1262</value>

  </action>

  <action name="sql_text" package="sqlserver">

    <value>(@P1 nvarchar(3),@P2 nvarchar(16))SELECT TOP 4000 "MANDT" AS c ,"MBLNR" AS c ,"MJAHR" AS c ,"ZEILE" AS c ,"LINE_ID" AS c ,"PARENT_ID" AS c ,"LINE_DEPTH" AS c ,"MAA_URZEI" AS c ,"BWART" AS c ,"XAUTO" AS c ,"MATNR" AS c ,"WERKS" AS c ,"LGORT" AS c ,"CHARG" AS c ,"INSMK" AS c ,"ZUSCH" AS c ,"ZUSTD" AS c ,"SOBKZ" AS c ,"LIFNR" AS c ,"KUNNR" AS c ,"KDAUF" AS c ,"KDPOS" AS c ,"KDEIN" AS c ,"PLPLA" AS c ,"SHKZG" AS c ,"WAERS" AS c ,"DMBTR" AS c ,"BNBTR" AS c ,"BUALT" AS c ,"SHKUM" AS c ,"DMBUM" AS c ,"BWTAR" AS c ,"MENGE" AS c ,"MEINS" AS c ,"ERFMG" AS c ,"ERFME" AS c ,"BPMNG" AS c ,"BPRME" AS c ,"EBELN" AS c ,"EBELP" AS c ,"LFBJA" AS c ,"LFBNR" AS c ,"LFPOS" AS c ,"SJAHR" AS c ,"SMBLN" AS c ,"SMBLP" AS c ,"ELIKZ" AS c ,"SGTXT" AS c ,"EQUNR" AS c ,"WEMPF" AS c ,"ABLAD" AS c ,"GSBER" AS c ,"KOKRS" AS c ,"PARGB" AS c ,"PARBU" AS c ,"KOSTL" AS c ,"PROJN" AS c ,"AUFNR" AS c ,"ANLN1" AS c ,"ANLN2" AS c ,"XSKST" AS c ,"XSAUF" AS c ,"XSPRO" AS c ,"XSERG" AS c ,"GJAHR" AS c ,"XRUEM" AS c ,"XRUEJ" AS c ,"BUKRS" AS c ,"BELNR" AS c ,"BUZEI" AS c ,"BELUM" AS c ,"BUZUM" AS c ,"RSNUM" AS c ,"RSPOS" AS c ,"KZEAR" AS c ,"PBAMG" AS c ,"KZSTR" AS c ,"UMMAT" AS c ,"UMWRK" AS c ,"UMLGO" AS c ,"UMCHA" AS c ,"UMZST" AS c ,"UMZUS" AS c ,"UMBAR" AS c ,"UMSOK" AS c ,"KZBEW" AS c ,"KZVBR" AS c ,"KZZUG" AS c ,"WEUNB" AS c ,"PALAN" AS c ,"LGNUM" AS c ,"LGTYP" AS c ,"LGPLA" AS c ,"BESTQ" AS c ,"BWLVS" AS c ,"TBNUM" AS c ,"TBPOS" AS c ,"XBLVS" AS c ,"VSCHN" AS c ,"NSCHN" AS c ,"DYPLA" AS c ,"UBNUM" AS c ,"TBPRI" AS c ,"TANUM" AS c ,"WEANZ" AS c ,"GRUND" AS c ,"EVERS" AS c ,"EVERE" AS c ,"IMKEY" AS c ,"KSTRG" AS c ,"PAOBJNR" AS c ,"PRCTR" AS c ,"PS_PSP_PNR" AS c ,"NPLNR" AS c ,"AUFPL" AS c ,"APLZL" AS c ,"AUFPS" AS c ,"VPTNR" AS c ,"FIPOS" AS c ,"SAKTO" AS c ,"BSTMG" AS c ,"BSTME" AS c ,"XWSBR" AS c ,"EMLIF" AS c ,"EXBWR" AS c ,"VKWRT" AS c ,"AKTNR" AS c ,"ZEKKN" AS c ,"VFDAT" AS c ,"CUOBJ_CH" AS c ,"EXVKW" AS c ,"PPRCTR" AS c ,"RSART" AS c ,"GEBER" AS c ,"FISTL" AS c ,"MATBF" AS c ,"UMMAB" AS c ,"BUSTM" AS c ,"BUSTW" AS c ,"MENGU" AS c ,"WERTU" AS c ,"LBKUM" AS c ,"SALK3" AS c ,"VPRSV" AS c ,"FKBER" AS c ,"DABRBZ" AS c ,"VKWRA" AS c ,"DABRZ" AS c ,"XBEAU" AS c ,"LSMNG" AS c ,"LSMEH" AS c ,"KZBWS" AS c ,"QINSPST" AS c ,"URZEI" AS c ,"J_1BEXBASE" AS c ,"MWSKZ" AS c ,"TXJCD" AS c ,"EMATN" AS c ,"J_1AGIRUPD" AS c ,"VKMWS" AS c ,"HSDAT" AS c ,"BERKZ" AS c ,"MAT_KDAUF" AS c ,"MAT_KDPOS" AS c ,"MAT_PSPNR" AS c ,"XWOFF" AS c ,"BEMOT" AS c ,"PRZNR" AS c ,"LLIEF" AS c ,"LSTAR" AS c ,"XOBEW" AS c ,"GRANT_NBR" AS c ,"ZUSTD_T156M" AS c ,"SPE_GTS_STOCK_TY" AS c ,"KBLNR" AS c ,"KBLPOS" AS c ,"XMACC" AS c ,"VGART_MKPF" AS c ,"BUDAT_MKPF" AS c ,"CPUDT_MKPF" AS c ,"CPUTM_MKPF" AS c ,"USNAM_MKPF" AS c ,"XBLNR_MKPF" AS c ,"TCODE2_MKPF" AS c ,"/BEV2/ED_KZ_VER" AS c ,"/BEV2/ED_USER" AS c ,"/BEV2/ED_AEDAT" AS c ,"/BEV2/ED_AETIM" AS c ,"OINAVNW" AS c ,"OICONDCOD" AS c ,"CONDI" AS c FROM "MSEG" WHERE "MANDT" = @P1 AND "XBLNR_MKPF" = @P2

/* R3:/1BCDWB/DBMSEG:1298 T:MSEG */

</value>

  </action>

</event>

DO FOCUS APPLICATION WITH SQL DATABSE CAN BE SHIFT TO SAP WITH MYSQL DATABASE

$
0
0

DEAR ALL

 

DO FOCUS APPLICATION WITH SQL DATABSE CAN BE SHIFT TO SAP WITH MYSQL DATABASE

 

CAN THIS IS POSSIBLE WITH HETEROGENEOUS  SYSTEM COPY OR ANY OTHER WAY

 

PLZ DO SUGGEST OR SEND DOCUMENT IF ALREADY THERE.

 

THANKS IN ADVANCE

 

BEST REGARDS

 

SANATH

What should be the IOPS for the following SAP System.

$
0
0

Hi,

 

Presently we have an R/3 4.6C system with windows Server 2003 and SQL Server 2005?

The transaction log for database 'tempdb' is full

$
0
0

Hello,

 

Can you help me to understand and solve one problem related with tempdb in SQL Server 2008!?

 

Our SAP system sometimes shows some short-dumps: START_CALL_SICK (Database inconsistency: Start Transaction SICK). In SM21 I see the following error:

Database error 9002 at OPC

> The transaction log for database 'tempdb' is full. To fin

> out why space in the log cannot be reused, see the

> log_reuse_wait_desc column in sys.databases

Database error 9002

 

When I try to open the properties of the database through SQL Management Studio I see the following error:

SNAG-0748.jpg

 

I checked the the tempdb disk (5Gb) and in fact it´s full, but I can´t change the disk size...:

SNAG-0746.jpg

 

Can you tell me why this templog.ldf increased a lot? It´s possible to change the size of this templog.ldf file? How can I disable the option of autogrowth of tempdb? It´s possible?

 

 

Kind regards,

samid raif

Viewing all 837 articles
Browse latest View live


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