Updating the targets of a running application

I have an application that is currently running in a domain configured with 4 managed servers - Server1, Server2, Server3 and Server4.
Application is deployed to one managed server only, say Server1, and I want to use WLST to add the second server, Server2
to the application's list of targets without interupting the client requests on the Server 1.
I have tried doing this through Administration Console and recording the actions, and I see this in the recorded python script:
cd('/InternalAppDeployments/APP_NAME)
set('Targets',jarray.array([ObjectName('com.bea:Name=Server1,Type=Server')], ObjectName))
set('Targets',jarray.array([ObjectName('com.bea:Name=Server2,Type=Server')], ObjectName))
I found that if I try to include this in my own WLST script the WLST script breaks on Line 1 (above).
I have also tried changing Line 1 as per below and using:
cd('/AppDeployments/APP_NAME)
set('Targets',jarray.array([ObjectName('com.bea:Name=Server1,Type=Server')], ObjectName))
set('Targets',jarray.array([ObjectName('com.bea:Name=Server2,Type=Server')], ObjectName))
However what happens in this case is the application is targetted only to the Server2, so it seems that Line 3 above overrides Line 2.
Anyone got this to work?

Hi, this script tells you the state of different applications against the target servers.
I think the script can be manipulated to slightly to suit your requirements.
http://middlewaremagic.com/weblogic/?p=7042
Thanks,
Souvik.

Similar Messages

  • In OWB I need to update the target table with same field for match/update

    In OWb I am trying to update the target table with the match and the update on the same field can this be done. I am getting a error match merge error saying you cannot update and match on the same field. But in SQl my select is
    Update table
    set irf = 0
    where irf = 1
    and process_id = 'TEST'
    Hwo do i do this in OWB.

    table name is temp
    fields in the table
    field1 number
    field2 varchar2(10)
    field3 date
    values in the table are example
    0,'TEST',05/29/2009
    9,'TEST',05/29/2009
    0,'TEST1',03/01/2009
    1,'TEST1',03/01/2009
    In the above example I need to update the first row field1 to 1.
    Update temp
    set field1 = 1
    where field1 = 0
    and field2 = 'TEST'
    when I run this I just need one row to be updated and it should look like this below
    1,'TEST',05/29/2009
    9,'TEST',05/29/2009
    0,'TEST1',03/01/2009
    1,'TEST1',03/01/2009
    But when I run my mapping I am getting the rows like below the second row with 9 also is getting updated to 1.
    1,'TEST',05/29/2009
    1,'TEST',05/29/2009
    0,'TEST1',03/01/2009
    1,'TEST1',03/01/2009

  • Execute a SQL-Insert after update the target

    Hi to All,
    my scenario is   SQL_1 -> XI -> SQL_2, but after update the SQL_2, I need to execute an SQL-insert. Can I do this without BPM?
    Regarts
    Roberto

    Hi Roberto,
    If you want to insert the SQL_2 after updation of SQL_2 then BPM is not required.
    After updating the target you can execute the insert operation. I think , you can go for Stored procedures here.
    But if you want Response back to XI after successful Update, then BPM is required.
    >>You can do this in the stored procedure. For e.g just check this blog-
    /people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
    Regards,
    Moorthy
    Message was edited by: Krishna Moorthy P

  • I just got a replacement i phone and i was setting it up and I cannot restore it with my iTunes because the soft wear is to old how to i update the soft wear without running the process

    I just got a replacement i phone and i was setting it up and I cannot restore it with my iTunes because the soft wear is to old how to i update the soft wear without running the process

    Hi Balzer1313,
    Thanks for visiting Apple Support Communities.
    If you have an older version of iTunes installed on your computer, you can update it using this menu option:
    Windows: Choose Help > Check for Updates.
    Mac: Choose iTunes > Check for Updates.
    From:
    iTunes: How to install the latest version
    http://support.apple.com/kb/ht5654
    If iTunes is not installed on your computer, you can download it here:
    http://www.apple.com/itunes/download/
    Cheers,
    Jeremy

  • When I click on Update, the "Connecting to Server" runs and does not stop or seem to connect. What to do?

    Recently I upgraded to Firefox 4. Since then, at least once a week, I get a message to update, but when I click on "update" a message "connecting to server" appears that runs and runs and nothing else happens. No update! I don't know what to do.

    If you have problems with updating then best is to download the full version and trash the currently installed version to do a clean install of the new version.
    Download a new copy of the Firefox program and save the DMG file to the desktop
    * Firefox 4.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Trash the current Firefox application to do a clean (re-)install
    * Install the new version that you have downloaded
    Your profile data is stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder], so you won't lose your bookmarks and other personal data.

  • How to get the Thread in another running application??

    Hi,
    If I have a java application running (as daemon), how can I get the running thread context from another new started java application?
    What I'm trying to accomplish here is that, after I started a daemon thread ( a ServerSocket program ), I want to write another program to control the running thread ( query the status, stop it, or restart it ...).
    Any help will be highly appreciated! Thanks.

    A different java application runs in a different Processand they cannot share anything.
    Any lucky out there? Anyone tried something on this?

  • NOT displaying the command window when running applications

    hi
    i'v been seraching all over the web for a way to get rid of the command window (dos shell) that appears when running a java swing based application (or any other). i currently have a batch file that loads all the required libraries into the class path and then calls the application's main class. problem is, the DOS command window stays open. is there any way to have it not display (obviously without losing my program in the process). at the very least can it be minimised automatically (just the dos window)?? though i think getting rid of it all together would be best.
    i would really love some help on this... very over seeing that dos window displayed...
    any help would be greatly appreciated.... thanks heaps
    Takis

    On Win NT
    REM get rid of commnand window
    start /B java swingapp
    REM minimize the command window
    start /MIN java swingapp
    REM for other options
    help start
    Hope this helps,
    Sathish.
    hi
    i'v been seraching all over the web for a way to get rid of the command window (dos shell) that appears when running a java swing based application (or any other). i currently have a batch file that loads all the required libraries into the class path and then calls the application's main class. problem is, the DOS command window stays open. is there any way to have it not display (obviously without losing my program in the process). at the very least can it be minimised automatically (just the dos window)?? though i think getting rid of it all together would be best.
    i would really love some help on this... very over seeing that dos window displayed...
    any help would be greatly appreciated.... thanks heaps
    Takis

  • I have updated the version, but in some applications it tells me that i have an out of date version

    I have updated, even uninstalled and reinstalled.
    Youtube, Outlook will not operate correctly as they say I have an old version
    When I check the version on the Firefox Help function, it tells me that it is up to date

    A program on your computer has modified your Firefox's User Agent information.
    Yours says: <code>Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 ( .NET CLR 3.5.30729; .NET4.0C) ;ShopperReports</code>
    It should look like this: <code>Mozilla/5.0 (Windows NT 6.0; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0</code>
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back soon.

  • The connecting of a different project to the target interferes with the startup application setting

    Hi folk,
    I have developed an application that runs on a WSN gateway 9792 and accesses the nodes dynamically. The application is compiled and deployed as startup application. Everything works fine and the application starts on boot.
    Now, I am trying to test the effects of different settings of the nodes, for that I have created a new project on which I have added the gateway with all the nodes of the compiled application.
    Step 1
    As I connect to the target, a pop up windows opens to resolve the conflict due to the presence of a running application. On the windows I press OK and all VIs on the target are closed, and the connection is applied and deployed.
    Without other actions on the target or nodes, I disconnect and reboot the WSN gateway 9792.
    The real-time application installed on the gateway, as startup application, does not starts on boot !!!
    Step 2
    If I do the following:
    - open the project who belongs the real-time application;
    - connect and disconnect the gateway (without actively deploy the code);
    - and reboot,
    this time, the real-time application, installed on the gateway, starts on boot.
    How I have to operate to have the real-time application running on the end of Step 1, without have to perform Step 2?
    Thanks,
    Asper

    Hi,
    these links could help you.
    http://digital.ni.com/public.nsf/allkb/8B0772F1E926C55D86256EE900778BDE?OpenDocument
    http://digital.ni.com/public.nsf/allkb/B37FA04A1CB84B6C862571A30060EF03?OpenDocument
    Best regards,
    Enzo 

  • Error while running application

    I am getting the following error while running application...Any help to fix this?
    thanks
    DeepaKarun
    Application lmts-local is already deployed on other targets. Please use create-application-ref command to create reference to the specified target; requested operation cannot be completed
    Exception=Deployment failed.
    Deployment failed.
    at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:210)
    at org.netbeans.modules.j2ee.ant.Deploy.execute(Deploy.java:75)
    at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    at org.apache.tools.ant.Task.perform(Task.java:364)
    at org.apache.tools.ant.Target.execute(Target.java:341)
    at org.apache.tools.ant.Target.performTasks(Target.java:369)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
    at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:234)
    at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:242)
    at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
    C:\Creator\Projects\lmts-local\nbproject\build-impl.xml:530: Deployment failed.
    BUILD FAILED (total time: 2 seconds)

    I am able to identify and fix the problem....Some how even after re-installing the IDE the default server user and password fields are empty. I need to give them manually.

  • The target costs in target cost version 0 are missing

    Dear Experts,
    I am getting following error while running Varience cost through KKS2:
    Only remaining var. in version 0 - no target costs for 000001061683 0001
    Message no. KV151
    Diagnosis
    For the calculation of variances with 000001061683 0001, the target costs in target cost version 0 are missing for the following reasons:
    There were no planned costs and/or planned quantities (see earlier message).
    The quantities on which the planned costs were based are zero in the time period concerned. This may be caused by the fact that no goods receipt for a cost object (such as a product cost collector or production order) has been entered.
    This results in target costs of zero.
    System response
    Because no target costs were calculated, the difference between the
    planned and actual costs could not be broken down into variance categories. The difference is updated as a remaining variance.
    Please suggest, How to proceed.
    Regards

    First check this...
    1.Go to t.code OKEV.Select Controlling Area 2222 and create Plan / Target version.
    The standard system supplies the following target cost versions:
    Target cost version 0 ( total variance)
    The amount of the total variance generates a posting in Financial Accounting during settlement.
    For this version, select actual costs as the control costs and standard cost estimate as the target costs.
    Target cost version 1 ( production variance)
    For this version you choose actual costs as the control costs and planned costs as the target costs.
    Target cost version 2( planning variance)
    With target cost version 2, the costs from the preliminary order cost estimate are interpreted as control costs. For this version, select planned costs as the control costs and current cost estimate as the target costs. You cannot calculate planning variances for the product cost collector.
    Target cost version 3 (production variance of the period)
    You compare the planned costs of the period calculated on the basis of an alternative material cost estimate (such as a modified standard cost estimate) with the actual costs of the period on the basis of the yield delivered to stock in the period.
    2.Also try In CO02 goto cunctions...cost...
    3.Go to transaction OKV6 these settings control what values are used to update the target costs.
    Target cost comes from the standard price calculated when doing a costing run. Actual costs are costs that you incur during the production order (we can reassign costs during the order so this could be different from the standard price).
    Target Costs=Actual Quantitiy X the Standard Cost Estimate Price..
    Probably the stand.cost estimate will be missing in ur case...

  • Jdeveloper - error at running application

    Hi,
    I have JDeveloper 10131 installed on computer with WIN XP SP2. My IP Address obtains automatically.
    When I try to run basic ADF application using embeded OC4J server, blank page opens on IE. This application works fine on the other computer. Database conection is OK.
    This is the log information at running application:
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\src\jdev\jdev\system\oracle.j2ee.10.1.3.39.84\embedded-oc4j\config>
    C:\src\jdev\jdk\bin\javaw.exe -client -classpath C:\src\jdev\j2ee\home\oc4j.jar;C:\src\jdev\jdev\lib\jdev-oc4j-embedded.jar -Dhttp.proxyHost=PROXY.GOV.SI -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts=10.*|*.gov.si|*.sigov.si|localhost|127.0.0.1|AKTRP-NXP-002 -Dhttps.proxyHost=PROXY.GOV.SI -Dhttps.proxyPort=80 -Dhttps.nonProxyHosts=10.*|*.gov.si|*.sigov.si|localhost|127.0.0.1|AKTRP-NXP-002 -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\src\jdev\jdev\system\oracle.j2ee.10.1.3.39.84\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    14.10.2007 5:35:54 com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering transactions (commit 0) (rollback 0) (prepared 0).
    14.10.2007 5:35:54 com.evermind.server.jms.JMSMessages log
    INFO: JMSServer[]: OC4J JMS server recovering local transactions Queue[jms/Oc4jJmsExceptionQueue].
    07/10/14 05:36:05 Oracle Containers for J2EE 10g (10.1.3.1.0) initialized
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 28081 ms.
    Target URL -- http://127.0.0.1:8988/practice09-ViewController-context-root/welcome.jsp
    14.10.2007 5:36:19 oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse run
    WARNING: IOException in ServerSocketAcceptHandler$AcceptHandlerHorse:run
    javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
         at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(InputRecord.java:501)
         at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:343)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:720)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1025)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1038)
         at oracle.oc4j.network.ServerSocketAcceptHandler.doSSLHandShaking(ServerSocketAcceptHandler.java:250)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:868)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
         at java.lang.Thread.run(Thread.java:595)
    Best regards,
    Tomaz

    weblogic.common.resourcepool.ResourceSystemException: Could not connect to 'oracle.jdbc.OracleDriver'. The returned message is: ORA-01017: invalid username/password; logon denied It is likely that the login or password is not valid. It is also possible that something else is invalid in the configuration or that the database is not available.
    So...
    check that any DB connections you have defined have valid username/password and that the database is functioning.

  • Clearing Online redo logs on the target physical standby

    Hi,
    Version 11202.
    Primary on machine A
    Standby on machine B
    Following note: 11.2 Data Guard Physical Standby Switchover Best Practices using SQL*Plus [ID 1304939.1].
    Online redo logs on the target physical standby need to be cleared before that standby database can become a primary database. And later :
    On the target physical standby run the following query to determine if the online redo logs have not been cleared... 1) I did not understand where i should run the query. On machine A or on machine B ?
    2)
             Online redo logs on the target physical standby need to be CLEARED
            What does it mean that it need to be CLEARED ? Does transaction might be lost by running the clearing command?
    Thanks

    I have used my note many times in production.
    For example they needed to do some power work on the main server room a few months back on the weekend.
    We did switchovers until the work was complete and then a switch back.
    I wrote a short document called "Switchover post-mortem lessons" the main point from that was :
    1.
    getting ORA-01017 issues in Oracle forms (  Application ) after the switchover to standby.
    The issue was caused by the Standby database having a different parameter for passwords than the Primary database.
    This did not show up in testing because all the tester we used had converted passwords from Oracle 10.
    Solution
    When in doubt issue this on the new Primary :
    SQL>ALTER SYSTEM SET SEC_CASE_SENSITIVE_LOGON = FALSE;
    Note: This command can be issued repeatedly with no negative effect on the system.2.
    The query to check switch_over status was returning "LOG SWITCH GAP"
    select switchover_status from v$database;
    This is an issue because Oracle says the return values should be one of these :
    NOT ALLOWED
    SESSIONS ACTIVE
    SWITCHOVER PENDING
    SWITCHOVER LATENT
    TO PRIMARY
    TO STANDBY
    RECOVERY NEEDED
    LOG SWITCH GAP is not one of the expected value. In addition this phase is not search friendly either on the Oracle support site or your favorite search engine.
    Given this I ran this query :
    SELECT 
      NAME AS STANDBY,
      SEQUENCE#,
      APPLIED,
      COMPLETION_TIME
    FROM
      V$ARCHIVED_LOG;
    Solution
    SQL>ALTER SYSTEM SWITCH LOGFILE;
    And wait a few minutesMy switchover document had no issue.
    Best Regards
    mseberg

  • BW 3.5 - Update to PSA only / Read PSA and Update Data Target

    Hi Folks,
    I am planning to use on a  BW 3.5 data source and infopackage that loads to PSA only (as the source system job runs quite long and we would run other prepration loads in parallel before pushed to final cube). And then later in the process chain the process Read PSA and Update Data Target to load the data to final cube.
    As we plan to run the process chain 3 times a day I was wondering if the Read PSA and Update Data Target always takes only the latest request loaded to the PSA (as it is always the same infopackage) or do we have to delete the PSA request at the end of each process chain run so that not the next run will load the PSA request again as it is still in the PSA?
    Thanks for all replies in advance,
    Axel

    You are loading the Delta till the PSA, multiple times a day, and after each update to the PSA you will send the data to the Cube.
    Once its there in the PSA, you are performing further tasks & then updating the cube multiple times (once after each delta)
    Well, the 1st load to the cube should be OK.
    But, from the next load onwards, it would pick up all the requests from the PSA & you will have wrong values in the Cube.
    Because, i think, while using 'Read PSA & Update the Target', you can't set it for a FULL or a DELTA load.
    It will bring in everything that exists in the PSA.
    I would advice you to clean the PSA before the starting next Delta.
    But, there is a counter argument.
    If the data mart sign is reflected in the PSA for the request that has been loaded into the cube, then the next time the system will pick up the request which does not have a data mart symbol.
    You can always give this a try in your Dev system.
    Edited by: Vishal Sanghvi on Apr 1, 2011 1:58 PM

  • GR Cost not updating as Target Cost for process orders

    Dear SAPians,
    We are facing an issue in Target Vs Actual cost reporting for process orders. We are creating a process order after cost estimate of that material and doing the confirmations for activity cost. After that, GR has been done for the finished goods of that process order. That GR entry is updating the Actuals values but not updating the Target cost. When I am checking the standard report KKBC_ORD, I am getting the following figures.
    Cost Elemnt Text     |     Target Cost     |     Actual Cost     |     Target Vs Act
    Inventory Chnge FG     |     0     |     1,472,205.60-     |     1,472,205.60-
    Packing Matrl Cons.     |     1,148,142.37     |     1,252,752.68     |     104,610.31
    Raw Material Cons.     |     60,463.91     |     50,688.29     |     224.38
    Semi-Fin Matrl Cns.     |     181,934.68     |     367,959.56     |     186,024.88
    Labour Cost Activity     |     39,735.36     |     39,862.80     |     127.44
    Machine Cst Activty     |     41,611.75     |     43,153.01     |     1,541.26
    That 'Inventory Change FG' entry is showing the GR posting updating actuals and not target cost. This is causing huge difference in target vs actual cost that will affect the profit and loss figures ultimately.
    What am I missing here? What should I do to update the GR amount in Target cost as well.
    Shirazi

    Dear,
    Target Cost on Production Order or Process Order is shown only when Variance is Calculated.
    So please calculate the Variance, system will show the Total Target Cost.
    Br,Vivek

Maybe you are looking for