Oracle EBS - Details of Adpreclone and Adcfgclone

本文详细介绍了使用adpreclone和adcfgclone进行Oracle应用程序克隆的内部过程。首先通过adpreclone创建源系统的克隆环境,包括技术栈和数据库信息,并将这些文件复制到目标系统。随后使用adcfgclone配置目标系统,包括数据库和应用程序的技术栈,完成克隆后的环境准备。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 Details of Adpreclone and Adcfgclone
(Interview Ques: What happens internally when you run adpreclone and adcfgclone)

I am covering the Internal Cloning Process which you will not get eaily on the net. Generally you find the steps for cloning like run adpreclone on apps and db tier then copy the file sytem to Target then run adcfgclone on apps tier and db Tier.

What happens when you run adpreclone and adcfgclone. The below steps give you better understanding and enhance your troubleshooting skills.

Configuring the source system
When you run this commnad adpreclone.pl dbTier . This will run in two steps Techstack and database.


Techstack:
It will create following directories in the ORACLE_HOME/appsutil/clone
Jlib, db, data where “Jlib” relates to libraries “db” will contain the techstack information, “data” will contain the information related to datafiles and required for cloning.
Creates driver files at ORACLE_HOME/appsutil/driver/instconf.drv

Converts inventory from binary to xml, the xml file is located at $ORACLE_HOME/appsutil/clone/context/db/Sid_context.xml

Prepare database for cloning:
This includes creating datbase control file script and datafile location information file at
$ORACLE_HOME/appsutil/template
adcrdbclone.sql, dbfinfo.lst

Generates database creation driver file at ORACLE_HOME/appsutil/clone/data/driver
data.drv

Copy JDBC Libraries at ORACLE_HOME/appsutil/clone/jlib/classes12.jar and appsoui

When Running adpreclone appsTier

This will create stage directory at $COMMON_TOP/clone. This also run in two steps.

Techstack:
Creates template files for
Oracle_iAS_Home/appsutil/template
Oracle_806_Home/appsutil/template

Creates Techstack driver files for
IAS_ORACLE_HOME/appsutil/driver/instconf.drv
806_ORACLE_HOME/appsutil/driver/instconf.drv

APPL_TOP preparation:
-It will create application top driver file$COMMON_TOP/clone/appl/driver/appl.drv
-Copy JDBC libraries$COMMON_TOP/clone/jlib/classes111.zip

Now Shutdown all the services of Application and database for Copy the file System to target location

Configuring the target system
Once it is done . Run as below adcfclone.pl for apps Tier and dbTier.

On database side:

cd $ORACLE_HOME/appsutils/clone/binperl adcfgclone.pl dbTier pwd=apps
This will use the templates and driver files those were created while running adpreclone.pl on source system and has been copied to target system.

Following scripts are run by adcfgclone.pl dbTier for configuring techstack

adchkutl.sh — This will check the system for ld, ar, cc, and make versions.
adclonectx.pl — This will clone the context file. This will ceate a new context file as per the details of this instance.
runInstallConfigDriver — located in $Oracle_Home/appsutil/driver/instconf.drv
Relinking $Oracle_Home/appsutil/install/adlnkoh.sh — This will relink ORACLE_HOME

For data on database side, following scripts are run
Driver file $Oracle_Home/appsutil/clone/context/data/driver/data.drv
Create database adcrdb.zip
Autoconfig is run
Control file creation adcrdbclone.sql

On Application Side:
COMMON_TOP/clone/bin/perl adcfgclone.pl appsTier pwd=apps
Following scripts are run by adcfgclone.pl
Creates context file for target adclonectx.pl

Run driver files
$ORACLE_HOME/appsutil/driver/instconf.drv
$IAS_ORACLE_HOME/appsutil/driver/instconf.drv

Relinking of Oracle Home$ORACLE_HOME/bin/adlnk806.sh$IAS_ORACLE_HOME/bin/adlnkiAS.sh
At the end it will run the driver file $COMMON_TOP/clone/appl/driver/appl.drv and then runs autoconfig.

Enjoy!!!


FROM:

http://oracleapplicationguru.blogspot.com/2008/01/details-of-adpreclone-and-adcfgclone.html

### Oracle EBS APP-OFM 47715 错误解决方案及相关信息 #### 解决方案概述 当遇到Oracle E-Business Suite (EBS) 中的APP-OFM错误时,通常涉及配置文件、权限设置以及应用程序对象库中的问题。对于特定编号为47715的错误,建议按照以下方法排查并解决问题。 #### 权限验证 确认当前用户的权限是否正确无误。例如,在Linux环境下安装或运行Oracle数据库实例时,应确保目录具有适当读取/执行权限: ```bash ls -ld /path/to/oracle/installation/directory ``` 上述命令显示的结果应当类似于`drwxr-xr-x 85 oracrp3 dba 4096 Oct 15 22:50 11.2.0`[^1],这表明用户oracrp3属于dba组,并拥有对该路径下资源的操作权利。 #### 应用程序窗口位置调整 如果问题是由于界面布局引起,则可以尝试重置应用窗口的位置参数来解决潜在冲突。通过修改PL/SQL代码片段实现这一点: ```sql BEGIN app_window.set_window_position('EMP', 'EMP'); END; / ``` 这里的关键在于使用实际存在的窗口名称替代默认占位符'FIRST_WINDOW'[^2],从而恢复正常的应用交互体验。 #### 数据一致性检查 针对可能的数据不一致情况,可以通过查询相关联表之间的关系来进行诊断。下面是一个用于核对物料交易记录与销售订单详情之间匹配度的例子: ```sql SELECT Mmt.Transaction_Id, Mmt.Transaction_Type_Id, Mmt.Transaction_Quantity, Moq.Transaction_Quantity, mmt.* FROM Mtl_Material_Transactions Mmt, Mtl_Sales_Orders Mso, Mtl_Onhand_Quantities Moq WHERE Mso.Sales_Order_Id = Mmt.Transaction_Source_Id AND Mmt.Transaction_Id = Moq.Create_Transaction_Id AND Mso.Segment1 = '1005188'; ``` 此脚本旨在找出指定订单号下的所有符合条件的事务条目及其对应的库存数量变化[^3]。如果有任何异常数据存在,可能会触发类似的APP-OFM警告消息。 #### 日志分析 最后但同样重要的是审查日志文件以获取更多关于该事件的具体描述。这些日志可以帮助定位根本原因所在,并指导进一步采取纠正措施的方向。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值