Installation Guide for Oracle Self-Service E-Billing > Migrating to Oracle Self-Service E-Billing Version 6.0.4 > Process of Migrating Oracle Self-Service E-Billing 6.0 to 6.0.1 >
Migrating to Oracle Database 11g
If you are migrating Oracle Self-Service E-Billing from Oracle Database 10g to Oracle Database 11g , you must follow these procedures. These steps are for both UNIX and Windows environments. CAUTION: This procedure is not required if your Oracle Self-Service E-Billing installation is on Oracle Database 10g .
This task is a step in Process of Migrating Oracle Self-Service E-Billing 6.0 to 6.0.1. To migrate Oracle Self-Service E-Billing from Oracle Database 10g to Oracle Database 11g
- On UNIX, log in as the ORACLE user for migration activity. Export your existing OLAP and OLTP 6.0 databases from Oracle Database 10
g using the following commands:
exp system/manager@olap_tnsname file=olap_export.dmp FULL=Y log=olap_export.log
exp system/manager@oltp_tnsname file=oltp_export.dmp FULL=Y log=oltp_export.log
- Install Oracle Database 11
g .
- Create a new Oracle Database 11
g database instance, tablespace, and schema for OLAP.
- Verify that the following values in the
edxadmin_unix.properties file, found in the EDX_HOME /db/ebilling/oracle directory ( or the EDX_HOME \db\ebilling\oracle directory on Windows) are correct for the current installation. In the path, EDX_HOME is the location where Oracle Self-Service E-Billing is installed:
- ORACLE_BASE and ORACLE_HOME locations
- OLTP and OLAP database SID, user name, and password
- SYSDBA password and tnsnames for OLTP and OLAP
- Database file locations
- Redo file locations
- Trace file location
- Create the Oracle Self-Service E-Billing database. Change directory to the location of the Oracle Database installation files in your software installation:
EDX_HOME /db/ebilling/oracle (or EDX_HOME \db\ebilling\oracle for Windows). If you have not configured the Apache Ant environment, do so now:
export ANT_HOME=/opt/apache-ant-1.6.5
export PATH=$ANT_HOME/bin:$PATH
If you are on Oracle WebLogic, run this command, where JDK150_11 is your JDK version:
export JAVA_HOME= $WEBLOGIC_HOME/JDK150_11
If you are on IBM WebSphere, run this command:
export $JAVA_HOME=$WS_HOME/java for IBM WebSphere)
Also, for all application servers, run this command:
export PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH
set ANT_HOME=C:\apache-ant-1.6.5
set PATH=%PATH%;%ANT_HOME%\bin
set JAVA_HOME= %WEBLOGIC_HOME%\JDK150_11
where JDK150_11 is your JDK version.
- Run the build script by typing ant.
By default, Ant picks up the build.xml file in the current directory.
- Select Option 1, Install the OLAP database. Complete Options 1-5 on the OLAP menu to create the OLAP database instance, tablespaces, and schema. Review all log files for possible errors even if a Build Successful message appears. When done, choose Q (Quit).
- Create a new Oracle Database 11
g database instance, tablespace, and user for OLTP (eStatement):
- Verify that the following values are correct in the edxadmin.properties file, found in the
EDX_HOME /db/eStatement/oracle directory (or the EDX_HOME \db\eStatement\oracle directory for Windows):
- ORACLE_BASE and ORACLE_HOME
- OLTP database SID, user name, and password
- SYSTEM password for OLTP
- Database file locations
- Redo file locations
- Trace file location
- Go to the directory location of the eStatement Oracle Database installation files in your software installation:
- UNIX. EDX_HOME
/db/eStatement/oracle
- Windows.
EDX_HOME \db\eStatement\oracle
- Run the following commands to configure the Apache Ant environment:
export ANT_HOME=/opt/apache-ant-1.6.5
If you are on Oracle WebLogic, run this command, where JDK150_11 is your JDK version:
export JAVA_HOME=$WEBLOGIC_HOME/JDK150_11
If you are on IBM WebSphere, run this command:
export $JAVA_HOME=$WS_HOME/java
Also, for all application servers, run this command:
export PATH=$JAVA_HOME/bin:$ANT_HOME/bin:$PATH
set ANT_HOME=C:\apache-ant-1.6.5
set JAVA_HOME=%WEBLOGIC_HOME%\JDK150_11
set PATH=%PATH%;%JAVA_HOME%\bin;%ANT_HOME%\bin
where JDK150_11 is your JDK version.
- Run the build script by typing ant.
By default, Ant picks up the build.xml file in the current directory.
- From the top level Main Menu, select Option 1, Install eStatement Database to start.
The Install eStatement Database menu appears.
- Complete Options 1-4 on the Install eStatement Database Menu to create the OLTP instance, tablespace, and user. Review all log files for possible errors even if a Build Successful message appears. When done, choose Q (Quit).
- Create the database link, TAM_LINK, in the OLTP schema.
- Log on to the OLTP instance as SYSDBA, and execute the following command, where OLTP_Schema is the name of the OLTP schema:
SQL> GRANT CREATE DATABASE LINK TO OLTP_Schema;
- Go to the
EDX_HOME /db/ebilling/oracle directory (or the EDX_HOME \db\ebilling\oracle directory on Windows).
- Log on to the OLTP schema using SQL*Plus (not as SYSDBA).
- Execute the following SQL script, providing the three input parameters:
SQL> DROP DATABASE LINK TAM_LINK;
SQL>@ crt_db_link.sql OLAP_User OLAP_Password OLAP_TNS_Name
SQL>exit
where:
- OLAP_User
is the name of the OLAP schema user.
- OLAP_Password is the OLAP schema user's password.
- OLAP_TNS_Name is the name of the OLAP instance.
- Import Oracle Database 10
g database into the new database:
imp system/manager@oltp_sid fromuser=oltp touser=oltp file=oltp_export.dmp log=oltp_import.log
imp system/manager@olap_sid fromuser=olap touser=olap file=olap_export.dmp log=oltp_import.log
NOTE: If the importing and exporting schema names are different, you might receive a message indicating that the user does not exist for snapshot logs after the importing some objects. You can ignore this message.
|