Start/Stop OC4J outside of OS group

Due to circumstances beyond my control (management) our development server has become our production server. We are running 9iAS 1.0.2.2.1. I have multiple OC4J instances running. Some are actually used for production, some are still in development mode.
We have consultants needing to start and stop their development OC4J instances throughout the day. I don't want them hitting production instances and shutting things down.
Does anyone know of a way to let them start and stop their instances without them being in the OS group that owns the software?

Hi Stanley,
In order to shutdown an OC4J instance, I use the following command:
java -jar admin.jar ormi://<host>:<port> admin <password> -shutdown
In order to execute that command, I only need to have read access
to the file "admin.jar" and access to the directory in which
it is located.
By the way, how come your "consultants" couldn't tell you that?
I hope I have given you a satisfactory answer -- and if I haven't,
then I apologize for wasting your time.
Just for the record, I am using OC4J version 9.0.2.0.0 on Solaris 7
with JDK 1.3.1 -- is there some reason why you are still using
an old version?
Good Luck,
Avi.

Similar Messages

  • Is there a way to Start and Stop OC4J through Services

    Currently we are starting and stopping OC4J manually through the Dos command prompt on our servers. We are interested in making it a Services where we can start and stop OC4J thourgh the services option on the control panel in windows. Any suggestions would be greatly appriciated.
    Thanks!
    Chad

    This has been discussed several times in this forum. One of the thread is
    How can I set the export path in Form Builder 6i?
    yes, you can use Windows Resource Kit or some third party freeware to do so.
    regards
    Debu

  • How to Starting and Stopping OC4J Server using Ant

    How to Starting and Stopping OC4J Server using Ant
    In the ant task definitions for ant-oracle-classes.jar (see antlib.xml) there are two tasks called
         name="restartServer" classname="oracle.ant.taskdefs.deploy.JSR88StartServer"
         name="shutdownServer" classname="oracle.ant.taskdefs.deploy.JSR88ShutdownServer"
    I thought that these would shutdown and start the OC4J server. I guessed the parameters as – (Does anyone know where 50 ant targets are documented?)
    <oracle:restartServer
    userid="${oc4j.admin.user}"
         password="${oc4j.admin.password}"
         deployeruri="${deployer.uri}"
    />
    <oracle:shutdownServer
         userid="${oc4j.admin.user}"
         password="${oc4j.admin.password}"
         deployeruri="${deployer.uri}"
    />
    This, however does not start and stop the SOA suite. To do that I've hacked this solution together -
    <path id="oc4j.console">
         <pathelement location="${oracle.home}/config"/>
         <pathelement location="${oracle.home}/jlib/startupconsole.jar"/>
         <pathelement location="${oracle.home}/opmn/lib/optic.jar"/>
         <pathelement location="${oracle.home}/lib/xmlparserv2.jar"/>
    </path>
    <target name="stop" description="stop oc4j server" depends="init">
         <java classname="oracle.appserver.startupconsole.view.Runner">
              <classpath refid="oc4j.console"/>
              <sysproperty key="ORACLE_HOME" path="${oracle.home}"/>
              <arg value="stop"/>
         </java>
    </target>
    <target name="start" description="restart oc4j server" depends="init">
         <java classname="oracle.appserver.startupconsole.view.Runner">
              <classpath refid="oc4j.console"/>
              <sysproperty key="ORACLE_HOME" path="${oracle.home}"/>
              <arg value="start"/>
         </java>
    </target>
    This sort of works – except when the SOA suite doesn't stop cleanly – and needs user interaction to press a Close button. This isn't very useful when doing a continous integration build and deploy.
    So, does anyone have any suggestions or alternative methods to do this?
    - frank

    Actually if the server throws exceptions when it stops (which it always has since we applied patch 10.1.3.3) this technique will pause until a user responds to pop-up ... So a better way (I think) is -
    <target name="start" description="start oc4j server" depends="init">
    <java classname="oracle.appserver.startupconsole.view.Runner">
    <classpath refid="oc4j.console"/>
    <sysproperty key="ORACLE_HOME" path="${oracle.home}"/>
    <arg value="start"/>
    </java>
    </target>
    <target name="stop" description="stop oc4j server" depends="init">
    <echo message="We expect OC4J *NOT* to stop cleanly, so we will timeout after 3 minutes ..."/>
    <java classname="oracle.appserver.startupconsole.view.Runner" fork="true" timeout="180000">
    <classpath refid="oc4j.console"/>
    <sysproperty key="ORACLE_HOME" path="${oracle.home}"/>
    <arg value="stop"/>
    </java>
    </target>
    <target name="restart" description="restart oc4j server">
    <antcall target="stop"/>
    <!-- wait for server to quieten down -->
    <waitfor maxwait="2" maxwaitunit="minute">
    <not><http url="http://${oc4j.http.hostname}:${oc4j.http.port}"/></not>
    </waitfor>
    <antcall target="start"/>
    </target>

  • Windows Server 2008 - Group policy for domain client to start/stop services installed on it

    Hello Experts
    I am a newbie to windows server administration , though did a Google  , but ended up with these question with my requirements
    I have created a new domain and 2 client/computer (A & B namely) to domain . Now A & B has tomcat server running with port 8080 , 9090 which i have installed
    domain ADMIN account .
    && now i am want to start/stop/restart services enabled for domain users  !! How do i achieve this !!
    basic question : How can i access A & B tomcat services on DOMAIN CONTROLLER server to create a GPO and that are on (A & B)
    what is the easiest way to achieve the same , (if not using GPO)???
    similarly I am looking for many features : where I want to control the permission to user on (A & B ) like : If the binaries of tomcat is available on machine say : A , if the user can install (now
    it ask for ADMIN credentials) 
    Thanks
    Mike~Ed

    Controlling services with Group Policy is done under Computer Configuration\Policies\Windows Settings\Security Settings\System Services.
    The limitation is that system services can only see the services the computer running the Group Policy management console. To access other services, you will either need to create the services on your computer (install the software the adds the service)
    or install the remote server administration toolkit (RSAT) on the computer with the service already on it.
    If my answer helped you, check out my blog:
    Deploy Happiness

  • Traffic light icon (start/stop preconfigured OC4J) in JDeveloper 10.1.3.3

    Searched the forums and couldn't find this previously posted. I installed the base J2EE Edition of JDeveloper 10.1.3.3 on Solaris and had the start/stop preconfigured OC4J (Traffic light) icons on the menu. When I installed the Windows Install J2EE Edition of JDeveloper 10.1.3.3 on a Windows 2000 machine and started up JDeveloper, the icons are not displayed in the icon menu. Does anyone know the reason for this?
    thanks,
    rick

    Don't know how to delete this post, so I will just reply to it. You can disregard this post. I inadvertently downloaded the J2EE version vice the Studio version. Sorry and thanks! rick

  • How do starting/stopping of application services differ in R12 ??

    How do starting/stopping of application services differ in R12 when compared to 11i ??
    Can I start/stop services using opmnctl ??

    Can you plese refer me a document where role of OPMN and OC4J in R12 is mentioned ??? In short:-
    OPMN - Oracle Process Manager & Notification Server is component in Oracle Application Server (10g) to manage (start/stop/status) Application Server components (HTTP, OC4J)
    For more:-
    http://download.oracle.com/docs/cd/B14099_19/core.1012/b13996/intro.htm
    OC4J -- oracle container for java.
    In R12 we have 3 groups of OC4J's.
    oacore OC4J - framework based applications
    forms OC4J - forms based applications
    oafm OC4J - Fusion Middleware - for mapviewer, webservices, ascontrol.
    For more, pls read
    http://download.oracle.com/docs/cd/B10464_05/web.904/b10326/intro.htm
    thanks,
    JD

  • Privileges to Start/Stop OAS

    Anyone know the proper privileges to set to allow a Grid user to Start/Stop OAS instances. I've create a role that gives target privs to a group that contains all the OAS instances and given that role operator privs to that target group. I then set preferred credentials to the OAS user and Os password that OAS runs as on Linux. When attempting to stop and OC4J instance within OAS (home specifically), I get "You do not have the privileges perform this operation". I wanted to create a role that would only allow our developers to start/stop the development instances OAS, but there doesn't seem to be any docs on what privs are required for what actions. Thanks.

    Seems to be a bug. If I assign the OAS targets with Operator privileges to a user, it works, but if I assign those same OAS targets to a group and I assign that group to a user with Operator privileges, it fails with the "you do not have the privileges perform this operation" error, even though the group contains the same targets. I've put in a TAR.

  • Mail service on start/stop of services ...

    Hi,
    Please let me know the way to send mail when services are started/stopped in oracle application 11.5.10.2. How to configure this on ibm aix 5.3.
    Thanks,
    Sai Ram

    There is a way to configure emails on startup/shutdown of Concurrent Manager service - but I'm not aware about any such configuration around other services (eg. Apache, Apps Listener, Forms Server etc..)
    I think you'll have to do this outside Oracle's scripts if you wish to set this up - either by wrapping the calls to seeded scripts in your own custom script, or if you want a periodical probing, then via use of cron/scheduler depending on the OS you're on.
    Hope that helps.
    Regards,
    Rakesh
    PS : In addition to the Concurrent Managers, I think you should be also able to achieve this for database services if you wish to do that - by use of startup and shutdown database triggers.

  • How start, stop and access BAM?

    Hi,
    I have installed BAM and now I do not know how to start and stop the application. Also I am not able to access to the home page.
    I installed BAM by double clicking the setup.exe file. After following all the installation steps, a new folder has been created in my C drive (C:\OracleBAM). Inside that folder, there is another one called ClientForBAM. Should I have other folder besides the client? Inside the ClientForBAM there are lots of folders.
    In the Windows Start menu I have a new group called Oracle_ClientForBAM32100. From there, I can access to:
    - Configuration and Migration Tools
    - Desarrollo de Aplicaciones (sql plus)
    - Herramientas de Configuracion y de Migracion (Net manager)
    - Herramientas de Gestion Integradas (Wallet Manager)
    - Oracle Instalation Products
    So, there is no menu option to start, stop or access to BAM. I've read documentation about this and saw that the home url was: http://simge-eai-dev:8081/oraclebam (my host is simge-eai-dev, and my port 8081) But when I type that url in my browser I get the following error:
    Error HTTP 404 - No se encontró el archivo o directorio. (file or directory not found)
    Servicios de Internet Information Server (IIS)
    I looked at the logs and I found this in the sqlnet.log
    Fatal NI connect error 12514, connecting to:
    DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=simge-eai-dev)(PORT=1521))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=SIMGE)(CID=(PROGRAM=C:\oracle\product\10.2.0\db_1\bin\nmupm.exe)(HOST=SIMGE-EAI-DEV)(USER=SYSTEM))))
    This in the operf10.log
    2/18/2008 15:2:27 UPI_CONNECT failure: error 28000 Hostname SOASUITE Username SYSTEM =(ADDRESS=(PROTOCOL=BEQ)(PROGRAM=oracle10)(ARGV0=oracle10orcl)(ARGS='(DESCRIPTION=(LOCAL=YES)(ADDRESS=(PROTOCOL=beq)))')))(CONNECT_DATA=(SID=ORCL)))
    Can anybody help me with this? How can I know if the BAM is running or not?
    Thanks in advance,
    Zaloa

    Finally I found out what was happening.
    Only the client was installed because in order to install the whole thing, it is necessary to execute the setup file twice.
    The first time, the client is installed and the second time, the server.
    Regards,
    Zaloa

  • Is root required to start/stop/restart mysql?

    I'm trying to have all users in the mysql be able to start/stop/restart mysql. I'm currently getting permission denied for the /var/lib/mysql folder even though I'm logged in as a user that is a member of the mysql group (and mysql is the owner of the directory)
    Is what I am trying to achieve possible?
    I'm not sure if this is related but I am also unable to start mysql from rc.d on bootup, but once I am logged in I can use the root user to start it up.
    Thank you!

    /etc/rc.d/mysqld wrote:/usr/bin/mysqld_safe --user=mysql &>/dev/null &
    Doesn't mysqld get started as mysql user by default?
    Did you modify any of mysql's configuration files while trying to do this? I imagine that would cause troubles for you.
    Post anything else you think is relevant, too.

  • Problem with starting/stopping OPMN

    Hi there,
    i have an problem with starting and stopping the opmn. When i try to start/stop/reload the opm i get this error:
    opmnctl: opmn is not running
    root@klart1:/opt/oracle/product/aserver/opmn/bin>./opmnctl shutdown
    Kommunikationsfehler beim lokalen Port f� den OPMN-Server.
    Weitere Informationen hierzu finden Sie in den OPMN-Log-Dateien
    Kommunikationsfehler beim lokalen Port f� den OPMN-Server.
    Weitere Informationen hierzu finden Sie in den OPMN-Log-Dateien
    Kommunikationsfehler beim lokalen Port f� den OPMN-Server.
    Weitere Informationen hierzu finden Sie in den OPMN-Log-Dateien
    Kommunikationsfehler beim lokalen Port f� den OPMN-Server.
    Weitere Informationen hierzu finden Sie in den OPMN-Log-Dateien
    Kommunikationsfehler beim lokalen Port f� den OPMN-Server.
    Weitere Informationen hierzu finden Sie in den OPMN-Log-Dateien
    Kommunikationsfehler beim lokalen Port f� den OPMN-Server.
    Weitere Informationen hierzu finden Sie in den OPMN-Log-Dateien
    opmnctl: opmn is not running
    in english this means:
    Communication error at the local port for OPMN-Server.
    More Information about this error, see OPMN-Log-Files.
    opmnctl: opmn is not running
    here is a summary from the opmn.xml file:
    </module-data>
    <start timeout="600" retry="2"/>
    <stop timeout="120"/>
    <restart timeout="720" retry="2"/>
    <port id="ajp" range="12501-12600"/>
    <port id="rmi" range="12401-12500"/>
    <port id="jms" range="12601-12700"/>
    <process-set id="default_island" numprocs="1"/>
    </process-type>
    <process-type id="OC4J_BI_Forms" module-id="OC4J">
    <environment>
    <variable id="DISPLAY" value="localhost:0"/>
    <variable id="LD_LIBRARY_PATH" value="/opt/oracle/product/aserver/lib:/opt/oracle/product/aserver/network/lib:/opt/oracle/product/aserver/lib:/tmp/OraInstall2006-09-29_10-07-21AM/jre/1.4.2/lib/i386/client:/tmp/OraInstall2006-09-29_10-07-21AM/jre/1.4.2/lib/i386:/tmp/OraInstall2006-09-29_10-07-21AM/jre/1.4.2/../lib/i386:/usr/lib::/opt/oracle/product/aserver/jdk/jre/lib/i386"/>
    </environment>
    <module-data>
    <category id="start-parameters">
    <data id="java-options" value="-server -Djava.security.policy=/opt/oracle/product/aserver/j2ee/OC4J_BI_Forms/config/java2.policy -Djava.awt.headless=true -Xmx512M -Xms128M "/>
    <data id="oc4j-options" value="-properties -userThreads "/>
    </category>
    <category id="stop-parameters">
    <data id="java-options" value="-Djava.security.policy=/opt/oracle/product/aserver/j2ee/OC4J_BI_Forms/config/java2.policy -Djava.awt.headless=true"/>
    </category>
    <category id="urlping-parameters">
    <data id="/reports/rwservlet/pingserver?start=auto" value="200"/>
    </category>
    </module-data>
    <start timeout="900" retry="2"/>
    <stop timeout="120"/>
    <restart timeout="720" retry="2"/>
    <port id="ajp" range="12501-12600"/>
    <port id="rmi" range="12401-12500"/>
    <port id="jms" range="12601-12700"/>
    <process-set id="default_island" numprocs="1"/>
    can anybody help me? it is urgent.
    best regards
    Daniel

    Hi, thanks for reply to my problem.
    Now i have an new problem , it's not possible to start opmn. (./opmnctl start) .
    I get this error:
    RCV: Transport endpoint is not connected
    Communication Error for local port at OPMN-Server.
    see log files for more information
    opmnctl: opmn start failed
    I have this logfiles:
    HTTP_Server~1
    ipm.log
    OC4J~home~default_island~1
    OC4J~OC4J_BI_Forms~default_island~1
    ons.log
    opmn.log
    states (FOLDER !)
    WebCache~WebCache~1
    WebCache~WebCacheAdmin~1
    i which can i see a detailled information about this error?

  • Starting/Stopping 9iAS Infrastructures with batch files

    I created the following two batch files to start and stop my iAS Infrastructure. I found that if I used the services settings of automatic, all did not go well.
    start.bat:
    @ECHO OFF
    cls
    ECHO About to start the listener
    net start Oracle9ias_InfraTNSListener
    ECHO About to start the database
    net start OracleServiceIASDB
    ECHO About to start the OID monitor
    e:\ora9iasinfra\bin\oidmon start
    ECHO About to start the OID server
    e:\ora9iasinfra\bin\oidctl server=oidldapd configset=0 instance=1 start
    ECHO About to start the website
    net start Oracle9ias_infraEMWebsite
    ECHO About to start opmn and OC4j
    e:\ora9iasinfra\dcm\bin\dcmctl start -ct ohs
    e:\ora9iasinfra\dcm\bin\dcmctl start -co OC4J_DAS
    stop.bat:
    @echo off
    cls
    ECHO About to stop the website
    net stop Oracle9ias_infraEMWebsite
    ECHO About to stop opmn and OC4j
    e:\ora9iasinfra\dcm\bin\dcmctl shutdown
    ECHO About to stop the OID server
    e:\ora9iasinfra\bin\oidctl server=oidldapd configset=0 instance=1 stop
    ECHO About to stop the OID monitor
    e:\ora9iasinfra\bin\oidmon stop
    ECHO About to stop the database
    net stop OracleServiceIASDB
    ECHO About to stop the listener
    net stop Oracle9ias_InfraTNSListener
    When I execute the batch files sometimes they work and sometimes they don't, for example after starting, occasionally the Apache process has not been created, and sometimes processes won't stop.
    However if I enter each command seperatly all works OK. Can anyone suggest a reason for this, maybe ordering is significant or a time delay may be required between certain actions?. Also after starting the website manager the process managers for both the infra and ias instances are started (I have installed both the iAS and the Infrastucture on the same machine - this all works fine when started as a series of individual commands but not when through batch files).
    Also If I try to use:
    SQLPLUS /NOLOG
    SQL>CONNECT sys/password@iasdb as sysdba
    SQL>Start
    I also get an 'unable to create a dedicated server' error. I can start/stop the database through the enterprise manager in either standalone or management server configuration without any errors. Can anyone shed any light on this?. I have set both TNS_ADMIN and ORACLE_SID correctly.
    Terry Bennett

    Thanks, I had read that and it was very informative. I did however solve my problem using a few other threads that have been posted about the runtime.runtime().exec commands. Thanks for you help.

  • Need to stop oc4j to stop...

    Hello all,
    Can anyone help me in stopping oc4j services...
    Problem desc: when i starting windows oc4j starts automatically. I need it stop it and it should be started when i require...i mean i will start it maually.
    Thanks
    A

    Check this link,
    http://gerardnico.com/wiki/dat/obiee/installation/obiee_oc4j_suppress_window
    Thanks,
    Vino

  • How can i start several oc4j services?

    Dear,
    I will start several oc4j services in one computer.how can I do it?
    for example:
    1.oc4j directory is: oc4j_pcc and oc4j_ims
    2.I modify the files,jndi.properties,jms.xml,rmi.xml and http-web-site.xml,which port is different.
    then oc4j_pcc and oc4j_ims service can start.but I can not connect server.why?
    exception is:
    java.lang.InstantiationException: Error communicating with server: Lookup error: java.io.EOFException: Disconnected; nested exception is:
         java.io.EOFException: Disconnected; nested exception is:
         javax.naming.NamingException: Lookup error: java.io.EOFException: Disconnected; nested exception is:
         java.io.EOFException: Disconnected
    I think that configuration is wrong.but I do not know i can modify else.
    can you help me? thanks!
    Benson

    try this link
    http://www.kcmultimedia.com/javaserv/index.html
    U can download an utility with the help of wich java programs can be executed as NT services
    I tried it with orion server with moderate success. I was able to start it as a service but when i stopped or restarted the service the orion server ended abruptly.
    so each time i got a message "Forced or abrubt (crash etc) server shutdown detected". except for this, it worked fine as a service
    raees

  • How to start the oc4j server

    I install oracle 9ias 9.0.3,but i don't know how to start the oc4j server.
    thanks for any help?

    hi
    Refer "Starting and Stopping OC4J" from
    http://otn.oracle.com/tech/java/oc4j/doc_library/902/A95880_01/html/toc.htm
    hope this helps.
    shrini

Maybe you are looking for