Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2837732
  • 博文数量: 599
  • 博客积分: 16398
  • 博客等级: 上将
  • 技术积分: 6875
  • 用 户 组: 普通用户
  • 注册时间: 2009-11-30 12:04
个人简介

WINDOWS下的程序员出身,偶尔也写一些linux平台下小程序, 后转行数据库行业,专注于ORACLE和DB2的运维和优化。 同时也是ios移动开发者。欢迎志同道合的朋友一起研究技术。 数据库技术交流群:58308065,23618606

文章分类

全部博文(599)

文章存档

2014年(12)

2013年(56)

2012年(199)

2011年(105)

2010年(128)

2009年(99)

分类: Oracle

2012-12-04 11:34:39

I ) Oracle 11gR2 has two methods of relinking all product binaries in a home

1) Traditional relink with 'all' option only

The first method is the normal running the $ORACLE_HOME/bin/relink script, which now only accepts the‘all’ parameter (no other parameters are accepted)

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

Note :  ‘Relink all’ is provided for backward compatibility. 

2) relink using runInstaller 

This runs the command:
 
  -relink : For performing relink actions on the oracle home
         Usage: -relink -maketargetsxml  [-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 log location 

Case 1 
 If  relink is performed using OUI then  "$ORACLE_HOME/install/relink.log" is not created by default. 

To send the relink  output to $ORACLE_HOME/install/relink.log we need to redirect the output explicitly.

$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


Case 2 
In case of  " relink all " command, it always creates a new log file with a name "relink.log" and it will not append log information to the existing relink log file . The previous log will be saved with a timestamp ( Ex: relinkActions2009-09-14_09-01-10-PM.log )
阅读(778) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~