Oracle Apps Patching:adpatch(Maintenance Mode)

來源:互聯網
上載者:User

之前寫過一篇關於Oracle Apps使用hotpatch模式打patch的文章:Oracle EBS使用adpatch工具打patch過程(hotpatch mode) 【見  】,今天記錄下如何使用Maintainance Mode如何來打Oracle EBS的Patch。

1. 通過SQL檢查,系統是否已經打了這個Patch

select * from ad_bugs WHERE bug_number = '14037116';

或者

Select * from ad_applied_patches where patch_name like '%14037116%';


2. Metalink下載patch 

登陸到Metalink(https://support.oracle.com),Oracle內部使用者可以使用ARU來下載。

點擊Patches & Updates 頁簽,在"Patch Search"區,輸入你的Patch號,Search,

找到你的Patch之後,特別注意,需要仔細查看Patch的Release,Platform/Language...以及閱讀Read Me資訊(看是否有需要關聯下載的Patch)

然後下載Patch到本機,


3. 上傳&解壓

打patch前,最好備份可能會被覆蓋的檔案。仔細閱讀Readme檔案。

上傳patch檔案到伺服器端的Patch目錄下,然後使用unzip命令解壓,eg. unzip p14037116_R12.INV.B_R12_LINUX.zip


4.Enable the Maintenance Mode

Unix控制台下執行"adadmin"命令(執行過程中需要輸入資料庫system使用者和apps使用者的密碼)




5. adpatch
進入解壓後的patch目錄,執行命令:
$ adpatch
運行過程中需要回答一些adpatch的問題,比如
APPL_TOP目錄是否正確
指定adpatch日誌的名稱,預設為adpatch.log
Instance名稱是否正確
...

adpatch運行完之後,如果沒有看到“autopatch is complete”樣式的訊息,那說明你的patch沒有打成功

adpatch的日誌預設位於$APPL_TOP/admin/<SID>/log


6. 通過SQL檢查確認系統已經成功的打上了Patch

select * from ad_bugs WHERE bug_number = '14037116';

或者

Select * from ad_applied_patches where patch_name like '%14037116%';


7.Disable Maintainance Mode

adadmin > 5.Change Maintenance Mode. > 2.Disable Maintenance mode.

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.