File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Oracle/OAS and the fly likes How to shutdown oc4j server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "How to shutdown oc4j server" Watch "How to shutdown oc4j server" New topic

How to shutdown oc4j server

himanshu patel
Ranch Hand

Joined: Feb 03, 2003
Posts: 205
Hi All,
Can anyone tell me how to shutdown oc4j server.
I am using Oracle9iAS ( and OS is
Win 2000 professional.

If you want to become a rich, do not work for others but make others to work for you.
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Two ways, one is there is a batch file (.bat) that can shutdown the OC4J ( I have that on my development box), or you can go into the Windows Services, and find it in the services list and stop the service from running.

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
L Brennan

Joined: Apr 15, 2003
Posts: 23
The following commands will shut down the server as either part of a batch file or directly from the command prompt

cd \oc4j\j2ee\home
java -jar admin.jar ormi://localhost admin admin -shutdown
Hope this helps
James Clinton
Ranch Hand

Joined: Jun 23, 2003
Posts: 190
ensure you add the RMI port 'not' the http port.

cd ${OC4J_HOME}; ${JAVA_EXE} -Xmx512M -jar ${adminjar_filename} ormi://localhost:${rmi_port}/ <admin_id> <admin_pw> -shutdown
I agree. Here's the link:
subject: How to shutdown oc4j server
It's not a secret anymore!