Monday, December 13, 2010

Grid Control Migration to New Server with Different Hostname or Domainname


Grid Control OMS and Repository Database can be migrated to new server with different hostname or domainname by using any of the two methods below.The steps below are applicable only if both source and destination servers are on the same OS platform.

Method 1
---------

1.Stop the OMS and Agent running on OMS server( the agent installed with the OMS) .

2.Clean up the Central Management Agent ( the agent installed with the OMS):

Connect to the repository DB as SYSMAN and execute the following PL/SQL API:
SQL> exec mgmt_admin.cleanup_agent('');

Note: - This command may take some time to complete, so please don't interrupt.
- To get the old agent name use the following query:
select target_name from mgmt_targets where target_type='oracle_emd';

3.Migrate the Repository Database to target server .You can refer to 'Doc ID 602955.1' for the same.

4.Install Additional OMS on new server following the document below

'Installing an Additional Oracle Management Service Release 5 (10.2.0.5)'
http://download.oracle.com/docs/cd/B16240_01/doc/install.102/e10953/installing_em.htm#CHDJFFGJ

5.Point the target Agents to the new OMS following the steps in the Documentation below

'Configuring the Management Agent to Use a New Management Service'
http://download.oracle.com/docs/cd/B16240_01/doc/em.102/e10954/postinstall_config.htm#i1024275

Method 2
---------

If you prefer to reduce downtime and dont want to stop the source OMS before the installation of Additional OMS then follow the steps as below

1.Install Additional OMS on new server pointing to existing repository database on source server following the document below

'Installing an Additional Oracle Management Service Release 5 (10.2.0.5)'
http://download.oracle.com/docs/cd/B16240_01/doc/install.102/e10953/installing_em.htm#CHDJFFGJ

2.Then stop both the OMS and migrate Database to new server

3.Configure the OMS on new server to point to Repository on new server.You can refer to documentattion below for the same
http://download.oracle.com/docs/cd/B16240_01/doc/install.102/e10953/postinstall_config.htm#i1020180

4.Clean up the Central Management Agent on the source server ( the agent installed with the OMS):

Connect to the repository DB as SYSMAN and execute the following PL/SQL API:
SQL> exec mgmt_admin.cleanup_agent('');

Note: - This command may take some time to complete, so please don't interrupt.
- To get the old agent name use the following query:
select target_name from mgmt_targets where target_type='oracle_emd';

5.Start the OMS on new server

6.Point the target Agents to the new OMS following the steps in the Documentation below

'Configuring the Management Agent to Use a New Management Service'
http://download.oracle.com/docs/cd/B16240_01/doc/em.102/e10954/postinstall_config.htm#i1024275

No comments:

Post a Comment