6 Migrating Network Templates
This chapter describes how to migrate information with Oracle Communications MetaSolv Solution Data Selection Tool (DST) Network Templates module.
About Network Templates Migration
The DST Network Templates module migrates the network templates and requires the following information to be set up in the source database and the target database by the database administrator who has SYSDBA privileges.
To set up the database for migrating templates:
-
Grant Common Privileges on Source and Target Databases: Grant the following database permissions to all users who use the Network Templates module in the Data Selection Tool.
- Connect to the source database and the target database as a database administrator with SYSDBA privileges.
- Run the following commands:
GRANT SELECT ON V_$LISTENER_NETWORK TO dst_user; GRANT SELECT ANY TABLE TO dst_user;where dst_user is the user who migrates the network templates in DST.
-
Grant Target-Only Migration Privileges: Grant the following database permissions to all users on the target database who use the Network Templates module in the Data Selection Tool.
- Connect to the target database as a database administrator with SYSDBA privileges.
- Run the following command:
GRANT CREATE DATABASE LINK TO dst_user;where dst_user is the user who migrates the network templates in DST.
-
Load and Compile Migration Package Objects: Compile the migration package pkgdstnst.sql
-
Connect to the target database using the ASAP user.
-
Run the pkgdstnst.sql script from the path/procs/ directory, where path is the temporary folder in which you extracted the contents of the DST.zip file.
For example, if the DST.zip file is extracted to c:/DST, run:@c:/DST/procs/pkgdstnst.sql -
Compile the migration package and package body by running the following commands:
ALTER PACKAGE ASAP.PKG_NST_MIGR COMPILE; ALTER PACKAGE ASAP.PKG_NST_MIGR COMPILE BODY;
-
-
Grant Target-Only Object Privileges: Grant the following object permissions to all users on the target database who use the Network Templates module in the Data Selection Tool.
-
Connect to the target database as a database administrator with SYSDBA privileges.
-
Run the following command:
GRANT EXECUTE, DEBUG ON ASAP.PKG_NST_MIGR TO dst_user;
-
-
Configure the Session and Create a Source Database Link on the Target: Follow the steps to configure and create a source database link:
-
Connect to the target database using the ASAP user.
-
In the target database session, disable global name enforcement for database link naming by running the following command:
ALTER SESSION SET GLOBAL_NAMES = FALSE; -
In the same target database session, create a database link from the target database to the source database by running the following command:
CREATE DATABASE LINK SRC_DB_LINK CONNECT TO ASAP IDENTIFIED BY "ASAP_password" USING '(DESCRIPTION=description(CONNECT_DATA=(SERVICE_NAME=Service_name)))';Note:
Run the ALTER SESSION command and the CREATE DATABASE LINK command in the same target database session. Do not disconnect or open a different session between these commands.where:-
ASAP_password is the password for the ASAP user.
-
description is the value returned by the following statement, which you run on the source database:
SELECT value FROM v$listener_network WHERE type = 'LOCAL LISTENER'; -
Service_name is the value returned by the following statement, which you run on the source database:
SELECT value FROM v$listener_network WHERE type = 'SERVICE NAME';
-
-
- Network Templates
- Embedded Network Templates
- Component Types
- Network Element Types for the Component Types
- Connection Specifications that exist in the source database and the target database
- Custom Attributes and their valid values that exist in the source database and the target database
- Service Applications that are defined in the source database and the target database
The DST Network Templates module does not migrate the following information:
- Connection Specifications that do not exist in the target database
- Custom Attributes with their valid values that do not exist in the target database and are associated with Component Types and Network Templates
- Service Applications that do not exist in the target database
- Custom Attributes and their valid values for the Connection Specifications
Migrating Network Templates
-
Click the Net Templ button.
Note:
If the Source list is empty, your source database does not contain any network templates. -
Click the Targ Logon button to select the target database. The target database is the one you want to copy network templates to.
The Environment Login window is displayed.
-
In the Userid field, enter your user name.
-
In the Password field, enter your password.
-
In the Database field, enter the database server name.
-
Click OK.
Note:
Your database access is limited to accessible databases in your .TNS names files and your .INI files.After you connect to your target database, the Target list is populated with the network templates in the target database.Note:
If you click the Pick Templ... button before you choose a target database, an error message is displayed. Click OK and then click the Targ Logon button. -
Click the Pick Templ... button.
The Network Templates Query window is displayed that allows you to select the network templates you want to migrate.
-
Enter your search criteria and click Retrieve.
The list of network templates is displayed on the Results tab.
-
Select the network templates you want to migrate and click Migr Temp....
The Migrating Network Templates progress meter displays, showing you the progress of migrating the selected templates.
-
After the network templates migration process is complete, review the migration log to ensure that the selected network templates are migrated successfully.
Note:
If you receiveORA-02019 : connection description for remote database not foundin the migration log, consult your Database Administrator that the Database links are created successfully.The following network templates are displayed with the Cancelled status in the Migration Log:- The network templates that already exist in the target database.
- The embedded network template(s) that already exist in the target database with a different template type.
- The connection specifications in the selected network template or any of its embedded network templates that do not exist in the target database. To successfully migrate the network template, log in to MetaSolv Solution of the target database and create the connection specifications.
- The connection specifications in the selected network template or any of its embedded network templates that are associated with service applications and those service applications that do not exist in the target database. To successfully migrate the network template, log in to MetaSolv Solution of the target database and create the service applications.
-
To validate that the network templates migrated properly to the target database, click the Net Templ... button on the main toolbar, and then click the Targ Logon button to refresh the information that is displayed for the target database.
Post-Migration Tasks
After the migration process is completed, you must do the following post-migration tasks:
- In MetaSolv Solution application, in Network Templates window, ensure that :
- The correct image is associated with the component types, if the migrated network templates has component types that already exist in the target database.
- The appropriate custom attributes are associated with the network templates and component types. You must manually validate and associate the custom attributes with the connection specification.
- In MetaSolv Solution Utilities,
- Ensure that the custom attribute rules and the layout are defined appropriately. The layout details includes Display line number, Display Column number, and Label Placement.
- If there is a warning message in the migration log, create and associate the custom attributes to the network templates or the component types. A warning message is logged when any of the custom attributes associated with the selected network templates or component types do not exist in the target database. The corresponding network templates or the component types are migrated without the custom attributes.