在运行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)
DB Context文件:/appsutil /.xml(eg./u01/oracle/mc3yd213/db/tech_st/11.1.0/appsutil/mc3yd213_bej301441.xml)
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的模板文件)
DB层的模板文件:/appsutil/template,比如/appsutil /template(eg./u01/oracle/mc3yd213/db/tech_st/11.1.0/appsutil/template)
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文件
点击Edit Parameter,可以在这里修改Context File的Parameter,在这里改Context文件应该比直接修改Context的XML文件更安全些。
从截图的页签,也可以看出,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