Start, stop, restart WebLogic with WLST

Hi,
does Oracle have any example WLST scipts to start/restart WebLogic server? Please point me to them, 'cos I haven't found any.
Thanks in advance.

Hi,
http://download.oracle.com/docs/cd/E13222_01/wls/docs90/config_scripting/manage_servers.html#start_managed_server
You can record all that you doing in admin console and automatically you will get .py script for that operations.
Regards

Similar Messages

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

  • How to start/stop/restart a java desktop application from remote machine

    Hi,
    I want to know is there a way in java where i can start/stop/restart a java desktop application running on a remote machine through another java desktop application?
    For e.g i have an Admin console which monitors its clients based on socket communication, all of them are java desktop applications. I want to also give start/stop remote clients through my Admin console.
    I am thinking in terms of windows system service which can start/restart/stop my clients on request of Admin console, but how can i call this system service remotely?
    How can i do it?

    I got it. its about connection...

  • AS10g EM start/stop/restart components fails

    In a new install of the AS10g on Win 2000. After I login to the EM - I am unable to control (start/stop/restart) components such as HTTP_Server, OC4J_Security, OID. The componets are up but I can't control them. When I select a component to control I am asked to confirm (I select yes) and then I get an error msg "No components were selected". Any help on this would be appreciated. - Thanks

    OC4J_OC4J_Portal log
    05/10/17 21:09:52 Start process
    05/10/17 20:12:16 Auto-starting uddirepl...
    05/10/17 20:12:17 Error starting HTTP-Server: Address already in use
    05/10/17 20:12:17 Oracle Application Server Containers for J2EE 10g (10.1.2.0.2) initialized
    05/10/17 21:12:20 Start process
    05/10/17 20:13:51 Auto-starting uddirepl...
    05/10/17 20:13:54 Warning: Error reading transaction-log file (/opt/oracle/product/10.1.2.0.2/OraAS/j2ee/OC4J_Portal/persistence/OC4J_Portal_default_island_1/transaction.state) for recovery: premature end of file
    05/10/17 20:13:54 Forced or abrupt (crash etc) server shutdown detected, starting recovery process...
    05/10/17 20:13:54 Recovery completed, 0 connections committed and 0 rolled back...
    05/10/17 21:34:19 Stop process
    Error: Unexpected error during lookup : Lookup error: javax.naming.AuthenticationException: Invalid username/password for default (admin); nested exception is:
         javax.naming.AuthenticationException: Invalid username/password for default (admin)
    ------

  • Start/stop/restart live stream - do stream files need to be removed first?

    When streaming a live event if something happens and we need to stop our encoder and then restart it again.
    Do we need to delete the stream files created in the 'application/event/' directory and also delete the f4f stream,bootstrap, etc... files too?
    If we don't delete the stream files before restarting the live stream. It will only play about 10 seconds of the stream then just hang buffering.
    What is causing this?
    My application log shows no access when I restarted the stream.
    2013-09-04
    09:02:21
    3960
    (s)2641173
    onPublish : cfhsstream4
    2013-09-04
    09:02:21
    3960
    (s)2641173
    Stream name is: cfhsstream4 and live event is: cfhs
    2013-09-04
    09:02:21
    3960
    (i)2611173
    Event level recording configuration: General[flags: 3, keyframe interval: 60000, max size: -1, max length: -1, io buffer size: 0], Fragment[frag duration: 4000, seg duration: 0, duration precision: 0, allowed drift: 1000, frame rate: 0.000000, frames per interval: 0, intervals per frag: 1, frame precision: 1, disk management duration: 0.000000], ContentProtection[enabled=false(overridable)]
    2013-09-04
    09:02:21
    3960
    (s)2641173
    f4f:cfhsstream4 - NetStream.Publish.Start
    2013-09-04
    09:02:21
    3960
    (s)2641173
    f4f:cfhsstream4 - NetStream.Play.Reset
    2013-09-04
    09:02:21
    3960
    (s)2641173
    f4f:cfhsstream4 - NetStream.Data.Start
    2013-09-04
    09:02:22
    3960
    (s)2641173
    f4f:cfhsstream4 - NetStream.Record.Start
    2013-09-04
    09:02:23
    3960
    (s)2641173
    f4f:cfhsstream4 - NetStream.Record.NoAccess
    2013-09-04
    09:02:23
    3960
    (s)2641173
    f4f:cfhsstream4 - NetStream.Record.Stop
    2013-09-04
    09:02:23
    3960
    (s)2641173
    f4f:cfhsstream4 - NetStream.Record.NoAccess
    Thanks,
    Dave

    I have a similar issue like Mr Dave explained. If need to stop, start, stop and restart again, the encoder is sending, but in player not shows nothing. Then we need to stop and disconnect in encoder, and remove the stream file in /event and the cache files in livestream folder for after then restart the streaming. Only after this action, the streaming works fine and the streaming shows again in player.
    Have other way to solve this issue without need all that actions? Note that I use the Adobe FME to live streaming and encoding in HDS http streaming
    I hope for a help
    Thanks
    Pedro
    Message was edited by: asaweb2013

  • Start/stop user programs with laptop-mode

    Hi,
    i am trying to place some scripts in /etc/laptop-mode/*start[stop] to kill and start some programs when on battery or ac.
    I tried with the following script, but the process is just a zombie and dropbox will not appear: any ideas?
    #!/bin/bash
    case "$1" in
    start)
    su pschw -c
    /opt/dropbox/dropbox &
    stop)
    killall dropbox
    echo failed!
    esac

    Hi,
    i am trying to place some scripts in /etc/laptop-mode/*start[stop] to kill and start some programs when on battery or ac.
    I tried with the following script, but the process is just a zombie and dropbox will not appear: any ideas?
    #!/bin/bash
    case "$1" in
    start)
    su pschw -c
    /opt/dropbox/dropbox &
    stop)
    killall dropbox
    echo failed!
    esac

  • Start/Stop Web Modules with JMX

    Does anyone know if there is a possibility in OC4J to start/stop/reload web applications via JMX?
    When I navigate with the System MBean Browser to a WebModule MBean, e.g. oc4j:j2eeType=WebModule,name=defaultWebApp,J2EEApplication=default,J2EEServer=standalone , the stateManageable attribute says false, and there are no start() and stop() operations available.
    Is there any other way to do that, besides starting and stopping the parent J2EEApplication MBean, perhaps with some non-JSR77 MBean?
    Best regards,
    Volker

    Does anyone know if there is a possibility in OC4J to start/stop/reload web applications via JMX?
    When I navigate with the System MBean Browser to a WebModule MBean, e.g. oc4j:j2eeType=WebModule,name=defaultWebApp,J2EEApplication=default,J2EEServer=standalone , the stateManageable attribute says false, and there are no start() and stop() operations available.
    Is there any other way to do that, besides starting and stopping the parent J2EEApplication MBean, perhaps with some non-JSR77 MBean?
    Best regards,
    Volker

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

  • Start stop while loop with tab control

    I want to be able to start and stop a while loop by entering and leaving a tab.  I am using an event structure to do so but it doesn't seem elegant or the right way to do this.  The only way I was able to get it to kind of work is by unchecking the lock front panel box in the event structure.  I have attached a sample vi of what I have so far.
    Solved!
    Go to Solution.
    Attachments:
    Loop test.vi ‏16 KB

    The problem is that you can't even stop the program by hitting the stop button until you leave the tab, which is not a friendly user interface.
    Event structures should just handle basic user events.  Any given event case should not take a long time to run.  While you are in the diagnostics tab, your code is stuck in that while loop.  Although fixing the lock front panel allows you to do other things, the LabVIEW is just queuing up all of those other UI events (like Stop button value change) and can't handle them until the inner while loop stops and allows the outer while loop to iterate again.
    You should have a parallel while loop to handle the waveform graph.  You can use notifiers or queues or an action engine FGV (see Ben's Action Engine Nugget) to pass the starting or stopping of the waveform graph update to the parallel while loop.

  • Starting / stopping FLV's with buttons

    Basically all I want to do is have a flv play, then stop...2
    buttons come up and depending on which you click on, plays the
    associated video. Kind of like a choice thing. Video plays ->
    make choice 1 or 2, plays video 1 or 2.
    Shoved the video in the timeline on the main layer.
    Created a new layer. Put the text button on the last frame
    that the video plays on.
    Opened Actionscript on the keyframe of the button.
    Added in
    stop();
    mybutton.onPress = function() {
    gotoAndPlay(710);
    710 is the frame on which i had the other video start, on a
    seperate layer might I add.
    However the result is .... movie plays .... briefly see
    button flash....next video plays without me clicking the button :(
    How do I go about making this happen?
    Thanks,
    - GoOsE

    onPress is not a function in as3. Also, you need to add the
    script to a frame on the timeline. you need to add an event
    listener to your button that calls upon a function to execute your
    code.
    mybutton.addEventListener(MouseEvent.CLICK, doSomething);
    function doSomething(e:MouseEvent):void{
    gotoAndPlay(710);
    };

  • 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

  • Scripts for starting/stopping managed servers

    All,
    Could someone provide me with some sample scripts for starting/stopping managed Weblogic servers?  I'm specifically looking for ways to start/stop them WITHOUT starting the AdminServer.  I'm running WLS 10.3.6 on Windows Server 2003, and I have NodeManager set to start automatically as a Windows service.
    I know how to set my managed servers up as Windows services so that they will start automatically at boot, but this requires the AdminServer to be running, which I do not want.  I just want a few scripts for starting/stopping the managed servers (and maybe some hints as to how to make them start automatically without starting the AdminServer).
    Thanks in advance,
    Tom

    Hello Puneet,
    Admin console is an web application deployed into AdminServer. Hence if you shutdown AdminServer then you wouldn't able to access Admin console.
    Managed Server would function in MSI mode, however you will not be able to make any configuration or administration activities like deployment , any configuration changes , etc.
    Hello PRISM,
    Can you confirm your requirement about why you don't want AdminServer to be running?
    As I said,  you will loose the administration capability if you don't have admin server running.
    Regards
    Rosario

  • How to Start/Stop from Server Manager

    Hello,
    I am trying to figure out how to start/stop/restart my coldfusion servers from server manager.  I have seen the instruction at this link:
    http://help.adobe.com/en_US/ColdFusion/9.0/Admin/WSfd7453be0f56bba4-2a6b48f122a6582c7f-7ff e.html
    However it mentions "place the jrunappstartup.war file under the directory <CF_Home>/runtime/servers/admin"
    I do not know where to get this file from.  Please help!
    I am running ColdFusion standalone.
    Any help is much appreciated,
    Thanks,
    David

    An update to eariler posting. Configure CF9 Enterprise multiserver.
    Likewise unable to find jrunappstartup.war file mentioned.
    If I follow the instructions and try configure the SM Start Stop Details the Start Stop Restart
    does not become an highlighted option.
    Here are a couple screen cuts for interested readers-
    Start Stop Details (are these correct Jrun items to fill in?):
    Unable to restart from SM:
    Regards, Carl.

  • Starting/Stopping Application Server Forms and Reports

    Hello,
    Are there any scripts (like dbstart and dbshut for Oracle DB) for starting and stopping "Application Server Forms and Reports". If not, any special suggestions?
    I must automatically start this application on Unix. I know that during starting some steps must be performedy by the root user (export DISPLAY env variable and issue the "xhost +" command) and later the oracle user must do some things( export ORACLE_HOME and DISPLAY and issue the "opmnctl startall" command). Does anybody have scripts like that?
    Regards,
    Tim

    If you're on 10.1.2, there is a script (requires an X Windows session). It's called runstartupconsole.sh, but you've got to update the install type to Portal in the ias.properties file if I remember right. It looks cool, but a shell script works better.
    Here is a shell script that does some of those things. You still need to run xhost+ after running a display if you're using something that requires a DISPLAY to start. Someone may have a better one, but this one works.
    We actually use one that starts all the different components individually except for Reports in rc scripts. That is the only thing we have that needs a Display set to start. So then xhost + is run & at the same time, the Unix sysadmin runs a script that start Reports from opmn.
    I hope this is useful.
    Cordially,
    Steve
    #!/bin/sh
    # =======================
    # Collect Global Variables
    # =======================
    # Collect server specific install location
    export ORACLE_BASE=/u01/app/oracle
    export MIDDLE_TIER_ORACLE_HOME=$ORACLE_BASE/product/ias/101202_EE/mt_maxportal_02
    export INFRASTRUCTURE_ORACLE_HOME=$ORACLE_BASE/product/ias/101202_EE/if_maxportal_02
    export SID=orcl
    # Collect current PATH and LD_LIBRARY_PATH for reuse
    export OLD_PATH=$PATH
    export OLD_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
    # Unset variables that can cause problems starting or stopping
    unset CLASSPATH
    case "$1" in
    start)
    # =======================
    # Start Infrastructure
    # =======================
    # Set environment to start infrastructure components
    export ORACLE_SID=$SID
    export ORACLE_HOME=$INFRASTRUCTURE_ORACLE_HOME
    export LD_LIBRARY_PATH=$OLD_LD_LIBRARY_PATH:$ORACLE_HOME/lib
    export PATH=$ORACLE_HOME/bin:$OLD_PATH
    # Start Infrastructure Database Listener
    echo -n "Starting Infrastructure Database Listener: "
    $ORACLE_HOME/bin/lsnrctl start
    echo "OK"
    # Start Infrastructure Database
    echo -n "Starting Infrastructure Database: "
    $ORACLE_HOME/bin/dbstart
    echo "OK"
    # Start Infrastructure OPMN managed components
    echo -n "Starting Infrastructure OPMN Managed Components: "
    $ORACLE_HOME/opmn/bin/opmnctl startall
    echo "OK"
    # =======================
    # Start Middle Tier
    # =======================
    # Change environment for middle tier
    unset ORACLE_SID
    export ORACLE_HOME=$MIDDLE_TIER_ORACLE_HOME
    export LD_LIBRARY_PATH=$OLD_LD_LIBRARY_PATH:$ORACLE_HOME/lib
    export PATH=$ORACLE_HOME/bin:$OLD_PATH
    # Start Middle Tier OPMN managed components
    echo -n "Starting Middle Tier OPMN Managed Components: "
    $ORACLE_HOME/opmn/bin/opmnctl startall
    echo "OK"
    # Start Application Server Control
    echo -n "Starting Application Server Control: "
    $ORACLE_HOME/bin/emctl startifdown iasconsole
    echo "OK"
    stop)
    # =======================
    # Stop Middle Tier
    # =======================
    # Set environment for middle tier
    unset ORACLE_SID
    export ORACLE_HOME=$MIDDLE_TIER_ORACLE_HOME
    export LD_LIBRARY_PATH=$OLD_LD_LIBRARY_PATH:$ORACLE_HOME/lib
    export PATH=$ORACLE_HOME/bin:$OLD_PATH
    # Stop Application Server Control
    echo -n "Stopping Application Server Control: "
    $ORACLE_HOME/bin/emctl stop iasconsole
    echo "OK"
    # Stop Middle Tier OPMN managed components
    echo -n "Stopping Middle Tier OPMN managed components: "
    $ORACLE_HOME/opmn/bin/opmnctl stopall
    echo "OK"
    # =======================
    # Stop Infrastructure
    # =======================
    # Set environment to start infrastructure components
    export ORACLE_SID=$SID
    export ORACLE_HOME=$INFRASTRUCTURE_ORACLE_HOME
    export LD_LIBRARY_PATH=$OLD_LD_LIBRARY_PATH:$ORACLE_HOME/lib
    export PATH=$ORACLE_HOME/bin:$OLD_PATH
    # Stop Infrastructure OPMN managed components
    echo -n "Stopping Infrastructure OPMN managed components: "
    $ORACLE_HOME/opmn/bin/opmnctl stopall
    echo "OK"
    # Stop Infrastructure Database
    echo -n "Stopping Infrastructure Database: "
    $ORACLE_HOME/bin/dbshut
    echo "OK"
    # Stop Infrastructure Database Listener
    echo -n "Stopping Infrastrucutre Database Listener: "
    $ORACLE_HOME/bin/lsnrctl stop
    echo "OK"
    reload|restart)
         $0 stop
    $0 start
    echo "Usage: `basename $0` start|stop|restart|reload"
    exit 1
    esac
    exit 0

  • 24pA - Captured timecode and DV Start/Stop

    Hello - I've got what I hope will be an easy one - though I haven't found the answers lurking around here. I'm capturing footage shot on my DVX-100A in 24p Advanced mode. I'm capturing it from my DSR-11 deck using the Advanced Pulldown Removal in FCP 5.0.3 on my Dual 1G G4 tower running OS 10.4.3. My tapes should all be Non-Dropframe I believe.
    I'm having an issue with DV Start/Stop Detect. It's putting markers where there is no start/stop between clips, and NOT finding any of the start/stop locations on the tape at all. This led me to examine my timecode more closely. I found that clips have timecode that increments like this (in the frames category):
    01, 02, 04, 05, 06, 07, 09, 10, 11, 12, 14, 15, 16, 17, 19, 20, 21, 22, 24, 25, 26, 27, 29, 00
    It plays fine in sequences set to 23.98, and even displays fine on an NTSC television I've hooked up to my DSR-11. This from the clip itself in the viewer, or from the canvas in the sequence.
    Should my timecode be incrementing that way so that it can re-reference the 29.97 timecode on my original tapes, or do I have a problem? Does anybody know why my Start/Stop Detect feature won't work? Incidentally, it works just fine for 24p normal footage captured at 29.97.
    Thanks for your help.
    Zac

    Zebulun -
    I did what you suggested. I was able to capture a few clips just fine at 29.97. I also was able to use the dv start/stop detect feature with success.
    However, using the "remove advanced pulldown" from the tools menu yielded the same odd results. It appeared to work just fine, and the info window for the clip says that the frame rate is 23.98 (with lower field dominance), but my time code still reads as it did from the above posting. Up to 29 frames, skipping frames to make it count only 24 times.
    It still seems to play fine. Any thoughts on why my timecode is doing this?

Maybe you are looking for

  • [solved] firefox and flash

    From today I doesn't see flash video in firefox. Any idea? Last edited by ugaciaka (2011-05-03 17:57:16)

  • Typecasting int into char

    I've got a method I'm working on that looks like this: private static String generatePassword() String pass = ""; int randomInt; char a; for(int i = 1; i <= PASSWORD_LENGTH; i++) randomInt = generator.nextInt(); a = (char)randomInt; pass = pass + a;

  • Linking property nodes to two cursors in one graph

    Hello, I have got one graph with 2 cursors. And I need to by able to set the coordinates of each cursor by using property nodes. However, if I click right button mouse button - create - property node - cursor - cursor position - -then there are only

  • Howto: Save prediction query results to relational table

    I believe saving prediction query results to relational tables is possible (the BI studio does it!). I am not clear on how to do this w/o the BI studio, which means if I write a DMX query and want to store its output to a relational table, how do I d

  • Converting video files for zen

    }Hello, I recently sold my old desktop and purchased a laptop. I need to obtain software that will convert my video files to suitable files for my creative zen. I will be putting them on the external memory card thats in my zen, so what program can I