更改ORACLE_HOME_NAME

更改 ORACLE_HOME_NAME

有些时候,我们可能会遇到这样的问题,就是想更改一下ORACLE_HOME_NAME。

而直接修改 oraInventory/ContentsXML/inventory.xml 中的值并不安全。Oracle 是提供了这样的功能的。

要想修改此变量的值,首先,要detatch home,然后再attach home. 命令格式如下:

  • detachHome

    <ORACLE_HOME>/oui/bin/runInstaller -detachHome ORACLE_HOME=<Full_Path_to_Home> ORACLE_HOME_NAME=<name of oracle home> -invPtrLoc <Full_Path_to_OraInst.loc_File>
    
  • attachHome

    <ORACLE_HOME>/oui/bin/runInstaller -attachHome ORACLE_HOME=<Full_Path_to_Home> ORACLE_HOME_NAME=<name of oracle home> -invPtrLoc <Full_Path_to_OraInst.loc_File>
    

Author: halberd.lee

Created: 2020-05-11 Mon 21:13

Validate

posted @ 2020-05-11 21:14  halberd.lee  阅读(890)  评论(0编辑  收藏  举报