Quantcast
Channel: SAP NetWeaver Administrator
Viewing all 185 articles
Browse latest View live

How to check logs for particular J2EE application issue

$
0
0


Purpose

 

The purpose of this document is help in searching for specific content in the SAP Netweaver Application Server JAVA for more information on a particular J2EE application. This can be a very tedious affair if many server nodes are configured and this document explains how to do this from the SAP server end using /nwa (SAP Netweaver Administrator), rather than logging to the operating system to search the actual trace file.

 

Example Scenario

 

Lets say that the J2EE Webdynpro application (tc~wd~dispwda) is constantly going down or end users are getting Webdynpro related issues and you as the Basis Administrator would like to investigate further. The issue is not occurring now and a root cause analysis is needed.  You would ideally check all the default trace files for this issue (any error related to the application tc~wd~dispwda) so that any discrepancies can be monitored.

Now searching all trace files can be a cumbersome affair particularly if many J2EE server nodes configured and depending on the trace severity set, these files can be very large at times.



Solution


The SAP Netweaver Administrator utility (NWA) gives you an easy way of doing this check.
Navigate to: http://<server hostname>:port/nwa  ------>Operations  ------>Start&Stop ------>Java Applications------>and enter the application name (tc~wd~dispwda in this case):


1.png

 

Now click on "More Actions" ------> "View Logs" to get a list of all logs that were populated for this application: tc~wd~dispwda.

2.png


You will be directed to the Log Viewer application and here you can find more detailed logs on the operations that were done on / by the application: tc~wd~dispwda.


3.png


It is also possible to differentiate between HTTP requests that were made for this application and the Session logs:



4.png


You can also access this information straight from the log viewer application. Navigate to http://<server hostname>:port/nwa  ------>Troubleshooting ------>Log ViewerStart&Stop ------>Show advanced filter.


5.png

 

Now add a filter and enter the application name (tc~wd~dispwda in this case).

 

6.png

 

Click on Apply and all logged entries for the application tc~wd~dispwda will be available now:


7.png


How to increase the loglevel of sapstartsrv process?

$
0
0

1.

Determine, with which profile the sapstartsrv process is running?  Run the command:

 

          ps –ef | grep sapstartsrv | grep <SID>

 

sapstartsrv_demo.jpg


2.

This profile , with which the sapstartsrv process is running, can be the start or the instance profile.

In the above example this is the start profile.

 

3.

The sapstartsrv process trace level can be increased via the service/trace  parameter. Normally the sapstartsrv trace is running with trace level 0. Maximum value is 3. Put e..g ’service/trace = 1’ in the respective profile.


4.

 

You can do the restart via command : sapcontrol –nr <nr>  -function RestartService

Normally you should not le running the sapstartsrv process running on an increased trace level for a longer time. Reproduce
the problem and set back the value of service/trace parameter to 0. Restart the sapstartsrv process again.

Registration of tp not allowed.

$
0
0

I've faced this error when I was trying to connect an ERP system with an EHS-GLM server and was stuck a couple of days:

 

T:15060 Error in program 'C:\WWI\WwiSvcU.EXE': ======> CPIC-CALL: 'SAP_CMACCPTP : rc=6

LOCATION    SAP-Gateway on host ERP_HOSTNAME.local / sapgw13

ERROR       registration of tp WWI-Labeling from host EHS_HOSTNAME.DOMAIN.local not allowed.

 

 

T:16036 Error in program 'Dummy': ======> CPIC-CALL: 'SAP_CMACCPTP : rc=6

LOCATION    SAP-Gateway on host ERP_HOSTNAME.local / sapgw13

ERROR       registration of tp EHS_MANSRV_SID from host EHS_HOSTNAME.DOMAIN.local not allowed

 

Therefore my RFCs in ERP system are unsuccesful with the error : ERROR: program EHS_MANSRV_SID not registered.

 

The solution is adding a single parameter : gw/acl_mode=0 . Even it was not determined by RZ10 as a parameter, I insisted to set it with its default value!

SAPROUTER Installation

$
0
0

This blog intends to support all consultants who work with SAP ROUTER setup and maintenance.

 

Introduction:

The step by step configuration procedure is to install SAP ROUTER on Windows platform (The same procedure can be used in Unix environment)

Importantly, if the system is in Domain, perform entire operation with domain admin user only. Not with local admin.


Configurations steps:

OSS message to SAP: Raise an OSS message to SAP for component XX-SER-NET-NEW with following information.

 

“Request you to please register our Public IP & Host Name for SNC connection for SAP Router <saprouter box hostname>

Details:

Public ip:<public of your saprouter server>

Hostname:<hostname of your saprouter server>

 

Please contact <name> and <number > for more information on this“


Response from SAP would be:

Dear customer,

 

We've registered your data for the SNC connection to SAP Support.

 

Please do the following:

- Go to the http://service.sap.com/saprouter-sncadd

- Click on "Apply Now!"

- Follow the steps detailed in the documentation

- More details can be found on the following page:

  >>> http://service.sap.com/saprouter-sncdoc<<<<)>

 

You can test the connection with the following parameter:

 

Destination IP address at SAP side:     <169.145.197.110>

Hostname of this machine          : <sapserv9>


Customer data

Hostname SAProuter     : <SAPROUTER HOSTNAME >

IP address SAProuter   :     <SAPROUTER IP ADDRESS>

Your Distinguished Name:

"CN=<HOSTNAME>, OU=<OU GIVEN BY SAP>, OU=SAProuter, O=SAP, C=DE

 

 

Request SAP ROUTER Certificate:

 

Go to the http://service.sap.com/saprouter-sncadd

request certi.PNG

 

request certificate.png

Copy this distinguished name which is required to execute below commands.

Once you copied distinguished name then click on continues.


Creating  SAP Router folder in /usr/sap


In SAPRouter box create a folder saprouter in /usr/sap

Check if <sid>adm has got all permissions to this user.

Copy downloaded cryptographic Binary to SAPROUTER folder and extracts it with SAPCAR –xvf.


Set Environment variable

Env variable.png

Generate or register the certificate/(local pse) request –

Open command prompt as “run as administrator” in your SAPROUTER box.

>sapgenpse.exe get_pse –v –r certreq –p local.pse “CN=<hostname>, OU=<OU number>, OU=SAProuter, O=SAP, C=DE”

Request.png

After executing above commands, you will get two additional files get created in SAPROUTER folder.

Local.pse  - created in /saprouter/nt-x86_64 folder

Certreq – created in /saprouter   folder

Copy the content of certreq file and past in the certificate request text area of last SMP window.


request cert1.png

    Then click “Request certificate”

cert2.png

     Create a file “srcert” in /ntx86_64 and copy the above contents of the screen to created file.

 

 

     Importing certificate and creating credentials.

    Once the file srcert is created in /ntx86_64 , run the import command to install the certificate in SAP Router.


    >sapgenpse import_own_cert –c  srcert –p local.pse

sapgenpse1.png

  Creating credentials for user responsible to start SAPRouter service:

  After importing the certificate create credential for user <sid>adm  (or a user who have domain admin access) who will be responsible to start

  SAPRouter

 

>sapgenpse seclogin –p local.pse -0  <sidadm>

sapgen2.png


    Verifying the configuration:

   >sapgenpse get_my_name  -v  -n Issuer


     Post configuration activity:

     One of the important configuration step in SAP Router installation, is to create SAPROUTTAB.


     SAPROUTTAB is a file which contains information on who should be able to access SAP system using SAP Router.

     (who would be allowed to access SAP system)

 

    Create a file with name saprouttab and copy the same in /usr/sap/saprouter folder

routtab.png

    <sap server ip> is ip address of the server which is need to be access via SAP Router

    <port> is port of sap application for access.

    D * * *  meaning reject all the connection accept the entry of the server ip which mention in saprouttab.

 

    Register the service in windows box:

 

   You need to create saprouter service explicitly on this windows machine.

register.png

   This will be visible in services in windows box and will be up and running all the time.

   You can check the log file dev_rout  in /usr/sap/saprouter which could give information on service start and stop.

 

   Start the service in UNIX:

  # saprouter -r -S 3299 -V 3 -K "p:CN=<saprouter hostname>, OU=<Customer Name>, OU=SAPRouter, O=SAP, C=DE" &


 



Details about DAA/SMD,host agent, sapstartsrv etc.

$
0
0

Hi admins,

 

as technology consultant I came across a lot of confusion about topics like host agent, DAA, SMD, sapstartsrv and sapcontrol.

For what all this services are used? Which information is delivered from which one? Do I need them? When should I restart which service?

I will clarify all this questions in this blog to avoid future confusions.

All the communication threads are using the sapstreams (Unix: UNIX-Domain-Sockets / Windows: Windows named pipe).

For more information use the sap help.

 

 

Host Agent

Descriptionvalue
InstallationWill be installed with every SAP system
location/usr/sap/hostctrl
updateextract *SAR package from SMP => ./saphostexec -install or automatically over a network share
ownersapadm / root
port1128
start / stopsaphostexec -restart | stop as root/sapadm
statussaphostexec -status or ps -ef | grep -i saphostexec or TX: ST06

The host agent includes also other binaries like saposcol and sldreg.

 

saposcol

binary which is responsible for the delivery of monitoring values (CPU, memory, I/O etc.) from the OS to ABAP and diagnostic agent/solman

saposcol was included in the normal instance kernel before kernel 720. With kernel 720 it is part of the host agent.

 

sldreg

deliveres values for SLD (active if dev_sldr, dev_sldregs in instance work dir => /usr/sap/<SID>/work)

You need it if you want to send all information of your system to SolMan

to activate it => sldreg -configure slddest.cfg –usekeyfile => creates a config file in global dir

will send data if you are restarting the sapstartsrv of the instance => sapcontrol -nr xx -function RestartService

Note: this will only restart the sapstartsrv not the SAP instance or the system!

 

sapstartsrv

DescriptionValue
Installationwill be installed with the kernel
location<exe>/sapstartsrv
Logfile/usr/sap/<SID>/work/sapstartsrv.log
updatenormal kernel update
owner<sid>adm
start / stopsapcontrol -nr xx -function RestartService | Stop | Start <SID>
statusps -ef |grep -i sapstartsrv
Port5<xx>13 / SSL 5<xx>14
Detailsis configured by default as boot service (details: 823941 - SAP start service on Unix platforms). check file /usr/sap/services
further infosapstartsrv service parameters - Basis Corner - SCN Wiki

 

Note: every instance has its own service => this means e.g. DAA, central services (SCS), host agent have its own sapstartsrv service

over this service and its ports is the execution of OS commands possible. The sapcontrol binary controls this service and can restart the system.

This means SAP MC (Management Console) uses this port for communication and commands.

The service should be restarted if you change anything on your system, e.g. kernel, ip, hostname

 

DAA / SMD

In newer systems there is no difference between SMD and DAA. The diagnostic agent (DAA) is the newer description but includes the SMD which is more the instance description and DAA the SID. They renamed SMD to DAA, it is still nearly the same and you will find both names in the documentations or parameters.

DescriptionValue
installationwith new system or afterwards single installation with SWPM
location/usr/sap/DAA (old: /usr/sap/SMD)
logfilefiles under /usr/sap/DAA/SMDAxx/work (xx should be 97 / 98)
config<DAA_Instance_Dir>/smdagent.properties | <DAA_Instance_Dir>/configuration/installationinfo.properties | runtime.properties
SIDDAA / SMD
Instance number98 (old 97)
Ports59821 (DebugPort) 59813 (sapstartsrv) 59804 (replace 98 with 97 for old installation)
updateautomatically over solution manager (LM-SERVICE Java component)
ownerdaaadm (smdadm)
start / stopstopsap / startsap as daaadm (smdadm)
further infoDiagnostics Agents - SAP Solution Manager Setup - SCN Wiki

Details: based on java instance

It is a central component of the solution manager. You should install it on every system which you want to connect to the SolMan. It provides necessary information for SLD/LMDB.

 

 

sapcontrol

The sapcontrol binary uses the sapstartsrv to start/stop services, read out log and trace files, show details and status of processes

 

DescriptionValue
location<exe>
updatenormal kernel update
owner<sid>adm

Details:

You can only restart a service, instance or a complete system. Now some of you may be confused about this. Is the instance not the same as system?

No the instance is e.g. only the DIA instance but not the ASCS and the DB. When you stop the system, than all process which are registered in <GlobalDir>/sapcontrol are restarted!

You can display this also with a command: sapcontrol -nr xx -function GetSystemInstanceList

some useful functions:

GetStartProfile

GetTraceFile

GetAlerts

GetEnvironment

GetVersionInfo

GetQueueStatistic

GetProcessList

GetInstanceProperties

GetSystemInstanceList

ABAPReadSyslog

ABAPGetWPTable

J2EEGetProcessList

J2EEGetThreadList

J2EEGetSessionList

ICMGetCacheEntries

EnqGetStatistic

EnqGetLockTable

CheckHostAgent

 

I hope I could clarify the meaning and usage of every service/binary.

 

If you have any further questions, don't hestate to comment the blog or contact me or one of my colleagues at Q-Partners ( info_at_qpcm_dot_de )

 

Best Regards,

Jens Gleichmann

Technology Consultant at Q-Partners (www.qpcm.eu)

STAD Retention Period

$
0
0

System administrators sometimes wish to increase the retention time for STAD, so that they can check STAD statistics back over a period of days or weeks.  The main SAP note which discusses this is 6833:

  • 6833 - Deleting statistics file, size of statistics file

 

 

As described in the note, the parameter stat/max_files determines how long the STAD data is retained.  The maximum value for stat/max_files is 99 (hours).  99 hours is just over 4 days.

 

Transaction STAD is only designed for analysis of recent statistics and activity in the system, over the last couple of days.  Statistics from the STAD files get saved into tables (by the SAP_COLLECTOR_FOR_PERFMONITOR job) which are read by transaction ST03, so for analysis and statistics over longer periods than a couple of days you should use ST03, not STAD.

WebDispatcher Service on Windows with SC.exe

$
0
0

Hi,

This is probably very basic. But it would have saved me some time so:

I was following this tutorial on Webdispatcher installation on windows. Everything went great until creating a service for the webdispatcher (11th step).

 

The problem is ntscmgr.exe is no longer supported

I was able to create it with sc.exe as explained in the note, but I was unable to make the service start.

 

sc.exe create SAPWebDisp binPath= "<path>\sapwebdisp.exe pf=sapwebdisp.pfl" type= own start= auto

 

Finally inspired by this blog and the original tutorial I found the answer.

 

Solution: Open "regedit.exe" and edit the string "ImagePath" under following location. 

 

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SAPWebDisp


sapwebdisp.exe service pf=sapwebdisp.pfl


Now it works fine.


Hope it helps someone.

Adjusting Margins for SAPScript and Smartform Printouts

$
0
0

Sometimes when printing a custom SAPScript or Smartform, some of the printout is truncated or cropped or the margins go outside the printable area of the page.  The spool print preview looks fine, but the physical printout can be missing a few millimetres of the right-hand side of the print for example.

This problem is discussed in the SAP note 101266, and you can use the 'Horizontal Move' and 'Vertical Shift' settings for your output device in transaction SPAD to adjust your margins.

  • 101266 - SAPscript: printable area for laser printers

 

The Horizontal Move and Vertical Shift settings shifts the printout (or effectively adjusts the margins) on the page when you create a new spool for the output device.  In transaction SPAD, select your output device, and go to the Output Attributes tab.  Here you have the 'Additional SAPscript and Smartform information' section:

 

1.jpg

 

The default value is millimetres.  Horizontal move will shift the print left or right on the printout.  Vertical shift will adjust the print up or down on the printout.

For example, if your spool has the last line cut-off at the end of the printout, you may wish to shift the print upwards on the page.  To do this, enter a value

for example -5 in the Vertical shift option and save your change.  This will move the print 5 mm upwards when you create a new spool with this output device

and print:

 

2.jpg

 

Remember that any change you make to these settings will only effect new spools that are created with your new settings.  Old spools are not effected by your changes when printed.

 

These settings only effect SAPScript and Smartform spools (not ABAP Lists or PDF spools).  The problem usually occurs in the first place with custom Z forms because the custom form has been created slightly too wide or too long.  The real, or alternative, solution to these problems is usually to adjust the custom form itself in SE73 (SAPScript) or transaction smartforms.


Support Pack Stack upgrade on Java Portal system

$
0
0

     Hi There,

               I have recently performed a Support Pack stack upgrade on a standalone java system and would like to share my learning and errors faced(and resolutions too ).

Just to brief about the system details:

System : SAP Enterprise Portal (NW 7.0 Ehp1)

Current level : SPS 10

Target level : SPS16

Tools used for upgrade : SUM 1.0 SP12 (for SPS upgrade) , MOPZ( for stack file generation)

 

From my experience working on this activity below are steps(say checklist) I could come up with to perform the SPS upgrade with SUM tool on Java system.

Please feel free comment on these steps if I am missing anything.

 

  • Preparation
    • Disk space and hardware checks: Check the available disk space on your server before you start the activity, you need space for SUM tool and additional space to take backup of usr\sap\<SID> backup after pre-processing phase and before execution phase.  Needless to say you need space to store your software dump of files downloaded using stack.xml file. ( Use MOPZ to generate this)
    • If you are working for the first time with SUM tool, please go through the central note for your version of SUM tool, for SUM 1.0 SP12  please refer to SAP note 1981278
    • Install Maintenance certificate using visual admin/ NWA depending on your current version of the NW
    • Take a complete DB backup and file system backup before you start the activity, you might need this to restore the system in case of any issues during later stages.

  

     Sounds like we are good to start the activity

 

 

Lessons "Earned":

     That looks so easy, isn't it? Well, a good planning always helps to complete the activity with less hurdles. Below are the lessons I learned from this activity and I am interested to share:

  1. According to me generating the stack.xml from MOPZ is critical for running any activity using SUM tool. So please be patient while you are working on this step.
  2. Issue while starting the SUM : When you want to go on a long drive, the least thing you want to happen is a starting trouble with your car . I faced an issue here where my SUM tool doesn't want to start as the default HTTP sever port ( Port#4239 ) was already occupied by different process. If you have similar issue, follow the below steps :
    • This is for windows server :Open command prompt and run the command netstat -a and this would list the ports occupied on your server. Look for a port number not used currently and use this to start your HTTPserver for SUM tool.
    • To change the port number you need to modify the sdtserver.xml in SUM directory
    • Find <HTTPPort>    4239 in sdtserver.xml and replace the port 4239 with the available port number
    • This should allow you to run the SUM tool now.
  3. The next error, I faced was during post processing phase, which says

The deployment of the portal has failed.

For more information, see the following log file <Location till SUM directory>\sdt\log\SUM\COLLECT-PORTAL-IMPORT-RESULTS_01.LOG

refer to SAP note 1130469.

          Resolution was available from previous discussion on SCN post: Reference NW BI-JAVA 7.01 SP6 deployment failed with error main_rules.ept

     4. Finally the upgrade was completed and the system was released to business for testing and users were facing run-time exceptions while logging to the portal. We checked the default trace from NWA with filter on 'userid'  and found the below exception.

[EXCEPTION]

java.lang.NoClassDefFoundError: com/sap/portal/pcm/iviewserver/NewIVSObjectDescriptor

------------------------- Loader Info -------------------------

ClassLoader name: [com.sapportals.portal.prt.util.ApplicationClassLoader@cc032d6]

Parent loader name: [sap.com/com.sap.portal.ivs.systemlandscapeservice]

References:

not registered!

Resources:

\usr\sap\SID\JC<nr>\j2ee\cluster\server1\apps\sap.com\irj\servlet_jsp\irj\root\WEB-INF\portal\portalapps\com.sap.portal.ivs.systemlandscapeservice\private\lib\com.sap.portal.ivs.systemlandscapeservice_core.jar

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

The error occurred while trying to load "com.sap.portal.pcm.system.SystemDescriptor".

at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:401)

at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:303)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:219)

at com.sapportals.portal.prt.core.broker.PortalServiceItem.__createServiceInstance(PortalServiceItem.java:730)

at com.sapportals.portal.prt.core.broker.PortalServiceItem.getServiceInstance(PortalServiceItem.java:543)

at com.sapportals.portal.prt.core.service.ServiceManager.get(ServiceManager.java:185)

at com.sapportals.portal.prt.runtime.Portal$RuntimeResources.getService(Portal.java:153)

at com.sapportals.portal.appintegrator.accessor.system.AbstractSystemAcessor.resolveAlias(AbstractSystemAcessor.java:186)

at com.sapportals.portal.appintegrator.accessor.system.SystemAccessorFactory.getSystemAccessor(SystemAccessorFactory.java:56)

at com.sapportals.portal.appintegrator.layer.AbstractIntegrationLayer.getLocalOrRemote(AbstractIntegrationLayer.java:539)

at com.sapportals.portal.appintegrator.layer.TopLayerSwitch.mustRedirectToProducer(TopLayerSwitch.java:101)

at com.sapportals.portal.appintegrator.layer.TopLayerSwitch.getNextLayer(TopLayerSwitch.java:72)

at com.sapportals.portal.appintegrator.LayerProcessor.getNextLayer(LayerProcessor.java:273)

at com.sapportals.portal.appintegrator.LayerProcessor.processActionPass(LayerProcessor.java:169)

at com.sapportals.portal.appintegrator.AbstractIntegratorComponent.doActionPass(AbstractIntegratorComponent.java:68)

at com.sapportals.portal.appintegrator.AbstractIntegratorComponent.doOnPOMReady(AbstractIntegratorComponent.java:54)

at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:396)

at com.sapportals.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:249)

at com.sapportals.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:368)

at com.sapportals.portal.prt.pom.PortalNode.processEventQueue(PortalNode.java:799)

at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:652)

at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:249)

at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:557)

at java.security.AccessController.doPrivileged(Native Method)

at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:430)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)

at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)

at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)

at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1064)

at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)

at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)

at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)

at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)

at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)

at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)

at java.security.AccessController.doPrivileged(Native Method)

at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)

at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)

 

Now, that feels scary to understand Java Language. To summarize, this exception means the java could not see its SLD running, that was what I understood and apparently it is true. SLD on Java portal was not running post SPS upgrade with the below error:

 

Server misconfiguration. Please set profile parameter BufferInstances to false when running a multi-node cluster.


Now that's more like the language I speakStraight forward answer for the issue, set the parameter 'bufferinstances' to 'false' when you have more than one node.

refer to section 2  on Post Installation Guide SLD of SAP NW 2004s (http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/652b1f46-0a01-0010-25ae-e7cb07b55414?QuickLink=index&…)

SLD->administration->Profile->Section:ObjectManager->Set 'BufferInstance' to 'false'


Now start SLD and restart Java engine on the portal.



 

... and like every story this is a happy ending.


Thanks for reading this blog, I hope this would have been useful to you.

Feel free to comment your views on the this post and any suggestions/learning from your experience.

Who moved the Product Version??

$
0
0

Hi All,

 

This blog is share something that kept me busy for a while today.

I want to check some information in System Status and it is not where it should be!!!

Product version on System data showed -See Details- and I was worried for a moment.

 

I clicked on the Details icon ( magnifying glass there ) and was able to see the software components as always.

At first I thought this was some bug after the SP upgrade and if you are thinking the same you and me need to learn where to look and observe the changes around carefully.

 

Once you open the details screen, please notice that SAP has included a new Tab there with Product versions :

 

 

Well, now the question is why a new Tab?

     Simple, there is more than one product version marked as installed on your SAP system and hence the change.

Since when?

          This functionality has been implemented with SPAM version 54, below is the extract from the release notes of SPAM version 54

    

 

How do I know ? (Silly Question, but I still love to answer this )

    I read the SAP note 2122939 - SAP System Data: "- See Details -" instead of installed Product Version

 

 

Hope you too learned something new today, please do share it with us.

Common Single Sign On (J2EE to ABAP) issues, solutions and further troubleshooting

$
0
0


Purpose

 

Here at SAP Active Global Support (SAP AGS) we constantly receive issues from our customers related to Single Sign On (SSO) between the J2EE and the ABAPNetweaver stacks.

 

The purpose of this document is help in "PROACTIVELY" checking common SSO issues on the actual servers involved and list steps on further troubleshooting if the need arises.

 


Example Scenario

 

Lets say the configured Single Sign On (SSO) setup between SAP Portal and the R/3 system fails and you get a logon page.


1.jpg


Another example of an error would be that you test a portal system connection (Configure System Connection in SAP Enterprise Portal) and this fails with an SSO error:

 

 

 

2.png



Common SSO Error Scenarios and Checks


Some major SSO issue causes that we come across are mentioned below. Proactively checking the servers involved (both ABAP and J2EE) and comparing the below points will help in finding the root cause. This will help in faster resolution.

 

1)

Configure the SS0 settings again as per SAP note:1083421 as this will solve any inconsistencies on the server due to manual interventions.

 

More help:

http://wiki.sdn.sap.com/wiki/display/EP/Troubleshooting+SSO+between+AS-ABAP+and+AS-JAVA

 

 

2)

CheckSAP note 842635, especially for the parameters: login.ticket_lifetime and SessionExpirationPeriod. Set the expiration of the security session and SSO ticket timeout to the same value as recommended in the note:

 

"

Setting security session and SSO timeout

 

Please set the timeout value for the security sessions (default 27h) and the timeout value for the SSO ticket (default 8h) to the same value. It should be a      value that is higher than the maximum working time of an employee, e.g. 16 hours.

"


3)

Do make sure that you are on the latest SAPJVM level so that the issues as mentioned in SAP Note: 1367871 do not occur.

 

 

4)

The client mentioned in the J2EE UME property login.ticket_client should be part of the TCode /nSTRUSTSSO2ACL (Access Control List) on the R/3 server.

There is a possibility that say the login.ticket_client is set to 000, which is already a value that is a client in the ABAP server. If so, SSO may not work cause client 000 is also available on the ABAP server as this can lead to inconsistencies. The only option here would be to change the login.ticket_client value to a client that is not present in the ABAP server (say 678) and restart the J2EE server. Then run the SSO2 wizard (as per SAP note:1083421) and this will update the strustsso2 table.

 


5)

The SSO enabling parameters should be set on the R/3 server. The parameters are login/accept_sso2_ticket and login/create_sso2_ticket. More info:

 

Configuring the AS ABAP for Issuing Tickets for Logon - User Authentication and Single Sign-On - SAP Library



6)

Do see see SAP Note 1055856 which has more information on issues on the R/3 end.

 


7)

See SAP Note 1761987, point 7 and synchronize the ABAP and the J2EE server clocks. This will make sure that the ABAP and the J2EE servers have the same time as this can lead to issues with the validity of the cookie. You need to make sure that the J2EE and the ABAP server time zones are the same. You can change the timezone by setting the JVM parameter "-Duser.timezone=<desired timezone>" in ConfigTool. More help:

Time zone settings with SAP Process Integration - Process Integration - SCN Wiki

 



Further Troubleshooting

 

Say the above settings are all fine but the issue persists. Now it is time to delve deep into the server logs and investigate further. This is needed to narrow down the issue as to  whether it is an ABAP server, J2ee, tickets, browser issue etc and help in an END TO END trace. The detailed steps are:

 

1)
Clear all the browser cache.


2)

Set the security trace level in the ticket accepting system (R/3 server)


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

2.1. Call transaction SM50 (process list):

2.2. Process -> Trace -> Reset -> Workprocess Files

2.3. Key combination: F5 (select all), CTRL-Shift-F7 => Dialog box;

2.4. Set trace level=3 and ONLY(!) check the "Security" component;

 

If necessary, you must repeat these steps for each server (see transaction SM51), unless you can use a specific server for reproducing the error (for example, by excluding the load distribution).

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

 

3)

Run the web diagtool as outlined in SAP Note 1045019 (example 1) if you are on SAP Netweaver release 6.40 or 7.00 or as per SAP Note 1332726 (incident "General Security") if you are on 7.1, 7,2, 7.3, 7.4 or 7.5 version. It will be ideal to run it on the server 0 (check SAP Note 1589567).


4)

While the diagtool is running, reproduce a failed SSO scenario to the backend.


5)

When the SSO fails, wait for a minute and then press return in the diagtool console so that the resulting traces are picked up.

6)

Check the diagtool traces and the ABAP workprocess traces for more details on the exact error. You can use the technique mentioned in How to search for specific error content in ABAP server logs and How to check logs for particular J2EE application issue to narrow down and pin point on the exact cause.

 

NOTE: If you are still uncertain after all the steps mentioned in this blog and the issue still persists, contact SAP Support / SDN and attach the below documents/logs:


--  The html Diagtool log
--  The J2EE server default traces
--  The /nSM50 trace
--  Step by step screenshots of error reproduction
--  the exact time at the issue was reproduced and the user ID involved.
--  The screenshots of the TCode /nSTRUSSSO2 and the ACL.

Troubleshooting :Work process restarted session terminated error

$
0
0

Hi All,

 

I would like to discuss one of the possible way to troubleshoot the error "Work process restarted; session terminated" error from Basis perspective.

If you are not from SAP Basis team and facing this error, you might need additional authorization for few transactions mentioned below.

I will be discussing the generic steps to be followed and also the error I came across in my scenario.

 

To give a heads up my SAP GUI session was getting terminated while searching a role with certain Authorization Value from SUIM transaction.

 

 

Sometimes while working on SAP GUI the user session gets terminated with this error and below pop up

 

Below are the steps I followed to find the root cause and fix this error:

 

Step1 : Check SAP system log (SM21)

Check SM21 logs for the particular user whose session is getting terminated with this error.

This would give you a basic idea on what is triggering the issue.

If you could understand this log from your previous experience you cracked the issue in Step 1, if not go to Step 2

 

In my case, the issue was with DB Rollback failed.

 

Step2 : Check the relevant work process trace (ST11)

The work process trace should give you more information on the error, in most of the cases the work process gets terminated when the heap memory and extended memory gets exhausted. So check your system memory configuration if these settings are maintained correctly.

If you feel that memory configuration is not the issue or if the error still occurring after changing the memory settings goto Step3.

 

In my case, the WP trace provided the below information.

And I see that the my work process is using both heap memory and extended memory before getting restarted.

You will be able to see this in ST02

Refer SAP note : 1825408 - MSS: DbSlRollback96 while DBIF already active

 

 

 

Step3 : Collect User trace from ST12.

This would help you to find the ABAP statement / SQL query that is using the work process memory and based on the results you can take required actions to fix the issue.

In my case, from the performance trace I see that the work process was getting stuck on Fetch statement on Object DD04VV

 

Step4 : Search for SAP notes in service market place or work with your development team to investigate these expensive SQL statements and this should solve your issue.

 

In my case, the issue was that the View DD04V was missing a join condition and I have implemented the below SAP notes to fix the issue.

2054335 - PFCG : Shortdump when starting the authorization maintenance / incorrect maintenance dialog popup

1993453 - Error during evaluation of authorization intervals in the report SUSR_TABLES_WITH_AUTH

 

Hope this blog would help you to fix your error sooner.

Leave your comments if you feel I should have done something different or need to include any additional steps to this procedure.

SAP SMTP service with Office365 online exchange

$
0
0

Nowadays more companies are preferring online exchange servers which saves infrastructure & maintenance costs and as a SAP Netweaver Administrator we have to configure it in SAP system for sending emails. If your mailboxes are in Office365, then there are a few options available to setup in SAP and other third part applications : SMTP relay,or client SMTP submission, or Direct Send.

 

For SAP, we can use two options - 1.Client SMTP submission and 2. SMTP Relay.

 

Lets configure Office365 in SAP SMTP with 'Client SMTP submission' option.

 

1. Make sure network connection is open from your SAP server to Office365 host and you are able to ping & telnet Office365 host.

 

2. Set ICM parameter in instance profile icm/server_port_1 : PROT=SMTP,PORT=0,TIMEOUT=120,PROCTIMEOUT=120,TLS=1, here PROT is protocol, with PORT option you can specify port for incoming connection, if it is 0 then no inbound connections for SMTP and TLS have different options, it depends on what you select in SCOT-

     0: A TLS prompt does not take place.

     1: The server prompts the client to encrypt using TLS. If this is not possible, the connection via SMTP is accepted without TLS.

     2: The client has to use TLS for encryption; otherwise, the connection is terminated.

ICM parameter.jpg

3. From SMICM transaction, restart ICM after setting up above parameter and also check ICM services, SMTP service should be active.

ICM SMTP service.jpg

 

4. From SICF transaction, activate SAPconnect service.

SICF.jpg

 

5. In SCOT transaction, select SMTP Nodes as shown below and from menu choose Nodes -> Create .

SCOT1.jpg

You will get new window to fill up SMTP node details -

Scot2.jpg

From Office365 you can find out the mail host and mail port details.

Login to your office365 account -> Setting button -> Options -> Mail -> Accounts -> POP and IMAP  -> Under SMTP Setting you will get required details.

 

Now click on Settings button in front of Security field, here select the TLS option as explained in point 2, make sure your ICM parameter is set accordingly.

 

Under Authentication, you need to provide valid office365 account email ID and password, <xxxxxx@yourdomain.com>. You have to use same email ID for SAP user with which you are going to send emails outside SAP.

scot3.jpg

On first screen under Supported Address Types -> Click on Internet (if you want to setup only email), in Address area you can restrict to which domain you want to send emails, with * option will allow to send emails to all domains without restriction.

scot5.jpg

Now set domain for SMTP, on SCOT screen choose from menu Settings -> Default Domain

scot_domain.jpg

 

6. Scheduling email send job- From Scot screen double click on Send Jobs. Click on Schedule Job button and select Job to be scheduled.

Send job.jpg

Provide details as Job Name, Period, User and Variant if you want to change default, click on Continue and save the job.

sendjob2.jpg

 

Done.!!

 

Now try sending email from SBWP and check status in SOST.

 

With older version of SAP(lower than 7.31 Support Package 6 and 7.21 kernel) where TLS functionality is not available, we can use other option of 'SMTP Relay'. In that option, we have to setup IIS service as SMTP relay on local windows server and then use this server details in SCOT. Link is provided in references on how to do it.

 

 

 

References :

 

SAP Notes-

     1747180 - SMTP via TLS and SMTP authentication

     1724704 - SCOT: Settings for TLS and SMTP AUTH

     1702785 - Error diagnosis SMTP via TLS and SMTP authentication

 

Other links -

     How to Allow a Multi-function Device or Application to Send E-mail through Office 365 Using SMTP

     How to configure Internet Information Server (IIS) for relay with Office 365

failing upgrade because of a non running server node

$
0
0

Some weeks ago I upgraded an SAP netweaver system (double stack). During the deployment the whole upgrade stopped. In the corresponding log files I didn't find any hint what might have caused this error. In SCN and the published SAP notes no information for this problem was available.

 

Later I restarted the upgrade. Parallel to this upgrade I checked the server node status using jcmon. When the deployment started again in SUM the infomation came up that the upgrade process started the server node. But in jcmon this wasn't happening. This was the error that caused the problem during the earlier upgrade. Here I started the corresponding server node via jcmon. Shortly afterwards the deployment continued and finished successfully.

 

Please check the status of your server node during an upgrade using jcmon. I used the following procedure and commands to solve the error.

 

1. stopping the system with

stopsap R3

 

2. checking the corresponding sdm log for the instance to be started

 

 

3. start the corresponding instance with e. g.

startsap DVEBMGS00 <name of ci>

 

4. check the system using jcmon if the java server had been started with

jcmon pf=<profile>

 

 

5. if not restart it using jcmon

 

ASUG Members, the SAP TechEd 2015 call for speakers is coming soon!!!

$
0
0

Seems strange to be talking about SAP TechEd when the ASUG Annual conference is approaching quickly!!!

 

SAP TechEd.png

 

The good news is that your SAP TechEd Design team is already meeting and planning for SAP TechEd October 19-23, 2015 in Las Vegas!!  The SAP TechEd Design is comprised of the follow volunteers - Tammy PowlasGretchen Lindquist  and myself along with our SAP Point of Contact (POC), Peter McNulty.    We choose the ASUG Education sessions that best meet the needs of the ASUG membership.  ASUG sessions ideally share customer stories.

 

This conference is tailored to technical folks, developers, architects and engineers and provides a great way to network and collaborate.   Please consider sharing your company's success story or lessons learned.

 

Here's how you can contribute:

 

The call for speakers will open around April 20th and will close around May 24th - see below for the current schedule.

 

Source:  SAP TechEd Submission Site

 

SAP TechEd Critical Dates.png

 

Here is the track structure:

 

SAP TechEd Tracks.png

 

Start planning now!!

 

Here are other posts with similar information -

 

From Tammy Plan Now for Call for ASUG Speakers for SAP TechEd Las Vegas

 

From Gretchen ASUG members, start planning to present at SAP TechEd 2015!


Invalid DDIC Objects During System Copy

$
0
0

First, a few caveats as I tell you my story of woe and redemption. Some of the techniques I will describe should be used only with extreme care and definite understanding of what you are doing and potential consequences. The story you are about to read involves a sandbox system (just in case), with plenty of backups. I always recommend trying out anything a little dodgy in a sandbox first, of course. Additionally, I should point out that the system involved was on a release that was out of maintenance (even extended maintenance), so obtaining official SAP support for this issue would likely be problematic (not to mention take a lot more time); otherwise I would of course recommend seeking official support. I needed to get this system upgraded, but before I could do that, I needed to get it copied, migrated onto new hardware. Starting with the sandbox.

 

Background

The system involved is an old SRM 5.0 system (out of maintenance) that I am about to upgrade to SRM 7.0 (in maintenance). At the same time, I am migrating the landscape onto new hardware (the old hardware is ten years old), and taking advantage of new database compression capabilities available in SQL Server 2012 (the old system is SQL 2005), as well as redistributing the database to a larger number of disks.

 

In other words, I need to perform a database-independent (R3load-based) homogeneous system copy. This is the ideal way to evenly redistribute the database files, and it achieves the compression in a single step as well.

 

So, I've setup my sandbox environment, but I can't justify production downtime to make a copy for the sandbox. No problem. I start with an ordinary database-dependent (backup/restore) system copy, which involves no downtime on the source system. I just make a copy of the most recent backup, restore that to my sandbox, and run SWPM for the target system installation. Easy-peasy.

 

After ensuring that the sandbox system is running fine post-copy, now I want to export it and re-import it to achieve the disk layout and compression.

 

And that's where my troubles began.

 

The First Export

I prepared my system as usual for the export, de-scheduled all the jobs, shut it down, and fired up SWPM (again, since I had just used it to install this system). The export ran fine, quicker than I expected, but of the total 47 Export Monitor jobs, 1 of them failed. Oh oh. That's not supposed to happen.

 

I drilled into the logs and saw that in one of the export packages there was an "invalid object name" for table /CCM/CUST. This is a table related to the now-defunct module Catalog Content Management, which briefly enjoyed status as the go-to catalog solution after support for Requisite BugsEye dried up and before SRM-MDM launched onto the scene. The only trouble is, we don't use CCM in our system. We briefly experimented with it a number of years ago, but never went anywhere with it. I know for certain that we don't need this table. However, I cannot successfully complete the export with this error.

 

Active DDIC Source Missing or Incorrect

Curious, I go take a look at the original source system, i.e. my production system. In SE16 or SE11 the table doesn't exist. Hmm.

 

SE14 now starts to show the real puzzle. Here the table does seem to exist, or at least SE14 is able to display some data about it. It has a status of Active but also Does not exist in the database.

 

Ok, let's check consistency of database and runtime objects. Sure enough, Table is not created in the database, but I expected that. The runtime object check, however, returns Active DDIC source for /CCM/CUST missing or incorrect. I can display the runtime object, but it's not consistent.

 

I check the object log, and, oops, the log does not lie. The table was deleted, six years ago, via this very utility, SE14, by me.

 

Oh yeah, I kind of remember that now.

 

What Happened

How exactly we got to this point is not really important, but after our abortive attempt nine years ago to install CCM, we simply abandoned it in place. A few years later, however, we upgraded our SRM system from 4.0 to 5.0, and -- digging into the deep memory well here -- we did a "passive deletion" of the CCM component during the upgrade. I don't now recall all the details, but the passive deletion was not entirely successful, and ultimately I finished off deleting the tables involved via SE14. This worked, and the upgrade was a smashing success.

 

Fast forward six years to today, and yes, those tables are gone, but it appears that the SE14 utility did not completely remove the nametab entries for the tables. So, there is no object on the database for them, and there is no active DDIC runtime object, but there is still a data definition, or nametab, for each one.

 

How to Proceed From Here

SE14 is not very useful from this point. As the table doesn't exist, there's nothing for the utility to delete, nor will direct database tools be of any use. The only function active, other than consistency checks, is Create database table, but that's not exactly what I want to do. Still, maybe if I create the table, I can then re-delete it, and this time it will work? Worth a try.

 

But I'm not doing this in production! I'm not even going to do it in DEV. This is what I have a sandbox for, after all.

 

So, I kill the SWPM process and restart the sandbox system. Sure enough, I see the same behavior in SE14 as I saw in DEV and PRD. I create the missing table. It works!

 

Or, does it? Not so fast. It actually doesn't work, because the runtime object is still missing. So now I have a mismatch between database and runtime objects, and I'm no closer to a solution than before. In fact, I'm farther away from one.

 

I delete the table again, and we're back to square one. Despondency sets in. How can I get at the inactive or inconsistent nametab source for a table that doesn't exist in the dictionary?

 

Nametab Adventures

Well, it turns out there's a handy little function module, DD_SHOW_NAMETAB, which indeed shows my rogue ghost table. Great!

 

And, there's another, even handier, function module. Dare I mention it? Yes, it is DD_NAMETAB_DELETE, and it does exactly what it sounds like. I give it a try. I put in my table, /CCM/CUST, and the result seems rather underwhelming. However, now no nametab shows for it, and SE14 now says this table doesn't exist at all. This is promising! Get another backup, shut down the application, and restart SWPM for a new export.

 

More Than One

Failure!

 

Ok, half-failure. The export did not fail on /CCM/CUST this time. Instead, it failed on /CCM/C_ASPT. It looks like there are a bunch of these ghost nametab entries out there. I need to see if I can find them all, because this one-at-a-time business, trying a full export each iteration, will keep me busy until I'm grey(er).

 

SE14 does not find any /CCM tables in a search. The nametabs exist, but apparently not in any search help. No utility seems to be able to successfully search for /CCM/*, nor for that matter for /CCM/C_ASPT, even though I can see /CCM/C_ASPT in SE14 if I enter the name directly. Nor does DD_SHOW_NAMETAB successfully work with a wildcard. It's a one-at-a-time tool.

 

Going back to the logs from my SWPM export, however, I find a file, SAPAPPL1_1.TSK (SAPAPPL1_1.log is where the failure was recorded), which is, as its name implies, something of a task list for that migration monitor package. And, it has a handy list of every table that package was supposed to export, including almost three dozen /CCM tables.

 

Bingo!

 

Success!

Using my list of /CCM tables, I checked each one with SE14 to be certain that there were no existing database objects and that all of the runtime objects had missing DDIC sources, yet all of the nametabs existed. Once certain that all of them were inconsistent, I ran them all through DD_NAMETAB_DELETE, and, again, restarted my export (third time!).

 

I am happy to report that this resolved the problem, and now you know how I spent my weekend.

Downloading Data Dictionary structure into local file.

$
0
0

Hi All,

 

Background:

I got this scenario very interesting as during complex system upgrades we used to take snapshots of critical tables where we have added so many custom fields as part of various requirements. This is done as part of documentation process as Quality Analysts teams will review these snapshots of before and after upgrade table structures.

 

I decided to spend some time on this and tried some common methodologies existing.

 

Investigation

 

  1. Usage of FM BKK_DB_GET_TABLE_FIELDS


 

    1.jpg

2.jpg


I passed the input as the table name MARA and got the various fields available inMARA on alphabetical order. But no other informations are conveyed.


2.Usage of Table DD02T

 

This is a SAP Standard table for storing the table texts.

 

3.jpg

 

Passed the field as Mara and executed.

 

4.jpg

 

Result was like short description based on various language keys. As no other field details are covered I decided to go further.

 

3.Usage of view DD03VT

The database view shows all the table fields’ related information.Looks like too many information on the one screen.

 

5.jpg

 

 

6.jpg

 

 

4.Tried SE15.It was also directing me to the standard SE11 Screen.

 

 

Solution

 

Finally I got one solution in the SE11 itself. I have documented the steps as follows.

I have chosen MARA  as the table structure which I want in the downloaded format.

 

1. Type Mara in the Database table column in SE11 and click on display

 

7.jpg

 

2.Choose Table-->Print

 

8.jpg

 

 

3.Choose the required print settings option from the menu.

  1. SAPMAXINFO --> Provides maximum information related to field.
  2. SAPMEDINFO --> Provides medium information related to field.
  3. SAPMININFO  --> Provides minimum information related to field.

 

I am going with Medium information.

 

 

9.jpg

 

4. Once settings are chosen click on the print button.

10.jpg

 

5.Give your output device name and choose print preview.

 

11.jpg

 

 

6.A print preview will be generated

 

12.jpg

 

7.Click on Goto--> List Display

 

13.jpg

8.List will be converted into General Abap List

 

14.jpg

9.Go to system-->Lists-->Save-->Local File option.

 

15.jpg

 

10.Choose Spreadsheet and press enter

16.jpg

 

11.Choose the desired location on your desktop and click on generate button

 

17.jpg

 

12.It will generate an excel file containing all the structure of the fields.

 

18.jpg

Hope it helps...

 

Regards,

Kannan

Continue Client Import After Termination

$
0
0

You may encounter some unexpected errors during client import with transaction code STMS, such as not enough free space within Oracle undo and temp tablespace. Then you want to continue to import at the point of failure after problems/errors are fixed and how can you do?

 

  1. Go to import monitor of target system (TX STMS -> Import Overview -> choose target system -> Import Monitor ), right click and delete the running entry regarding to client import which ends the tp process on OS level.

              

 

     2. As per note 70547 - CC-TOPIC: Client transport, continue the client import with following command as user <target_sid>adm:

     tp import <SId>KTnnn clientxxx <Target_SId> u8 pf=/usr/sap/trans/TP_DOMAIN_SID.PFL

     Notes:

     xxx stands for target client

 

     Once it starts, you can see the following information in import log under directory /usr/sap/trans/tmp for already imported tables.

     3 ETW674Xstart import of "R3TRTABU/1CN/CPASAP00001" ...

     4 ETW000 R3TR TABU /1CN/CPASAP00001     was already imported successfully.

     3 ETW677 "R3TRTABU/1CN/CPASAP00001" not imported in this step.

 

     After the completion of step 2, refresh import queue of target system to reflect the current status:

    

 

     As soon as the step 2 finishes, perform client import postprocessing steps in target client.

 

Regards,

Ning

SAP_COLLECTOR_FOR_PERFMONITOR Job and TCOLL Table

$
0
0

Overview:

 

SAP_COLLECTOR_FOR_PERFMONITOR is a standard hourly collector job that gathers the statistics for the Workload Monitor transaction ST03 (component BC-CCM-MON-TUN).

 

 

Workload statistics are written by the kernel which is saved into stat files for use with transaction STAD.  These stat files are overwritten, usually every 48 hours, depending on your parameter settings.

The SAP_COLLECTOR_FOR_PERFMONITOR job collects the statistics from these stat files and stores them in tables (MONI or SWNCMONI tables) for ST03 to read from.

 

 

 

TCOLL Table Reports:

 

SAP_COLLECTOR_FOR_PERFMONITOR starts the programs that are in the TCOLL table, therefore the TCOLL table must be maintained correctly with the correct programs running at the correct time.  One way to check that the TCOLL table is maintained correctly is by running the report RTCCTOOL.  Among other reports and recommendations, RTCCTOOL will show a status for "[Note 12103 ] Collectors and TCOLL":

1.jpg

You can click the traffic light on the left for a list of checks and recommendations if there are problems.

 

Although this report mentions the note 12103, you need to refer to the TCOLL note which is specific to your own release.  The TCOLL table notes are:

  • 12103 - Contents of the TCOLL table
  • 970449 - Contents of TCOLL table in SAP_BASIS 640
  • 966309 - Contents of table TCOLL in SAP_BASIS 700 - 7.02 and 7.31+
  • 966631 - Contents of TCOLL table in SAP_BASIS 710
  • 1394391 - Contents of the table TCOLL in SAP_BASIS 720
  • 1394392 - Contents of the table TCOLL in SAP_BASIS 730

 

 

 

New Collector Changes in 700:

 

In release 700 the SAP_COLLECTOR_FOR_PERFMONITOR job was changed and a new SWNCMONI table structure was introduced.  This also introduced the SWNC* jobs to TCOLL:  SWNCCOLL, SWNCTOTAL, SWNCREORG (these did not exist before 700).

These 3 SWNC* jobs are Timezone dependent.  So, since 700, the SAP_COLLECTOR_FOR_PERFMONITOR job needs to be run in client 000 and your timezone settings need to be correct.

 

 

See note 16083 (Standard jobs, reorganization jobs) which states:

"The job SAP_COLLECTOR_FOR_PERFMONITOR must always be scheduled in client 000 with user DDIC or with a user with the same authorization"

 

 

If there are no statistics reported in ST03, or if the statistics are a couple of days behind, then this is most likely a timezone problem.  The system timezone in STZAC must be maintained correctly.  One such problem can be the system TZ in client 000 being different to the production client, after an upgrade for example.  Make sure to check in client 000, where the SAP_COLLECTOR_FOR_PERFMONITOR job should be running.

 

Other ST03 timezone problems and a procedure for how to check this is detailed in the KBA note 1841468:

  • 1841468 - Missing ST03 Data after DST Timezone Change

 

Report TZCUSTHELP is also useful here, as shown in the note.  If there are TZ problems for missing stats in ST03, you should also notice missing stats in STAD.

 

 

 

Further Collector Changes in 720:

 

In release 720 the SAP_COLLECTOR_FOR_PERFMONITOR was changed again, so now we have a new improved Workload Collector which is described in note 1300273:

  • 1300273 - SAP_COLLECTOR_FOR_PERFMONITOR: New architecture as of 7.20

 

As described in the note, now the background job SAP_COLLECTOR_FOR_PERFMONITOR will kick-off separate background jobs for all the reports in the TCOLL table, with each job having the name  "SAP_COLLECTOR_PERFMON_<program name from TCOLL>".  The features and requirements described above are still the same for the new 720 collector as they were for 700 (client 000, DDIC user, correct TZ settings, etc.)

 

 

 

More Information:

 

For more information on the Workload Monitor ST03, refer to the online documentation at:

Workload Monitor - SAP Library

 

 

More information and troubleshooting guides (including this one) on the BC-CCM-MON area are available in the CCMS Wiki space at:

Computing Center Management System (CCMS) - Technology Troubleshooting Guide - SCN Wiki

SAP_COLLECTOR_FOR_PERFMONITOR dumps with EXPORT_TOO_MUCH_DATA or TSV_TNEW_PAGE_ALLOC_FAILED

$
0
0

The ST03 collector hourly background job SAP_COLLECTOR_FOR_PERFMONITOR can fail with short dump "EXPORT_TOO_MUCH_DATA" or "TSV_TNEW_PAGE_ALLOC_FAILED".

 

 

These short dumps are a result of collecting a very large amount of statistics data (more than 2GB).  You should be able to check which area of the statistics is causing the problem in the short dump by searching for "AGGTYPE" or "I_AGG_TYPE".  The problem statistics profile area is immediately below AGGTYPE or I_AGG_TYPE in the dump.  In this example the dump occurs (and the 2GB limit reached) at profile WO (which is RFC client profile):

 

1.jpg

 

 

The problem is nearly always either HTTP stats (VC - Web Server) or RFC stats (W* - RFC).

 

 

 

You can also check in the SWNCMONI table for a more detailed analysis of what profile areas have a huge amount of entries in the table.  For example to check how many entries there are this month so far for WO (RFC client profile) stats you check in SE16 with:

RELID = statistics profile area

COMPONENT = application server or TOTAL for total stats

PERIODTYPE = M (month), W (week), or D (day)

PERIODSTRT = check stats starting from this date (use the beginning of this month for example)

2.jpg

 

 

 

There are a number of notes related to this issue now and, with these notes, a number of ways to resolve the problem.  The latest note is 2059569:

  • 2059569 - Runtime error EXPORT_TOO_MUCH_DATA when saving statistic data aggregates

 

 

As described in this note, with this code correction or SP level the EXPORT_TOO_MUCH_DATA will not happen anymore.  However data beyond the 2GB limit is no longer collected and therefore the statistics are incomplete.  By setting parameter SWNC_IGNORE_OVERFLOW only the profiles with too much data are left incomplete, the other areas are still collected.  See the note for full details.

 

 

 

For earlier releases or situations where note 2059569 cannot be used or implemented, there are other notes to resolve the problem.

 

 

If the problem is for HTTP stats (VC) you can implement the manual steps of note 1578639 and use the report SWNC_CONFIG_URL to activate the option 'URL without handle'

  • 1578639 - Shortdumps "EXPORT_TOO_MUCH_DATA" in "SWNCTOTAL"

 

 

If the problem is for HTTP stats (VC or VD) you can follow the manual steps of note 2022648 and use report SWNC_CONFIG_PATH to setup URL "normalization" rules as described in the note:

  • 2022648 - SWNC: "EXPORT_TOO_MUCH_DATA" in "SWNCTOTAL" for WEB profiles

 

 

If the problem is for RFC stats (W*) you can follow the manual steps of note 1631033 and use report SWNC_CONFIG_JOBNAME to setup rules for common background job names, similar to note 2022648

  • 1631033 - Normalization of background job names for statistics data

 

 

 

In ALL cases, you can use the original solution for this problem which is note 1110822:

  • 1110822 - Workload collector: Reducing the size of aggregates

 

You can use the report SWNC_COLLECTOR_COMPRESSION from note 1110822 and select the checkboxes for the problem profile.

In addition, you also should re-aggregate the data that already exists in the database for your selected profile(s).  To do this select the option "Schedule background program" (at the bottom) when running the report.  Then the additional report SWNC_COLLECTOR_RECOMPRESS is scheduled to run once in the background.

 

 

When you use this solution of note 1110822 with report SWNC_COLLECTOR_COMPRESSION, your statistics will end up looking like what is described in KBA note 2093522 for the profiles you have compressed:

  • 2093522 - ST03 Profiles do not show full information (compressed data)

 

 

 

For further information on these statistics in ST03 you can refer to the online documentation at:

Workload Monitor - SAP Library

Workload Monitor  ->  Operating the Workload Monitor  ->  Analysis Views of the Workload Monitor

 

 

The note 1110822 also lists each statistics profile area (that is available for compression) by its 2-letter short name and description.

 

 

 

More information and troubleshooting guides (including this one) on the BC-CCM-MON area are available in the CCMS Wiki space at:

Computing Center Management System (CCMS) - Technology Troubleshooting Guide - SCN Wiki

Viewing all 185 articles
Browse latest View live


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