Vous êtes sur la page 1sur 2

Cloning steps for Discoverer By Fred Joku

1. prepare UNIX user profile and environment variables on destination host or environment export PERL5LIB=$ORACLE_HOME/perl/lib:$ORACLE_HOME/perl/lib/site_perl export PATH:$ORACLE_HOME/perl:$PATH

3. prepare clone (source environment) cd $ORACLE_HOME/clone/bin perl prepare_clone.pl 4. archive Oracle home cd $ORACLE_HOME tar cf - * | gzip > /oracle/stage/cloneOAS/OAShome.tar.gz 5. copy compressed file to another host if needed 6. go to destination host and/or environment cd $ORACLE_HOME gunzip < /oracle/stage/cloneOAS/OAShome.tar.gz | tar xvf 7. Start up all other Oracle services to keep ports busy, so cloning operation will automatically assign available ports. If you want to assign ports manually, prepare $ORACLE_HOME/staticports.ini file (destination home) and update cs.properties file.

vi $ORACLE_HOME/clone/ias/config/cs.properties Update line clone_command_line = -silent Put proper location of staticports.ini, in this example /tmp (It is one line. There is a space after silent) clone_command_line = -silent oracle.iappserver.iapptop:szl_PortListSelect="{\"YES\",\"/tmp/staticports.ini \"}"

Note: The best method is to copy the file $ORACLE_HOME/install/portlist.ini and rename to staticports.ini and place in the /tmp directory. Edit the file, remove the top lines and change the port numbers to the new ones.

Example of staticports.ini
Oracle HTTP Server port = 7788 Oracle HTTP Server Listen port = 7788 Oracle HTTP Server SSL port = 8258

Oracle HTTP Server Listen (SSL) port = 8258 ASG port = 7898 Oracle Notification Server Request port = 6008 Oracle Notification Server Local port = 6108 Oracle Notification Server Remote port = 6208 Oracle HTTP Server Diagnostic port = 7208 Java Object Cache port = 7008 Log Loader port = 44008 DCM Discovery port = 7108 .

8. Back up your Oracle Inventory directory. OAS Installer cannot detach Oracle home. 9. Start cloning process. Attention! If the cloning failed and you are restarting the process Delete latest XML files from temp directory /tmp ls -lrt /tmp/*xml Make sure there are no UNIX processes left (e.g. opmn) ps -fu $LOGNAME Restore Oracle Inventory (or detach Oracle home with 10.2 Installer if available) Run clone script. It will prompt for old and new ias_admin passwords.

perl clone.pl ORACLE_HOME=/u04/app/oracle/product/ASBI1012_CTST44 ORACLE_HOME_NAME=ASBI1012_CTST44 -instance CTST44

Please enter the old ias_admin password (Plain Text): Please enter the old new_admin password (Plain Text):
9. Copy $TNS_ADMIN/tnsnames.ora from Oracle Applications to Discoverer $TNS_ADMIN/tnsnames.ora 10. Copy $FND_SECURE/<host_sid>.dbc from Oracle Applications to $ORACLE_HOME/discoverer/secure

Remove other dbc files.


10. Start opmnctl startall

Vous aimerez peut-être aussi