2015113022PM-How to make a local database upto the latest FA datamodels and packages

本文详细介绍如何在Oracle环境中使用FPR(Fusion Patching Repository)应用最新的数据模型和包,包括创建manifest文件的脚本及确保PL/SQL包有效性的验证过程。

NOTICE: You should know what you are doing before you run the following commands. Otherwise, all previously applied backend FA data models and packages would be wiped out with the unwanted latest datamodel/code from ADE.
1) You will need to make sure you are in ADE view before you run the scripts.
2) Create the following two scripts in your local directory.

Here are the scripts to create a full manifest file for the latest FA datamodels and packages from ADE:

====================
prefix=`echo "$SRCHOME"/`
find $SRCHOME/fusionapps/ic/components/ -name "*.sequence" > $HOME/latest_datamodels_temp.txt
find $SRCHOME/fusionapps/ic/components/ -name "*.table" >> $HOME/latest_datamodels_temp.txt
find $SRCHOME/fusionapps/ic/components/ -name "*.view" >> $HOME/latest_datamodels_temp.txt
find $SRCHOME/fusionapps/ic/ -name "*SD.xml" > $HOME/latest_sd_temp.txt
find $SRCHOME/fusionapps/ic/ -iname "*.pkh" > $HOME/latest_packages_temp.txt
find $SRCHOME/fusionapps/ic/ -iname "*.pkb" >> $HOME/latest_packages_temp.txt

sed 's:'$prefix'::' < $HOME/latest_datamodels_temp.txt > $HOME/latest_datamodels.manifest
rm $HOME/latest_datamodels_temp.txt

sed 's:'$prefix'::' < $HOME/latest_sd_temp.txt > $HOME/latest_sd.manifest
rm $HOME/latest_sd_temp.txt

sed 's:'$prefix'::' < $HOME/latest_packages_temp.txt > $HOME/latest_packages.manifest
rm $HOME/latest_packages_temp.txt

=====================

3) Apply FPR using the newly created manifest files:

latest_packages.manifest and latest_datamodels.manifest

Example:

fpr -envsid ahl_dit -requestmode applyfiles -source FUSIONAPPS_11.1.11.0.0IC_LINUX.X64_151113.1400 -m $HOME/latest_datamodels.manifest
fpr -envsid ahl_dit -requestmode applyfiles -source FUSIONAPPS_11.1.11.0.0IC_LINUX.X64_151113.1400 -m $HOME/latest_sd.manifest
fpr -envsid ahl_dit -requestmode applyfiles -source FUSIONAPPS_11.1.11.0.0IC_LINUX.X64_151113.1400 -m $HOME/latest_packages.manifest

Check your FPR requests in http://fre.us.oracle.com:7777/cgi-bin/fprScheduler?scope=env&req=home

and ensure that they are completed successfully.


4) Also - Make sure to run the following script to verify that all plsql packages are VALID.

select object_name, status
,object_type
,to_char(last_ddl_time,'DD-MON-YYYY HH24:MI:SS') last_ddl_time
from dba_objects
where owner='FUSION'
and (object_name like 'FA%'
or object_name like 'UT_FA%')
and status = 'INVALID'
/

If there's no returned row, that means 'No Invalid objects found' and you are good to GO!

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值