Home > oracle-install > clone oracle database home software 10.2.0.5 to another machine

clone oracle database home software 10.2.0.5 to another machine

Cloning is the process of copying an existing Oracle installation to a different location and updating the copied bits to work in the new environment.

OS :

<oracle:>:/etc=>cat redhat-release
Red Hat Enterprise Linux Server release 5.4 (Tikanga)

<oracle:>:/etc=>uname -r
2.6.18-164.el5

Database software : 10.2.0.5

<oracle:>:/u01/app/oracle/product/10.2.0.5/db_1/bin=>./sqlplus /nolog

SQL*Plus: Release 10.2.0.5.0 – Production on Sun May 8 13:34:59 2011

Copyright (c) 1982, 2010, Oracle.  All Rights Reserved.

HostName :oral8001

create a tar file using following command:

<oracle:>:/home/oracle=>cd /u01/app/oracle/product/10.2.0.5/db_1/

<oracle:>:/u01/app/oracle/product/10.2.0.5/db_1=>tar -zcvf /tmp/dbhome10205.tgz .

Destination Hostnmae : oral8002

copy zip file from oral8001 to oral8002

:/tmp=>scp dbhome10205.tgz oral8002:/u01/app/oracle/product/10.2.0.5/db_1
root@oral8002’s password:

dbhome10205.tgz                                                                                                            100%  874MB  35.0MB/s   00:25

Log into oral8002 machine as oracle and .

cd /u01/app/oracle/product/10.2.0.5/db_1

tar –zxvf ./dbhome10205.tgz

###############################################################

<oracle:>:/home/oracle/admin/scripts/general/bin=>cat clone_db
#!/bin/sh
E01=ORACLE_HOME=/u01/app/oracle/product/10.2.0.5/db_1
E02=ORACLE_HOME_NAME=OraDb10g_home1

C01=”-O’CLUSTER_NODES={oral8002}'”
C02=”-O’INVENTORY_LOCATION=/u01/app/oraInventory'”

perl /u01/app/oracle/product/10.2.0.5/db_1/clone/bin/clone.pl  $E01 $E02 $C01 $C02

##############################################################

<oracle:>:/home/oracle/admin/scripts/general/bin=>./clone_db
./runInstaller -silent -clone -waitForCompletion  “ORACLE_HOME=/u01/app/oracle/product/10.2.0.5/db_1” “ORACLE_HOME_NAME=OraDb10g_home1” ‘CLUSTER_NODES={oral8002}’ ‘INVENTORY_LOCATION=/u01/app/oraInventory’ -noConfig -nowait
Starting Oracle Universal Installer…

No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-05-08_02-01-00PM. Please wait …Oracle Universal Installer, Version 10.2.0.5.0 Production
Copyright (C) 1999, 2010, Oracle. All rights reserved.

You can find a log of this install session at:
/u01/app/oraInventory/logs/cloneActions2011-05-08_02-01-00PM.log
.
Performing tests to see whether nodes  are available
……………………………………………………… 100% Done.

Installation in progress (Sunday, May 8, 2011 2:01:17 PM PDT)
…………………………………………………………………                                                     75% Done.
Install successful

Linking in progress (Sunday, May 8, 2011 2:01:27 PM PDT)
Link successful

Setup in progress (Sunday, May 8, 2011 2:02:26 PM PDT)
Setup successful

End of install phases.(Sunday, May 8, 2011 2:02:30 PM PDT)

OUI-10234:Failed to copy the root script, /u01/app/oraInventory/orainstRoot.sh to the cluster nodes oral8002.
Please copy them manually to these nodes and execute the script.
WARNING:A new inventory has been created on one or more nodes in this session. However, it has not yet been registered as the central inventory of this system.
To register the new inventory please run the script at ‘/u01/app/oraInventory/orainstRoot.sh’ with root privileges on nodes ‘oral8002’.
If you do not register the inventory, you may not be able to update or patch the products you installed.
The following configuration scripts need to be executed as the “root” user in each cluster node.
#!/bin/sh
#Root script to run
/u01/app/oraInventory/orainstRoot.sh #On nodes oral8002
/u01/app/oracle/product/10.2.0.5/db_1/root.sh #On nodes oral8002
To execute the configuration scripts:
1. Open a terminal window
2. Log in as “root”
3. Run the scripts in each cluster node

The cloning of OraDb10g_home1 was successful.
Please check ‘/u01/app/oraInventory/logs/cloneActions2011-05-08_02-01-00PM.log’ for more details.

[root@oral8002 ~]# /u01/app/oraInventory/orainstRoot.sh
Changing permissions of /u01/app/oraInventory to 770.
Changing groupname of /u01/app/oraInventory to oinstall.
The execution of the script is complete
[root@oral8002 ~]# /u01/app/oracle/product/10.2.0.5/db_1/root.sh
Running Oracle 10g root.sh script…

The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME=  /u01/app/oracle/product/10.2.0.5/db_1

Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin …
Copying oraenv to /usr/local/bin …
Copying coraenv to /usr/local/bin …

Creating /etc/oratab file…
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.

Advertisements
Categories: oracle-install
  1. No comments yet.
  1. No trackbacks yet.

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

%d bloggers like this: