溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

如何下載并安裝最新版本的 OPatch

發(fā)布時(shí)間:2020-07-07 02:15:27 來源:網(wǎng)絡(luò) 閱讀:3028 作者:jason_125 欄目:關(guān)系型數(shù)據(jù)庫


1、登陸mos站點(diǎn)下載最新版本的 OPatch補(bǔ)丁,這里以p6880880_102000_Linux-x86-64.zip補(bǔ)丁為例。

https://updates.oracle.com/download/6880880.html

 如何下載并安裝最新版本的 OPatch


2、上傳補(bǔ)丁至服務(wù)器,并移動(dòng)補(bǔ)丁至數(shù)據(jù)庫軟件安裝目錄。

#mv p6880880_102000_Linux-x86-64.zip $ORACLE_HOME


3、切換用戶至oracle用戶,進(jìn)入$ORACLE_HOME安裝補(bǔ)丁。

[oracle@server ~]$ cd /home/oracle/orahome/

[oracle@server orahome]$ mv OPatch OPatch.old

[oracle@server orahome]$ unzip p6880880_102000_Linux-x86-64.zip 

Archive:  p6880880_102000_Linux-x86-64.zip

   creating: OPatch/

   creating: OPatch/ocm/

 extracting: OPatch/ocm/ocm.zip      

   creating: OPatch/ocm/lib/

  inflating: OPatch/ocm/lib/osdt_jce.jar  

  inflating: OPatch/ocm/lib/osdt_core3.jar  

  inflating: OPatch/ocm/lib/emocmclnt-14.jar  

  inflating: OPatch/ocm/lib/emocmutl.jar  

   creating: OPatch/ocm/bin/

  inflating: OPatch/ocm/bin/emocmrsp  

  inflating: OPatch/ocm/ocm_platforms.txt  

   creating: OPatch/crs/

   creating: OPatch/crs/log/

  inflating: OPatch/crs/patch212.pl  

  inflating: OPatch/crs/crsdelete.pm  

  inflating: OPatch/crs/crspatch.pm  

  inflating: OPatch/crs/s_crsconfig_defs  

  inflating: OPatch/crs/crsconfig_lib.pm  

  inflating: OPatch/crs/oracss.pm    

  inflating: OPatch/crs/auto_patch.pl  

  inflating: OPatch/crs/s_crsconfig_lib.pm  

  inflating: OPatch/opatch           

   creating: OPatch/opatchprereqs/

   creating: OPatch/opatchprereqs/opatch/

  inflating: OPatch/opatchprereqs/opatch/runtime_prereq.xml  

  inflating: OPatch/opatchprereqs/opatch/opatch_prereq.xml  

  inflating: OPatch/opatchprereqs/opatch/rulemap.xml  

  inflating: OPatch/opatchprereqs/prerequisite.properties  

   creating: OPatch/opatchprereqs/oui/

  inflating: OPatch/opatchprereqs/oui/knowledgesrc.xml  

  inflating: OPatch/opatch.ini       

  inflating: OPatch/emdpatch.pl      

  inflating: OPatch/opatch.pl        

   creating: OPatch/jlib/

  inflating: OPatch/jlib/opatchprereq.jar  

  inflating: OPatch/jlib/opatchactions.jar  

  inflating: OPatch/jlib/opatchutil.jar  

  inflating: OPatch/jlib/opatchfmw.jar  

  inflating: OPatch/jlib/opatchext.jar  

  inflating: OPatch/jlib/opatch.jar  

  inflating: OPatch/opatch.bat       

   creating: OPatch/docs/

  inflating: OPatch/docs/Prereq_Users_Guide.txt  

  inflating: OPatch/docs/FAQ         

  inflating: OPatch/docs/Users_Guide.txt  

  inflating: OPatch/README.txt       

[oracle@server orahome]$ cd OPatch

[oracle@server OPatch]$ ./opatch version

Invoking OPatch 10.2.0.5.1

OPatch Version: 10.2.0.5.1

OPatch succeeded.

[oracle@server OPatch]$

4、可以使用絕對(duì)路徑來啟動(dòng) OPatch:

[oracle@server OPatch]$ $ORACLE_HOME/OPatch/opatch version

Invoking OPatch 10.2.0.5.1


OPatch Version: 10.2.0.5.1


OPatch succeeded.

[oracle@server OPatch]$


或者可以把 OPatch 所在的目錄加到 PATH 這個(gè)環(huán)境變量中,之后就可以在任何目錄運(yùn)行 OPatch 命令(opatch <args>)而不需要指定絕對(duì)路徑

For Korn / Bourne shell:

$ export PATH=$PATH:$ORACLE_HOME/OPatch


向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI