【翻譯自mos文章】Oracle 11gR2 relink 新特性,11gr2relink

來源:互聯網
上載者:User

【翻譯自mos文章】Oracle 11gR2 relink 新特性,11gr2relink

Oracle 11gR2 relink 新特性

來源於:
Oracle 11gR2 Relink New Feature (文檔 ID 883299.1)

適用於:
Oracle Database - Enterprise Edition - Version 11.2.0.0 to 11.2.0.0 [Release 11.2]
Generic UNIX

解決方案:
I) Oracle 11gR2有2種方法來relink $ORACLE_HOME中的binary
   1)傳統的方法:relink all
     該方法運行$ORACLE_HOME/bin/relink 指令碼,該指令碼僅僅接受all這個參數,其他參數不被接受

     % $ORACLE_HOME/bin/relink all     % $ORACLE_HOME/bin/relink ( By default it takes the 'all' parameter ) 預設就是採用all參數。

   注意:relink all提供向後相容性(‘Relink all’ is provided for backward compatibility)
   2) 使用runInstaller 來relink
     該方法使用如下命令:

       -relink : For performing relink actions on the oracle home         Usage: -relink -maketargetsxml <location of maketargetsxml> [-makedepsxml <location of makedepsxml>] [name=value]

       舉例如下:
       Example :

     $ORACLE_HOME/oui/bin/runInstaller -relink -waitForCompletion -maketargetsxml  $ORACLE_HOME/inventory/make/makeorder.xml  -logLocation $ORACLE_HOME/install ORACLE_HOME=$ORACLE_HOME > $ORACLE_HOME/install/relink.log 2>&1

  II) relink 日誌的位置

案例1
 若是通過OUI進行的relink操作,預設情況下,是不會產生"$ORACLE_HOME/install/relink.log"檔案的。
 為了發送relink output 給 $ORACLE_HOME/install/relink.log ,我們需要明確的重新導向該output

 $ORACLE_HOME/oui/bin/runInstaller -relink -waitForCompletion -maketargetsxml $ORACLE_HOME/inventory/make/makeorder.xml -logDir $ORACLE_HOME/install ORACLE_HOME=$ORACLE_HOME > $ORACLE_HOME/install/relink.log 2>&1

案例2
 使用relink all命令,Oracle會建立一個名為relink.log的記錄檔,並且不會以append的方式來建立該log檔案。
 之前的log將會以時間戳記來儲存( Ex: relinkActions2009-09-14_09-01-10-PM.log )

相關文章

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.