Maxl script start & Stop application

Hello all-
Is there a way to start and stop the application via MAXL script? What command should i use to acheive this?
Thanks

Maxl
alter application load database app.db
alter application unload database app.db
More info here :- http://download.oracle.com/docs/cd/E10530_01/doc/epm.931/html_esb_techref/maxl/ddl/statements/altapp.htm
Cheers
John
http://john-goodwin.blogspot.com/

Similar Messages

  • API to Start / Stop Applications or to perform NWA like operations

    Hello,
    is there an API available that enables me to start and stop deployed ears programmatically?
    Or more generally asked, is there a way to perform the same actions that are possible with the NWA, e.g. modify web service ports, deploy applications and so on.
    Thanks in advance.
    ciao,
    Elmar

    Yes there is. I am trying to use it right now.
    It is the DeplyService interface (com.sap.engine.services.deploy.DeployService) which is contained in the deploy.sda.
    You can use it to start/stop applications, remove applications, deploy applications, etc.

  • Script Start/Stop Oracle Applications Services

    Hi
    I am constructing some scripts to stop or start some Oracle Applications services (APP, Apache, DB, Construct Manager, discover, forms, etc)
    I now that are some script in the folder \viscomn\admin\scripts\, but my questions are, what services must I stop/start first?? The APP?? Then the BD vision?? Then apache?? Or first BD, discover, apache, app, etc?
    Please can anyone help on this? Tank you
    JailBreak

    Hi
    Tank you for your reply’s.
    Yes i will use the Oracle scripts to stop and start services.
    But when the Network Administrator shutdown the server, he must shut down some services, and I will include this scripts in the main script. But my dough was what services will stop first.
    The IAS services don’t need to be started?? My IAS service are all stopped and if I start Apache Server Service first, the IAS HTTP Server service don’t start. I must start IAS HTTP Server first, then start apache server. IF not give an error and the service don’t start. But then after the Apache Server will stop by itself.
    And some times the Oracle script doesn’t start the Concurrent Manager Service. I must start it manually.
    My services that are started are:
    Oracle Apache Server
    Oracle Fulfiment Server
    Oracle Metrics Server
    Oracle Metrics Client
    Oracle Reports Server
    Oracle Concrrent Manager
    Oracle Discover Server
    Oracle Forms Server
    Oracle OracleVIS_db920_RDBMSTNSListenerVIS(from the OracleVIS_db920_RDBMSTNS this is the only service that are started, the others are stopped. Is this correct?)
    Oracle OracleVISOra806_2TNSListener80APPS_VIS
    This is all the services that are started.
    But I have a problem in my discover. When I login to the applications as a user, and pick some options (that will open discover) it gives me one error.
    Locator unable to start session altranitsgp.altranit.pt_8000OracleDiscovererSession4. - Hint: An administrator can further diagnose connection problems by running the "checkdiscoverer" script under <ORACLE_HOME>/806/discwb4/util.
    But I have started the Discover Server and tested, and all went ok. The problem is in the applications. I don’t know why.
    Any one can give a hand on these issues?
    Tank in advance.

  • Creating a Business Service for Start/Stop Application Service in CCB 2.3.1

    Hi,
    I'm in the process of creating a BPA script that invokes a Business Service to perform a Start/Stop for a given Account ID/Premise ID combination. The Business Service is using the base Application Service: Start Stop (CILCSSEP). I am moving the Account ID and Premise ID, along with the start date and requested by fields to the data area of the Business Service, prior to invoking it. When I invoke the Business Service via the BPA script, it throws the below error message... I'm at a loss because the BILL_ADDR_SRCE_FLG is being set to a default of "PREM" on the Business Service Schema:
    A Bill Address Source is required on the address override record. Please enter a valid value.
    One of these two is true:
    1) The Bill Route Type on this record has a Bill Routing Method of 'Postall', or
    2) The main customer on the Account has a Quote Route Type with a Quote Routing Method of 'Postal'.
    In either case, the Bill Address Source must be populated with a valid value.
    If you need support please supply the following info to system support:
    Message number: 3, 59204
    Business Service: CMSTARTSERVICE
    Application Service: CILCSSEP
    Schema:
    <schema pageAction="fastChange">
    <accountId mapField="ACCT_ID"/>
    <df mapField="DEFAULT_FOR_FLG"/>
    <startDate mapField="STRT_START_DT"/>
    <startOption mapField="STRT_TYPE_FLG"/>
    <premiseId mapField="STRT_PREM_ID"/>
    <premAddress mapField="ADDRESS1"/>
    <premCity mapField="CITY"/>
    <startCisDiv mapField="STRT_CIS_DIVISION"/>
    <startReqBy mapField="STRT_STRT_REQ_BY"/>
    <bldStrtSaSw mapField="BUILD_START_SA_SW" default="true"/>
    <accountIdtwo mapField="ACCT_ID2"/>
    <mainCustPerId mapField="MAIN_CUST_PER_ID"/>
    <billFrmtFlg mapField="BILL_RTE_TYPE_CD" default="POSTAL" private="true"/>
    <billAddrSrcFlg mapField="BILL_ADDR_SRCE_FLG" default="PREM"/>
    <billAddrSrcFlg2 mapField="BILL_ADDR_SRCE_FLG2" default="PREM"/>
    <startStopTelephoneOverride type="list" mapList="OVRD_PHONE">
    <accountId mapField="ACCT_ID"/>
    <sequence mapField="SEQ_NUM"/>
    <phoneType mapField="PHONE_TYPE_CD"/>
    <internationalPrefix mapField="COUNTRY_CODE"/>
    <phone mapField="PHONE"/>
    <extension mapField="EXTENSION"/>
    <version mapField="VERSION"/>
    </startStopTelephoneOverride>
    <startBtn mapField="ACTION_START_SW" default="true" private="true"/>
    </schema>
    I'm running CC&B 2.3.1 - Any help in pointing me in the right direction to get this working would be greatly appreciated, Thanks!
    Regards,
    Jack

    Hi,
    Can you try and do this transaction online and see if the error occurs as well? If so run it with traces on and check for the details just before the error is thrown. ( you can also switch on debug via the service call, but it may be easier to debug when doing this online. ) I am predicting this error will occur also when you do it online.
    When you are using an Account with its main Person set up with BILL_ADDR_SRC_FLG as PREM you will need a valide PREM_ID on the CI_ACCT record for MAILING_PREM_ID and the premise needs to have a switch set to YES indicating it is a Mailing Address type Premise.
    Good luck
    Arjen

  • Programmatically start/stop applications without admin server connection

    I know I can programmatically start/stop an application through WebLogic's deployment API, but the call needs to go through admin server. I was wondering if there's a way for an application to start/stop another application on the same managed server when the admin server is down. I remember a managed server could be started without an admin server (unless it's started for the first time). So I suppose there must be some way to programmatically start/stop local applications without an admin server as well.
    Thank you for your help in advance.

    Hai,
    I read the Oracle weblogic wlst script document without Admin server you cannot connect the managed server through the WLST script. see the below lines
    "The start command starts Managed Servers or clusters in a domain using Node Manager.
    To use the start command, WLST must be connected to a running Administration Server.
    To start Managed Servers without requiring a running Administration Server, use the
    nmStart command with WLST connected to Node Manager."
    "You shut down a server to which WLST is connected by entering the shutdown command
    without any arguments.
    When connected to a Managed Server instance, you only use the shutdown command to shut
    down the Managed Server instance to which WLST is connected; you cannot shut down another
    server while connected to a Managed Server instance.
    WLST uses Node Manager to shut down a Managed Server. When shutting down a Managed
    Server, Node Manager must be running.
    In the event of an error, the command returns"
    They are two option if you are using adminserver then we can stop the any Managed server.
    The option is if you are using the nodemanager without admin server we can stop the any Managed server.
    The last final solution to kill the particular Managed server pid.
    Regards,
    S.vinoth babu

  • 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

  • Automate start/stop essbase service using Maxl or batch

    Hi - how would my batch or Maxl file look like if I wanted to come out with a script to stop and start my essbase service? The reason why i am doing this is because I wanted to stop the essbase service, so that I can archive the essbase.log file.
    I am on essbase 7.0, I have read on some postings that stopping and starting the essbase service can potentially corrupt the sec file. If so, then is there any other way of archive the essbase.log file so that it does not grow to megs.
    Thanks.

    Hi,
    You could use the following maxl
    alter system shudown;
    it may be useful to stop all the applications first e.g.
    alter system unload application all;
    or you can use windows command line
    net stop essbaseservicename
    and to start
    net start essbaseservicename
    Another method to backup the essbase.log is to make a copy of the log then use maxl to delete the log.
    alter system clear logfile;
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Application Start & Stop

    What could be  the problems if we stop and start the essbase BSO application i.e., 6 time per day

    But when stopped , there is no Data movements , all processes are stalled . But still we get data but may not be the exact and expected Data ?
    Let me clarify. It's not that when the application is stopped, you don't have the expected data. That's not right.
    It all depends on the process that has been setup
    1. How frequently you update your application with the actual data?
    2. Even when your application is stopped, when an activity is initiated it will automatically start the application if "Enable database to start" is enabled.
    We have build a process using shell scripts & maxl scripts that will run for every 15 minutes. Below is what it will do
    1. Check active sessions for all 15 - 20 applications
    2. mark which applications doesn't have any active sessions and stop the applications
    3. write which applications
    Process takes < 1min and we never had any issues till now.
    You may have to think about all the possible options / approaches and pros and cons before deciding of how to take it forward
    Regards
    Amarnath
    ORACLE | Essbase

  • Shell script to start, stop and restart a JAR

    Hi everyone,
    Does anyone have idea to write a shell script to start, stop and restart a JAR under linux? it can indicate a method or parameter? Thanks!
    this JAR inculdes a class with main method like this:
    public class Client(){
      public Client(String name){
      public void stopClient(){
      public static void main(String[] args){
         new Client("/tmp/text.log");
    }

    Does anyone have idea to write a shell script to
    start, stop and restart a JAR under linux? That part isn't really clear.
    Start would be java -jar myjar.jar.
    Stop could either be kill, which kills the whole process; kill -TSTP, which suspends the process, or some application-specific communication such as sending something over a port; or putting something into a file or something.
    Restart could just be the same as start (if stop is just kill); kill -CONT, if stop was kill -TSTP; or some other app-specific communication.

  • Shell script to start, stop and restart a JAR under linux

    Hi everyone,
    Does anyone have idea to write a shell script to start, stop and restart a JAR under linux? it can also indicate a method or parameter? Thanks!
    this JAR inculdes a class with main method like this:
    public class Client(){
    public Client(String name){
    public void stopClient(){
    public static void main(String[] args){
    new Client("/tmp/text.log");
    }

    Does anyone have idea to write a shell script to
    start, stop and restart a JAR under linux? That part isn't really clear.
    Start would be java -jar myjar.jar.
    Stop could either be kill, which kills the whole process; kill -TSTP, which suspends the process, or some application-specific communication such as sending something over a port; or putting something into a file or something.
    Restart could just be the same as start (if stop is just kill); kill -CONT, if stop was kill -TSTP; or some other app-specific communication.

  • Script to start/stop all manager sever/Admin server

    Hi Gurus,
    I am new bee to weblogic and learning it on daily basic.
    I have a scenario and would like to see if this is possible.
    We have one server and have couple of applications are running like SOA,OSB, OSR etc. During any downtime, we have to shut down each Admin Server, Manage server one by one and take up. This take time and effort too.
    Do we have some options through which we can configure all start/stop script in one file and do this work with few clicks. server shout down should be clean and take care of node manager recycle also.
    Could you please advise me on this or pls point me towards some already documented solution. I goggled this but did not find.

    Thanks radoui for your response.
    I see this approach as the default one.. Could you please advice me whats the correct sequence of shutting down the servers including node manager and starting back.
    Like I have SOA installed.
    So First I have to take down SOA managed server followed by Admin server and then node manager ..? Let me know if this is not correct.
    I still have doubt on this approach as if, managed server failed to stop and means while script will take down admin server and so on..

  • Starting and stopping applications via a Java-application on Windows/Unix

    Hello,
    I want to start java and other applications via a java application.
    This java application should start several different applications on windows and
    on unix systems and take care of their current state (e.g. running/not running).
    For all applications to be started there are .sh-scripts for unix and .bat-scripts
    for windows. In the scripts there could be a java call, e.g. "java someApplication",
    or some executables could be called. These scripts set the applications' environment etc.
    and start the application finally.
    My java application calls these scripts via the ProcessBuilder API, which is working fine.
    But there is the following problem: on windows, when executing a script that starts
    some other application, the ProcessBuilder gives me process-handle to the started
    process. If calling destroy() on this handle, only the cmd.exe gets killed which
    started the application. The application itself is running on. This is undesired behaviour
    since I want to be able to control the started applications, at least start and stop it which
    is impossible that way.
    On unix, it is working when using
    "exec java someApplication"
    instead of just
    "java someApplication"
    in the .sh-scripts. The exec command substitutes the shell process with the underlying
    process started in the script, so everything is working as expected on unix.
    But how could I get this working on windows systems? Is there any equivalent to the exec
    command on unix? Any suggestions appreciated.
    If something's unclear in my description, please let me know.

    Yes - after looking at this option - I think that's the direction I am going to go. It probably makes sense to give my JMS topics and my BPEL server their own OC4J instances anyway - for a number of reasons.
    Lon

  • 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

  • What effects when the scripts in INST_TOP were START / STOP

    What effects when the scripts in INST_TOP were START / STOP
    adalnctl.sh adforms-c4wsctl.sh adopmnctl.sh gsmstart.sh msc
    adapcctl.sh adformsctl.sh adpreclone.pl ieo mwactl.sh
    adautocfg.sh adformsrvctl.sh adstpall.sh javacache.log mwactlwrpr.sh
    adcmctl.sh adoacorectl.sh adstrtal.sh java.sh sqlnet.log
    adexecsql.pl adoafmctl.sh cm.sql jtffmctl.sh synonym.txt
    When we will connect through front end (URL), how will we know that which service is not working and what is the main problem and how to solve that.

    Please post the details of the application release, database version and OS.
    What is the status of the services? Please issue "adopmnctl.sh status" and post the output here.
    What is the reason, when we tried to connect through front end but its showing white screen and not connect? How to rectify it?Compile JSP files manually -- Blank Page Accessing R12 - 'Missing class: _RF' in OACore application.log [ID 467562.1]
    What is the reason, when we entered our Username and Password on first screen, but after that its not connected to our apps? How to rectify it?What is the error? Any errors in Apache log files?
    What is the reason, when it shows HTTP Error 500 Internal Server error. How to rectify it?Again, check Apache log files for details about the error.
    Please run AutoConfig and make sure it completes successfully.
    Also, make sure no errors are reported in the database log file.
    R12: Troubleshooting 500 Internal Server Error in Oracle E-Business suite [ID 813523.1]
    Thanks,
    Hussein

  • Automated Start Stop of Application Servers and CI

    Hello,
    For our non-production systems, we take offline backups every week.  I was just wondering if there's anyone out there who has a UNIX script that can start and stop application servers and the CI when taking an offline backup.
    Thanks,
    Florencio

    Hi,
    have you thought about using online backups ? This makes live easier. If you have DB2 9 you can also use online backups including logs to be sure that you can recover your database with just the backup image.
    If you have a single-partitioned database, you can use the tool dmdb6bkp to issue an offline backup (forces out any connected application be restarting the database instance, therefore it is not necessary to stop the application servers)
    To stop your app server and database you can use thes stopsap script. In the stopdb script you may need to make adjustments to force the database instance stop (the db2stop force command is commented out).
    Btw, with DB2 9.5 you can now use online backup include logs also on multi-paritionend DPF databases.
    Regards, Jens

Maybe you are looking for

  • Goods Receipt reversal posing for Inbound delivery

    Hi Gurus, There is an interface running which create, IDOC, Inbound delivery, HU and material received (material document created - 521mvt type) to stock. Now there is some problem in the HU weight and I need to reverse the Material docuement with 52

  • IMovie HD projects on an external hard drive problems?

    I've recently been making a highlight tape for my football team. Since i dont want to take up that much space on my computer, I've decided to use an external hard drive. Making this project means taking DVD's that arent in the correct format and ripp

  • Inconsistent datatypes: expected - got -

    hi i am getting the error Error(45,12): PL/SQL: ORA-00932: inconsistent datatypes: expected - got - in this procedure i tried a lot and landed in confused state.. create or replace PROCEDURE BT_CPE_XML_READ1 IS dest_clob CLOB; src_clob BFILE := BFILE

  • Problem sending emails out...

    Problem sending emails when saved first as a draft. When I go to send the final draft, it disappears, including the draft. Very upsetting, happened many times but not consistently... Help please, any ideas?

  • Issue with empty value of LOV of first row after clicking on add row button

    JDeveloper 11.1.14 I have a page with table-form layout. In the form I have two detail tables on the same page (tabbed). I have an issue with using model-choicelist LOV's in the detail tables. I am able to add a new row in the detail table, select a