Thursday, February 5, 2009

Changes in Oracle Application Frame work(OAF)

Here is list of some changes which you will come across while working on any R12 project:
1)Apache Jserv is upgraded to OC4J(Oracle Containers for Java) server in R12.
2)How to enable log in R12?Since there is no Jserv as in 11i, there is no more dependency on jserv.properties file for enabling of log.Here are the details how to enable log on R12:In R12,Goto $ORA_CONFIG_HOME/10.1.3/opmn/conftake the backup of opmn.xmledit opmn.xml for data id="java-options" and add the following:-DAFLOG_ENABLED=true -DAFLOG_LEVEL=statement -DAFLOG_MODULE=fnd% -DAFLOG_FILENAME=/tmp/aflog.txt -Djbo.debugoutput=console The log message should get written in,$INST_TOP/logs/ora/10.1.3/opmn/oacore_default_group_1/oacorestd.out
3)How to add custom classpath in OC4J server classpath ? Add an entry in,$ORA_CONFIG_HOME/10.1.3/j2ee/oacore/application-deployments/oacore/orion-application.xmlprepending the existing library path.4)Autocompilation setting of jsp files in R12.In file$INST_TOP/ora/10.1.3/j2ee/oacore/application-deployments/oacore/html/orion-web.xmlafterwards please restart apache$ADMIN_SCRIPTS_HOME/adapcctl.sh stopall$ADMIN_SCRIPTS_HOME/adapcctl.sh startallnow, whenever you change a character in your jsp, this will immediate reflect your output. In production environments this setting is not recommended.
4)Steps for Manual compilation of jsp in R12.> cd $FND_TOP/patch/115/bin> ojspCompile.pl --compile -s hello.jsp
5) Why R12 uses two Oracle homes in ? There is an interesting article on Steven Chan's blog on this which explains y Oracle introduced 10.1.3 and 10.1.2 both in R12 Application server archietecture:Why Use Two ORACLE_HOMEs for Release 12's Application Tier?
6)DBC file location in R12:$INST_TOP/appl/fnd/12.0.0/secure7)Bouncing OC4J server, for OAF to pick latest class and xml files.In R12, there are two scripts which need to run to bounce the HTTP server and make OC4J container pick latest class files instead of one as in 11i, we only need to run adapcctl.sh shell script to bounce Apache Jserv. Since in R12 Jserv is replaces by OC4J container, we need to run two scripts:
1)Script which is responsible for bouncing Oracle HTTP Server (powered by Apache).(adapcctl.sh)
2)Script which responsible for bouncing OC4J container (adoacorectl.sh)So basically, here is the sequence of steps you need to do :
1)adapcctl.sh stop 2)adoacorectl.sh stop 3)adapcctl.sh start 4)adoacorectl.sh startAll these scripts are in $ADMIN_SCRIPTS_HOME

1 comment:

  1. I have extended a standard VO in R12.2.2. I ran the adstpall.sh and adstrtal.sh for bouncing apache and OACore by providing apps user name,apps password and web logic password.

    But the changes are not reflecting…

    Custom directory structure has 777 Permission which is after $JAVA_TOP.
    I am pretty sure that custom code sin proper directory and OAF (Substitutions) are pointing to custom VO.

    One of the other blog I read that even though the custom folder has 777 permissions in R12.2.2 OAF Page cannot read the files from custom folder unless DBA gives some special permissions.

    I do not understand what these special permissions are.

    Can you provide a way to solve this problem?

    Thanks
    kartheek

    ReplyDelete