Вы находитесь на странице: 1из 197

Oracle

E1 – VCP Integration AIA 11.4

Gerry Dewil

Erick Evans

May 2014
Contents
Introduction .............................................................................................................................................. 3

Initial downloads (revised later in the document).................................................................................... 3

RDBMS Upgrade – Database Configuration Assistant .............................................................................. 6

Weblogic 10.3.6 ...................................................................................................................................... 21

Repository Creation Utility...................................................................................................................... 25

Service Oriented Architecture 11.1.1.7 .................................................................................................. 32

Create SOA domain by running config.sh ............................................................................................... 37

Start the SOA domain ............................................................................................................................. 45

Start the Node Manager ......................................................................................................................... 46

Install AIA Foundation Pack .................................................................................................................... 48

Download the PIP.................................................................................................................................... 59

Run RCU to create the ODI work repository schema.............................................................................. 63

Oracle Data Integrator 11.1.1.6 .............................................................................................................. 79

Configuring and Deploying Value Chain Planning Base Pack Integration ............................................... 93

Extend SOA Domain ............................................................................................................................ 94

Create credentials for the ODI Supervisor user ................................................................................ 114

Create the common directory that JDE will write to ........................................................................ 116

Run the configuration utiltity ............................................................................................................ 117

Configuring using the Response File ................................................................................................. 131

Deploying the VCP Base Pack Integration ......................................................................................... 132

Launching the VCP Base Pack Integration Agent .............................................................................. 139

So we are a k i the PIP i stallatio guide ut are skippi g se tio 1. . E a li g AIA Error
Ha dli g Optio al e ause of a ti e o strai t. .......................................................................... 156

Regenerate the ODI Scenario ............................................................................................................ 161

Configure External Database ............................................................................................................ 163


Generate Encrypted Password.......................................................................................................... 164

encode.sh – E1BASE password....................................................................................................... 164

Create <base>.properties file............................................................................................................ 165

Setup Base.xml .................................................................................................................................. 166

Create Database Link VCP to ODI WORKREP .................................................................................... 168

Deploy the Test Client Web Service – to generate Encrypted SUNOPSIS Password. ....................... 169

Create the Web Service Properties File : msc_e1aps_odi-config.properties ................................... 179

Set Profiles ........................................................................................................................................ 180

Create JDE Instance Partition................................................................................................................ 181

Enable the Instances Descriptive Flexfield (DFF) .................................................................................. 181

Create the JDE Legacy Instance Definition ........................................................................................... 182

Update the /etc/hosts file on the middleware server .......................................................................... 184

Create the below view in the external database .................................................................................. 193

Introduction
This document provides the reader with an overview of the E1-VCP installation requirements for
release AIA 11.4. The document is a continuation of note 1363763.1 in which we installed AIA
3.1. We mention ‘continuation’ because we used the existing standalone database that was
used for the AIA 3.1 integration but we created a new instance. All other required components
were newly installed.

For AIA 3.1, we had the following servers:

E1 (hosted) env -> Middleware server (named ‘Wolfram’) -> VCP server (named Ptolemy)

For AIA 11.4, we have the following servers:

E1 (hosted) env -> Middleware server (named ‘Wolfram’) -> VCP server (named Hawking)

Initial downloads (revised later in the document)


From edelivery, select the following:
Within the Media Pack, select V29856-01 for Weblogic Server:

And V37277-01: VCP Integration Base Pack – JDE 9.1 patches

And V29762-01 for ODI 11.1.1.6

But for SOA, we only see the 11.1.1.7 download. Checked the certification matrix and this is a certified
combination:
So downloaded V37380-01 : SOA Suite 11.1.1.7

Downloading RCU: From OTN - Repository Creation Utility 11.1.1.7.0


http://download.oracle.com/otn/linux/middleware/11g/111170/ofm_rcu_linux_11.1.1.7.0_64_disk1_1
of1.zip
Step 1. Creating a new user orahaw

Password = orahaw

RDBMS Upgrade – Database Configuration Assistant


Started looking into downloading a new 11.2.0.3 database (patch 10404530) but that would be a huge
do load. “o i stead, e ll e usi g the e isti g data ase a d create a new instance using DBCA
Back to DBCA now

But we had to uncheck Enterprise Manager in order to proceed


Pass ord is a ager
hawsoa_database_summary.html
Weblogic 10.3.6
We are now going to install Weblogic 10.3.6 and create /u01/haw (similar to /u01/vcp)
But e re a eli g e ause it as for i g us to use the JDK e alread ha e. This is e ause e
downloaded the generic .jar.
When downloading the 32 bit from OTN, it comes with its own JDK. The wls1036_linux32.bin contains a
JDK.

From OTN / WLS previous releases. When hovering over the x86 file, we see that it contains a .bin

Downloaded and unpacked:


Repository Creation Utility
Next, we need to download RCU. From OTN, Middleware / SOA Suite / Downloads.

Under SOA 11.1.1.7, there is a component called RCU


Username / password SOA
Service Oriented Architecture 11.1.1.7
From OTN, download SOA 11.1.1.7

Need to run the runinstaller but need to define the jre which is
/u01/haw/122/orahaw/middleware/jdk160_29/jre
Create SOA domain by running config.sh

Generate a domain configured automatically to support the following products


Include:
SOA Suite – REQUIRED.
OEM – RECOMMENDED - useful for ODI monitoring
BAM
Password is soa_haw_admin

Note: If installing as Production, then Test Client Web Service will NOT be automatically installed. It is
required to Generate Encrypted Passwords later in the Installation. Development Mode auto-installs the
Test Client Web Service. If Production is chosen, then must deploy the Test Client manually into the SOA
Admin Server domain.
Password is SOA

But the connection failed:

Note: the default schema was DEV_ORABAM, DEV_ etc. This needs to be changed to HAW_

So select each line and fill out the schema owner


Skip clusters
Start the SOA domain

Check that the ser er is ru i g usi g etstat


Start the Node Manager
Start SOA Admin Server
Start SOA Admin Server: SoaAdminServer
Login to the SOA Admin Server: soa_haw_admin/soa_haw_admin

Port: 7051
URL: http://wolfram.us.oracle.com:7071/console

Start the SOA Managed Server: soa_server1


Edit Node Manager Properties files under
/u01/haw/122/orahaw/middleware/wlserver_10.3/common/nodemanager

Make sure ListenAddress=localhost


And that StartScriptEnabled=true

Make sure to start Deployments / soa_infra


Install AIA Foundation Pack
AIA Home Path : u01/haw/122/orahaw/middleware/aia11g_fp
Java Home: /u01/haw/122/orahaw/middleware/jrockit_160_29_D1.2.0-10/
DB Password: AIAHAW
Used for those Schema Names created by the AIA tablespaces
Admin User: is the SYS user with DBA privileges
Admin Password: manager

To test the above connection:

sqlplus system/manager@hawsoa

SQL*Plus: Release 11.2.0.1.0 Production on Thu May 1 21:26:49 2014


Copyright (c) 1982, 2009, Oracle. All rights reserved.

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select instance_name from v$instance;

INSTANCE_NAME
----------------
hawsoa

SQL> exit
Password = SOA (this was defined during RCU when we created the SOA schema)
We did not use OER
Response file saved under /home/orahaw/aiafp_response_file
We can access the console at http://wolfram.us.oracle.com:8011/AIA as soa_haw_admin
Download the PIP

From the above file, E40086-01.pdf is the implementation guide for the Prebuilt Integration.
It contains a section on VCP. (see screenshot below the PIP install)
Run RCU to create the ODI work repository schema
Ne t is to ru ‘CU to reate the ODI ork repositor s he a. But efore e do so, let s su arize the
connection details as they will be needed while creating the ODI schema

Field Detailed Description Description Our Value


Admin Host This is where the admin server resides. This can be The SOA Admin wolfram.us.oracle.com
Name a remote server or the same machine where the Host Name is
installer is launched. Example:
server1.company.com.
Admin Port This is the port number on which the Weblogic The SOA Admin Port 7071
Admin server is started. To find this value contact is
the WebLogic administrator. Example: 7001.
Domain Name This is WebLogic server domain corresponding to The SOA Domain soa_haw_domain
the Admin Server. Name is
Admin User This value is the WebLogic admin username. To The SOA Admin soa_haw_admin
find this value contact your WebLogic Server User is
administrator.
Admin Password This value is the WebLogic admin password. To The SOA Admin soa_haw_admin
find this value contact your WebLogic Server Password is
administrator.
Managed Server After you enter the Admin Host Name, Admin Port The SOA Managed soa_server1
and Admin User, this field populates with Server is
managed servers for the domain. Select the
managed server from the list. If you are deploying
the PIP to a SOA cluster, you should select the
cluster name in this field.
Managed Server This field is automatically updated after you select The SOA Managed 8011
Port the managed server. If you have configured a SOA Server Port is
Cluster, the SOA Cluster port appears in the list.
JD Edwards The location where files from ODI/APS into JD JD Edwards /u01/haw/122/orahaw/com
EnterpriseOne Edwards are placed. This location can be on the EnterpriseOne mon/E1_input_DS
Inbound Path same machine or on a shared folder on a remote Inbound Path is
machine.
JD Edwards The location where files from JDE into ODI/APS are JD Edwards /u01/haw/122/orahaw/com
EnterpriseOne placed. This location can be on the same machine EnterpriseOne mon/E1_output_DS
Outbound Path or on a shared folder on a remote machine. Outbound Path is
Demantra The location where files from APS into Demantra Demantra Inbound /u01/haw/122/orahaw/com
Inbound Path are placed. This location can be on the same Path is mon/DEM_input_DS
machine or on a shared folder on a remote
machine.
Demantra The location where files from Demantra to APS are Demantra /u01/haw/common/DEM_out
Outbound Path placed. This location can be on the same machine Outbound Path is put_DS
or on a shared folder on a remote machine.
APS Database This value is typically the machine name. To APS Database Host hawking.us.oracle.com
Host determine this value, contact the database is
administrator. Example: server1.oracle.com
APS Outbound The location where files from APS into ODI are APS Outbound Path /haw/122/orahaw/common/
Path placed. This location can be on the same machine is APS_output_DS
or on a shared folder on a remote machine. The
location must be the same as the machine where
the APS database is hosted.
Path to ODI Provide the path to the ODI HOME. To find this Path to Oracle Data /u01/haw/122/orahaw/middl
value, contact your administrator. Example: Integrator is eware/Oracle_ODI1/oracledi/
D:\Oracle\Middleware\Oracle_ODI1\oracledi\age
nt http://wolfram.us.oracle.com
:7071/oraclediagent/
Path to Exported Enter the path to directory to export Domain Path for Exported /u01/ haw/122/orahaw
DVM Value Mappings (DVM). DVM is /middleware/aia11g_fp/servi
ces/core/
BulkDataProcess/HAWJDE/HA
W/ODI/Oracle/V1/DVM_XML
S
ODI User To find this value, contact your administrator. ODI User is SUPERVISOR
Example: SUPERVISOR.
ODI Password To find this value, contact your administrator. ODI Password is SUNOPSIS
Example: SUNOPSIS
ODI Master To find this value, contact your database ODI Master wolfram.us.oracle.com
Database Host administrator. Example: Database Host is
sdc600089seems.compay.com
ODI Master To find this value, contact your database ODI Master 1523
Database Port administrator. Example: 1521 Database Port is
ODI Master To find this value, contact your database ODI Master HAW_ODI_REPO
Database administrator. Example: master. This field is also Database Username
Username known as the Master Repository Schema Name. is
ODI Master To find this value, contact your database ODI Master hawsoa
Database administrator. Example: welcome1 Database Password
Password is
ODI Master To find this value, contact your database ODI Master .us.oracle.com
Database SID administrator. Example: Demantra Database SID is
APS Database To determine this value, contact the database APS Database Port is 1521
Port administrator. Example:1521
APS Database This parameter must be set to: msc APS Database msc (or APPS)
Username Username is
APS Database To determine this value, contact the database APS Database msc (or APPS)
Password administrator. Password is
APS Database To determine this value, contact the database APS Database SID is HAW
SID administrator.
APS Inbound The location where files from ODI into APS are APS Inbound Path is /u01/vcp/common/APS_input
Path placed. This location can be on the same machine _DS
or on a shared folder on a remote machine.
ODI Work Enter the name you give to the ODI Work ODI Work WORKREPHAW
Repository Repository for PIP Artifacts. Example: WORK(case Repository Name is
Name sensitive)
ODI Work To find this value, contact your database ODI Work 002
Repository ID administrator. Example: 300 Repository ID is
ODI Work To find this value, contact your database ODI Work wolfram.us.oracle.com
Repository administrator. Example: localhost Repository
Database Host Database Host is
ODI Work To find this value, contact your database ODI Work 1523
Repository administrator. Example: 1521 Repository
Database Port Database Port is
ODI Work To find this value, contact your database ODI Work HAW_ODI_REPO
Repository administrator. Example: master. This field is also Repository
Database known as the Master Repository Schema Name. Database Username
Username is
ODI Work To find this value, contact your database ODI Work ODIHAW
Repository administrator. Example: welcome1 Repository
Database Database Password
Password is
ODI Work To find this value, contact your database ODI Work hawsoa.us.oracle.com
Repository administrator. Example: XE or service name Repository
Database SID Database SID is

run ./rcu to create ODI work repository schema

cd to /u02/AIA11.4/RCU/rcuHome/bin
Run the rcu installer
./rcu
Hostname: wolfram.us.oracle.com
Port: 1523
Service Name (SID): hawsoa.us.oracle.com
Username: SYS
Password: manager
Role: SYSDBA
Pick the ODI – Oracle Data Integrator - Repository
Select an Existing Prefix: VCP
- We created this Prefix when we created the SOA Suite Schema objects earlier
- We ll use the sa e for our ODI “ he a related to our Ora le Apps VCP I sta e

Defaults the Schema Owner = HAW_ODI_REPO


This installs BOTH the Master Repository and Working Repository to the same schema
If you want to separate those, do not use this RCU,
Instead, Create the Schemas using the ODI Studio
Enter the Schema Passwords
Schema (User) Name: HAW_ODI_REPO
Password: ODIHAW
Master Repository ID: Defaults - 002
Supervisor Password : SUNOPSIS
Work Repository Type: Defaults - D – Development allows management of design time objects AND
runtime.
Work Repository ID : Defaults - 002
Work Repository Name: Defaults – WORKREPHAW
Work Repository Password: SUNOPSIS
The SUNOPSIS password will need encrypted and both the encrypted password, and the WORKREP
name will need entered into the msc_e1aps_odi-config.properties file that is manually created later in
the implementation when deploying the web service (*.ear file)
Oracle Data Integrator 11.1.1.6

[orahaw@wolfram bin]$ cd /u02/AIA11.4/ODI/


[orahaw@wolfram ODI]$ ll
total 2555528
drwxrwxrwx 5 orahaw orahaw 4096 Dec 20 2011 Disk1
drwxrwxrwx 4 orahaw orahaw 4096 Dec 20 2011 Disk2
-rwxrwxrwx 1 orahaw orahaw 20863 Dec 19 2011 readme.htm
-rwxrwxrwx 1 orahaw orahaw 2067983525 Apr 28 16:33 V29762-01_1of2.zip
-rwxrwxrwx 1 orahaw orahaw 546273874 Apr 28 16:22 V29762-01_2of2.zip
[orahaw@wolfram ODI]$ cd Disk1
[orahaw@wolfram Disk1]$ ls
doc install runInstaller setup.exe stage
[orahaw@wolfram Disk1]$ ./runInstaller -jreLoc /u01/haw/122/orahaw/middleware/jdk160_29/
Starting Oracle Universal Installer...
Select Installation Type
NOTE: For Customers that bought only the JDE-VCP Integration, they cannot install the entire ODI
Standalone Installation, and are only authorized to install the Runtime. If you require or want the entire
“ta dalo e, ust pur hase it s li e se.
We installed the Full Standalone Installation for our environment. Please note that license must be
purchased separately.
Select the appropriate Installations to install into the environment.
NOTE: B ha i g sele ted “ta dalo e I stallatio it default to reate a “ta dalo e Age t as ell. We
created the standalone agent as odi_vcp_agent. If creating a Standalone Agent, it requires its own
separate port which we defined as 8041. It ust also e a uall started usi g the age t.sh start
s ript as age t_odi_ p_age t.sh
BUT, THAT DID NOT APPEAR TO WORK FOR US.
“o, e re reated a Ne Age t as ora leDIAge t a d a Logi al Age t i ODI, a d ge erated a te plate
and will RE-Extend our SOA Domain
Database Type: Oracle Database
Database Connect String: wolfram.us.oracle.com:1523:hawsoa.us.oracle.com
Database User Name: HAW_ODI_REPO
Database Password: ODIHAW
ODI Username: SUPERVISOR
ODI Password: SUNOPSIS
Configuring and Deploying Value Chain Planning Base Pack Integration

We need to follow the steps in


http://docs.oracle.com/cd/E50268_01/doc.115/e40086/vcptojdee1.htm#BGBBHAGC

We can now run the client


Extend SOA Domain
There are two ways to create an ODI agent:
1. Through config.sh (as below screenshot 1)
2. Within ODI / Topology (see p. 139 of previous install guide OR see below screenshot 2)
THE“E A‘E EXAMPLE“ ONLY … ot a tual alues ei g sho :

Screenshot 1 Screenshot 2
We decide to use ODI. So we closed out the config.sh and run odi.sh instead.

You can either define the template by right clicking or selecting on top of the screen
Now exit ODI and run ./config.sh
Create credentials for the ODI Supervisor user

Now we need to create credentials for the ODI SUPERVISOR user go to


/u01/haw/122/orahaw/middleware/Oracle_ODI1/common/bin

To create the credentials,


- The commands are run on separate lines after the previous command is completed.
- Run each command separately

1. Start the weblogic scripting utility:

./wlst.sh
2. Connect : connect('soa_haw_admin','soa_haw_admin','t3://wolfram.us.oracle.com:7071')
3. Create the Credentials:

createCred(map="oracle.odi.credmap",key="SUPERVISOR",user="SUPERVISOR",password="SUNOPSIS",des
c="Key for Supervisor")
4. Disconnect:

disconnect()
orahaw@wolfram common]$ cd bin
[orahaw@wolfram bin]$ ls
config.cmd pack.cmd unpack.cmd was_config.cmd wsadmin.cmd
config.sh pack.sh unpack.sh was_config.sh wsadmin.sh
generate_agent_wls_template.cmd setHomeDirs.cmd updateCredMapInEar.cmd wlst.cmd
generate_agent_wls_template.sh setHomeDirs.sh updateCredMapInEar.sh wlst.sh
[orahaw@wolfram bin]$ pwd
/u01/haw/122/orahaw/middleware/Oracle_ODI1/common/bin
[orahaw@wolfram bin]$ ./wlst.sh

CLASSPATH=/u01/haw/122/orahaw/middleware/patch_wls1036/profiles/default/sys_manifest_classpat
h/weblogic_patch.jar:/u01/haw/122/orahaw/middleware/patch_ocp371/profiles/default/sys_manifest
_classpath/weblogic_patch.jar:/u01/haw/122/orahaw/middleware/jrockit_160_29_D1.2.0-
10/lib/tools.jar:/u01/haw/122/orahaw/middleware/wlserver_10.3/server/lib/weblogic_sp.jar:/u01/haw
/122/orahaw/middleware/wlserver_10.3/server/lib/weblogic.jar:/u01/haw/122/orahaw/middleware/m
odules/features/weblogic.server.modules_10.3.6.0.jar:/u01/haw/122/orahaw/middleware/wlserver_10
.3/server/lib/webservices.jar:/u01/haw/122/orahaw/middleware/modules/org.apache.ant_1.7.1/lib/an
t-all.jar:/u01/haw/122/orahaw/middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-
contrib.jar::/u01/haw/122/orahaw/middleware/Oracle_ODI1/common/wlst/resources/igfwlsthelp.jar:/
u01/haw/122/orahaw/middleware/Oracle_ODI1/common/wlst/resources/jps-
wlst.jar:/u01/haw/122/orahaw/middleware/Oracle_ODI1/common/wlst/resources/oamap_help.jar:/u0
1/haw/122/orahaw/middleware/Oracle_ODI1/common/wlst/resources/oamAuthnProvider.jar:/u01/ha
w/122/orahaw/middleware/Oracle_ODI1/common/wlst/resources/ossoiap_help.jar:/u01/haw/122/ora
haw/middleware/Oracle_ODI1/common/wlst/resources/ossoiap.jar:/u01/haw/122/orahaw/middlewar
e/Oracle_ODI1/common/wlst/resources/ovdwlsthelp.jar:/u01/haw/122/orahaw/middleware/Oracle_O
DI1/common/wlst/resources/sslconfigwlst.jar:/u01/haw/122/orahaw/middleware/oracle_common/mo
dules/oracle.jrf_11.1.1/jrf-
wlstman.jar:/u01/haw/122/orahaw/middleware/oracle_common/common/wlst/lib/adfscripting.jar:/u0
1/haw/122/orahaw/middleware/oracle_common/common/wlst/lib/adf-share-mbeans-
wlst.jar:/u01/haw/122/orahaw/middleware/oracle_common/common/wlst/lib/mdswlst.jar:/u01/haw/
122/orahaw/middleware/oracle_common/common/wlst/resources/auditwlst.jar:/u01/haw/122/oraha
w/middleware/oracle_common/common/wlst/resources/igfwlsthelp.jar:/u01/haw/122/orahaw/middle
ware/oracle_common/common/wlst/resources/jps-
wlst.jar:/u01/haw/122/orahaw/middleware/oracle_common/common/wlst/resources/jps-wls-
trustprovider.jar:/u01/haw/122/orahaw/middleware/oracle_common/common/wlst/resources/jrf-
wlst.jar:/u01/haw/122/orahaw/middleware/oracle_common/common/wlst/resources/oamap_help.jar:
/u01/haw/122/orahaw/middleware/oracle_common/common/wlst/resources/oamAuthnProvider.jar:/
u01/haw/122/orahaw/middleware/oracle_common/common/wlst/resources/ossoiap_help.jar:/u01/ha
w/122/orahaw/middleware/oracle_common/common/wlst/resources/ossoiap.jar:/u01/haw/122/oraha
w/middleware/oracle_common/common/wlst/resources/ovdwlsthelp.jar:/u01/haw/122/orahaw/middl
eware/oracle_common/common/wlst/resources/sslconfigwlst.jar:/u01/haw/122/orahaw/middleware/
oracle_common/common/wlst/resources/wsm-
wlst.jar:/u01/haw/122/orahaw/middleware/utils/config/10.3/config-
launch.jar::/u01/haw/122/orahaw/middleware/wlserver_10.3/common/derby/lib/derbynet.jar:/u01/ha
w/122/orahaw/middleware/wlserver_10.3/common/derby/lib/derbyclient.jar:/u01/haw/122/orahaw/
middleware/wlserver_10.3/common/derby/lib/derbytools.jar::

Initializing WebLogic Scripting Tool (WLST) ...

None
None
None

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

wls:/offline> connect('soa_haw_admin','soa_haw_admin','t3://wolfram.us.oracle.com:7071')
Connecting to t3://wolfram.us.oracle.com:7071 with userid soa_haw_admin ...
Successfully connected to Admin Server 'SoaAdminServer' that belongs to domain 'soa_haw_domain'.

Warning: An insecure protocol was used to connect to the


server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.

wls:/soa_haw_domain/serverConfig> createCred
<function createCred 1>
wls:/soa_haw_domain/serverConfig>
createCred(map="oracle.odi.credmap",key="SUPERVISOR",user="SUPERVISOR",password="SUNOPSIS",
desc="Key for Supervisor")
Location changed to domainRuntime tree. This is a read-only tree with DomainMBean as the root.
For more help, use help(domainRuntime)

wls:/soa_haw_domain/serverConfig>

Create the common directory that JDE will write to

Then created the /common directory under wolfram


We created the same directories on HAWKING

DTD files are located at :

[orahaw@wolfram DVM_XMLS]$ pwd


/u01/haw/122/orahaw/middleware/aia11g_fp/services/core/BulkDataProcess/VCPJDE/VCP/ODI/Oracle
/V1/DTD

To configure VCP Base Pack Integration -


1. Navigate to <Middleware Home>/user_projects/domains/soa_domain/bin/ and open
setDomainEnv.sh for Linux based systems and setDomainEnv.bat for Microsoft Windows.
2. Replace WLS_JDBC_REMOTE_ENABLED="-Dweblogic.jdbc.remoteEnabled=false" with
WLS_JDBC_REMOTE_ENABLED="-Dweblogic.jdbc.remoteEnabled=true".\
3. Restart the server.
4. Navigate to <AIA_Instance>/bin and run the command source aiaenv.sh for Linux based
systems and aiaenv.bat for Microsoft Windows to configure the environment.
5. Navigate to <AIA_HOME>/bin and run the command ./aiaconfig.sh for Linux based systems
and aiaconfig.bat for Microsoft Windows. This launches the AIA DCW.
6. Click Next.
7. Select VCP Base Pack Integration
8. Click Next.

Run the configuration utiltity


Password: ODI_HAW
Error
Configuration failed at importing Seed data to AIA Lifecycle
application. Please verify logs and re-try configuration.
Step VCPJDE Import Seeddata failed
Failed to import Seeddata
Step VCPJDE Import Seeddata failed
Log
Step VCPJDE Import Seeddata started
[WARN ][jrockit] MaxPermSize=512m ignored: Not a valid option for JRockit
Buildfile: AIAPLWImportData.xml
[echo] AIA HOME: /u01/haw/122/orahaw/middleware/aia11g_fp
[echo] AIA Instance: /u01/haw/122/orahaw/middleware/aia11g_fp/aia_instances/AIA_HAW
[echo] Importing
/u01/haw/122/orahaw/middleware/aia11g_fp/data/VCPJDE/PLWSeedData/VCPJDESeed.xml

all:
[echo] Executing
/u01/haw/122/orahaw/middleware/aia11g_fp/Infrastructure/LifeCycle/PLWImExport/PLWImport.sh -f
/u01/haw/122/orahaw/middleware/aia11g_fp/data/VCPJDE/PLWSeedData/VCPJDESeed.xml
[echo] Shell: /bin/sh

BUILD FAILED
/u01/haw/122/orahaw/middleware/aia11g_fp/Infrastructure/Install/AID/AIAPLWImportData.xml:48:
exec returned: 1

Total time: 5 seconds


Step VCPJDE Import Seeddata failed
Failed to import Seeddata
Step VCPJDE Import Seeddata failed

For this issue, we found:


Hdr: 16326529 N/A SETUP 11.1 PRODID-5649 PORTID-46
Abstract: PLW SEEDDATA IMPORT FAILS FOR THE PIP VCPJDE

*** SRAVINOO 02/13/13 08:30 pm ***


@ PLWSeeddata file is not available for VCP PIP.
@ It is supposed to be under the location :
@ /slot/ems7232/oracle/AIAPS5/data/VCPJDE/PLWSeedData/VCPJDESeed.xml , but
@ doesn’t exist.
*** SRAVINOO 02/13/13 08:32 pm ***
@ VCP PIP doesn't have any seed data hence this file was never available for
@ the PIP. We need to create a new file so that the install configuration
@ doesnot fail for the PIP for non-availability of this file.
@ The file will just be a dummy
file with no seed data.
*** SRAVINOO 02/13/13 08:33 pm *** (CHG: Asg->SRAVINOO)
*** SRAVINOO 02/13/13 08:33 pm *** (CHG: Comp. Ver-> 11.3 -> 11.1)
So we created an .xml file with a header

Now we will rerun the aiaconfig.sh based on our response file.

Configuring using the Response File


But e re still getti g the sa e error:
We then checked with Development and were advised to unzip aiapip.zip and run the installer

It s i possi le to li k through the error so e re assu ing that the progress was indeed 100% as above.

Deploying the VCP Base Pack Integration

ant -f $AIA_HOME/Infrastructure/Install/AID/AIAInstallDriver.xml \
-DDeploymentPlan=$AIA_HOME/pips/VCPJDE/DeploymentPlans/VCPJDEDP.xml \
-DPropertiesFile=$AIA_HOME/aia_instances/AIA_HAW/config/AIAInstallProperties.xml \
-l $AIA_HOME/pips/VCPJDE/DeploymentPlans/VCPJDE.log
http://docs.oracle.com/cd/E15586_01/integrate.1111/e12643/admin_reps.htm#CHDCGJAA
Note: It is strongly recommended that this ID is unique and not used for any other master repository, as
it affects imports and exports between repositories

“o e re follo i g step 3.8.3 Renumbering Repositories from the above link

We right li ked o the ork repositor a d sele ted re u er


It now shows 3
Now re-run the aiaconfig.sh
We changed this value to 3
Then rerun
We now have records in snp_import_rep
We can now see the packages
Launching the VCP Base Pack Integration Agent

We are now in the install guide on section 33.4.3 Launching the VCP Base Pack Integration Agent
Checking the weblogic console:
http://wolfram.us.oracle.com:7071/console/console.portal?_nfpb=true&_pageLabel=HomePage1

in weblogic admin console, > deployments


start servicing all requests > oraclediagent
error:

Message icon - Error weblogic.management.DeploymentException: [J2EE:160149]Error while processing


library references. Unresolved application library references, defined in weblogic-application.xml:
[Extension-Name: oracle.odi-sdk, exact-match: false], [Extension-Name: oracle.odi-agent, exact-match:
false].
Message icon - Warning Errors were encountered while performing this operation.

So we bounced the WLS server (and soa server) but problem continues. When starting up, we get:

<May 5, 2014 12:31:36 PM MDT> <Error> <Deployer> <BEA-149205> <Failed to initialize the application
'oraclediagent' due to error weblogic.management.DeploymentException: [J2EE:160149]Error while
processing library references. Unresolved application library references, defined in weblogic-
application.xml: [Extension-Name: oracle.odi-sdk, exact-match: false], [Extension-Name: oracle.odi-
agent, exact-match: false]..
weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references.
Unresolved application library references, defined in weblogic-application.xml: [Extension-Name:
oracle.odi-sdk, exact-match: false], [Extension-Name: oracle.odi-agent, exact-match: false].
at
weblogic.application.internal.flow.CheckLibraryReferenceFlow.prepare(CheckLibraryReferenceFlow.java
:26)
at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:648)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)
at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:59)
Truncated. see log file for complete stacktrace
>
<May 5

But when checking the running servers, ODI is not associated with the machine.

So need to add this:


We decided to create a new agent

Added a logical agent


Now we need to import the template again
We remove the // that default in front of wolfram.us.oracle.com
Tested it with the // and that connect too
But we removed the // again. The above is for documentation purposes only.
SOAAdminSErver – select oraclediagent because that runs on port 7071 and that is what we chose in the
template.
We uncheck oraclediagent under odi_server
Still not able to connect the odi server in the WLS console.

We re i stalli g the li raries o l . “o ru i g aia o fig.sh agai .


Bou ed WL“ a d o it s o e ted!
So what we did:
1. Include the libraries while extending the domain
2. Picking the correct managed server, i.e. oraclediAgent pointing to either SOA server or ODI
server
3. Defining the agent with the port for the managed server that we want to use

So we are back in the PIP installation guide ut are skippi g se tio 31.4.4 Enabling AIA Error Handling
Optio al e ause of a ti e o strai t.

Sections '31.5 Verifying Deployment' and '31.5.1 Validating Security Policies' checked out fine (directory
stru ture is fi e a d e do t ha e a se urit e a led. “o e re do e ith this do u e t a d a k i
our E1-VCP Start to End installation doc on p. 177.

Go to Designer tab, Expand E1APSProject->Variables and update the following variables to appropriate
values.

PVV_APS_HOST_NAME = hawking.us.oracle.com
PVV_APS_HOST_USER = applmgr
PVV_APS_HOST_PWD = applmgr
PVV_APS_TARGET_DIR = /u01/haw/122/orahaw/common/APS_input_DS?
PVV_APS_INPUT_DIR = /u01/haw/122/orahaw /APS_input_DS
PVV_APS_OUTPUT_DIR = /u01/haw/122/orahaw /APS_output_DS
PVV_DEM_HOST_NAME = hawking.us.oracle.com
PVV_DEM_HOST_USER = applmgr
PVV_DEM_HOST_PWD = applmgr
PVV_DEM_TARGET_DIR = /u01/haw/122/orahaw /common/DEM_input_DS
PVV_DEM_SOURCE_DIR = /u01/haw/122/orahaw /common/DEM_output_DS
PVV_DEM_INPUT_DIR = /u01/haw/122/orahaw /common/DEM_input_DS
PVV_DEM_OUPUT_DIR = /u01/haw/122/orahaw /common/DEM_output_DS
Regenerate the ODI Scenario

All the ODI scenarios must be regenerated if any variable value is changed. To
regenerate the ODI scenarios:
a. Open ODI Designer.
b. Expand the Scenarios tab.
c. Right click the scenario that you want to regenerate.
d. Click Regenerate option.
e. Click OK button twice.

or
f. Run this script.
To Run this Script, MUST set:
ODI_BIN_DIR to FULL PATH to the ODI_HOME/oracledi/agent/bin directory
For Linux:
$AIA_HOME/services/core/BulkDataProcess/VCPJDE/VCP/ODI/Oracle/V1/maintenance/regenera
te_all_scenarios.sh
Configure External Database

Schema(user) = E1BASE
Schema Password =E1BASE
base.properties = <schema.properties> = E1BASE.properties
db_props=E1BASE
a. Create E1BASE Schema (user)

You a logi as s ste user to reate the s he a.


CREATE USER E1BASE IDENTIFIED BY E1BASE;
GRANT RESOURCE, CONNECT, DBA TO E1BASE12;
GRANT CREATE SESSION TO E1BASE;

Make sure e re o e ted to the right i sta e

Use an 8 character password, else get error later after encryption and launch of the web service. We
initially used a 6 character password, and had encryption issues, and found it needed to be 8 at that
ti e as ell… so ake it o so fe er issues later. 186
Generate Encrypted Password

Generate the encrypted password for E1BASE user: E1BASE / E1BASE12

Note: There are 2 passwords that need encrypted during this implementation. This one for the E1BASE
user(schema) and again for the SUPERVISOR user password later when deploying the web service.
NOTE: There are also 2 DIFFERENT METHODs that MUST BE USED. Do not encrypt them both the using
the same steps. The E1BASE uses these steps here.

i. E1BASE Password we used is: E1BASE12

ii. Source the odiparams.sh


NOTE: UN“ET THE ENTI‘E ENVI‘ONMENT for the UNIX user… BEFO‘E ru i g this s ript. If the orasoa
user has a of the e iro e t set, those aria les a o fli t ith the odipara s.sh file s setting of
the same variables.
u set ODI_HOME or e port ODI_HOME=
unset ODI_BIN_DIR
unset SOA_HOME
unset AIA_HOME

Ensure they are not set in the .bash_profile for the orahaw user, comment them out. (not applicable in
our case because we did not set it)
Logout and Log Back to the shell, after commenting any out of the .bash_profile.

cd $MW_HOME/odi11g/oracledi/agent/bin
. ./odiparams.sh

encode.sh – E1BASE password


Run encode.sh

. ./encode.sh E1BASE12

Result: fFyHznXITkK2SGcjItBPb

Create <base>.properties file

Create or copy the file to $ODI_HOME/oracledi/agent/lib directory


And, Copy it to:
$MW_HOME/odi11g/oracledi/client/jdev/extensions/oracle.odi.navigator/lib/
Setup Base.xml

1. Run Topology Manager.


2. Click the Physical Architecture tab.
3. Expand Technologies.
4. Expand XML.
5. Edit E1BaseDS.
6. Click the JDBC tab.
7. In the jdbc url, update the Database schema name:
db_props= E1BASE
8. Replace the base value with the database schema you created
Still not working.
So we added this line:
CLASSPATH=${CLASSPATH}${CLASSPATHSEP}/u01/vcp/middleware/odi11g/oracledi/agent/drivers
export CLASSPATH
We made the same change (E1BASE) to E1ManufacturingDS, E1WorkOrdersDS, and

Create Database Link VCP to ODI WORKREP

From HAW to ODI Work Repository

Create Database Link from HAW to ODI Database where JDE-VCP schema E1BASE was just created on
the wolfram.us.oracle.com hostname.

Create the Database link from the apps schema of the VCP Database to the Work repository of ODI.
Substitute appropriate values and use the following commands:

SQL> CREATE DATABASE LINK "HAW_TO_WORKREPHAW"


CONNECT TO HAW_ODI_REPO IDENTIFIED BY ODIHAW
USING '(DESCRIPTION=
(ADDRESS_LIST=
(ADDRESS=(PROTOCOL=tcp)
(HOST=wolfram.us.oracle.com)
(PORT=1523)))
(CONNECT_DATA=(SID=hawsoa)))'; 2 3 4 5 6 7 8

Database link created.


Deploy the Test Client Web Service – to generate Encrypted SUNOPSIS
Password.

Deploy the wlstestclient.ear Web Service


When activating the changes in WLS, we were getti g error the proposed JNDI name
OraSDPM/Queues/OraSDPMEngineCmdQ
So we went to the below directory (based on some google hits ) and removed all the below
re ords ith from the WLS GUI.

Once we were able to activate the changes, the wlstestclient is active:


No it s ti e to deplo the .ear file.

Deploy the .ear file

The msc_ws_e1aps_ws.ear is available in the VCP 12.1.3.x patch. When applied to the VCP applications
instance, the file resides in the $MSC_TOP/patch/115/ear directory.
cd $MSC_TOP/patch/115/ear
ls *e1aps*.ear
Create the Web Service Properties File : msc_e1aps_odi-config.properties

Create msc_e1aps_odi-config.properties file in


/u01/haw/122/orahaw/middleware/Oracle_ODI1/oracledi/agent/drivers
[orahaw@wolfram drivers]$

Create the properties file msc_e1aps_odi-config.properties with these parameters:

Set Profiles
Create JDE Instance Partition
Submit a New Request
Advanced Planning Administrator

Enable the Instances Descriptive Flexfield (DFF)


E a le the I sta e For s DFF
Nav > System Administrator (or Application Developer) > Application > Flexfields > DFF
Find MSC_APPS_INSTANCES Dff record.
Create the JDE Legacy Instance Definition
Open the Advanced Planning Administrator > Admin> Instances form
Enter new Record for the JDE E1 Legacy Instance Data
Update the /etc/hosts file on the middleware server

We then copied the msc_e1aps_odi-config.properties to the Oracle_ODI1/oracledi/agent/lib


Retested collections and it connected and launched the scenario but the scenario failed.
and here

and here
the fix to the login was the Physical Architecture > Oracle > WorkRepoDS was incorrect
User: HAW_ODI_REPO
Password: ODIHAW
-- that was set to some other incorrect value, causing failure
I then reran and received another error having not created the Work Repository Tables
+---------------------------------------------------------------------------+
Advanced Supply Chain Planning: Version : 12.0.0

Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.

MSCE1PDP module: Collect Planning Data


+---------------------------------------------------------------------------+

Current system time is 05-MAY-2014 21:09:35

+---------------------------------------------------------------------------+

**Starts**05-MAY-2014 21:09:35
**Ends**05-MAY-2014 21:09:35
+---------------------------------------------------------------------------+
Start of log messages from FND_FILE
+---------------------------------------------------------------------------+
05-MAY 21:09:35 : ODI Scenario PREPROCESSHOOKPKG FAILED. Session # : 4003
05-MAY 21:09:35 : Error : ORA-00942: table or view does not exist
ORA-02063: preceding line from HAW_TO_WORKREPHAW
05-MAY 21:09:35 : Mail Execution SUCCESS
+---------------------------------------------------------------------------+
End of log messages from FND_FILE
+---------------------------------------------------------------------------+

+---------------------------------------------------------------------------+
No completion options were requested.

Output file size:


0

+---------------------------------------------------------------------------+
Concurrent request completed
Current system time is 05-MAY-2014 21:09:35

+---------------------------------------------------------------------------+

Create the Work Repository tables


re-launched collections
It succeeded a little further

But now has failed on this


ODI Operator shows:
+---------------------------------------------------------------------------+
Start of log messages from FND_FILE
+---------------------------------------------------------------------------+
06-MAY 11:18:29 : ODI Scenario PREPROCESSHOOKPKG execution is successful.
STARTING E1 APS Planning Data Pull
CHECKING INPUT PARAMETERS TO RUN SCENARIOS
INITIALIZING ODI ....
06-MAY 11:18:43 : SYNCHRONIZE XML FAILED. Session # 41003
06-MAY 11:18:43 : Error : ODI-1226: Step OdiOSCommand 2 fails after 1
attempt(s).
ODI-1241: Oracle Data Integrator tool execution fails.
Caused By: com.sunopsis.dwg.function.SnpsFunctionBaseException: ODI-30038: OS
command returned 1.
at com.sunopsis.dwg.tools.OSCommand.actionExecute(OSCommand.java:294)
at
com.sunopsis.dwg.function.SnpsFunctionBase.execute(SnpsFunctionBase.java:276)
at
com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.j
ava:3437)
at
com.sunopsis.dwg.dbobj.SnpSessTaskSql.executeOdiCommand(SnpSessTaskSql.java:1
509)
at
oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(OdiCommandE
xecutor.java:44)
at
oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(OdiCommandE
xecutor.java:1)
at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handle
06-MAY 11:18:43 : ODI Failed to Initialize. Error MessageODI-1226: Step
OdiOSCommand 2 fails after 1 attempt(s).
ODI-1241: Oracle Data Integrator tool execution fails.
Caused By: com.sunopsis.dwg.function.SnpsFunctionBaseException: ODI-30038: OS
command returned 1.
at com.sunopsis.dwg.tools.OSCommand.actionExecute(OSCommand.java:294)
at
com.sunopsis.dwg.function.SnpsFunctionBase.execute(SnpsFunctionBase.java:276)
at
com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.j
ava:3437)
at
com.sunopsis.dwg.dbobj.SnpSessTaskSql.executeOdiCommand(SnpSessTaskSql.java:1
509)
at
oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(OdiCommandE
xecutor.java:44)
at
oracle.odi.runtime.agent.execution.cmd.OdiCommandExecutor.execute(OdiCommandE
xecutor.java:1)
at oracle.odi.runtime.agent.execution.TaskExecutionHandler.handle

We then added /usr/bin/dos2unix to the PVV and regenerated all the scenarios for the Project.
We skipped one important step in the implementation guide:

Create the below view in the external database

In the External Database Schema, run the following query:

CREATE OR REPLACE VIEW E1BASE_NONPLANUOM_V AS


select "ITEM_CODE","UOM" from (SELECT BASE_ITEMCODE.ITEMCODE_DATA as
item_code,BASE_ITEM.SHIPPINGUOM as UOM from BASE_ITEM ,BASE_ITEMCODE
where BASE_ITEM.ITEMPK=BASE_ITEMCODE.ITEMFK
UNION
SELECT BASE_ITEMCODE.ITEMCODE_DATA as
item_code,BASE_ITEM.VOLUMEUOM as UOM from BASE_ITEM ,BASE_ITEMCODE
where BASE_ITEM.ITEMPK=BASE_ITEMCODE.ITEMFK
UNION
SELECT BASE_ITEMCODE.ITEMCODE_DATA as
item_code,BASE_ITEM.WEIGHTUOM as UOM from BASE_ITEM ,BASE_ITEMCODE
where BASE_ITEM.ITEMPK=BASE_ITEMCODE.ITEMFK
UNION
SELECT BASE_ITEMCODE.ITEMCODE_DATA as
item_code,BASE_ITEMUOM.TOUOM as UOM from BASE_ITEMUOM ,BASE_ITEMCODE
where BASE_ITEMUOM.ITEMUOMPK=BASE_ITEMCODE.ITEMUOMFK);
7.
In the Work Repository Schema, enter a value for External Database Schema Name and run the
following query:

in E1BASE,
---
1. create the view in E1BASE;
2. grant CREATE SYNONYM to HAW_ODI_REPO;
3. grant SELECT on E1BASE_NONPLANUOM_V to HAW_ODI_REPO;

in WorkREP ( HAW_ODI_REPO )
4. CREATE OR REPLACE SYNONYM WR_E1BASE_NONPLANUOM FOR
E1BASE.E1BASE_NONPLANUOM_V;
This completed the setup. Following is the hierarchy for loading data in legacy collections per
the ASCP user guide page 94 (4-34)

calendar
unit of measure
demand class
trading partner
category set
designators
projects and tasks
items

calendars, uom, demand class, trading partner, category set ... are all global
We decided to change the organization names to for instance CRAN5.

When calendars are loaded, they are global entities and msc_calendar_dates is loaded based
on instance_id 5061. From the code MSCCLPPB.pls

4186
4187 --Calendar is a global entity. Hence checking for the similar calendar
4188 --existence in other instances. Check is done in msc_calendar_dates
4189 --because 'ERP collections' does'nt collect the calendar header informations
4190 --like msc_Calendars, msc_workday_patterns etc.,
4191 v_sql_stmt := 2; /*Bug 2424200*/
4192 lv_sql_stmt :=
4193 'SELECT count(*)'
4194 ||' FROM msc_calendar_dates'
4195 ||' WHERE calendar_code = :calendar_code'
4196 ||' AND sr_instance_id <> :instance_id';
4197
4198
4199 MSC_UTIL.LOG_MSG(MSC_UTIL.G_LVL_DEBUG_1,lv_sql_stmt);
4200 EXECUTE IMMEDIATE lv_sql_stmt
4201 INTO lv_rec_no
4202 USING rec1.calendar_code,
4203 v_instance_id;
4204
4205 IF lv_rec_no > 0 THEN
4206
4207 lv_return := MSC_ST_UTIL.GET_ERROR_MESSAGE
4208 (p_app_short_name => 'MSC',
4209 p_error_code => 'MSC_PP_CAL_ALREADY_EXISTS',

5372 BEGIN FND_NEW_MESSAGES "MSC" "MSC_PP_CAL_ALREADY_EXISTS"


5373 OWNER = "ORACLE12.1.0"
5374 LAST_UPDATE_DATE = "2005/08/29"
5375 MESSAGE_NUMBER = "232516"
5376 MESSAGE_TEXT =
5377 "This calendar definition already exists and it cannot be overwritten."

IP for JDE machine 10.139.145.79


Directories are
\\DNVMGSC41\JDEdwards\E910\PD910\Export\vcp\E1_output_DS
\\DNVMGSC41\JDEdwards\E910\PD910\Export\vcp\E1_input_DS

To mount the directories from the JDE machine to Wolfram.


From Wolfram, as root:

10.139.145.79 dnvmgsc41.mlab.jdedwards.com dnvmgsc41


mount -t cifs -o username=vcpuser -o uid=orahaw -o gid=502
//10.139.145.79/JDEdwards/E910/PD910/Export/vcp/E1_output_DS
/u01/haw/122/orahaw/common/E1_output_DS
mount -t cifs -o username=vcpuser -o uid=orahaw -o gid=502
//10.139.145.79/JDEdwards/E910/PD910/Export/vcp/E1_input_DS
/u01/haw/122/orahaw/common/E1_input_DS

Вам также может понравиться