改变令你不爽的ORACLE_HOME的名字

比如你的ORACLE_HOME是OHOME1,过两天觉的不好,想改?

今天正好顺便改了一下,还是前一个例子。一口气改掉.

/* If your ORACLE_HOME is not so good, change it !!! */

/* find my ORACLE HOME */
cd /u01/oracle/oraInventory
grep -i -r ORACLE_HOME_A *
ContentsXML/inventory.xml:<HOME NAME="ORACLE_HOME_A" LOC="/u01/oracle/product/920" TYPE="O" IDX="1"/>
………

/* backup */
cp ContentsXML/inventory.xml ContentsXML/inventory.xml.bkup.2006122

/* change ORACLE HOME name */
vi ContentsXML/inventory.xml

diff ContentsXML/inventory.xml ContentsXML/inventory.xml.bkup.20061221

10c10
< <HOME NAME="ORACLE_HOME_A" LOC="/u01/oracle/product/920" TYPE="O" IDX="1"/>

> <HOME NAME="GOOD_OHOME" LOC="/u01/oracle/product/920" TYPE="O" IDX="1"/>

Advertisements

About Pang

Oracle DBA working in database, fusion middleware and identity management and cloud.
This entry was posted in Installation. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s