Oracle安裝PSU補丁


所有節點都需要執行

解壓opatch root用戶 兩節點都執行


unzip -o opatch.zip -d /opt/o<wiz_tmp_highlight_tag class="cm-searching">racle/products/11.2.0
unzip -o opatch.zip -d /opt/grid/products/11.2.0
chown -R grid.oinstall /opt/grid/products/11.2.0/OPatch
chown -R o<wiz_tmp_highlight_tag class="cm-searching">racle.oinstall /opt/o<wiz_tmp_highlight_tag class="cm-searching">racle/products/11.2.0/OPatch
/opt/grid/products/11.2.0/OPatch/opatch version
/opt/o<wiz_tmp_highlight_tag class="cm-searching">racle/products/11.2.0/OPatch/opatch version

解壓patch root用戶 

unzip -o PSU.zip -d /opt/grid
chown -R grid.oinstall /opt/grid/25476126
chmod -R 777 /opt/grid/25476126
安裝PSU
su - grid
cd /opt/grid/products/11.2.0/OPatch/ocm/bin
./emocmrsp
 直接回車即可不用輸入用戶名之類的東西
su root (使用grid的環境變量)兩節點都執行執行完一節點后再次執行二節點 
opatch auto /opt/grid/25476126 -ocmrf /opt/grid/products/11.2.0/OPatch/ocm/bin/ocm.rsp
兩個節點的<wiz_tmp_highlight_tag class="cm-searching">RAC安裝PSU完成
當兩個節點都安裝完成后在一個節點上去執行以下操作即可

安裝數據字典
待所有<wiz_tmp_highlight_tag class="cm-searching">RAC節點都安裝完PSU后,開始進行升級數據字典的操作,只需要在一個<wiz_tmp_highlight_tag class="cm-searching">RAC節點執行。注意退出后使用O<wiz_tmp_highlight_tag class="cm-searching">racle用戶去登錄
cd $O<wiz_tmp_highlight_tag class="cm-searching">RACLE_HOME/rdbms/admin
sqlplus / as sysdba
SQL> @catbundle.sql psu apply
SQL> QUIT
編譯失效對象 O<wiz_tmp_highlight_tag class="cm-searching">racle用戶登錄dba下查詢 
select count(*) from dba_oBJECTs where status ='INVALID';(如果沒有就不用執行以下操作)

cd $O<wiz_tmp_highlight_tag class="cm-searching">RACLE_HOME/rdbms/admin
sqlplus / as sysdba
SQL> @utlrp.sql

select * from v$version ;

檢查數據字典升級:
O<wiz_tmp_highlight_tag class="cm-searching">racle用戶登錄dba下查詢
set line 150

col ACTION_TIME for a30

col ACTION for a8

col NAMESPACE for a8

col VERSION for a10

col BUNDLE_SERIES for a5

col COMMENTS for a20

select * from dba_registry_history;
查詢完畢后顯示結果正常PSU已安裝完畢


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM