Oracle 11gR2 Relink 指令碼 新特性 說明

來源:互聯網
上載者:User

 

一.11gR2 中 Relink 指令碼說明

 

前面將了OracleOption 和其link的2篇Blog,如下:

OracleBinary Options 說明

http://blog.csdn.net/tianlesoftware/article/details/7577637

 

Oracle 單一實例Relink Binary Options 說明

http://blog.csdn.net/tianlesoftware/article/details/7577652

 

From 11GR2(11.2.0.1,11.2.0.2 etc...) the relink script no longer scans for *.mk files andno longer runs the make commands (that is what it used to do in 11.1 and lowerversions).

 

從Oracle 11gR2 開始,Oracle 對relink指令碼進行了修改。從Oracle11.2.x開始,relink 指令碼不在掃描*.mk 和執行make命令。所有的relink操作都是通過runInstaller的方法來進行,關於11gR2中Relink的新特性,參考MOS文檔。

       Oracle11gR2 Relink New Feature [ID 883299.1]

 

A compatibilityscript was put in place for 11gR2 so if someone runs "relink all" itwill actually use the runInstaller method of relinking. 

--為了指令碼的相容性,即使在11gR2中執行relink all,實際上也是使用runInstaller的方法來進行relink。

 

One exception in11.2.0.1: Sun Sparc Solaris which for scan of *.mk and make are still in use.

--這裡的例外是Sun Sparc 下的11.2.0.1,其還是掃描*.mk和執行make命令。

 

 

二.在11gR2中使用relink指令碼

 

       Oracle11gR2 有兩種來relink 所有的product binaries.

 

2.1 傳統的relink

直接運行$ORACLE_HOME/bin/relink指令碼,可以添加all 參數,也可以省略,因為預設情況下使用的也是all 參數。 如:

 

% $ORACLE_HOME/bin/relink all
% $ORACLE_HOME/bin/relink ( By default it takes the 'all' parameter )

 

注意:

       該方法僅為了向前的相容性,因為11.2.x 之前版本使用的是這種方法。

 

2.2 使用runInstaller 運行relink

       這個是11.2.x中的新特性,命令如下:

 

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

 

樣本:

$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

 

三.查看Relink log

 

3.1 Case 1:

       如果直接使用OUI 來執行relink,那麼預設就不會產生:$ORACLE_HOME/install/relink.log的log檔案,這時我們就需要顯示的指定輸出log。命令如下:

 

$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

 

3.2 Case 2:

       如果我們使用的是relink all命令,這種情況下預設會產生relink.log的log檔案,如果存在relink.log 的檔案,也不會繼續追加到已經存在的log檔案後面,而是使用timestamp對已經存在的檔案進行重新命名,如:relinkActions2009-09-14_09-01-10-PM.log,然後在寫relink.log.

 

 

 

 

 

-------------------------------------------------------------------------------------------------------

著作權,文章允許轉載,但必須以連結方式註明源地址,否則追究法律責任!

Skype: tianlesoftware

QQ:              tianlesoftware@gmail.com

Email:   tianlesoftware@gmail.com

Blog:     http://www.tianlesoftware.com

Weibo: http://weibo.com/tianlesoftware

Twitter: http://twitter.com/tianlesoftware

Facebook: http://www.facebook.com/tianlesoftware

Linkedin: http://cn.linkedin.com/in/tianlesoftware

 

 

-------加群需要在備忘說明Oracle資料表空間和資料檔案的關係,否則拒絕申請----

DBA1 群:62697716(滿);   DBA2 群:62697977(滿)  DBA3 群:62697850(滿)  

DBA 超級群:63306533(滿);  DBA4 群:83829929   DBA5群: 142216823

DBA6 群:158654907    DBA7 群:172855474   DBA總群:104207940

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.