Before deployment, we need ensure following prerequisites is ready:
In this guide, we will use following information to deploy SMC server.
Please plan this information before deploy server as you needed.
Variable | Value | Description |
---|---|---|
domainName | SLC11FRVSMCENV | Domain name |
domainHost | slc11frv.us.oracle.com | Domain host |
domainPort | 7011 | Domain port |
soaPort | 8011 | SOA port |
dbHost | slcak359.us.oracle.com | Database host |
dbPort | 1577 | Database port |
dbSID | ems10955 | Database SID |
db Template | PT_UCF_S546_HCC_REL13_SMC_CDRM_013117 | SMC database template |
bipDomain | slc10xki.us.oracle.com | BIP Domain host |
bipPort | 9704 | BIP Domain port |
releaseSeries | FUSIONAPPS_PT.V2MIBFIND_LINUX.X64 | Label used to create domain |
deployView | domain |
It's recommended to use different machine to deploy BIP server. Single machine may cause VM overload. |
Go to http://emsprod.us.oracle.com/. Refresh your database using latest SMC database template.
Refresh DB Steps .xls
If the database template doesn't contain latest datamodel changes, you need to run fpr to patch the changes.
/ade_autofs/ade_infra/FATOOLS_MAIN_LINUX.rdd/LATEST/fatools/fre/bin/fpr -e ems10955 -s FUSIONAPPS_PT.V2MIBFIND_LINUX.X64_170416.0631.S -p V_OWNER_FAMILY=fin V_OWNER_PRODUCT=fa V_CONT_EQUIV=NO V_APPROVED_AUTOAPPLY=NO
It's recommended to patch datamodel by product. Full label patched may cause DB overload. |
Set environment variables
setenv ADE_SKIP_HARDCODED_EXPANDS 0 env | grep ADE_SKIP_HARDCODED_EXPANDS ADE_SKIP_HARDCODED_EXPANDS=0 |
Create View for Deployment
Create and use an ADE view based on label which want to deploy on.
ade createview -series ade useview |
Copy properties file to local directory.
Copy the latest fusion_apps_wls.properties file from view to your specified directory, the default is $HOME.
cp $AVR/fatools/tools/wlsconfig/fadev/ps7st/fusion_apps_wls.properties $HOME |
If you want to copy fusion_apps_wls.properties to another directory other than $HOME, you must specify "-p |
Modify properties file.
Change the properties and db details in fusion_apps_wls.properties file:
domainType=adminall domainName=fusion_domain listenPort=7011 soaPort=8011 wlName=weblogic wlPassword=weblogic1 domainDir=/scratch/hruan/SLC11FRVSMCENV ESSrunTime=yes dbConnection=slcak359.us.oracle.com:1577:ems10955 |
The default domain directory is $MW_HOME/user_projects/domains, you can change it by adding following property in domain section: e.g. /scratch/software/mw_local/FMWTOOLS_11.1.1.9.1_GENERIC_160712.1219_PATCHES4FA_11.1.13.0.0_PLATFORMS_JDK64/hruan/mw_home_standalone/user_projects/domains domainDir= |
Create Domain
Run following command to create domain:
ade expand $AVR/fusionapps/ -recurse cd $AVR/fatools/tools/wlsconfig sh ./wlsconfig.sh -i -p $HOME/fusion_apps_wls.properties |
Known issue: Upgrade ESS Schema
unzip: cannot find or open /ade/pkasturi_domain1810/biappsshiphome/shiphome/obiapps_installer_BIAPPSSHIPHOME111318100GENERIC1808202011-Release.zip, /ade/pkasturi_domain1810/biappsshiphome/shiphome/obiapps_installer_BIAPPSSHIPHOME111318100GENERIC1808202011-Release.zip.zip or /ade/pkasturi_domain1810/biappsshiphome/shiphome/obiapps_installer_BIAPPSSHIPHOME111318100GENERIC1808202011-Release.zip.ZIP. ... edq ... odi ... soa ... webcenter ... rcu ... pseudo translation files ... Validating installer repository ... ... Missing biappsshiphome installer file /scratch/software/mw_local/FMWTOOLS_11.1.1.9.1_GENERIC_170102.1405_PATCHES4FA_11.13.18.10.0_PLATFORMS_JDK64/pkasturi/mw_home_standalone/mw_stage/installers/biappsshiphome/Disk1/runInstaller Installer repsoitory is invalid createInstRepos.sh: invalid_installer_repos instmwhome.sh: invalid_installer_repos wlsconfig.sh: MW_HOME did not install successfully. invalid_installer_repos Solution: ade mkprivate /ade/pkasturi_domain1810/biappsshiphome/shiphome/obiapps_installer_BIAPPSSHIPHOME111318100GENERIC1808202011-Release.zip |
Starting WLS
Open a new tab in terminal, run following commands to start Admin server:
cd $DOMAIN_HOME/ e.g cd /scratch/hruan/SLC11FRVSMCENV/fusion_domain ./startWebLogic.sh -Xmx4096m -Xms1024m |
If you've got OOM issue, try command below.
./startWebLogic.sh -Xmx4096m -Xms1024m -XX:MaxPermSize=3512M or ./startWebLogic.sh -Xmx4096m -Xms1024m -XX:PermSize=1024m -XX:MaxPermSize=4096M |
If use remote debug:
./startWebLogic.sh -Xmx4096m -Xms1024m -XX:MaxPermSize=3512M -Xdebug -Xrunjdwp:transport=dt_socket,address=4004,server=y,suspend=n
Test Server Running
You can visit following URL to check whether server is running properly:
Console:
http://:/console
Enterprise Management Server:
http://:/em
Stopping WLS
Admin server can be stop by Ctrl+C in terminal window which server runs.
Generate the environment details
Register WLS in FREDEM and generate the environment id (or) use sample deploy_config.xml
Deploy shared libs and apps from ADE view:
cd $AVR/fusionapps setenv ANT_OPTS "`echo $ANT_OPTS | sed 's/Xmx1536M/Xmx3072M/g'`" ant -Denvid= -DearsToDeploy=EarFinPayables,EarFinReceivables,EarFinancialCommon,EarFinLedger,EarFinancialsEss -DmergeJazn=true -DpreserveAppRoleGuid=true -DuploadConfig=true -Dmw.home=$MW_HOME j2eeConsolidatedDeploy |tee deploy.log If you want BU,you need to add EarHcmCoreSetup to -DearsToDeploy. |
ORA_FSCM_UIAPP failed to deploy Found this exception in Weblogic Server log weblogic.application.ModuleException: java.lang.ClassNotFoundException: oracle.apps.crmCommon.core.extnUpgrade.mbean.CrmExtnUpgradeMBeanImpl Copy $AVR/fusionapps/jlib/AdfCrmCommonCoreExtnUpgrade.jar to $AVR/smcapps/sharedLibs/deploy/oracle.apps.fa.model.ear/APP-INF/lib/AdfCrmCommonCoreExtnUpgrade.jar Note that the destination folder will be purged in the beginning of build process, therefore the jar file should be copied in the middle of the build, check this folder periodically to see if other jars are copied before copying this jar. |
Deployment failed [fa:deploy] ================ Deployment Summary ================ [fa:deploy] oracle.apps.common.fatp.model------------[ DEPLOYED ] [fa:deploy] oracle.apps.cso.common.adf---------------[ DEPLOYED ] [fa:deploy] oracle.apps.fa.model---------------------[ DEPLOYED ] [fa:deploy] oracle.apps.fa.rpx.model-----------------[ DEPLOYED ] [fa:deploy] oracle.apps.fa.view----------------------[ DEPLOYED ] [fa:deploy] oracle.apps.fatp.model-------------------[ DEPLOYED ] [fa:deploy] oracle.apps.fatp.view--------------------[ DEPLOYED ] [fa:deploy] ORA_FSCM_ESSAPP--------------------------[ FAILED ] [fa:deploy] ORA_FSCM_SERVICESAPP---------------------[ DEPLOYED ] [fa:deploy] ORA_FSCM_UIAPP---------------------------[ FAILED ] [fa:deploy] ==================================================== [fa:deploy] INFO: |
[fa:deploy] [2018-07-24 02:09:09.633]: |
For importing Root Menu, copy following files from fusionapps/atf/components/helpPortal/mds/resource/src/oracle/apps/menu from V2MIB or equivalent family series to a temporary folder (Ex: /tmp/menu_dir) preserving the folder structure (oracle/apps..) as below
/oracle/apps/menu/ResourcesAttrBundle.xlf
/oracle/apps/menu/pref_menu.xml
/oracle/apps/menu/root_menu.xml
Steps:
cp /ade_autofs/ud62_fa/FUSIONAPPS_PT.V2MIB_LINUX.X64.rdd/LATEST/fusionapps/atf/components/helpPortal/mds/resource/src/oracle/apps/menu/* /tmp/menu_dir/oracle/apps/menu
$MW_HOME/oracle_common/common/bin/wlst.sh
Go to /smcapps/EarFscmUIApp.ear/EarUi.war/WEB-INF/web.xml
e.g. /scratch/hruan/SLC11FRVSMCENV/fusion_domain/smcapps/EarFscmUIApp.ear/EarUi.war/WEB-INF/web.xml
Enable form based Login/Logout
Contents
oracle.adf.view.rich.automation.ENABLED
org.apache.myfaces.trinidad.DISABLE_CONTENT_COMPRESSION
|
select 'deployFlex('''||descriptive_flexfield_code ||''',''EFF'');' from fnd_df_flexfields_b where deployment_status not like 'DEPLOYED' and flexfield_type = 'EFF';
$MW_HOME/oracle_common/common/bin/wlst.sh deployFlex.py | tee deployFlex.log
Review deployFlex.log for any flexfield deployment errors
3) Drop policy of your object which reported errors
select * from all_policies where object_name = 'PER_ADDRESSES_F'-- 'XLA_TRANSACTION_ENTITIES' 'PER_ADDRESS_PII_VPD'
declare
BEGIN
DBMS_RLS.DROP_POLICY('FUSION', 'PER_ADDRESSES_F', 'PER_ADDRESS_PII_VPD');
-- 'HCM_STATIC_VPD_BGID_POLICY');
end;
--replace the object name with yours
SMCTopologyEndPoint.sql Change host to your host.
insert into ask_deployed_provision_configs (ID,APPLICATION_CLOUD_ID,PROVISION_CONFIG_ID,OBJECT_VERSION_NUMBER,ENTERPRISE_ID,CREATION_DATE, CREATED_BY,LAST_UPDATED_BY,LAST_UPDATE_DATE,LAST_UPDATE_LOGIN,SELECTED) values (100000,(select id from ask_application_clouds ac inner join ask_topology_information ti on ac.short_name = ti.value where ti.name='ENVIRONMENT'), (select pc.provision_config_id from ask_provision_configurations pc inner join asm_filter_options_vl fo on pc.provision_config_shortname=fo.provision_config_short_name where fo.filter_id=(select filter_id from asm_filters_vl where filter_name like 'Financials')), 0,2,sysdate,'TEST_USER','TEST_USER',sysdate,null,'Y'); |
Generate AdminServerclient.cer and Installing it.
mkdir -p $AVR/rtf && cd $AVR/rtf && cp -R /ade_autofs/ud62_fa/FSM_MAIN_GENERIC.rdd/LATEST/fsm/asm/noship/scripts/rtf . cd rtf/ sh setupConsumerKSS.sh $MW_HOME/oracle_common/common/bin . weblogic weblogic1 /scratch//fusion_domain sh setupProducerKSS.sh $MW_HOME/oracle_common/common/bin AdminServerclient.cer weblogic weblogic1 /scratch//fusion_domain |
After that you can see one TrustServiceIdAsserter should got created under Providers i.e. Home >Summary of Security Realms >myrealm >Providers. You can see the screenshot below: (Refer to FSM Workaround)
Known issue:Unable to access tasks from FSM
Setup Export/Import:
Local deployment with SMC Topology#FSMExport/ImportSetuThe following modules must have URLs populated for testing Export/Import:https://confluence.oraclecorp.com/confluence/display/FRE/Populating+Topology+Manager+Tables+for+Local+Testing
Run both pl/sql with below 2:
ORA_FSCM_SERVICE
ORA_FSCMPOJOQueries to check on some of the updates in the below tables for your respective host, port and module names.
select * from ASK_ENTERPRISE_APPLICATIONS;select * from ASK_DEPLOYED_APPLICATIONS;select * from ASK_DEPLOYED_MODULES;Restart server.
Caused by: oracle.wsm.security.SecurityException: WSM-00346 : There is no matching assertion found in the service side policy which can process the incoming message. Ensure that there is a compatible policy attached at the client side. Tokens found in the security header are:- null. Authentication mechanism found in the HTTP header:- null. The assertions found in the service side policy are:- WSSecurity SAML Token ,WSSecurity UserName Token . Workaround: Config GPA policy: Disable below policies: Viewing and disable Policies as guidance https://confluence.oraclecorp.com/confluence/display/SE/PolicySets+Issue ws-client ws-service sca-reference ws-connection ws-callback sca-service Add GPA policies in https://confluence.oraclecorp.com/confluence/display/[email protected]/Setting+Policies+for+Communicating+with+BIP Don't delete all Policies, only disable above policies and add these new policies. |
Reference for GPA Policy issues:
PolicySets Issue
Setting Policies for Communicating with BIP
4.rest
KSS Setup for working with JWT Tokens and Remote Regions
vi xmlp-client-config.xml
< -?xml version="1.0" encoding="UTF-8"?>
http://java.sun.com/dtd/properties.dtd">
BIP Server Information
http://slc10xki.us.oracle.com:9704/xmlpserver
http://slc10xki.us.oracle.com:9704/xmlpserver
ess.ws.epa">http://slc11frv.us.oracle.com:7011/ess/esswebservice
remote
The policies of the bip server and the ess server has to match. If they don't match, it might throw errors.
To resolve this run the following commands to recreate the policies - refer here.
Verify Integration Result
We can verify the BIP and ESS integration by running job which submitted BIP report, like "General Ledger Trial Balance" report.
It should be completed successfully and output contains the correct results.
If you refresh your view, you have to redo proc setup. |
Config UCM Url
update files:
$DOMAIN_HOME/smcapps/EarFscmEssApp.ear/.ade_path/adf/META-INF/connections.xml
$DOMAIN_HOME/smcapps/EarFscmUIApp.ear/adf/META-INF/connections.xml
$DOMAIN_HOME=domainDir/domainName: refre to fusion_apps_wls.properties
e.g. /scratch/meiyu/SMCENV/fusion_domain/smcapps/EarFscmEssApp.ear/.ade_path/adf/META-INF/connections.xml
Find the connection "FusionAppsContentRepository"
Modify "oracle.stellent.jcr.configuration.server.web.url" content to use the URL as below:
http://slc12ljs.us.oracle.com:16200/idcnativews
file:${common.components.home}/modules/oracle.wsm.agent.common_11.1.1/wsm-agent-core.jar
...
... custom
1.0
oracle.wsm.security.WSIdentityPermission
resource=ORA_FSCM_UIAPP
assert
custom
1.0
oracle.wsm.security.WSIdentityPermission
resource=ORA_FSCM_ESSAPP
assert
Notes:If you want run "Load Interface File for Import",please finish "Proc setup" first.
We use merged jars in SMC, hence you need to generate the merged jar
Copy jars built from jdev to the jlib folder in the view which used to produce merged jar. Then run above command to generate merged jar. e.g. Copy all jars to /scratch/hruan/view_storage/hruan_wangx/fusionapps/jlib/fscm folder, then run below command to generate merged UI jar. ant produceMergedJar -DmergedJarLocation=$ADE_VIEW_ROOT/fusionapps –DjarTobeMerged=/scratch/hruan/view_storage/hruan_wangx/fusionapps/jlib/fscm/AdfFinFaTrackAssetInquiryPublicUi.jar |
Refer to How to create a REST resource and test on IWSL - 10. Deploy Standalone domain.
Generate SOA shared mar file
|
Generate AppInfo.xml under $AVR/fusionapps
|
Modify AppInfo.xml
Below is a code snippet from AppInfo.xml.
Replace with your soa-infra url, e.g. http://slc09yar.us.oracle.com:7012/soa-infra.
Replace ProductManagementSoa HOST/PORT with your SOA App Host Name & SOA PORT, e.g. host name: slc09yar.us.oracle.com, port: 7012.
Replace ProductManagement & ProductManagementCommon & ProductLifecycleManagement HOST/PORT with your ADF App Host Name and Port.
|
Generate Deploy Plan by AppInfo.xml under the same folder
|
Start SOA managed server
|
Deploy SOA shared zip
|
import metadata
|
Deploy Change Management Composites
Be careful with the name and path of Deploy Plan file. It's located under $AVR/fusionapps and named as deployPlan.xml.
|
1. Review the incident log to find the errors and warnings.
Path: /servers/AdminServer/adr/diag/ofm/fusion_domain/AdminServer/incident//readme.txt
e.g. /scratch/hruan/SLC11FRVSMCENV/fusion_domain/servers/AdminServer/adr/diag/ofm/fusion_domain/AdminServer/incident/incdir_14/readme.txt
2. Ess log Path: /scratch/hruan/SLC11FRVSMCENV/fusion_domain/servers/AdminServer/logs/ess_request
This section collects all issue and solutions which may met during deployments.
Issue: With FUSIONAPPS_PT.V2MIBFIND_LINUX.X64 and 013117 DB template, if you hit RuntimeStoreCompatibilityException: Runtime store compatibility check failed; check version: 2.0.0.1_0.0, runtime store version: 2.0.0.0_0.8, schema name: FUSION_ORA_ESS (in server log and deploy log). Root Cause: Mismatch of ESS schema between App and DB. Resolution: Upgrade ESS Schema |
Issue: For FA, Book LOV is null in the assets landing page Resolution:
|
Issue: Out of Memory issues Resolution: 1. ./startWebLogic.sh –Xmx4096m –Xms1024m 2. IMP: Please do these steps from the terminal where the apps needs to installed Check current max heap size |
Issue: Cannot find '$MW_HOME/oracle_common/common/bin/wlst.sh' command Resolution: Remove FMWTOOLS: e.g. cd /scratch/software/mw_local/ rm -r FMWTOOLS_11.1.1.9.1_GENERIC_160712.1219_PATCHES4FA_11.1.13.0.0_PLATFORMS_JDK64 |
Issue: sh: /tmp/ess/requestFileDirectory/bin/./XLAENG: No such file or directory Resolution: Redeploy ProC |
Issue: If your console shows ORA_FSCM_UIAPP and you are unable to access tasks from FSM even after performing all the needed setup. Root Cause: The fusion_domain/smcapps/EarFscmUIApp.ear/adf/META-INF/connections.xml contains ORA_FSCM_UIAPPInternalProtocol / ORA_FSCM_UIAPPInternalHost / ORA_FSCM_UIAPPInternalPort.The MDS does not contain these entries. Resolution: 1. replace: ${adfDomainConfig.oraclefusionapps.ORA_FSCM_UIAPPInternalProtocol}://${adfDomainConfig.oraclefusionapps.ORA_FSCM_UIAPPInternalHost}:${adfDomainConfig.oraclefusionapps.ORA_FSCM_UIAPPInternalPort} with the specific host under your domain home /smcapps/EarFscmUIApp.ear/adf/META-INF/connections.xml 2. Refer Fixing Multi Domain DB Issue And Fix SMC FSM Taskflows to export from MDS, add missing ORA_FSCM_UIAPPInternalProtocol / ORA_FSCM_UIAPPInternalHost / ORA_FSCM_UIAPPInternalPort to adf-domain-config.xml and import back to MDS to resolve the issue. Replace application from 'EarFscmUIApp' to 'ORA_FSCM_UIAPP'. e.g. exportMetadata(application='ORA_FSCM_UIAPP',server='AdminServer',toLocation='/scratch/mds_dumps',docs='/oracle/adf/META-INF/**') importMetadata(application='ORA_FSCM_UIAPP',server='AdminServer',fromLocation='/tmp/mdsmenu.zip',docs='/**') |
Issue: FPR failed with AM not found errors. Root Cause: The AM is new created and not copied to the fpr server. Resolution: How to copy Jars to FPR server machine You can generate an ear and copy to fpr server. Generate ear command: e.g. ant build -f build-ledger.xml | tee fullbuild.log ant ear -f build-ledger.xml | tee earbuild.log |
Issue: CSV import/export don't work. Naviagate to Manage Task Lists and Tasks page will pop up ORA-00904: "LOOKUPPEO"."TAG": invalid identifier error message. Root Cause: FND_LOOKUP_VALUES_VL table misses TAG column. Resolution: How-to Alter a View in DB |
"Error 500--Internal Server Error oracle.jbo.NoXMLFileException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-26001. Error message parameters are {0=/dummybindings/DataBindings.cpx}" The following workaround has been suggested 1) Create folder /tmp/dummybindings and copy the attached file to this folder. DataBindings.cpx 2) Upload it to the db importMetadata(application= 'ORA_FSCM_UIAPP' ,server= 'AdminServer' ,fromLocation= '/tmp' ,docs= '/dummybindings/DataBindings.cpx') 3) Bounce the server |
Issue: Run open period, ess job has error. /scratch/xuanwan/ess/requestFileDirectory/bin/./GLOOAP: error while loading shared libraries: libgl.so: cannot open shared object file: No such file or director Root Cause: That is due to stale libgl.so Resolution: Refresh view associated with your standalone and check that fusionapps/lib/linuxx64 contains a valid libgl.so |
Issue: REST: client lov keeps loading. Domain log: WARNING: WSM-00442 The jwt token found in the request, Root Cause and Resolution: http://myforums.oracle.com/jive3/thread.jspa?threadID=2598005&tstart=45 |
Issue: fpr error /ade_autofs/ade_infra/FATOOLS_MAIN_LINUX.rdd/LATEST/fatools/fre/bin/fpr -e ems9169 -s FUSIONAPPS_PT.V2MIBFPHDEV_LINUX.X64_190128.1700.S -p V_OWNER_FAMILY=fin V_CONT_EQUIV=NO V_APPROVED_AUTOAPPLY=NO
Root cause: It looks like only have 64bit files doesn't work. /usr/lib64/libgmp.so.3 resolution¿ No matter libgmp.so.3 or libgmp.so.1 are missing, just copy one from other vm. In this case, copied libgmp.so.3 and libgmp.so.3.5.0 from other vm to local /usr/lib/ |
Issue: BIP: Cannot run report. Root Cause and Resolution: The report is not allowed to run. Edit the report and go into its properties, check the 'Run Report Online' option and save. Return to the Catalog, the report could be run with the open action. |
Necessary verification after deployment:
https://confluence.oraclecorp.com/confluence/display/FFT/Local+SMC+deployment+for+Financials
https://confluence.oraclecorp.com/confluence/display/[email protected]/SMC+Local+Deployment
https://confluence.oraclecorp.com/confluence/display/FRE/Fusion+Apps+Local+Deployments
https://confluence.oraclecorp.com/confluence/display/FFT/Local+deployment+with+SMC+Topology
https://confluence.oraclecorp.com/confluence/display/[email protected]/Fixed+Assets+-+Local+SMC+Deployment+Steps
https://confluence.oraclecorp.com/confluence/display/FFT/Local+deployment+with+SMC+Topology#LocaldeploymentwithSMCTopology-FAQ
How to setup local SMC env#SetupSOA
Local FSM Deployment#StepstoenableImport/Export
SMC Local Deployment
How to setup local SMC env
< -[if lte IE 9]>