How to determine the version of oc4j being used?

I have an oc4j installation devoid of any release notes or version documentation. In the absence of such documents, how do I know exactly which version of oc4j I am using?

+4
source share
6 answers

Check the server header in the HTTP headers. For example, with wget or curl;

wget -S <url-to-server> curl -I <url-to-server> 

or with a browser that can display HTTP headers.

There should be a headline similar to

 Server: Oracle-Application-Server-10g/10.1.3.1.0 Oracle-HTTP-Server 
+4
source

If you have access to the OC4J JAR file, you can do:

 java -jar oc4j.jar -version 
+4
source

If you simply enter the server URL (for example, http: // yourserver: yourport ), you will receive a welcome page indicating the version.

In my case, http: // myserver: 7777 shows "Welcome to Oracle Application Server 10g (10.1.3.1.0)." If you do not know the port, try 7777, 7778, and 8888.

If you know where the Oracle software is installed, go to the ORACLE_HOME / install directory and look in the readme.txt file. This will launch "Installing Oracle Application Server xx Successfully", where xx is the version. If you do not know the location of the software, you can search your file system for readme.txt files - one of them will probably document your OC4J installation.

+1
source

You can display OC4J related system properties. We paste the following scriptlets into the JSP page:

 <%= System.getProperty( "oracle.j2ee.container.name" ) %> 

and

 <%= application.getAttribute( "oracle.jsp.versionNumber" ) %> 

Output Example:

Oracle J2EE Container: Oracle Containers for J2EE 10g (10.1.3.3.0)
Oracle JSP Version: Oracle Containers for J2EE 10g (10.1.3.1.0)

+1
source

Some of the methods mentioned here will not work for Oracle Application Server, and they may not be supported in the future. In addition, readme.txt or other files may not be updated when applying the patch.

The recommended method is to use the Oracle Official OPatch utility like this one.

 OPatch]$ ./opatch lsinventory -invPtrLoc ../oraInst.loc |grep "Oracle Application Server" Oracle Application Server PatchSet 10.1.3.4.0 

Make sure the environment variable ORALCE_HOME is set correctly and -invPtrLoc points to the desired storage location.

Please note that this will only work with a full installation of Oracle Application Server. It will not work for standalone development of OC4J.

+1
source
 grep Version $ORACLE_HOME/config/ias.properties 
0
source

All Articles