Saturday, 22 January 2011

Speedup Clone Process in R12 and 11i

The normal way to do the clone process is by archiving  the Source node then copy the archived files to the Target node then extract the archived file back. The following will speedup the cloning process. In the following will avoid the two fold steps and do the operation in a single step.

eg. One of the clone steps is to move the ORACLE_HOME form the database node; To do this:
We have the Source node called PROD and the Target node called TEST:

On the Target node create the ORACLE_HOME directory if its not exists:
$ mkdir -p /u01/app/oracle/product/10.2.0./db

On the Source node:
$ cd  $ORACLE_HOME
$ tar cf - * | ssh TEST '(cd /u01/app/oracle/product/10.2.0./db; tar xf - )'

Now on the Target node check if the moving and extracting process is started:
$ cd /u01/app/oracle/product/10.2.0./db
$ ls -ltr

total 240
drwxr-x--- 3 oracle dba 4096 Oct 25 20:38 jre
drwxr-x--- 7 oracle dba 4096 Oct 25 20:38 javavm
drwxr-x--- 3 oracle dba 4096 Oct 25 20:38 has
drwxr-x--- 3 oracle dba 4096 Oct 25 20:38 diagnostics
drwxr-x--- 3 oracle dba 4096 Oct 25 20:38 demo
drwxr-x--- 6 oracle dba 4096 Oct 25 20:38 crs
drwxr-x--- 4 oracle dba 4096 Oct 25 20:38 clone
drwxr-x--- 7 oracle dba 4096 Oct 25 20:38 assistants
drwxr-x--- 4 oracle dba 4096 Oct 25 20:49 jdbc

In this way we:
1- Avoid the two fold process.
2- No need for extra disk space on the Target node nor Source node.  


No comments:

Post a Comment

Number of Visitors