Posts

Fix Ubuntu - Change the default privacy settings on Ubuntu

The search terms that you use to open applications or search for files on you computer, are sent to third party, which can use this information to display targeted advertisement to you. You can opt out from this default behavior of Ubuntu by executing the commands available at fixubuntu.com .

Function code &SAP_EDIT

&SAP_EDIT was an easy function available for SAP Support experts to provide a fast solution for customers in a highly critical situation. As this function became increasingly known to others, SAP chose to deactivate it with Release 600 with Support Package 17 and Support Package 18. If you want the function back, implement SAP note 1446530 or use other techniques such as using function module se16n_interface or from SE16 in debug mode (Open the exact record you want to edit. Hit /h. Change the mode to EDIT, INSERT, etc.)

Icon appearing on the Taskbar for a second

Image
After a recent patch, I started seeing an icon appear every minute or so on the taskbar and vanishing within a second. This was quite annoying while typing or watching full screen videos as it removed focus from my active window. To check what is causing the problem, I opened Task Manager (Ctrl+Shift+Esc) and sorted the processes by CPU. As soon as the icon reappeared, I notice  UI0Detect.exe showing on the top. UI0Detect.exe is an "Interactive Services Detection" that helps with user interaction if required by Windows services. Whatever UI this service was trying to present was not helping me as it popped up only for a fraction of a second, so I decided to disable it. The following steps helped me: Right-click on "Computer" icon on desktop and select "Manage" Expand "Services and Applications" Click on "Services" Right-click on "Interactive Services Detection" from the list Select "Stop" Right-click...

Java Thread Stack Size Parameter -XssM

Each thread in the JVM stores method call arguments, return addresses and other information in a dedicated stack of its own. If a JAVA thread processes a large number of structures (example as a result of recursive calls) the stack size may not be sufficient to hold the information. The thread crashes with StackOverflowError . In such cases increase the stack size using the JVM parameter Xss. If the thread size is too large, the JVM runs into a risk of crashing with  OutOfMemoryError - unable to create new native thread (too many threads, each thread has a large stack). You need to decrease the Xss. To adjust this parameter on SAP J2EE engines, start Config Tool Select the Instance in the left side navigation pane On the right side pane, go to "VM Parameters" tab and then to the sub tab "Additional" Click on "New" if this is the first time you are adding Xss parameter Add -Xss<jvm-thread-stack-size>M (example -Xss3M) in the "Name...

SAP Oracle Database Refresh - Control file creation

Image
SAP refresh requires database to be restored and recovered on the target system. One of the most important steps in Oracle DB restore/recovery is the control file creation on the target system as the file locations and SID of the database change. Here are the steps to create control file: Generate the control file trace on the source system: 1. Ensure that the source DB is on open or mounted mode by running the following command select open_mode from v$database; The output should be MOUNTED or READ WRITE 2. Write the control file to trace by running the following command alter database backup controlfile to trace; 3. Find out where the trace is written by running the following show parameter dump; The location is most likely  /oracle/<SID>/saptrace/diag/rdbms/<sid>/<SID>/trace for SAP-Oracle database. Check the latest trace file. 4. Open the file and copy the section resembling the following as a new file ex: createcontrolfile.sql by r...

SAP J2EE dispatcher running but no server connected

If you call SAP application through browser and get the error " Dispatcher running but no server connected " and jcmon tool shows server nodes in Running status, check the following: Ensure that the joinPort (5NN20) is not used by any other process in the OS Ensure that the server node is not set in debug mode. The dispatcher will not route the requests to the server node that is running on debug mode. Check the parameter elements in the service r3setup. Ensure that the value is not 0. It should be equal to the number of server nodes clustered with the dispatcher Check if there are repeated full GCs running on the server node

How to deploy SCA files offline

New component deployment or applying fixes require the J2EE engine to be online. Assuming, you made a mistake that took J2EE offline and the only way to fix it is to apply a patch, you obviously need to get SAP's help. But if the system is a training or sandbox system, you can use batchdeployer to apply that fix while J2EE engine is offline. Go to /usr/sap/<SID>/<Instance>/j2ee/cluster/bootstrap/scripts Deploy the SCA using the following command syntax: batchdeployer.sh -sdu <absolute-path>/SCA-file.SCA