John Topley's Knowledgebase

Oracle Containers for Java (OC4J) Command-Line Reference

Sunday, 17 August 2003

The following is an abridged command-line reference for OC4J.

Key:

<oc4j host>
The name or IP address of the computer running OC4J.
<oc4j ormi port>
The RMI port specified in the /j2ee/home/config/rmi.xml file. Specifying the RMI port is optional if the default port of 23791 is used.
<admin user> <admin password>
The administrative username and password specified in the /j2ee/home/config/principals.xml file.

Use these commands to:

  • Install OC4J:
java -jar oc4j.jar -install
  • Start OC4J:
java -jar oc4j.jar
  • Test OC4J (using the default OC4J HTTP port assignment):
http://<oc4j host>:8888
  • Administer OC4J:
java -jar admin.jar ormi://<oc4j host>:<oc4j ormi port> <admin user> <admin password> <options>
  • Shutdown OC4J:
java -jar admin.jar ormi://<oc4j host>:<oc4j ormi port> <admin user> <admin password> -shutdown [ordinary | force] [reason]
  • Restart OC4J:
java -jar admin.jar ormi://<oc4j host>:<oc4j ormi port> <admin user> <admin password> -restart [reason]

top | index | no previous | next | comments ()

home | archive | kb | media | about | contact | accessibility
Copyright © 2003 - 2005 John Topley. Made with CityDesk.