Oracle - JDE E1 - VCP Integration AIA 11.4 PDF
Oracle - JDE E1 - VCP Integration AIA 11.4 PDF
Oracle - JDE E1 - VCP Integration AIA 11.4 PDF
Gerry Dewil
Erick Evans
May 2014
Contents
Introduction .............................................................................................................................................. 3
Configuring and Deploying Value Chain Planning Base Pack Integration ............................................... 93
Create the common directory that JDE will write to ........................................................................ 116
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
Deploy the Test Client Web Service – to generate Encrypted SUNOPSIS Password. ....................... 169
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.
E1 (hosted) env -> Middleware server (named ‘Wolfram’) -> VCP server (named Ptolemy)
E1 (hosted) env -> Middleware server (named ‘Wolfram’) -> VCP server (named Hawking)
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
Password = orahaw
From OTN / WLS previous releases. When hovering over the x86 file, we see that it contains a .bin
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
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
Note: the default schema was DEV_ORABAM, DEV_ etc. This needs to be changed to HAW_
Port: 7051
URL: http://wolfram.us.oracle.com:7071/console
sqlplus system/manager@hawsoa
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
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
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
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
./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::
None
None
None
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'.
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>
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
It s i possi le to li k through the error so e re assu ing that the progress was indeed 100% as above.
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
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
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 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)
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
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.
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 E1BASE12
Result: fFyHznXITkK2SGcjItBPb
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:
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
Set Profiles
Create JDE Instance Partition
Submit a New Request
Advanced Planning Administrator
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
+---------------------------------------------------------------------------+
**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.
+---------------------------------------------------------------------------+
Concurrent request completed
Current system time is 05-MAY-2014 21:09:35
+---------------------------------------------------------------------------+
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:
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',