SAP如何打补丁

最近几天,有用户报告说某些报表显示不正常,外部顾问说要打个补丁。打补丁?偶还没弄过。后在网上查到资料,完整一点的是英文的,现在我把操作过程和大家分享一下。
    system:AIX-5L 5.3
    SAP:R/3 ECC6.0
    声明:本人新鸟,坏事了别怪我。
   SAP建议是先将SPAM更新至最新,最新的SPAM包可以从http://serivce.sap.com/spam去获取。这个过程我没操作,因为我感觉我的SPAM差不多了是最新的。
   整个补丁的操作过程大致分三步,一是上传补丁,二是导入队列,三是确认。
   首先我们去OSS下载补丁包,补丁包下载回来是一个CAR文件,很明显,是个压缩包,你可以解压,也可以选择不解压,因为我们有两个方法来上传这个补丁。
   不管哪种方法,你都先进入TC:SPAM,注意,请以DDIC用户,登录CLIENT 000
   步骤一:上传补丁,这里开始讲上传的两种方法  load support package
   方法一,不解包:进入SPAM,选择菜单  support package --> load packages --> from front end, 然后系统会弹出对话框,让你选择CAR包的路径。选中你想打补丁的CAR包,点确定,系统会再弹一个对话框,告诉你这个包内有两个文件,文件名是什么,不管它,点击decompress,对这个CAR文件解包。
   方法二:解包,使用SAPCAR -xvf来对car文件操作,解压后有两个文件,扩展名分别是ATT和PAT. 将这些文件转移到系统的/usr/sap/trans/EPS/in 目录,服务器安装在WINDOWS系统的用户请根据实际情况调整具体目录。若不清楚,就用第一种方法吧。
     文件解压后,我们开始上传,SPAM,选择菜单  support package --> load packages --> From application server ,不管啥,点确定就是了。它会告诉你,从这个目录下导入了什么东西的。
    通过上述方法,你可以重复导入很多补丁,导完后再操作下面的步骤是可行的。
    步骤二:导入队列 import queue
    首先我们可以确认下目前各模块补丁打到哪个level了,进入SPAM界面,stat下边有个display level按钮,点它,会弹出很多component的对话框,找到你要打补丁的component,看目前level是哪个,一个原则上,从低往高level打,反了估计系统也会让你打不了。
    点击上方屏幕的 display/define ,也会弹出一个类似的对话框,还是点击你要打补丁的component,它会列出刚导入了哪些补丁文件,点击要导入的补丁,这时对话框消失,你在queue栏位中,可以看到队列号了。点击菜单support package->import queue点击确定(点那个小车效果也一样),系统就开始导入了。 等吧,完事后会弹出对话框告诉你完成了,要你确认的,开始转入第三步。导入完了可以看STAT的状态灯,应该是黄色的。
    步骤三,确认
    点击support package--> confirm ,状态灯应该转成绿色了。
    好了,一个补丁就完成了。
    整个过程大体就是这样,你有多个补丁就重复步骤二到步聚三就好。有问题或更好的建议请回复。
    另外附上原始资料:

The following is procedure to show you step-by-step process of applying different
support packages into your system.
It is always advisable to first verify the SPAM/SAINT version in the system. Check in
http://service.sap.com/ocs for the latest version of SPAM/SAINT. If you do not have
the latest SPAM/SAINT version then download the latest SPAM/SAINT package.
There are certain support packages, which require certain level of SPAM/SAINT. For
such packages, you first have to update the SPAM/SAINT
SPAM/SAINT update and support packs are applied thru Transaction code SPAM.
The SPAM/SAINT update and support packs files are .CAR files, which need to be
unpacked.
Supports packs for Applications area (i.e. changes made to the objects of various
functional modules of SAP) are also know as HOTPACKS
BASIS Support Packs make changes to the BASIS system.
HR Support Packs make changes to the HR Module. Earlier it was known as Legal
Change Patches (LCPs)
Similarly we also have ABAP/4 Support Packs for the changes made to the ABAP/4.
Most of these support packs are in the form of .CAR files, which are available in SAP
Marketplace (http://service.sap.com). You have to download the support packages
required for your system from the Internet or from the SAPServX server.
The following procedure is a step-by-step procedure for applying these Support
Packs.
1. Download the required .CAR files from SAPNet or SAPServX server
2. Put them in a temporary directory either in /usr/sap/trans/tmp or any other
folder which you can create (say, patch)
3. Change to the directory /usr/sap/trans (UNIX) or \usr\sap\trans (NT)
4. Use the command CAR -xvf
extension>
5. The command CAR is case sensitive
6. The command CAR will decompress the CAR file and put two files (with
extensions .ATT and .PAT in the /usr/sap/trans/EPS/in directory.
7. Logon to the SAP system in client 000 as user DDIC
Applying Support Packs and Plug-ins
http://www.sappoint.com
8. Once in the system execute the transaction code SPAM
9. Depending on what version are you in do the following :
For 4.5x : Goto Tools à Upload à Patch
For 4.6x : Goto Support Packages à Load Packages à From Application
Server
10. You will get a pop up box with the list of the patches in the queue. Both the
applied patches and the new ones will be listed
11. Hit the Back button to come to the main screen
12. Click on the Display/Define button on the screen
13. You will get a pop up screen with the unapplied patches.
14. Select the patch or group of patched that you want to apply and hit the enter
key/icon.
15. The patch number will be defined in the queue box.
16. Again depending on the version, you do the following :
For 4.5x : Goto Tools à Apply à Patch
For 4.6x : Goto Support Packages -->>> Import Queue
or click the apply patch / import queue icon on the application toolbar
17. After the patch is successfully applied, you will have to CONFIRM the patch
application.
18. Again depending on the version, you do the following :
For 4.5x : Goto Tools à Confirm
For 4.6x : Goto Support Packages à Confirm
Or click the confirm icon on the application toolbar
19. The light in the status box should turn green.
20. After the patch(es) are applied, execute the transaction code SPAU.
This transaction code will check for the changes made by the patches as
well as by the user via OSS notes etc to the system
You can compare the changes and decide to keep the changes made to the
system via OSS notes or return the objects to original.
At times depending on the situation, you may have to reapply the OSS notes
after returning back the object to original
Before applying the patches, check for the SPAM version. It is always advisable to
have the latest SPAM version running on the system. You can download the latest
SPAM version from the SAPNet or SAPServx server. There are patches, which require
a certain level of SPAM version in order to be applied.
Applying Support Packs and Plug-ins
http://www.sappoint.com
Some of the Possible Errors during Support Package Application
The solutions provided below may or may not work for you. They worked for
me under the circumstances that I got these errors.
CANNOT_CREATE_COFILE
If while applying a patch, you get an error CANNOT_CREATE_COFILE delete the
concerned file of the patch from the /usr/sap/trans/cofile and /usr/sap/trans/data
directory.
After deleting the files restart the process. The patch application may work
EPS in IS IN OLD FORMAT
If you are unable to upload the queue and you see a message like EPS in IS IN OLD
FORMAT , check for the SPAM version and do a SPAM update. Delete the concerned
files (i.e. the .ATT and .PAT files from the /usr/sap/trans/EPS/in directory) and then
decompress the .CAR file and continue with applying the support packs.
OBJECTS_LOCKED_?
There are also times when a patch will fail because an object that it is trying to
modify is locked by a change request.
In such cases, identify the object and the change request and then using SE03
search for the object. Once you have identified the change request unlock the object
and then Continue with the SPAM transaction.
Sometimes the SPAM/SAINT Update process comes out with error. In such
case just go ahead and start the SPAM update process again and it should
go through fine.
Applying Support Packs and Plug-ins
http://www.sappoint.com
Applying Plug-ins
Plug-ins are applied on the R/3 side using the transaction code SAINT
Before applying the plug-ins check the plug-ins that are installed on your system.
Also verify the type of plug-in that you have i.e. if you have plug-in file which is for
installation or if it is for upgrade. If the file that you is for upgrade then be sure to
have the earlier version of the plug-in and its related patches installed in the system
prior to applying the upgrade plug-in.
If you are updating the plug-in then verify that the earlier lower version of the plugin
and its patched are already installed in the system. For example, 4.6B IDES
system comes with PI_1_1999. The plug-in PI_A_1999 is also already applied. If the
PI_1_1999 plug-in is not installed then you will have to install it and its two
patches first before applying PI_1_2000 plug-in.
You will have to upgrade the PI plug-in to PI_1_2000 and then apply related patches.
There six patches in all for PI_1_2000.
The plug-ins is also available as .CAR files.
For Example the .CAR file name for plug-in PI_1_2000 is Pi_nd17b.car
When you apply this plug-in 4.6B IDES system, you may get an error in
ADDON_CONFLICT phase. When you get the error in this phase, follow the note
204461. Basically you will have to download couple of transports (PI_SAINT.CAR
and PI_SAINT_2.CAR) from SAPServ4 and apply them into the system.
If you still get errors even after applying the transports, keeping on clicking on the
Continue icon till you get over the errors.
The following process shows you the steps for applying plug-ins.
1. You should apply the plug-ins in client 000 as any other user other than
SAP* or DDIC. Create a user in client 000 with SAP_ALL profile.
2. Log on the client 000 as the newly created user.
3. Execute the transaction SAINT
4. Upload the plug-in by going thru the menu,
5. Once the files are uploaded. You will get two boxes on the screen. The top
box will contain the list of Plug-ins already applied in the system. The bottom
box will contain the list of plug-in, which are available to be applied.
6. Select the plug-in PI_1_2000 from the second box and click on the Continue
button.
7. In the next screen put the cursor on the Plug-in box and click on the Continue
button
8. After the plug-in is installed successfully, you will be asked to do SPAU checks
or Continue. Click on Continue icon.
9. After that you will get the 4th screen of the SAINT process, click FINISH on
the screen that you get.
10. After the plug-ins is installed, apply patches for the plug-in using the
transaction SPAM. (The process is described in the previous section).

你可能感兴趣的:(SAP,Basis)