Search This Blog
Tuesday, November 30, 2004
Wednesday, November 24, 2004
How to use the DoNotReGenerateWrapperCode OC4J option
First run the OC4J with the option ,
java -DKeepWrapperCode=true -jar oc4j.jar
This generates the .java files in say c:\oc4j904\j2ee\home directory
Now edit the appropiarte file , and add your own code and some System.out.println codes etc ,after this just save the files.
Now start the OC4J container , with the following options
java -DDoNotReGenerateWrapperCode=true -DKeepWrapperCode=true -jar oc4j.jar
After this redeploy the application again , you will see messages like ,
04/11/24 18:00:47 Skip re-gen of EmpHome_EntityHomeWrapper19.java
04/11/24 18:00:47 Skip re-gen of Dept_EmpLocal_ORCollection11.java
04/11/24 18:00:47 Skip re-gen of DeptHome_EntityHomeWrapper29.java
04/11/24 18:00:47 Skip re-gen of DeptLocalHome_EntityHomeWrapper27.java
Now run your application.
java -DKeepWrapperCode=true -jar oc4j.jar
This generates the .java files in say c:\oc4j904\j2ee\home directory
Now edit the appropiarte file , and add your own code and some System.out.println codes etc ,after this just save the files.
Now start the OC4J container , with the following options
java -DDoNotReGenerateWrapperCode=true -DKeepWrapperCode=true -jar oc4j.jar
After this redeploy the application again , you will see messages like ,
04/11/24 18:00:47 Skip re-gen of EmpHome_EntityHomeWrapper19.java
04/11/24 18:00:47 Skip re-gen of Dept_EmpLocal_ORCollection11.java
04/11/24 18:00:47 Skip re-gen of DeptHome_EntityHomeWrapper29.java
04/11/24 18:00:47 Skip re-gen of DeptLocalHome_EntityHomeWrapper27.java
Now run your application.
Monday, November 08, 2004
Applying Opatch on linux for IAS 9.0.4.1
Download the patch from metalink or ARU
p2617419_10102_GENERIC.zip
extract this patch in a directory say $HOME
unzip -d . p2617419_10102_GENERIC.zip
Set the Environment variables
export PATH=$PATH:$HOME/OPatch
export LD_ASSUME_KERNEL=2.4.19
Set the environment variables for the home where you want to
apply the patch set for example ORACLE_HOME , PATH and LD_LIBRARY_PATH etc , and then run the command
opatch lsinventory
After thie copy the patch file for example say ,
p3985227_9041_GENERIC.zip
unzip -d . p3985227_9041_GENERIC.zip
cd 3985227
and then run the command
opatch apply
To check the one-off patches applied run the command ,
opatch lsinventory
Opatch on Windows ,
Download the patch from metalink or ARU
p2617419_10102_GENERIC.zip
and extract this in to a directory say ,
d:\ set PATH=d:\Opatch;%PATH%
set ORACLE_HOME=d:\ias9041
opatch lsinventory -detail
And then go to the directory say ,
cd f:\temp1\3952464
and run the command ,
opatch.bat apply
After this check the output of the command ,
opatch lsinventory -detail
To apply the patch on a Stand Alone OC4J use the following steps ,
set PERL5LIB=d:\ias9041\perl\5.6.1\lib
set ORACLE_HOME=c:\oc4j9041
cd f:\temp1\3952464
and run the command ,
d:\ias9041\perl\5.6.1\bin\MSWin32-x86\perl.exe d:\OPatch\opatch.pl apply -no_inventory -jdk d:\jdk14\bin -oh c:\oc4j9041 -verbose
p2617419_10102_GENERIC.zip
extract this patch in a directory say $HOME
unzip -d . p2617419_10102_GENERIC.zip
Set the Environment variables
export PATH=$PATH:$HOME/OPatch
export LD_ASSUME_KERNEL=2.4.19
Set the environment variables for the home where you want to
apply the patch set for example ORACLE_HOME , PATH and LD_LIBRARY_PATH etc , and then run the command
opatch lsinventory
After thie copy the patch file for example say ,
p3985227_9041_GENERIC.zip
unzip -d . p3985227_9041_GENERIC.zip
cd 3985227
and then run the command
opatch apply
To check the one-off patches applied run the command ,
opatch lsinventory
Opatch on Windows ,
Download the patch from metalink or ARU
p2617419_10102_GENERIC.zip
and extract this in to a directory say ,
d:\ set PATH=d:\Opatch;%PATH%
set ORACLE_HOME=d:\ias9041
opatch lsinventory -detail
And then go to the directory say ,
cd f:\temp1\3952464
and run the command ,
opatch.bat apply
After this check the output of the command ,
opatch lsinventory -detail
To apply the patch on a Stand Alone OC4J use the following steps ,
set PERL5LIB=d:\ias9041\perl\5.6.1\lib
set ORACLE_HOME=c:\oc4j9041
cd f:\temp1\3952464
and run the command ,
d:\ias9041\perl\5.6.1\bin\MSWin32-x86\perl.exe d:\OPatch\opatch.pl apply -no_inventory -jdk d:\jdk14\bin -oh c:\oc4j9041 -verbose
Subscribe to:
Posts (Atom)