cc/td/doc/product/access/acs_soft/rpms/rpms_1-0
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Database Replication

Database Replication

Cisco Resource Pool Manager Server (Cisco RPMS) supports asynchronous database replication among multiple Cisco RPMS sites that use Oracle 7.3.4 or Oracle 8.0.4 and later. The two recommended database replication scenarios are:


Note Cisco RPMS supports only asynchronous, not real-time, database replication.

This appendix provides example procedures for setting up Oracle database systems to carry out replication of the Cisco RPMS database among multiple Cisco RPMS sites.


Note If you have multiple existing Cisco RPMS database sites that currently contain disparate data, all of which you wish to preserve when implementing replication, request your database administrator to merge your existing databases at one Master definition site before carrying out the procedures in this appendix.

Examples

Figure D-1 illustrates an example of Master-to-Snapshot or Primary-to-Replicate database replication as applied to multiple Cisco RPMS sites. In this scenario, all administrative changes to the database are made through the web-based console to one Cisco RPMS site. Then, at specified time intervals, those changes are replicated to all other sites on the network, enabling the Cisco RPMSes to provide resource management based on a common set of data.


Figure D-1:
Master-to-Snapshot Replication

Figure D-2 illustrates Master-to-Master or Peer-to-Peer database replication as applied to multiple Cisco RPMS database sites. In this scenario, local administrative changes to the database can be made through the web-based consoles at two or more Cisco RPMS peer sites. Then, at specified time intervals, each of these peer sites communicate their local changes to all other sites on the network. As with Master-to-Snapshot replication, the end result is that the Cisco RPMSes are able to provide their resource management services based on a common set of data.


Figure D-2:
Peer-to-Peer Replication

Integrating Oracle Database Replication with Cisco RPMS

The following example procedure uses the Oracle Net8 Easy Config (or the Oracle 7 SQL Net Easy Config), Security Manager, Schema Manager, SQL*Plus, and Replication Manager programs run on a Windows 95 workstation console to integrate Oracle database replication with Cisco RPMS.

Caution Implementing Oracle database replication requires an in-depth knowledge of Oracle tools and database structure. Integrating database replication with Cisco RPMS should be carried out by experienced Oracle DBAs only.

For specific instructions on the Oracle programs, refer to Oracle manuals and on-line help.


Note The following procedures are based on the assumption that multiple Oracle server and tablespace sites have already been installed to service each Cisco RPMS site and that all Cisco RPMS sites have been installed. Refer to the Cisco Resource Pool Manager Server Installation Guide for details.

A. Plan your Oracle database server distribution system

If you are planning to implement Master-to-Snapshot Replication, decide which of your Oracle database servers will become the Master database site. The remainder of your Oracle servers will become Snapshot sites.
If you are planning to implement Master-to-Master Replication, decide which of your Oracle Database servers will become the Master Definition site. The remainder of your servers will become Master Destination sites.

B. Create connection services from the console to all database sites

If you do not have connectivity, locate the tnsnames.ora file in the $ORACLE_HOME/network/admin directory and edit it, making sure that entries exist for all the other Oracle database sites involved in the replication.

Note To support Oracle database replication, the SID for each database must be unique.

C. Create a special user as the replication database controller

For each service that you created in Step B, use the Oracle Security Administrator to create a special user with special privileges to control database replication.

Caution This user must not be the Oracle user that you specified as in charge of the DB account for Cisco RPMS data during Cisco RPMS install.

D. Create links between databases

Create two-way links between the databases. For each database instance, do the following:

E. Configuring a Master-to-Snapshot replication scenario

If you are configuring Master-to-Snapshot replication, follow the steps in this section. If you are configuring Master-to-Master replication, skip this section and go to the "F. Configuring a Master-to-Master database replication scenario" section.

Step 1 Edit the initsid.ora configuration file. Do the following at each Oracle site:

where sid is the system identification name of the Oracle server.
job_queue_interval = minutes
job_queue_processes = number
where:
minutes is the number of minutes between updates. This value must be equivalent to the update interval time that you set in the refresh group properties menu in the Oracle Replication Manager. (See Step 5, "Using the Oracle Replication Manager, select and set up each database connection that you want to be a Snapshot site as follows:" in this section.)
number is the number of background processes allotted to the replication operations (must be at least one).
compatible = 7.1.0.0
to:
compatible = 7.3.0.0

Step 2 Using the SQL*Plus utility, log in to each database instance that you want to be a Snapshot site.

cs_blob
cs_blob_data
cs_call_dscrmnt
cs_call_type
cs_customer
cs_cust_dnis_grp
cs_cust_rsc_grp
cs_cust_vpdn_grp
cs_dnis
cs_dnis_grp
cs_group_profile
cs_password
cs_privilege
cs_profile
cs_profile_blob
cs_rpt_attr
cs_rpt_type
cs_rpt_type_detail
cs_rsc_grp
cs_svc_grp
cs_user_profile
cs_vpdn_grp
cs_vpdn_grp_dnis
cs_vpdn_grp_ip

Step 3 Using the Oracle Replication Manager, create a database connection for each database connection service that you set up in Step B.

Step 4 Using the Oracle Replication Manager, select the database connection that you want to be the Master Definition site and create and configure the master group on this site as follows:

cs_blob
cs_blob_data
cs_call_dscrmnt
cs_call_type
cs_customer
cs_cust_dnis_grp
cs_cust_rsc_grp
cs_cust_vpdn_grp
cs_dnis
cs_dnis_grp
cs_group_profile
cs_password
cs_privilege
cs_profile
cs_profile_blob
cs_rpt_attr
cs_rpt_type
cs_rpt_type_detail
cs_rsc_grp
cs_svc_grp
cs_user_profile
cs_vpdn_grp
cs_vpdn_grp_dnis
cs_vpdn_grp_ip

Step 5 Using the Oracle Replication Manager, select and set up each database connection that you want to be a Snapshot site as follows:

cs_blob
cs_blob_data
cs_call_dscrmnt
cs_call_type
cs_customer
cs_cust_dnis_grp
cs_cust_rsc_grp
cs_cust_vpdn_grp
cs_dnis
cs_dnis_grp
cs_group_profile
cs_password
cs_privilege
cs_profile
cs_profile_blob
cs_rpt_attr
cs_rpt_type
cs_rpt_type_detail
cs_rsc_grp
cs_svc_grp
cs_user_profile
cs_vpdn_grp
cs_vpdn_grp_dnis
cs_vpdn_grp_ip
Disabling the update option—Causes the Snapshot site to be read-only. Configuring read-only Snapshot sites ensures that Cisco RPMS administration can only be carried out at the Master site.
From the refresh group properties menu, schedule the interval (for example, every 24 hours) when the update should occur.

Step 6 At the Master Definition database site, change to $BASEDIR/sbin of the Cisco RPMS directory and enter the following:

csdbtool cache_trigger

Step 7 At each Snapshot database site, change to the Cisco RPMS $BASEDIR/sbin directory and run the following Cisco RPMS command line:

csdbtool cache_trigger_snap

Step 8 Before you create any new configurations, configure the Snapshot sites to prevent duplicate entries. At each Snapshot site, enter the following command:

csdbtool ora_rep_indx_snap

F. Configuring a Master-to-Master database replication scenario

If you are configuring Master-to-Master replication, follow the steps in this section. If you are configuring Master-to-Snapshot replication, ignore this section.

Step 1 Edit the initsid.ora configuration file. Do the following at each Oracle site:

where sid is the system identification name of the Oracle server.
open_cursor = 150
job_queue_interval = minutes
job_queue_processes = number
where:
minutes is the number of minutes between updates. This value must be equivalent to the intervals required when you created the scheduled links in Step 8 and Step 9 of Step F.
number is the number of background processes allotted to the replication operations (must be at least one).
compatible = 7.1.0.0
to:
compatible = 7.3.0.0

Step 2 Restart the Oracle server to have the changes to the inisid.ora file take effect.

Step 3 Using the SQL*Plus utility, log in to each database instance that you want to be a Master Destination site:

cs_blob
cs_blob_data
cs_call_dscrmnt
cs_call_type
cs_customer
cs_cust_dnis_grp
cs_cust_rsc_grp
cs_cust_vpdn_grp
cs_dnis
cs_dnis_grp
cs_group_profile
cs_password
cs_privilege
cs_profile
cs_profile_blob
cs_rpt_attr
cs_rpt_type
cs_rpt_type_detail
cs_rsc_grp
cs_svc_grp
cs_user_profile
cs_vpdn_grp
cs_vpdn_grp_dnis
cs_vpdn_grp_ip
Caution Remember, delete the above tables from Master Destination sites only.

Step 4 For each database connection service, create a surrogate replication administrator:

(a) Create a special user, a surrogate replication administrator, to control database replication.
Caution This user must not be the Oracle user that you specified as in charge of the DB account for Cisco RPMS data during Cisco RPMS install.
(b) For the user's Default table space, specify the Oracle tablespace that you set up for Cisco RPMS before Cisco RPMS installation.

Step 5 Using the SQL*Plus utility, assign the appropriate privileges to the database surrogate replication administrator at each Oracle site:

execute DBMS_REPCAT_AUTH.GRANT_SURROGATE_REPCAT(userid => 'surrogate_repadmn')
where surrogate_repadmn is the name of the surrogate replication administrator that you just created.

Step 6 Using the Oracle Replication Manager, create a database connection for each database connection service that you set up in Step B.

Step 7 Using the Oracle Replication Manager, select the database connection that you want to be the Master Definition site and create and configure the master group on this site as follows:

cs_blob
cs_blob_data
cs_call_dscrmnt
cs_call_type
cs_customer
cs_cust_dnis_grp
cs_cust_rsc_grp
cs_cust_vpdn_grp
cs_dnis
cs_dnis_grp
cs_group_profile
cs_password
cs_privilege
cs_profile
cs_profile_blob
cs_rpt_attr
cs_rpt_type
cs_rpt_type_detail
cs_rsc_grp
cs_svc_grp
cs_user_profile
cs_vpdn_grp
cs_vpdn_grp_dnis
cs_vpdn_grp_ip

Step 8 Using the Oracle Replication Manager, select and set up the database connection that you want to be a Master Definition site as follows:

Step 9 Using the Oracle Replication Manager, select and set up each database connection that you want to be a Master Destination site as follows:

Step 10 Using the Oracle Replication Manager, carry out the initial replication of the master group in each connection that you set up. For each master group configuration, go to Admin Requests and select the option, Apply all Administrative requests now.

Step 11 At each database site, run the following command line:

csdbtool cache_trigger

Step 12 In order to prevent two different Cisco RPMSes from assigning the same internal profile ID number to different entries, assign non-overlapping ranges of internal profile ID numbers to each Master Destination site as follows:

update cs_id set id = 10000000 -1 where type = 'max_profile'
update cs_id_v set id = 10000000
update cs_id set id = 10000000 where type = 'min_profile'
update cs_id set id = 20000000 -1 where type = 'max_profile'
update cs_id_v set id = 20000000
update cs_id set id = 20000000 where type = 'min_profile'
update cs_id set id = 30000000 -1 where type = 'max_profile'

Step 13 After initial replication has occurred, and before you create any new users, configure the Master Destination sites to prevent duplicate entry names. At each Master Destination site, enter the following command:

csdbtool ora_rep_indx
 

Precautions Running Oracle Database Replication and Cisco RPMS

In cases where Oracle Master-to-Master (or Master-to-Updateable-Snapshot) database replication has been implemented, the Cisco RPMS system administrators must avoid updating the same Cisco RPMS object at two or more different Cisco RPMS database sites during the same interval between database replication processes.

If updating of the same object at two different sites within the same interval between replications occurs, the object edits at neither site will be replicated or reconciled. The object will remain with unreconciled settings at both sites, and the following Oracle error message will appear at both sites within the "Local Errors" section of the Oracle Replication Manager tree:

ORA-01403 no data found error
 

The above error should rarely occur because, in practice, no more than one administrator should be authorized to administer Cisco RPMSes. However, if this error does occur, you must fix the unreconciled object at both sites:

Step 1 Use the web-based Cisco RPMS Administration web pages or the Java-based Cisco RPMS Administrator program to do the following:

Step 2 Use the Oracle Replication Manager to force replication, or wait until the next scheduled replication. Settings for the new object will replicate throughout the system.


hometocprevnextglossaryfeedbacksearchhelp
Posted: Thu Aug 31 07:35:37 PDT 2000
Copyright 1989-2000©Cisco Systems Inc.