Skip Headers
Oracle® Communications Data Model Installation Guide
Release 11.3.1

Part Number E28441-04
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Master Index
Master Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
PDF · Mobi · ePub

B BRM Adapter Installation and Configuration

This appendix shows how to install and set up the following:

This appendix includes the following sections:

Note:

The steps in this appendix can take a significant amount of time to complete.

The BRM Adapter can be installed with the Oracle Communications Data Model Application Adapters type installation. The BRM Adapter includes an option to feed data in real-time using Oracle GoldenGate to the Oracle Communications Data Model staging layer, or to extract, load and transform the data in batch mode using Oracle Data Integrator.

Prerequisites for BRM Adapter Configuration

The following are prerequisites for installing the Billing and Revenue Management to Oracle Communication Data Model Adapter:

Confirming that Oracle Data Integrator Enterprise Edition is Installed

To verify your Oracle Data Integrator Enterprise Edition installation, launch ODI Studio:

  1. Select Start Menu > All Programs > Oracle > Oracle Data Integrator > ODI Studio.

  2. In Designer Navigator, click Connect To Repository...

If Oracle Data Integrator Enterprise Edition is not installed, see "Oracle Data Integrator Enterprise Edition".

Confirming that Oracle GoldenGate is Installed

If you install the Billing and Revenue Management to Oracle Communication Data Model Adapter (BRM Adapter), using, installing, and configuring Oracle GoldenGate is optional depending on whether you want to use Real-time staging with the BRM Adapter.

If Oracle GoldenGate is not installed, see "Oracle GoldenGate".

Installation Overview for BRM Adapter

To install and set up the Billing and Revenue Management to Oracle Communication Data Model Adapter, Oracle GoldenGate Extract and Replicat process, and Oracle Data Integrator components to create an operational E-LT environment. Perform the tasks in this appendix sequentially.

This appendix includes instructions for setting up the staging database for data loading, transformation, and validation of source data. To begin working you need to set up ODI Master Repository and Work Repository and use Oracle Data Integrator (ODI) and optionally if you are using Oracle GoldenGate, you need to install and configure Oracle GoldenGate to perform real-time ETL.

Notes:

Oracle Communications Data Model Adapter Installation Overview:

The following steps explains how to install Billing and Revenue management (BRM) to Oracle Communication Data Model Adapter. These steps include setting up the staging database for data loading, transformation, and validation of source data. Before you begin installing the BRM Adapter, you need to set up the ODI Master Repository and Work Repository.

Use Oracle Data Integrator (ODI) and Oracle GoldenGate together to perform real-time ETL.

Oracle Communications Data Model Adapter Installation Steps:

  1. Setting Schema OCDM_SYS Reference Tables Load Values for BRM Adapter

  2. Setting Up Staging Schema for BRM Adapter

  3. Configuring Oracle Data Integrator for BRM Adapter (Non Oracle GoldenGate Option)

  4. Setting Up Oracle GoldenGate for BRM Adapter

Setting Schema OCDM_SYS Reference Tables Load Values for BRM Adapter

While running the create_brm_stg.sql script, the script creates the desired reference tables and scripts that are required for the target schema (OCDM_SYS).

Setting Up Staging Schema for BRM Adapter

Staging Schema Creation (using the example, brm_stg).

Create staging schema (brm_stg) by executing the script create_brm_stg.sql from sqlplus by connecting as sys/system user:

Script Location: $BRM_OCDM_HOME/staging_install_ddl/create_brm_stg.sql

SQL> @./create_brm_stg.sql
Creating Relational Schema and Granting required privilages
Enter value for user_name: brm_stg [Depends on stage-schema name of the user]
Enter value for password: passwd

Connecting Target Schema (OCDM_SYS)
Enter value for user_name: ocdm_sys
Enter value for password: passwd

The create_brm_stg.sql file executes and creates the following objects and files in the brm_stg and ocdm_sys schemas.

Staging Schema (brm_stg) Objects Created:

Note: This assumes a daily update. However, the same tables will be used for a lower or higher update frequency, up to real-time change.

Target Schema (ocdm_sys) Objects Created:

Table B-1 ocdm_sys Objects Created

Procedures

DEL_OCDM

DISB_CONS

ENAB_CONS

GEO_CITY_MAP

GEO_CNTRY_MAP

GEO_STATE_MAP

INSERT_REF

POSTCD_MAP

UPDATE_ACCT_ACCT

UPDATE_ACCT_BILLINFO

UPDATE_ACCT_PREF_PYMT_MTHD

UPDATE_ADDR_LOC

UPDATE_BASE_PROD_KEY

UPDATE_CUST

UPDATE_CUST_FCNG_SRVC

UPDATE_PROD

UPDATE_PROD_MKT_PLN

UPDATE_PROD_RTNG_PLN

UPDATE_PRTY

UPDATE_PRTY_FOR_CUST

UPDATE_SBRP

UPDATE_SBRP_CHRGS

UPDATE_SRVC_SPEC


UTC_TO_ORACLE Function:

Plus the UTC to Oracle Date function: UTC_TO_ORACLE

Staging and Target Schemas (brm_stg and ocdm_sys) Object Creation (files created in directory $BRM_OCDM_HOME/staging_install_ddl):

Table B-2 Script Files Created

Files Created

brm_disable_constraint.sql

brm_map_tab.sql

brm_views.sql

ddl_rqd_tables_stg_delta.sql

ddl_rqd_tables_stg_delta_h.sql

ddl_rqd_tables_stg_ld.sql

ddl_rqd_tables_stg_normal.sql

del_ocdm.sql

disabled_constraint.sql

enabled_constraint.sql

etl_parameter.sql

grant_script.sql

index_on_stage_tables.sql

insert_brm_mapping_tab.sql

insert_ref.sql

insert_script.sql

ocdm_procedures.sql

post_staging_load.sql

pre_ocdm_load.sql

pre_staging_load.sql

scd2_update.sql

utc_to_oracle.sql

utc_to_oracle.sql


Configuring Oracle Data Integrator for BRM Adapter (Non Oracle GoldenGate Option)

Configuring Oracle Data Integrator for Oracle Communications Data Model use with the BRM Adapter includes the following steps:

Creating and Connecting to ODI Master Repository

Connect to DBA user / as sysdba.

SQL>/ as sysdba

You have to create the RDBMS schema/user (Oracle 11g) for the Master and Work repositories. The schemas can be created by executing the following SQL commands:

SQL> create user repo identified by repo default tablespace users temporary tablespace temp;
SQL> create user wrep identified by wrep default tablespace users temporary tablespace temp;

Grant connect privileges to the newly created users by executing these SQL commands:

SQL> grant connect, resource to repo;
SQL> grant execute on dbms_lock to repo;
SQL> grant connect, resource to wrep;
SQL> grant execute on dbms_lock to repo;

Note that the users shown are just examples. You can choose whatever user you want; just and make sure you use the same user when you create repositories and log-in information for the ODI.

  1. Open ODI Studio, as shown in Figure B-1:

    Start > Programs > Oracle > Oracle Data Integrator > ODI Studio

    Figure B-1 Opening ODI Studio

    Description of Figure B-1 follows
    Description of "Figure B-1 Opening ODI Studio"

  2. Open the New Gallery as shown in Figure B-2:

    File > New

    In the New Gallery, in the Categories tree, select ODI.

    Select from the Items list the Master Repository Creation Wizard.

    Click OK.

    The Master Repository Creation Wizard appears.

    Figure B-2 ODI Studio New Gallery

    Description of Figure B-2 follows
    Description of "Figure B-2 ODI Studio New Gallery"

    Figure B-3 ODI Studio New Gallery Create Master Repository

    Description of Figure B-3 follows
    Description of "Figure B-3 ODI Studio New Gallery Create Master Repository"

  3. In the Master Repository Creation Wizard, select the browse icon of the JDBC Driver and then select Oracle JDBC Driver. Click OK.

    Edit the JDBC URL to read: jdbc:oracle:thin: @localhost:1521:orcl

    Enter the User as repo and the Password as password.

    Click Test Connection and verify successful connection.

    Click OK.

    On the Master Repository Creation Wizard screen, Click Next, as shown in Figure B-4.

    Figure B-4 ODI Studio Master Repository Creation Wizard

    Description of Figure B-4 follows
    Description of "Figure B-4 ODI Studio Master Repository Creation Wizard"

    Figure B-5 ODI Studio Master Repository Successful Creation

    Description of Figure B-5 follows
    Description of "Figure B-5 ODI Studio Master Repository Successful Creation"

  4. In the Authentication window, enter Supervisor Password as password.

    Enter password again to confirm the password, as shown in Figure B-6.

    Click Next.

    Note: ODI User names and passwords are case-sensitive.

    Figure B-6 ODI Studio Master Repository Creation Password

    Description of Figure B-6 follows
    Description of "Figure B-6 ODI Studio Master Repository Creation Password"

  5. In the Password Storage window, select Internal password Storage, and then click Finish. When Master Repository is successfully created, you will see the Oracle Data Integrator Information message.

    Click OK. The ODI Master repository is now created.

    Figure B-7 ODI Studio Master Repository Creation Finish

    Description of Figure B-7 follows
    Description of "Figure B-7 ODI Studio Master Repository Creation Finish"

    Figure B-8 ODI Studio Master Repository Creation Complete

    Description of Figure B-8 follows
    Description of "Figure B-8 ODI Studio Master Repository Creation Complete"

  6. You connect to the ODI Master repository by creating a new ODI Master Login. Open the New Gallery by choosing File > New. In the New Gallery, in the Categories tree, select ODI. From the Items list select Create a New ODI Repository Login, as shown in Figure B-9.

    Figure B-9 ODI Studio New Gallery ODI Repository Login

    Description of Figure B-9 follows
    Description of "Figure B-9 ODI Studio New Gallery ODI Repository Login"

  7. Configure Repository Connections with the parameters from the tables provided below. To enter the JDBC URL, click the button next to JDBC URL field and select jdbc:oracle:thin:@<host>:<port>:<sid> as shown in the screenshot, then edit the URL. Select Master Repository only button.

    Click Test.

    Verify successful connection and click OK.

    Click OK to save the connection.

    Table B-3 Oracle Data Integrator Connection

    Parameter Value

    Login Name

    master_repo

    User

    SUPERVISOR

    Password

    password


    Table B-4 Database Connection (Master Repository)

    Parameter Value

    User

    repo

    Password

    password

    Driver List

    Oracle JDBC Driver

    Driver Name

    oracle.jdbc.OracleDriver

    Url

    jdbc:oracle:thin:@<system_name>:<listener port>:<SID>

    For example:

    jdbc:oracle:thin:@localhost:1521:orcl
    

    Note: Do not copy and paste in the JDBC URL field. This may cause problems with entering a valid URL string. Instead, open the drop-down menu and select the correct driver from the list. Type the correct URL in the URL field.

    Figure B-10 ODI Studio Repository Connection Information

    Description of Figure B-10 follows
    Description of "Figure B-10 ODI Studio Repository Connection Information"

    Figure B-11 ODI Studio Repository Connection Successful

    Description of Figure B-11 follows
    Description of "Figure B-11 ODI Studio Repository Connection Successful"

  8. Click Connect to Repository. Select the newly created repository connection Master Repository from the drop-down list. Click OK. The ODI Topology Manager starts. You are now successfully logged in to the ODI Topology Manager.

    Figure B-12 ODI Studio Connect to Repository

    Description of Figure B-12 follows
    Description of "Figure B-12 ODI Studio Connect to Repository"

    Figure B-13 Oracle Data Integrator Login

    Description of Figure B-13 follows
    Description of "Figure B-13 Oracle Data Integrator Login"

    Figure B-14 Oracle Data Integrator Master Repository Topology

    Description of Figure B-14 follows
    Description of "Figure B-14 Oracle Data Integrator Master Repository Topology"

Creating and Connecting to ODI Work Repository

  1. After you create the Oracle Database schema and user, use ODI Topology Navigator to create the ODI Work repository.

    In ODI, click the Topology Navigator tab and then click Repositories panel. Right-click the Work Repositories node and select New Work Repository.

    The Create Work Repository Wizard opens.

    Figure B-15 ODI Topology Navigator New Work Repository

    Description of Figure B-15 follows
    Description of "Figure B-15 ODI Topology Navigator New Work Repository"

  2. In the screen that follows, enter the parameters shown in Table B-5.

    Click Test Connection to verify a successful connection and click OK.

    Click Next.

    Table B-5 New Work Repository Parameters

    Parameter Value

    Technology

    Oracle

    Driver Name

    oracle.jdbc.driver.OracleDriver

    JDBC Url

    jdbc:oracle:thin:@<system_name>:<listener port>:<SID>

    For example:

    jdbc:oracle:thin:@localhost:1521:orcl

    User

    wrep

    Password

    password


    Figure B-16 ODI Studio Create Work Repository Test Connection

    Description of Figure B-16 follows
    Description of "Figure B-16 ODI Studio Create Work Repository Test Connection"

    Figure B-17 ODI Repository Create Work Repository Successful Connection

    Description of Figure B-17 follows
    Description of "Figure B-17 ODI Repository Create Work Repository Successful Connection"

  3. In the Specify Work Repository properties page, set the following values, as shown in Figure B-18:

    Set Id to: 5.

    Set Name to: WORKREP_KOLKATA_SERVER.

    Enter Password: password.

    In the Work Repository Type list, select Development.

    Click Finish.

    Figure B-18 ODI Studio Create ODI Work Repository Properties

    Description of Figure B-18 follows
    Description of "Figure B-18 ODI Studio Create ODI Work Repository Properties"

    Figure B-19 ODI Studio Create ODI Work Repository Starting ODI Action

    Description of Figure B-19 follows
    Description of "Figure B-19 ODI Studio Create ODI Work Repository Starting ODI Action"

  4. In the Create Work Repository Login window, click Yes.

    Enter the Login name: WORKREP_KOLKATA_SERVER

    Click OK.

    Then, verify that the newly created work repository is now in the work repositories tree view.

    Figure B-20 ODI Studio Create ODI Work Repository Create Login Name

    Description of Figure B-20 follows
    Description of "Figure B-20 ODI Studio Create ODI Work Repository Create Login Name"

    Figure B-21 ODI Studio Create ODI Work Repository Create Login

    Description of Figure B-21 follows
    Description of "Figure B-21 ODI Studio Create ODI Work Repository Create Login"

    Figure B-22 ODI Studio ODI Work Repository Topology

    Description of Figure B-22 follows
    Description of "Figure B-22 ODI Studio ODI Work Repository Topology"

  5. Now you disconnect from the Master repository and connect to the Work repository. Click ODI and select Disconnect "master_repo".

    Figure B-23 ODI Studio Disconnect from Master Repository

    Description of Figure B-23 follows
    Description of "Figure B-23 ODI Studio Disconnect from Master Repository"

  6. Click Connect to Repository.

    From the Login Name drop-down list, select "WORKREP_KOLKATA_SERVER".

    Enter Password: password.

    Click OK.

    Click the Designer tab.

    The ODI login dialog appears as shown in Figure B-25.

    Figure B-24 ODI Studio Connect to Work Repository

    Description of Figure B-24 follows
    Description of "Figure B-24 ODI Studio Connect to Work Repository"

    Figure B-25 ODI Studio Oracle Data Integrator Login

    Description of Figure B-25 follows
    Description of "Figure B-25 ODI Studio Oracle Data Integrator Login"

    You have now successfully created and connected to the ODI Work repository.

  7. If you check Designer tab no Projects and Models are shown in the new work repository.

    Figure B-26 ODI Studio Designer Tab

    Description of Figure B-26 follows
    Description of "Figure B-26 ODI Studio Designer Tab"

Importing the ODI Master Repository

The Master Repository Import and Export procedure allows you to transfer the whole repository, Topology and Security domains included, from one repository to another.

To import a master repository in an existing master repository:

  1. From the Topology Navigator toolbar menu select Import > Master Repository...

  2. Select the Import Mode and the import Folder or Zip File.

  3. Click OK.

  4. The specified file(s) are imported into the current master repository.

    Figure B-27 ODI Studio Import Master Repository

    Description of Figure B-27 follows
    Description of "Figure B-27 ODI Studio Import Master Repository"

    Figure B-28 ODI Studio Import Master Repository Mode and Options

    Description of Figure B-28 follows
    Description of "Figure B-28 ODI Studio Import Master Repository Mode and Options"

  5. Browse Master Repository from the specified location.

    Repository Location:

    "$BRM_OCDM_HOME/odi_repository/brm_ocdm_adapter_master.zip"

    Figure B-29 Import Master Repository

    Description of Figure B-29 follows
    Description of "Figure B-29 Import Master Repository"

    Figure B-30 ODI Studio Import Master Repository Progress

    Description of Figure B-30 follows
    Description of "Figure B-30 ODI Studio Import Master Repository Progress"

  6. Check the Import Report, as shown in Figure B-31, and save this report by clicking Save.

    Figure B-31 Import Repository Report

    Description of Figure B-31 follows
    Description of "Figure B-31 Import Repository Report"

Importing the ODI Work Repository

Importing or exporting a work repository allows you to transfer all work repository objects from one repository to another.

To import a work repository:

  1. From the Designer Navigator toolbar menu select Import > Work Repository...

  2. Select the Import Mode and the import Folder or Zip File.

  3. Click OK.

The specified file(s) are imported into the work repository.

Figure B-32 ODI Studio Import Work Repository

Description of Figure B-32 follows
Description of "Figure B-32 ODI Studio Import Work Repository"

Figure B-33 ODI Studio Import Work Repository from Zip File

Description of Figure B-33 follows
Description of "Figure B-33 ODI Studio Import Work Repository from Zip File"

Browse Work Repository from the specified location:

$BRM_OCDM_HOME/odi_repository/brm_ocdm_adapter_work.zip

Figure B-34 ODI Studio Import Work Repository from Zip File

Description of Figure B-34 follows
Description of "Figure B-34 ODI Studio Import Work Repository from Zip File"

Figure B-35 ODI Studio Open and Import Work Repository Progress

Description of Figure B-35 follows
Description of "Figure B-35 ODI Studio Open and Import Work Repository Progress"

Figure B-36 ODI Studio Import Work Repository Warning

Description of Figure B-36 follows
Description of "Figure B-36 ODI Studio Import Work Repository Warning"

You can check the Import Report, as shown in Figure B-37. To save the report click Save.

Figure B-37 ODI Studio Import Work Repository Report

Description of Figure B-37 follows
Description of "Figure B-37 ODI Studio Import Work Repository Report"

If you use the Designer tab Projects and Models you can view the projects and models that are in the work repository.

Figure B-38 Shows the ODI Designer Navigator with Projects and Models

Description of Figure B-38 follows
Description of "Figure B-38 Shows the ODI Designer Navigator with Projects and Models"

Setting up the ODI Topology

To set up the ODI Topology, do the following:

Setting up the Physical Data Servers

  1. From the Topology Navigator Display the Physical Architecture tab.

  2. Expand the Technologies node.

  3. Expand the Oracle node to display the Physical Data Servers.

    Figure B-39 ODI Studio Physical Data Servers

    Description of Figure B-39 follows
    Description of "Figure B-39 ODI Studio Physical Data Servers"

  4. Double-click the BRM_STG node to display the Data Server: <Name> dialog.

  5. Display the Definition tab and enter the appropriate information, as described in.

    Figure B-40 ODI Studio Data Server Definition Dialog

    Description of Figure B-40 follows
    Description of "Figure B-40 ODI Studio Data Server Definition Dialog"

    Table B-6 ODI Studio Data Server Definition Fields and Values

    Field Description

    Name

    Do not change name of the Data Server.

    Technology

    Do not change the default value Oracle.

    Instance/dblink (Data Server)

    Specify a database instance name.

    Use the Oracle SID name. For example, ORCL

    User

    Specify <User Name>. For example, brm_stg

    This is the warehouse database user name.

    Password

    Specify <Password>.

    This is the default password for the warehouse database user name.

    Array Fetch Size

    Specify a value suitable to your environment

    (Do not change the default value).

    Batch Update Size

    Specify a value suitable to your environment

    (Do not change the default value).


  6. Display the JDBC tab and enter the appropriate information, as described in Table B-7.

    Figure B-41 ODI Studio Data Server JDBC Tab

    Description of Figure B-41 follows
    Description of "Figure B-41 ODI Studio Data Server JDBC Tab"

    Table B-7 ODI Studio Data Server JDBC Tab Fields and Values

    Field Description

    JDBC Driver

    Specify oracle.jdbc.driver.OracleDriver.

    JDBC Url

    Specify in the format jdbc:oracle:thin:@<host>:<port>:<sid>.

    Replace <host>, <port> and <sid> with the values for the database hosting the ODI Repositories.

    For example, 'jdbc:oracle:thin:@localhost:1521:orcl'.


  7. After entering the required values, click Test. This shows the dialog in Figure B-42.

    Figure B-42 ODI Studio Data Server Test Connection

    Description of Figure B-42 follows
    Description of "Figure B-42 ODI Studio Data Server Test Connection"

  8. Click Test to display the Test Connection for: <Connection> dialog.

    Figure B-43 Test Connection Information Dialog

    Description of Figure B-43 follows
    Description of "Figure B-43 Test Connection Information Dialog"

  9. Click the Save icon to save the details.

Setting up the Physical Schema

To set up the Physical Schema for a Data Server:

  1. From the Topology Navigator Display the Physical Architecture tab.

  2. Expand the Technologies node.

  3. Expand the Oracle node to display the Physical Data Servers.

  4. Expand the Data Server node.

    Figure B-44 ODI Studio Physical Architecture Data Server Node

    Description of Figure B-44 follows
    Description of "Figure B-44 ODI Studio Physical Architecture Data Server Node"

  5. Double-click BRM_STG.BRM_STG to display the Physical Schema: <Name> dialog.

  6. Display the Definition tab and enter the appropriate information, as described in Table B-8.

    Figure B-45 ODI Studio Physical Schema Definition Tab

    Description of Figure B-45 follows
    Description of "Figure B-45 ODI Studio Physical Schema Definition Tab"

    Table B-8 ODI Studio Physical Schema Definition Tab Properties and Values

    Field Description

    Schema (Schema)

    Make sure that <Physical Schema> is selected from the drop down list.(For example: BRM_STAGE)

    Schema (Work Schema)

    Make sure that <Physical Schema> is selected from the drop down list.(For example: BRM_STG)


    Note: Do not change the other field values.

  7. Click to save the details.

Note: Follow the same steps (1-7) to configure BRM_SRC and OCDM_SYS Physical Schemas.

Setting up the Logical Data Servers

To set up the Logical Data Servers:

  1. From the Topology Navigator Display the Logical Architecture tab.

  2. Expand the Technologies node.

  3. Expand the Oracle node to display the Logical Data Servers.

    Figure B-46 ODI Studio Logical Architecture for Logical Data Server

    Description of Figure B-46 follows
    Description of "Figure B-46 ODI Studio Logical Architecture for Logical Data Server"

  4. Double-click the BRM_STG_LS node to display the Logical Data Server: <Name> dialog.

  5. Display the Definition tab.

  6. Edit the BRM_STG_LS Logical Data Server and ensure that for the appropriate Context (for example, Global, Development...), the value in the Physical Schemas column is set to BRM_STG_BRM_STG (Physical Schema created in Physical Data Server).

    Figure B-47 ODI Studio Logical Data Server Definition Tab for Logical Schema

    Description of Figure B-47 follows
    Description of "Figure B-47 ODI Studio Logical Data Server Definition Tab for Logical Schema"

  7. Click the Save icon to save the details.

  8. After checking whether the context is set properly, ensure that in the Topology->Physical Architecture tab that the context tab of physical schemas points to the right logical context.

    Figure B-48 ODI Studio Logical Data Server Context Tab

    Description of Figure B-48 follows
    Description of "Figure B-48 ODI Studio Logical Data Server Context Tab"

Note: Follow these steps (1-7) to configure the BRM_SRC_LS and OCDM_SYS_LS Logical Data Servers. When you finish these steps, the installation of ODI is complete.

Setting Up Oracle GoldenGate for BRM Adapter

To set up Oracle GoldenGate for Oracle Communications Data Model, perform the following steps:

Installing Oracle GoldenGate on Target for BRM Adapter

To use BRM Adapter real-time capturing, install and configure Oracle GoldenGate (GG) as follows:

  1. Change directory to the database installation path (For example: /u02/app/oracle/product).

    Figure B-49 Changing Directory to the Oracle Database Installation Path

    Description of Figure B-49 follows
    Description of "Figure B-49 Changing Directory to the Oracle Database Installation Path"

  2. Create a directory named (gg) for installing Oracle GoldenGate under the product folder:

    [oracle@server product]$ mkdir /u02/app/oracle/product/gg
    

    Or manually create the folder (gg) by going directly in the product folder:

    [oracle@server product]$ export GGATE=/u02/app/oracle/product/gg
    [oracle@server product]$ cd $GGATE
    [oracle@server gg]$
    
  3. Copy the downloaded software (for example: V22228-01.zip) into gg folder (for information on downloading Oracle GoldenGate, see "Oracle GoldenGate").

  4. Unzip the software in the folder using following command:

    [oracle@server gg]$ unzip V22228-01.zip
    
  5. After you unzip the file, use the .tar extension file with the tar command to extract Oracle GoldenGate:

    Tar the Oracle GoldenGate .tar file using the following command:

    [oracle@server gg] tar -xf filename.tar
    
  6. Now export the path to GG libraries to LD_LIBRARY_PATH using the command:

    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$GGATE
    
  7. Now start the GG command line utility (ggsci):

    [oracle@server gg]$. /ggsci
    

    This command connects you to the Oracle GoldenGate server. For example:

    Oracle GoldenGate Command Interpreter for Oracle
    Version 11.1.1.0.0 Build 078
    Linux, x86, 32bit (optimized), Oracle 11 on Jul 28 2010 13:22:25
    Copyright (C) 1995, 2010, Oracle and/or its affiliates. All rights reserved
    
  8. Create the necessary working directories for gg:

    GGSCI (server.oracle.com) 1>create subdirs
    GGSCI (server.oracle.com) 2>exit
    [oracle@server gg]$ mkdir $GGATE/diroby
    
  9. After these steps Oracle GoldenGate is installed.

After Oracle GoldenGate is installed you prepare the source and target database for Oracle GoldenGate Replication.

Note: Steps 1 to 9 in "Installing Oracle GoldenGate on Target for BRM Adapter" are common for both the source and target databases. These same steps are shown in the section, "Installing Oracle GoldenGate on Source for BRM Adapter".

Configuring Oracle GoldenGate on Target for BRM Adapter

To set up the Oracle GoldenGate Schema, do the following:

  1. Create ggate schema:

    SQL>sqlplus / as sysdba;
    SQL> create user ggate identified by ggate default tablespace users temporary tablespace temp;
    

    Note: For the Oracle Goldengate schema, a default password (for example "ggate") is provided during the setup phase. You can change this, but then you need to change the default password in the related prm and oby files; for more details see step 4, "Edit ggate default schema and password".

  2. Grant privileges to ggate schema:

    SQL> grant connect, resource, unlimited tablespace to ggate;
    SQL> grant select any dictionary to ggate;
    SQL> grant execute on utl_file to ggate;
    SQL> grant alter any table to ggate;
    SQL> grant create table to ggate;
    SQL> grant select any table, insert any table, update any table, delete any table to ggate;
    SQL>exit;
    
  3. Copy target config file to $GGATE directory:

    The files for the target machine have been generated in:

    $OCDM\utl\adapter\brm\goldengate_param\stg

    These files must be copied on the target machine, to the following location $GGATEE using the same directory structure.

    • copy files contained in goldengate_param\stg\dirprm to $GGATEE\dirprm

    • copy files contained in goldengate_param\stg\diroby to $GGATEE\diroby

  4. Edit the default schema and password:

    The default schema and password are "ggate",

    • edit file $GGATE\diroby\ brm_ogg_stg_cdc_cmd.oby according the environment; use the correct value in the following command:

    DBLOGIN USERID userid, PASSWORD passwd
    
    • Edit the file $GGATE\dirprm\ globals.prm according the environment, change the value in the following commands:

    GGSCHEMA ggate
    CHECKPOINTTABLE ggate.ggschkpt
    
  5. Config manager port:

    The default manager port at the target is 7809, if required, edit the port in the file:

    $GGATEE\dirprm\mgr.prm
    
  6. Edit BRM_SRC and BRM_STG at REPLICAT:

    The default BRM_SRC and BRM_STG schema are "brm_src",and "brm_stg", edit the file $GGATEE\dirprm\repbrm.prm, and change the two schema names according the environment. For example, change the following:

    map brm_src.ACCOUNT_NAMEINFO_T, TARGET brm_stg.ACCOUNT_NAMEINFO_T, KEYCOLS (OBJ_ID0,REC_ID), REPERROR (1403, DISCARD)
    

    to

    map pin5003.ACCOUNT_NAMEINFO_T, TARGET brm_stg_ogg.ACCOUNT_NAMEINFO_T, KEYCOLS (OBJ_ID0,REC_ID), REPERROR (1403, DISCARD)
    
  7. Add the Replicat group:

    Execute the following command on the <target> system to add a delivery groups named repbrm.

    [oracle@server gg]$ $GGATE/./ggsci paramfile $GGATE/diroby/ brm_ogg_stg_cdc_cmd.oby
    

    Note: you can run the batch commands in brm_ogg_stg_cdc_cmd.oby manually to see the result of each single command. For example:

    First login to ggsci and execute the following:

    ./ggsci

    GGSCI (slc00tcw) 1> ADD REPLICAT repbrm, EXTTRAIL ./dirdat/rt, checkpointtable ggate.ggschkpt
    

Installing Oracle GoldenGate on Source for BRM Adapter

To use BRM Adapter real-time capturing, install and configure Oracle GoldenGate (GG) as follows:

  1. Change directory to the database installation path (For example: /u02/app/oracle/product).

    Figure B-50 Changing Directory to the Oracle Database Installation Path

    Description of Figure B-50 follows
    Description of "Figure B-50 Changing Directory to the Oracle Database Installation Path"

  2. Create a directory named (gg) for installing Oracle GoldenGate under the product folder:

    [oracle@server product]$ mkdir /u02/app/oracle/product/gg
    

    Or manually create the folder (gg) by going directly in the product folder:

    [oracle@server product]$ export GGATE=/u02/app/oracle/product/gg
    [oracle@server product]$ cd $GGATE
    [oracle@server gg]$
    
  3. Copy the downloaded software (for example: V22228-01.zip) into gg folder (for information on downloading Oracle GoldenGate, see "Oracle GoldenGate").

  4. Unzip the software in the folder using following command:

    [oracle@server gg]$ unzip V22228-01.zip
    
  5. After you unzip the file, use the .tar extension file with the tar command to extract Oracle GoldenGate:

    Tar the Oracle GoldenGate .tar file using the following command:

    [oracle@server gg] tar -xf filename.tar
    
  6. Now export the path to GG libraries to LD_LIBRARY_PATH using the command:

    export LD_LIBRARY_PATH=$ORACLE_HOME/lib:$GGATE
    
  7. Now start the GG command line utility (ggsci):

    [oracle@server gg]$. /ggsci
    

    This command connects you to the Oracle GoldenGate server. For example:

    Oracle GoldenGate Command Interpreter for Oracle
    Version 11.1.1.0.0 Build 078
    Linux, x86, 32bit (optimized), Oracle 11 on Jul 28 2010 13:22:25
    Copyright (C) 1995, 2010, Oracle and/or its affiliates. All rights reserved
    
  8. Create the necessary working directories for gg:

    GGSCI (server.oracle.com) 1>create subdirs
    GGSCI (server.oracle.com) 2>exit
    [oracle@server gg]$ mkdir $GGATE/diroby
    
  9. After these steps Oracle GoldenGate is installed.

Configuring Oracle GoldenGate on Source System for BRM Adapter

  1. Switch the database to archive log mode as follows:

    [oracle@server dbhome_1]$ sqlplus / as sysdba
    SQL>shutdown immediate
    SQL>startup mount
    SQL>alter database archivelog;
    SQL>alter database open;
    
  2. Enable minimal supplemental logging:

    SQL>alter database add supplemental log data;
    

    Switch log to start supplemental logging:

    SQL> ALTER SYSTEM SWITCH LOGFILE;
    SQL> ALTER SYSTEM SWITCH LOGFILE;
    

    Verify supplemental logging is enabled (with a result of 'YES')

    SQL> SELECT SUPPLEMENTAL_LOG_DATA_MIN FROM V$DATABASE;
    
  3. Turn off recyclebin for the database

    SQL>alter system set recyclebin=off scope=spfile;
    
  4. Create ggate schema:

    SQL> create user ggate identified by ggate default tablespace users temporary tablespace temp;
    

    Note: For the Oracle Goldengate schema, a default password (for example "ggate") is provided during the setup phase. You can change this, but you also need to change the default password in the related prm and oby files.

  5. Grant privileges to ggate schema:

    SQL> grant connect, resource, unlimited tablespace to ggate;
    SQL> grant select any dictionary to ggate;
    SQL> grant select any table to ggate;
    SQL> grant alter any table to ggate;
    SQL> grant flashback any table to ggate;
    SQL> grant execute on dbms_flashback to ggate;
    SQL> grant execute on utl_file to ggate;
    SQL> exit;
    

    To do Trandata, you need to enable supplemental logging on the source system. To enable Supplemental logging, use the command:

    alter database add supplemental log data;
    
  6. Copy source config file to $GGATE directory

    The files for the source machines have been generated in $OCDM \utl\adapter\brm\goldengate_param\src

    These files must be copied on the source machines to the following location $GGATEE using the same directory structure:

    • copy files in goldengate_param\src\dirprm to $GGATEE\dirprm

    • copy files in goldengate_param\src\diroby to $GGATEE\diroby

  7. Config manager port

    The default manager port at source is 7890. As required, edit this port in the file:

    $GGATEE\dirprm\mgr.prm

  8. Config RMTHOST

    Change the RMTHOST and MGRPORT in expbrm.prm files in the $GGATEE\dirprm directory as required for your working environment:

    RMTHOST <Remote Host Name>, MGRPORT <Port>
    

    For example:

    rmthost slc00tcw, mgrport 7809
    
  9. Config BRM_SRC schema at EXTRACT

    The default source schema for the BRM Adapter is BRM_SRC. Change the source schema name through your source system schemas. For example (brm_src ->pin5003)

    Change BRM_SRC schema at $GGATE\dirprm\extbrm.prm.

    For example:

    Table pin5003.ACCOUNT_NAMEINFO_T, KEYCOLS (OBJ_ID0,REC_ID)
    

    Change BRM_SRC schema at $GGATE\dirprm\extpbrm.prm

    For example:

    Table pin5003.ACCOUNT_NAMEINFO_T;
    

    Change BRM_SRC schema at $GGATE\diroby\ brm_ogg_src_cdc_cmd.oby. For example:

    add TRANDATA pin5003.ACCOUNT_NAMEINFO_T COLS(OBJ_ID0,REC_ID), NOKEY
    

    Note:

    1. In the file brm_ogg_src_cdc_cmd.oby, use the following command for all current mapping tables except table ACCOUNT_T:

      ADD TRANDATA <Source Schema Name>.<Table Name> COLS(col1, col2,…), NOKEY
      
    2. If the TRANDATA of each table has been done, use the following command to delete it:

      DELETE TRANDATA <Source Schema Name>.*
      
  10. Configure Change Capture using a Data Pump:

    The goals of this method are to:

    • Configure and add the Extract process that will capture changes.

    • Add the local trail that will store these changes.

    • Configure and add a data pump Extract to read the local trail and create a remote trail on the target.

    • Add the remote trail.

    Execute the following command on the <source> system to define an Extract group named extbrm and to define a data pump Extract named extpbrm to pull data from the local Oracle GoldenGate trail and route these changes to Oracle GoldenGate on the target.

    [oracle@server gg]$ $GGATE/./ggsci paramfile $GGATE/diroby/brm_ogg_src_cdc_cmd.oby
    

    Note: In most of the cases, run the batch commands mentioned in the oby file one by one manually in the Oracle GoldenGate command line util (ggsci) .

Starting Oracle GoldenGate Processes on Source System

To start the primary Extract process and data pump Extract process, run the following command on the source systems.

[oracle@server gg]$ $GGATE/./ggsci paramfile $GGATE/diroby/brm_ogg_src_cdc_start_cmd.oby

Starting Oracle GoldenGate Processes on Target System

To start the Oracle GoldenGate processes on the target system, run the following command on the target system:

[oracle@server gg]$ $GGATE/./ggsci paramfile $GGATE/diroby/brm_ogg_stg_cdc_start_cmd.oby

Oracle GoldenGate Process Checking Command Reference

Table B-9 provides a summary of Oracle GoldenGate process commands. Note: Run these commands from GGSCI.

Table B-9 Oracle GoldenGate Process Commands Summary

Process Area Commands

To Start All Services

Manager: Start Manager

Extract: Start Extract <Extract Group>

Replicate: Start Replicat <Replicat Group>

Extract & Replicat: Start ER *

To Stop All Services

Manager: Stop Manager

Extract: Stop Extract <Extract Group>

Replicate: Stop Replicat <Replicat Group>

Extract & Replicat: Stop ER *

To Check Services Status

All Services: Info All

Manager: Info Mgr

Extract: Info Extract <Extract Group>

Replicate: Info Replicat <Replicat Group>

To View Report

Extract: View Report <Extract Group>

Replicate: View Report <Replicat Group>


Troubleshooting the Installation of the BRM Adapter

To de-install the existing repositories, do the following:

Drop user (Master_Repo_user) cascade;
create user (Master_Repo_user) identified by (pswd) default tablespace users temporary tablespace temp;
grant connect, resource to (Master_Repo_user);
grant execute on dbms_lock to (Master_Repo_user);

This section includes the following topics:

Master and Work Repository Import Errors

Error Message:

Error: /…./…./…./….xml (No such file or directory)

This error could occur when you import repositories using the "Import from a Zip File" option.

Workaround:

To resolve this error "unzip" the Master and Work Repository zip files and start the import again using the "Import from a Folder" option.

Error Recovery: Reimporting Master Repository

To import a master repository (in an existing master repository):

  1. From the Topology Navigator toolbar menu select Import > Master Repository... (as shown in Figure B-51).

    Figure B-51 ODI Studio Import Master Repository

    Description of Figure B-51 follows
    Description of "Figure B-51 ODI Studio Import Master Repository"

  2. Select the Import Mode, the "Import from a Folder" and click OK (Figure B-52).

    Figure B-52 Reimport: Import From a Folder

    Description of Figure B-52 follows
    Description of "Figure B-52 Reimport: Import From a Folder"

    The specified file(s) are imported into the current master repository.

  3. Browse the Master Repository from the specified location:

    Repository Location:"$BRM_OCDM_HOME/odi_repository/brm_ocdm_adapter_master"

    Figure B-53 ODI Studio Open and Import Master Repository

    Description of Figure B-53 follows
    Description of "Figure B-53 ODI Studio Open and Import Master Repository"

    Figure B-54 ODI Studio Import Master Repository Progress

    Description of Figure B-54 follows
    Description of "Figure B-54 ODI Studio Import Master Repository Progress"

  4. You can check the Import Report and you can save this report by clicking Save.

    Figure B-55 Reimport: Import Report Listing

    Description of Figure B-55 follows
    Description of "Figure B-55 Reimport: Import Report Listing"

Error Recovery: Reimporting Work Repository

To import a work repository:

  1. From the Designer Navigator toolbar menu select Import > Work Repository... (as shown in Figure B-56).

    Figure B-56 ODI Studio Import Work Repository

    Description of Figure B-56 follows
    Description of "Figure B-56 ODI Studio Import Work Repository"

  2. Select the Import Mode: Import From a Folder or Import From a Zip file, and click OK.

    Figure B-57 ODI Studio Import Work Repository from Zip File

    Description of Figure B-57 follows
    Description of "Figure B-57 ODI Studio Import Work Repository from Zip File"

    The specified file(s) are imported into the work repository.

  3. Browse the Work Repository from the specified location.

    Repository Location:

    $BRM_OCDM_HOME/odi_repository/brm_ocdm_adapter_work.zip

    Figure B-58 ODI Studio Import Work Repository from Zip File

    Description of Figure B-58 follows
    Description of "Figure B-58 ODI Studio Import Work Repository from Zip File"

    Figure B-59 ODI Studio Open and Import Work Repository Progress

    Description of Figure B-59 follows
    Description of "Figure B-59 ODI Studio Open and Import Work Repository Progress"

    Figure B-60 Reimport: Work Repository Warning Message Dialog

    Description of Figure B-60 follows
    Description of "Figure B-60 Reimport: Work Repository Warning Message Dialog"

    You can check the Import Report and to save report, click Save.

    Figure B-61 Reimport: Work Repository Report

    Description of Figure B-61 follows
    Description of "Figure B-61 Reimport: Work Repository Report"

View the Designer tab Projects and Models areas to see the contents of the work repository.

Figure B-62 Shows the ODI Designer Navigator with Projects and Models

Description of Figure B-62 follows
Description of "Figure B-62 Shows the ODI Designer Navigator with Projects and Models"

Error ODI-26005: Importing an Object from Another Repository

Error Message:

ODI-26005: You are importing an object from another repository with the same identifier...

Possible cause: An object in the import file has an identifier which already exists in the repository.

Figure B-63 Troubleshooting BRM Adapter Problems

Description of Figure B-63 follows
Description of "Figure B-63 Troubleshooting BRM Adapter Problems"

Workaround:

Consider manually changing the "com.sunopsis.dwg.dwgobj.SnpImportRep" object section of the import XML file to use a unique identifier.

To resolve this error (ODI-26005), make changes depending on the repository:

Resolve ODI Error on Master Repository

Master Repository: To change the ID of ODI master repository, you can "Renumber.." the repository ID with these steps:

  1. From the Topology Navigator, expand Repositories tab.

  2. Right click Master Repository and click "Renumber", as shown in Figure B-64.

    Figure B-64 Renumber Master Repository

    Description of Figure B-64 follows
    Description of "Figure B-64 Renumber Master Repository"

  3. This opens the dialog, "Renumbering the repository - Step 1". Click Yes to renumber the repository ID, as shown in Figure B-65.

    Figure B-65 Renumber Repository Step 1

    Description of Figure B-65 follows
    Description of "Figure B-65 Renumber Repository Step 1"

  4. Provide the New ID for the Master repository and click OK. This displays the Renumbering the repository - Step 2 dialog, as shown in Figure B-66.

    Figure B-66 Renumber Repository Step 2

    Description of Figure B-66 follows
    Description of "Figure B-66 Renumber Repository Step 2"

  5. To check the changed ID, double click master repository and open version tab and check if the new ID is assigned, as shown in Figure B-67.

    Figure B-67 Check Repository ID

    Description of Figure B-67 follows
    Description of "Figure B-67 Check Repository ID"

Resolve ODI Error on Work Repository

To change the ID of ODI work repository, you can "Renumber.." the repository ID as follows:

  1. From the Topology Navigator, expand Repositories tab.

  2. Expand the "Work Repositories", Right click Work Repository and then click "Renumber".

    Figure B-68 Renumber Work Repository

    Description of Figure B-68 follows
    Description of "Figure B-68 Renumber Work Repository"

  3. This opens the dialog, "Renumbering the repository - Step 1". Click Yes to renumber the repository ID.

    Figure B-69 Renumber Work Repository Step 1

    Description of Figure B-69 follows
    Description of "Figure B-69 Renumber Work Repository Step 1"

  4. Click OK in the Renumbering the repository - Step 2 dialog.

    Figure B-70 Renumber Work Repository Step 2

    Description of Figure B-70 follows
    Description of "Figure B-70 Renumber Work Repository Step 2"

  5. Provide the New ID for the Work repository and click OK.

    Figure B-71 Renumber Work Repository Step 3

    Description of Figure B-71 follows
    Description of "Figure B-71 Renumber Work Repository Step 3"

  6. Click Yes to confirm the change.

    Figure B-72 Verify the Renumber Operation

    Description of Figure B-72 follows
    Description of "Figure B-72 Verify the Renumber Operation"

  7. To check the changed ID, double click work repository and open version tab and check that the new ID is assigned.

    Figure B-73 Verify the Changed Repository ID

    Description of Figure B-73 follows
    Description of "Figure B-73 Verify the Changed Repository ID"

Troubleshooting Error: An internal error occurred while opening the diagram...

The following error may happen and is related to an issue with ODI version 11.1.1.5.0:

ERROR: An internal error occurred while opening the diagram

Workaround:

From ODI Studio, open the corrupted Integration Interface, go to the "Version" tab, and get the internal ID. Connect to the database that hosts the ODI Work Repository tables, run the following SQL commands, and apply the changes:

delete from SNP_TXT
where I_TXT in (
select I_TXT_XMI_DATA
from SNP_DIAGRAM
where I_POP = <your internal ID>);
delete from SNP_DIAGRAM
where I_POP = <your internal ID>;
commit;

When you open the Integration Interface the next time, it creates a new Mapping and Flow map, and hence the issue should be resolved.