Home » RDBMS Server » Server Administration » moving ORACLE_HOME
moving ORACLE_HOME [message #60968] Wed, 17 March 2004 07:05 Go to next message
Bala S
Messages: 4
Registered: November 2003
Junior Member
Hello all,

a simple question.

Can i move ORACLE_HOME directory to a different directory in unix and access oracle without any problems.

For e.g if i move ORACLE_HOME from /tools/oracle/8.1.7 to /tools/ora817, do i have to change any other configuration other than ORACLE_HOME environment variable and /etc/oratab file.

regards,

Bala

 
Re: moving ORACLE_HOME [message #60970 is a reply to message #60968] Wed, 17 March 2004 09:03 Go to previous messageGo to next message
Mahesh Rajendran
Messages: 10708
Registered: March 2002
Location: oracleDocoVille
Senior Member
Account Moderator
simplest way is to re-install oracle in another folder (ORACLE_HOME_) and recrate or cold-copy-clone the existing database to the new location.
just renaming environment varaibales and ortab entries will NOT HELP.
Re: moving ORACLE_HOME [message #60974 is a reply to message #60968] Wed, 17 March 2004 11:27 Go to previous messageGo to next message
www.sidibe.net
Messages: 9
Registered: March 2004
Junior Member
No you can't. Because of link. But you can create link after moving to the new directorie. link -fs ....
Re: moving ORACLE_HOME [message #60975 is a reply to message #60970] Wed, 17 March 2004 11:34 Go to previous messageGo to next message
www.sidibe.net
Messages: 9
Registered: March 2004
Junior Member
see this link :
http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=131321.1
Re: moving ORACLE_HOME [message #61010 is a reply to message #60970] Fri, 19 March 2004 05:58 Go to previous message
Sanjay Bajracharya
Messages: 279
Registered: October 2001
Location: Florida
Senior Member
As Bala mentioned, better install the binaries in the desired folder.

Here is the plan
1. Shutdown DB
2. Install Oracle in desired place (I would make sure it is the same version level, down to patch level)
3. Make chnages in the following
a. .profile (set ORACLE_HOME, PATH, LIBPATHs)
b. /etc/oratab
4. Rename the original folder where Oracle was present just to be sure that nothing in there is being used
/tools/oracle/8.1.7 -> /tools/oracle/8.1.7.notused
5. Fireup the DB.
6. If all is fine, delete folder /tools/oracle/8.1.7.notused

Good Luck.
--
Sanjay
Previous Topic: 100% processor usage
Next Topic: Is it possible to Create Index for VIEWS too?
Goto Forum:
  


Current Time: Tue Jan 07 23:15:30 CST 2025