aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Oracle/OAS
Bookmark "How to shutdown oc4j server" Watch "How to shutdown oc4j server" New topic
Author

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 (9.0.3.0.0) and OS is
Win 2000 professional.
Thx,
Himanshu


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

Joined: Feb 05, 2001
Posts: 17257
    
    6

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.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
L Brennan
Greenhorn

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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to shutdown oc4j server