A Clonagem
Por: raquelcsgomes • 7/5/2018 • Abstract • 1.088 Palavras (5 Páginas) • 233 Visualizações
- Clonagem
- Preparar o sistema origem
- Prepare the source system database tier for cloning
Log on to the source system as the ORACLE user and run the following commands:
cd $ORACLE_HOME/appsutil/scripts/
perl adpreclone.pl dbTier
[oraprod@tejotemp 9.2.0]$ cd /u01/oraprod/proddb/9.2.0/appsutil/scripts/PROD_tejotemp/
[oraprod@tejotemp PROD_tejotemp]$ perl adpreclone.pl dbTier
- Prepare the source system application tier for cloning
Log on to the source system as the APPLMGR user and run the following commands on each node that contains an APPL_TOP:
cd $COMMON_TOP/admin/scripts/
perl adpreclone.pl appsTier
[applprod@tejotemp PROD_tejotemp]$ cd /u02/applprod/prodcomn/admin/scripts/PROD_tejotemp/
[applprod@tejotemp PROD_tejotemp]$ perl adpreclone.pl appsTier
- Copiar o sistema origem para o Sistema destino
- Copy the application tier file system
Log on to the source system application tier nodes as the APPLMGR user.
- Shut down the application tier server processes
- Copy the following application tier directories from the source node to the target application tier node:
-- não é necessário se estiver em /opt/java1.4.. - $COMMON_TOP/util
/clone /_pages (when this directory exists)- <806 ORACLE_HOME>
- Copy the database tier file system
Log on to the source system database node as the ORACLE user.
- Perform a normal shutdown of the source system database
- Copy the database (DBF) files from the source to the target system
- Copy the source database ORACLE_HOME to the target system
- Start up the source Applications system database and application tier processes
- Configurar o Sistema destino
- Configure the target system database server
Log on to the target system as the ORACLE user and type the following commands to configure and start the database:
cd $ORACLE_HOME/appsutil/clone/bin
perl adcfgclone.pl dbTier
Se der erro no adcrobj.sh e RDBMS é o 9.2.0.8, então:
Unlock /var/opt/oracle/oraInventory: ver a directoria locks
Unlock /var/opt/oracle/oraInventory/ContentsXML: ver o ficheiro comps.xml
Apply DB patch 5495695:
export PATH=/disc2/oravis/tstdb/9.2.0/OPatch:$PATH
opatch lsinventory (para verificar acessibilidade do Oracle Inventory)
cp $ORACLE_HOME/bin/sqlplus $ORACLE_HOME/bin/sqlplus_pre5495695
opatch apply
mv $ORACLE_HOME/sqlplus/lib/sqlplus $ORACLE_HOME/bin/sqlplus
E Correr o autoconfg.sh da base de dados
- Configure the target system application tier server nodes
Log on to the target system as the APPLMGR user and type the following commands:
cd $COMMON_TOP/clone/bin
perl adcfgclone.pl appsTier
Se o sistema destino não tiver nenhuma instalação Oracle neste passo deve acontecer um erro relacionado com o “oraInst.loc” e com o “oraInventory/”. Neste caso pode-se copiar este ficheiro e esta directoria para o sistema destino nas mesmas localizações.
- Tarefas Finais
- Update profile options
Rapid Clone updates only site level profile options. If any other profile options are set to instance specific values, you must update them manually.
- Update printer settings
If the new cloned system needs to utilize different printers, update the target system with the new printer settings now.
...