Guide to Patching your SAP System
I need to upgrade our internal demo systems every once in a while. Now, as I don’t unleash my Basis skills on customers everyday I tend to forget how its done. I decided to record the steps here to save me a bit of time next time around. Please treat any advice given here with care(I’m no expert at this) and read the official guides and help files.
Applying patches to an SAP system is not as simple as, say updating your Windows PC. There is no auto update or one click upgrade process. I will be surprised if there ever will be. The thing is, SAP actually allows you a lot of freedom and flexibility in changing the way it works(Windows doesn’t). The price you pay is a slightly complex upgrade process.
Doing a full Support Pack update of an SAP system broadly involves the following:
1. Log in to the Service Market Place and select the packages to be downloaded. Admittedly, this is a bit easier now with SP Stacks.
2. Log on to your Solution Manager System(Maintenance Optimizer) to confirm your download basket. If you don’t do this you can’t download your Patches. I must still figure out what the benefit of this is.
3. Download the files using the SAP Download Manager.
4. Use sapcar to extract the patches. You can use the command sapcar -xvf from command line to do this. An easy way to extract these files in Windows is to register the extensions .CAR or .SAR to open automatically in Explorer.
You can do this by opening Windows Explorer and going to Tools->Folder Options and clicking on the File Types Tab.
Create a new type for the .CAR/.SAR file types and create a default action as shown in the screen shot below( Copy SAPCAR.EXE to your C:\Windows directory first).

You can now “mass extract” all your patches at once by selecting all 50+ files in Windows Explorer and hitting enter on them. If you do this on a laptop now would be a good time for a coffee break.
5. Now the real upgrade can start. Always update your kernel to the latest release first. This involves the following:
• Determine your global kernel directory. Goto transaction AL11 and look for directory mapped to DIR_CT_RUN. In my case(on Linux) this is /usr/sap//SYS/exe/run.
• Log in with your adm user. This will ensure you preserve the correct rights to your files.
• Backup this directory by copying it to somewhere safe.
• Overwrite the files in your DIR_CT_RUN directory with the new kernel files extracted in step 4. These files aren’t used by the SAP System, so you can safely overwrite them while the system is still running.
• On Windows I would recommend rebooting the box, on Unix environments you only need to stop and start the instance.
• During the startup of the instance a program called sapcpe will copy the new kernel files in DIR_CT_RUN to DIR_EXE_ROOT(usr/sap//exe).
6. Now, do a full off line database backup and keep in a safe place.
7. Copy the ABAP Support Pack files extracted in Step 4 to the following location on the SAP Server: /usr/sap/trans/EPS/in.
8. Log on to the SAP System in client 000 with your own user(not SAP* or DDIC).
9. Execute transaction SPAM(what a name…).
10. Load the Support Packages. On the SPAM main menu goto Support Package->Load Packages->From Application Server.
11. Now we hit the stage where P.P.P.P.P.P. You have to read all the notes on all the patches for all the components you want to upgrade. There are many dependencies here and it is easy to stuff up. But a few points:
• Make sure TMS is configured properly and actually working(i.e. test with a transport). This is important on new installs and has burned me in the past.
• Always upgrade SPAM to the latest version first. Always!
• Read the notes on optimal queue definitions, make them as long as possible, but keep the next point in mind…
• Don’t overshoot(see note 70228 for explanation). This is critical if you have add-ons such as XRPM, WFM or even CRM 2007(which now requires a CRT(Conflict Resolution Transport) after every ABAP support pack).
• Write down all the steps you took and queues you used as this will help in the upgrade of downstream systems.
12. If you read the plethora of notes before hand and manage to follow them correctly everything should go fine.
13. If you do it Cowboy style(and ignore point 12 like I do ), SPAM failure is likely. You could try the following, in order:
• Restart the Process. Always do this 2 or 3 times before proceeding, especially with BASIS/ABAP support packs.
• Search for notes on the Service Market Place. You are probably not the first one to mess up. Also, sometimes the support packs contain errors.
• Try to reset the queue and process again.
• If you absolutely have to back out and SPAM does not allow you to reset the queue, you can do the following if you are brave. Run Function Module OCS_RESET_QUEUE in SE37 with the parameters IV_TOOL=SPAM and IV_FORCE=X. Just realize that this will leave your system in an inconsistent state. You may need to do some significant manual fixing.
• Log it with SAP.
• Restore your backup and try again.
Eventually you should have an up-to-date, everything recompiling, SAP System.
Source : johanvanzijl.com
BRBACKUP/BRARCHIVE failed, warning ORA-28011: the account will expire soon; change your password now.
New LIMIT for ‘PASSWORD_LIFE_TIME’ in Oracle 11g.
One of my colleague go through this solution. Hope this helps you.
Some thing new in 11g, If you are using please rectify.
Where i am ??
Since long time i have written something in my Blog. I was too much busy with my new Job Profile.. exactly.. SAP. I am happy with it at least I am doing something different & giving my services to Global Clients. Presently Working as SAP Basis Consultant.
Since i have joined from the day 1 to till date.. every day is a new day & new learning for me. As i am not a good listener(comments from my some friends) but i will try to catch the things..
SAP is divided in 3 things.. Operating System, Database & Application. I am trying to learn one by one. Now a days my total focus on learning Java Technologies & Java integration in SAP. How ABAP+JAVA works together. It’s very difficult to understand as sometime, it’s give me confusion as in SAP you can do same things in several ways. But still my study about JAVA going on..& i hope i will complete it soon. I will try to keep update my blog.
Till then good bye..
Job-Field-Location Change
After a long time, i am writing something for my blog, as i was busy with my schedule, there is something new and interested happened in my life which i want to share, i change my job, my field infact location too. i relocate myself to Pune and change my field to SAP. Now i am also going to be an CONSULTANT.
There is lot of to tell you about pune but the major things what i found here is that.. boss if you don’t have your personal conveyance so you are not able to enjoy the pune bcoz conveyance is too much costly here infact no proper conveyance, i will say. One thing is also good here, here is low pollution then Delhi or Mumbai & you will not see ppl running towards Metro Stations or Local Trains Stop.
Life is peaceful here & the most important thing what you find here is the weather. You will be surrounds with cool winds & the worst part of weather is no one knows when rain start, that’s why maximum puneites carry umbrella with them.
Overall Pune is good with a very peaceful atmosphere.
My Working
Hi to All,
I am just busy up with my as usual work but in between i got some to enjoy with friends & also integrate some new things in software. From Last 2-3 days i was trying to implement linux firewall for my own company but unfortunately due to reasons, i was unable to accomplish my work. This is worth while saying that Engineer Can work for others but when they mend to their own they are “Good For Nothing”.
Intresting.. VNC Configuration in linux.
While Navigating, i have just found a interesting article, working of VNC in Linux. I only use VNC in windows only but never heard in llinux but now after seeing this article, i hope my problem is going to be solve easily to get it remotely.
Find the article here.
Easiest way to find windows key
The easiest way to find your windows key. Check it how to change.
There is also another free software from which you can also change your windows product key easily. Get from here.
My New Version
As i have updated my wordpress theme & version, Check out the new version. Well i am here for starting again my blogging in networking, security & linux.
Working on Linux
Hi,
Sorry for late updating my blog,
Right now i am working in linux RHEL 5.0. Creating a open source Qmail email server.
Busy with up.
Amazing MS Paint Features…
Well many pplz who are using Windows different version.. they always go through the Accessories feature of Windows & found MS-Paint over there.. But most of the pplz never use MS-Paint for any creation, editing.
Many of them only go thorugh when they use print screen feature of windows & paste in MS-Paint. Usually i also do this & also some time use only Save As feature of MS-paint to get minimize the size of current picture of other format [:)]. But never use for editing..
But here i go thorugh one of my fav site.. where i found the great use of MS-paint..
Read the full post over here.. MS-Paint Features.
Even you can watch the Intresting MS-Paint Feature
Source: Labnol