java autoconfig_Autoconfig配置

在运行AutoConfig的过程中,Database server和database listener必须已经启动,其他数据库服务应该处于关闭状态。

Running AutoConfig may change your existing environment files. After running AutoConfig, you should always set the environment before you run any Applications utilities, in order to apply the changed environment variables

Autoconfig会涉及三类文件:Context文件,Template文件,Driver文件。

Context文件

Context文件可以说一个记录环境参数的基础文件,它存储了Apps所有的配置信息,如果需要更改某项配置,则需要首先修改Context文件的配置信息,然后在通过AutoConfig,把更改的信息更新到所有的真实配置文件中去。

Apps Context文件:/appl/admin/.xml (eg./u01/oracle/mc3yd213/inst/apps/mc3yd213_bej301441/appl/admin/mc3yd213_bej301441.xml)

1341075767_5133.jpg

DB Context文件:/appsutil /.xml(eg./u01/oracle/mc3yd213/db/tech_st/11.1.0/appsutil/mc3yd213_bej301441.xml)

1341075840_3572.jpg

NOTE:= _

AutoConfig模板文件

用于生成配置文件的模板,Apps里的每一个配置文件都有一个对应的模板。模板文件中包含了很多的Tag,这些Tag最终会被Context文件中环境变量替换掉。

模板文件存放的地方:

Apps层的模板文件:/admin/template,比如: /admin/template (eg./u01/oracle/mc3yd213/apps/apps_st/appl/fnd/12.0.0/admin/template,打开目录能看到很多tmp的模板文件)

1341074851_1676.jpg

DB层的模板文件:/appsutil/template,比如/appsutil /template(eg./u01/oracle/mc3yd213/db/tech_st/11.1.0/appsutil/template)

1341074728_8993.jpg

driver文件

Driver文件会列出了AutoConfig模板文件路径以及模板文件对应的目标配置文件的真实路径,以及一些脚本命令。

Apps的Driver文件位于:/admin/driver,比如: /admin/driver(eg./u01/oracle/mc3yd213/apps/apps_st/appl /fnd/12.0.0/admin/driver,里边有很多.drv文件)

DB的Driver文件位于:/appsutil/template,比如/appsutil /template(eg./u01/oracle/mc3yd213/db/tech_st/11.1.0/appsutil/template里的.drv文件)

每当Autoconfig运行的时候,都会在先找到Driver文件,然后按照Driver文件提供的脚本命令,模板文件,以及Context文件生成目标配置文件。

AutoConfig的日志文件

Application Tier:/admin/log/

Database Tier:/appsutil/log//

eg./u01/oracle/mc3yd213/db/tech_st/11.1.0/appsutil/log/mc3yd213_bej301441/05240310

= (month, day, hour, minute of AutoConfig run)

AutoConfig配置回滚

每一次AutoConfig的运行都会产生一个回滚脚本,如果AutoConfig配置错误,你可以使用回滚脚本来恢复之前的配置。

Application Tier:     /admin/out/Database Tier:    /appsutil/out//并且运行命令:  restore.sh(Unix) 或者restore.cmd(Windows)

Autoconfig Context文件的修改

路径:System Administration > Oracle Applications Manager > AutoConfig

从列表中可以看到DB层和Apps层的Autoconfig Context文件

1341805783_4672.jpg

点击Edit Parameter,可以在这里修改Context File的Parameter,在这里改Context文件应该比直接修改Context的XML文件更安全些。

1341805800_4435.jpg

从截图的页签,也可以看出,Autoconfig Context的配置主要涉及到Global,System,Local,Install,Environments,Processes,Custom几块。

Reference about AutoConfig

http://www.appsdba.info/docs/oracle_apps/R12/AutoConfig.pdf

387859.1  Using AutoConfig to Manage System Configurations in Oracle Applications Release 12

http://onlineappsdba.com/index.php/2008/01/28/autoconfig-in-oracle-apps-11i-r12-12i/

165195.1  Using AutoConfig to Manage System Configurations with Oracle Applications 11i

218089.1  Autoconfig FAQ

270519.1  Customizing an AutoConfig Environment

364927.1 How To Run Autoconfig On Database Tier (DB-Tier)

341322.1 How to change the hostname of an Applications Tier using AutoConfig

338003.1 How to change the hostname and/or port of the Database Tier using AutoConfig

315674.1 How To Verify if Autoconfig is Enabled on 11.5.x

391406.1 How to get a clean Autoconfig Environment

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值