Clonando o Oracle_Home

Em muitas ocasiões ,é bem mais fácil para um dba  clona um ORACLE_HOME existente do que tentar criar um novo, Abaixo segue o passo a passo para realizar o clone do ORACLE_HOME .

1. Como Root entre na pasta do oracle_base e zip o oracle Home

cd /u01/app/oracle/db1

tar -cvzf /u01/home_11.2.0.4.tgz 11.2.0.4

tar -cvzf home_11.2.0.4.tgz 11.2.0.4

2. Copie  o arquivo home_11.2.0.4.tgz para o  servidor de banco
3. Descompacte o arquivo  com o usuário root na estrutura desejada

tar -xvf home_11.2.0.4.tgz

tar -xzvf home_11.2.0.4.tgz

4. Entre na pasta 11.2.0.4  depoiso comando abaixo com os valores corretos.

perl clone.pl ORACLE_HOME="/u01/app/oracle/db1/11.2.0.4" ORACLE_HOME_NAME="11gr2" ORACLE_BASE="/u01/app/oracle" OSDBA_GROUP=oinstall OSOPER_GROUP=oper

Exemplo:

cd /u01/app/oracle/db1/11.2.0.4/clone/bin

[oracle@zmsolution2 bin]$ perl clone.pl ORACLE_HOME="/u01/app/oracle/db1/11.2.0.4" ORACLE_HOME_NAME="11gr2" ORACLE_BASE="/u01/app/oracle/db1" OSDBA_GROUP=dba OSOPER_GROUP=oinstall
./runInstaller -clone -waitForCompletion "ORACLE_HOME=/u01/app/oracle/db1/11.2.0.4" "ORACLE_HOME_NAME=11gr2" "ORACLE_BASE=/u01/app/oracle/db1" "oracle_install_OSDBA=dba" "oracle_install_OSOPER=oinstall" -silent -noConfig -nowait
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB. Actual 13598 MB Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2015-07-20_04-33-33PM. Please wait ...Oracle Universal Installer, Version 11.2.0.4.0 Production
Copyright (C) 1999, 2013, Oracle. All rights reserved.

You can find the log of this install session at:
/u01/app/oraInventory/logs/cloneActions2015-07-20_04-33-33PM.log
.................................................................................................... 100% Done.

Installation in progress (Monday, July 20, 2015 4:35:05 PM BRT)
.................................................................................... 84% Done.
Install successful

Linking in progress (Monday, July 20, 2015 4:35:44 PM BRT)
Link successful

Setup in progress (Monday, July 20, 2015 4:38:55 PM BRT)
Setup successful

End of install phases.(Monday, July 20, 2015 4:39:23 PM BRT)
WARNING:
The following configuration scripts need to be executed as the "root" user.
/u01/app/oracle/db1/11.2.0.4/root.sh
To execute the configuration scripts:
1. Open a terminal window
2. Log in as "root"
3. Run the scripts

The cloning of 11gr2 was successful.
Please check '/u01/app/oraInventory/logs/cloneActions2015-07-20_04-33-33PM.log' for more details.

 

Leave a Reply

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *