WebLogic Datasources : Automatically Shutdown and Start up

Hi there,
I have a problem with my datasources, I have WLST script which shutdown and start automatically some datasources in my environment, all of them in my crontab !
Follow exactly my script !
[weblogic@wls_server restartDS]$ cat shutdownDS1.py | more
connect('weblogic','password','t3://server:10000')
domainConfig()
servers = cmo.getServers()
domainRuntime()
for server in servers:
try:
print 'check ' + server.getName()
print '/ServerRuntimes/' + server.getName() + '/JDBCServiceRuntime/' + server.getName() + '/JDBCDataSourceRuntimeMBeans/MYDATASOURCE-XA1'
cd('ServerRuntimes/' + server.getName() + '/JDBCServiceRuntime/' + server.getName() + '/JDBCDataSourceRuntimeMBeans/MYDATASOURCE-XA1')
objectArray = jarray.array([], java.lang.Object)
stringArray = jarray.array([], java.lang.String)
invoke('shutdown', objectArray, stringArray)
except WLSTException,e:
print server.getName() + 'is not running.'
for server in servers:
try:
print 'check ' + server.getName()
print '/ServerRuntimes/' + server.getName() + '/JDBCServiceRuntime/' + server.getName() + '/JDBCDataSourceRuntimeMBeans/MYDATASOURCE-XA2'
cd('ServerRuntimes/' + server.getName() + '/JDBCServiceRuntime/' + server.getName() + '/JDBCDataSourceRuntimeMBeans/MYDATASOURCE-XA2')
objectArray = jarray.array([], java.lang.Object)
stringArray = jarray.array([], java.lang.String)
invoke('shutdown', objectArray, stringArray)
except WLSTException,e:
print server.getName() + 'is not running.'
exit()
Don´t worry, I have another script which kill XA3 and XA4 datasources as well, so, this way, I have load balancing here !
It works with CRONTAB !
The problem here is : Doesn´t matter if datasources are running or not, simply , datasources automatically shutdown and after that, start it! But I would like to improve this, I would like to implement datasource status condition, I mean, when datasource it become overloaded, it kill automatically , this way, I would not use crontab, but another kind of trigger |!
Did you see this before ?
I would like to improve this workaround !
Just keep in mind, me and my team, didn´t discover the root cause yet, so, this automatically datasource restart is a kind of workaround!
Thanks in advance !
Edson

Hmm. what was the problem app?
Force a shut down by holding the power button for an extended amount.
Reboot into SafeBoot mode to clear cache files, then reboot as normal.
SafeBoot  http://support.apple.com/kb/HT1564

Similar Messages

  • Automatic Scheduling of Virtual Machine Shutdowns and Start-ups

    Is there a scheduler available to Shutdown and Start-up Azure Virtual Machines?

    Hi,
    Based on my experience, if you shut down the VM within the RDP session, the VM would be in the stopped status and you will still pay for it.
    Do you want to stop it to the stopped(deallocated) status to save money? If yes, you can create schedule tasks with Azure PowerShell cmdlets on your local computer.
    Start-AzureVM -ServiceName xxx -Name xxx
    Stop-AzureVM -ServiceName xxx -Name xxx (VMs would be in the stopped(dealloacted) status)
    Stop-AzureVM -ServiceName xxx -Name xxx -StayProvisioned (VMs would be in the stopped status)
    Please note that if all the VM in a cloud service are in the stopped(deallocated) status, the public IP address would be changed next time you start a VM.
    More information:
    How to install and configure Azure PowerShell
    Start and Stop Windows Azure Virtual Machines
    Best regards,
    Susie
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • How may I automatically stop and start Mail services at a set time please

    Hi folks. I was wondering if anyone could tell me how to automatically stop and start Mail services (or any other services) at a set time please in Leopard Server? Is there a script someone has created which might help?
    Cheers, David ( a realy newbie when it comes to administering OS X server)

    launchd works through a series of XML documents that define tasks to run, either at launch, on a time schedule, in response to network events, etc.
    So you'll need to create two .plists - one to start the mail server and one to stop it. They should be saved in /Library/LaunchDaemons. I'd suggest something like:
    /Library/LaunchDaemons/local.postfix.stop.plist:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple
    .com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
      <key>Label</key>
      <string>local.postfix.stop</string>
      <key>ProgramArguments</key>
      <array>
        <string>/usr/sbin/serveradmin</string>
        <string>stop</string>
        <string>mail</string>
      </array>
      <key>StartCalendarInterval</key>
      <dict>
        <key>Hour</key>
        <integer>1</integer>
        <key>Minute</key>
        <integer>00</integer>
      </dict>
    </dict>
    </plist>
    and /Library/LaunchDaemons/local.postfix.start.plist:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple
    .com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
      <key>Label</key>
      <string>local.postfix.start</string>
      <key>ProgramArguments</key>
      <array>
        <string>/usr/sbin/serveradmin</string>
        <string>start</string>
        <string>mail</string>
      </array>
      <key>StartCalendarInterval</key>
      <dict>
        <key>Hour</key>
        <integer>4</integer>
        <key>Minute</key>
        <integer>00</integer>
      </dict>
    </dict>
    </plist>
    You'll need to either use launchctl load /Library/LaunchDaemons/local.postfix.stop (or start) to load the tasks, or reboot your server.
    I'm curious, though, as to why you want to do this. Mail is typically one of the services that people want to run 24/7 so they don't miss out on any emails (even though SMTP can tolerate this). Why do you want to shut yours down?

  • How to shutdown and start agent in ODI 11g in Linux Environment

    Hi Experts,
    Pls any one can help me on "How to shutdown and start agent in ODI 11g in Linux Environment" and where can I find Agent.sh and Agentshutdown.sh files location in ODI 11g and parallely how can I find Odiparameter.sh file location
    Thanks in Advance
    Regards
    Phani

    Phani ,
    Go to your <ODI_11g_HOME>/oracledi/agent/bin
    and you will find agent.sh , agent_<standalone_agent>.sh and odiparams.sh and other agent files.
    Step 1. Update your odiparams.sh
    Step 2. Create the Physical and Logical Agent int your Topology using the same port_number and name provide while creating the Stand alone agent during installation ( or) create accordingly the agent in Topology with name and port number as required and make the modification in agent_<stand_alone>.sh file
    Step 3. After doing so start your agent_<stand_alone>.sh
    Step 4. Repeat the process 2-3 for any number of stand alone agent created on different ports and steps 1 to 3 for different Work repository
    Thanks
    Dev

  • MacPro Won't restart - clicking noise - full shutdown and start OK

    I've been having this problem with my MacPro 1,1 for months. If I restart it will just hang there making a clicking noise until I hold the power button to force it to shutdown and then I can start it without any problem.
    Recently I had a complete hard drive failure and used Time Machine to restore onto a new hard disk. Now I have a problem where sometimes it just sits there with a folder with a question mark on it showing it can't find the drive to boot from. If I hold down the alt key then it shows my disk but calls it EFI Boot, not it's normal name of Macintosh HD, but then it can start up fine.
    So I'm not sure if I've got two problems or if my old problem just got worse, any other info I need to post to help diagnose the problem?

    "EFI" is cosmetic and can be result of using Disk Warrior for one. I think the trick is to reset Startup Disk off and back to the volume.
    And DO run Disk Warrior in addition to Apple DU to repair and rebuild the directory!

  • Under SL, a 2nd disk partition disappears; re-appears if shutdown and start

    Background: MacBook Pro, two+ years old. On day one I partitioned the 100GB drive into three sections for MAC OS, DATA and WINDOWS. Never installed Windows.
    Just installed SL upgrade. Had some problems; MAC OS space was insufficient. It took SL a while to decide the WINDOWS partition was the wrong format. (I had forgotten the FAT formatting from two years ago.) SL install went into a loop more than once. Finally had to re-install the original MAC OS and then installed SL, which now seems to be working fine. (This is the short version of four+ hours to install SL.)
    But now the DATA partition disappears at random times. It will be displayed on the desktop at startup and then, a while later, no longer be displayed. Disk Utility will show it as greyed out but Disk Utility Verify will report it's fine. If I shutdown and restart, it re-appears on the desktop.
    I have used Time Machine since it came out. If the DATA partition is visible, Time Machine will include it in the next backup. If it is not visible, Time Machine will not include it.
    My first goal is the get the DATA partition stable and permanently visible if there is something obvious that I can correct.
    In studying this problem, I've learned that the MAC OS partition, 48.97 GB, is down to 137.3MB of free space. Is this a possible cause of the DATA partition problem? What other operating symptoms might I be seeing due to insufficient free space?
    From reading other posts, it seems I have to re-format the entire disk drive to recover the WINDOWS partition, which is 12.75GB. Is that correct?
    If I do a re-format and complete SL install, will Time Machine restore all of the working data?
    thanks
    Ray

    Hi Ray;
    Yes, running with only 137.3 MB in your system partition can cause all sorts of problems. I would suggest you get rid of enough of your files to get at least 10 GB free.
    Since you are not using the Windows partition that might be a good place to move your photos and music to.
    Allan

  • Dear All, I have to restart (Shutdown and Start) my MAC Outlook every time for new mails.

    Dear All,
    i have configured my office mail on MAC Outlook. I have some queries.
    1) I have to restart my Outlook after every 5 minutes to receive new mails. They are not pop up automatically.
    2) Every time i start outlook the bar (left side of my outlook in bottom) of sent and receive starts e.g: Retrieving (4/16000).How can i stop this to retrieving again and again.Even i can see my all 16000 mails in my outlook.
    3) The process of retrieving mails is very slow for example 4/16000 mails took almost 3 minutes.
    Please help me to resolve my problem.
    Your urgent reply will be highly appreciated.
    Thanks
    Adeel Imtiaz

    Dear Toocool4,
    Thank you for your reply.
    Its not exactly message 4 what i want to say is i can see my all 16000 mails in my outlook but every time when i star my outlook all this stats again.And secondly i am unable to receive my news mails until i restart my outlook.
    Thanks
    Adeel Imtiaz

  • Xperia Z1 keeps shutting down does not restarts,and automatically stops and starts charging randomly

    My Sony Xperia Z1 keeps shutting down due to high temperature even though its not overheated, or i am not running any app. It does not restarts even after i give it some time to cool down as it soon again displays the same messege (SHUTTING DOWN DUE TO HIGH TEMPERATURE), then when i connect a charger it automatically starts charging and discharging (even though if the charger is connected and ON) the cell phone
    I request you to kindly look into the matter, expedite the situation and suggest me any possible solution asap
    also i would request you to not to release any OS updates unless they are fully stable and functional, i have bought this device 6 months back and it has already malfunctioned 3 times which is a serious concern. I cannot keep on updating and repairing my cell phone after every month or so which i feel is very irritating.
    Please stop treating these devices as developers guinea pigs

    I suggest that you try to repair the phone software using PC Companion..
    Before repairing your device you may want to backup your information first. Check out this topic for more information on how to.
    How to backup?
    If the issue should still remain I think that this needs to be examined and fixed at a repair center. For more information about how to submit your phone for repair and where, contact your local support team.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • I was using skype. Every application was working, but I couldn't control any application. Somehow managed to shutdown and start. Please help

    I was using Skype, for more than an hour. I had safari running as well. All of a sudden Skype video got disconnected, then all applications started behaving strangely. I could not control any applications. System was acting strangely. Somehow managed to shutdown the system and restart. Please help

    Disconnect all peripherals from your computer.
    Boot from your install disc & run Repair Disk from the utility menu. To use the Install Mac OS X disc, insert the disc, and restart your computer while holding down the C key as it starts up.
    Select your language.
    Once on the desktop, select Utility in the menu bar.
    Select Disk Utility.
    Select the disk or volume in the list of disks and volumes, and then click First Aid.
    Click Repair Disk.
    Restart your computer when done.
    Repair permissions after you reach the desktop-http://support.apple.com/kb/HT2963 and restart your computer.
    Skype issues should be posted in their forums and reported to their tech support department. 

  • Automatic shutdown while starting up

    Hello,
    I have this huge problem. I am using 17" MacBook Pro, running Leopard (with latest updates). I also have Windows installed on bootcamp.
    I use OS X 99% of the time, but today I had to boot into Windows to open an aplication specific file. As usual, I restarted my computer and held down the option key. Nothing happened. I tried it for second time and still no screen to select the OS. So I selected windows as a startup drive from osx preferences pane. It booted into windows and I was able to do what I wanted.
    Now it was time to get back into OS X. I tried again, holding down the option key, but it didn't work. So, I let it boot back to windows and then manually selected 'Restart in OS X' from the bootcamp menu.
    My computer restarted and it seemed to work, but not really. I get the apple logo and spinning wheel, but in about 15 seconds, the computer shuts down automatically. The problem is that none of the boot shortcuts such as 'c' or 'Command-V' works... I can't even get into verbose mode to see where it fails. It is very strange. I have tried to put in osx install cd, but it won't boot to installer either.
    Basically it seems that the keyboard won't load till the apple logo appears (I figure this by pressing the caps lock key to see when the green light litghts). I think It might be somehow related to that I purchased an USB keyboard. None of the keyboards work. I thought it might be a faulty memory, but I tested it in other computer and it´s not.
    Any ideas how to solve this?

    Hi G00dEgg;
    Generally if the "Dang"as you call it fails to occur during boot that is an indication that POST (Power On Self Test) has failed for some reason. Since you were able to fix yours with a PRAM reset this would seem to indicate that some how the data in PRAM had become corrupt and was causing POST to fail. After reset PRAM, The corruption was gone and POST is completing normally once more.
    Allan

  • HT201210 my iphone has been downloading IOS7 all night and it looks like its only halfway done. The bar on the phone is not moving. Should i do a hard shutdown and start the process again?

    My Iphone 4 has been downloading IOS7 all night. Bar on the phone is only halfway. Should i give a hard shutdown on my phone and restart process again?

    Is your iPhone jailbroken? If so see: http://support.apple.com/kb/HT3743

  • VMWare fusion turning off automatic virtual machine start

    Hello,
    Possibly not the best forum for this question, but I hope some of you use VMWare fusion to run Windows on your MAC.
    I originally used VMWare fusion eacy windows install to install XP Home as my virtual machine with automatic start up of XP home when VMWare fusion starts. I have subsequently created a new virtual machine for Windows 7 release candidate and want to automatically start this rather than XP when VMWare fusion starts. However I cannot fathom out how to stop VMWare fusion automatically loading and starting XP.
    Any ideas? I should probably post this to a VMWare fusion forum, but cannot work out how to do that! I can see the appropriate VMWare forums but cannot see any way to post new threads. I do have a VMWare account.
    Many thanks for your help.
    Paul Hopewell
    [email protected]

    Hello Paul,
    While Bjorn appears to have answered your question (and if so, you should mark the question "answered" BTW — and Bjorn will get credit for answering!), I'm sure you could use the kind of specialist help available from the Mac-Access mailing list discussion group. There are a number of VMWare Fusion users who also use VoiceOver on that list.
    HTH
    Archie

  • Scripts to notify stop and start of services

    dear all,
                 i m looking for a script to send me a mail whenever oracle apps service is shutdown and start.your help will be appreciated thanks in advance.
    os:rhel6
    ebs :12.1.3
    db:11.2.0.3

    The full order list can be found at :- http://download.oracle.com/docs/cd/E12825_01/epm.111/epm_install/ch05s02.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • BAM-00533 error...due to login error...but Weblogic DataSource is correct -- why?

    I am evaluating BAM and have encountered the following error while creating an EMS in BAM:
    Test failed - oracle.bam.common.messaging.api.exception.OpenFailedException: BAM-00533: Resource open for destination jms/BAMEBIZTopic failed.
    The error appears to be due to the following:
    Caused by: java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 6536
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_AQJMS", line 200
    ORA-06512: at line 1
    Has anyone else encountered this issue when setting up BAM with Oracle AQ via JMS? 
    I am using the following as a guide:
    http://www.oracle.com/technetwork/middleware/bam/whitepaperbam-e-businesssuiteintegr-131964.pdf
    The weblogic datasource is correct and tested successfully.
    JNDI names are all correct.
    Connection Factory config is correct.
    It appears that the correct username/password are not being mapped correctly-- but how can I debug that?
    I have turned the BAM server DEBUG options on for JDBC and JMS, but there is no output to show the correct username/passord values used to make the database connection.   Is there any way to decrypt the password and to log the username/password in a log file?  I am new to weblogic, so any help is appreciated.
    Versions:
          Oracle SOA Suite 11.1.1.7 
          Oracle Database 11g Enterprise Edition Release 11.2.0.3.0
    Log entries for reference:
    [2013-09-27T15:00:19.101-04:00] [bam_server1] [WARNING] [] [oracle.bam.common.messaging.api.jms.JMSMessageConsumerRegistry] [tid: Open thread for destination=jms/BAMEBIZTopic] [userId: weblogic] [ecid: b5190c518f1b5052:-31098aef:14160ba47f6:-8000-000000000000062b,1:17374] [APP: oracle-bam#11.1.1] Open thread for destination=jms/BAMEBIZTopic.handleThrowable error=oracle.bam.common.messaging.api.exception.OpenFailedException: BAM-00533: Resource open for destination jms/BAMEBIZTopic failed. destination=jms/BAMEBIZTopic[[
    oracle.bam.common.messaging.api.exception.OpenFailedException: BAM-00533: Resource open for destination jms/BAMEBIZTopic failed.
    at oracle.bam.common.messaging.base.operation.MessageOperationBase.onOpenFailedException(MessageOperationBase.java:1272)
    at oracle.bam.common.messaging.api.MessageConsumerRegistry.onOpenFailedException(MessageConsumerRegistry.java:935)
    at oracle.bam.common.messaging.base.operation.MessageOperationBase.open(MessageOperationBase.java:1172)
    at oracle.bam.common.messaging.base.operation.MessageOperationBase.access$000(MessageOperationBase.java:72)
    at oracle.bam.common.messaging.base.operation.MessageOperationBase$1.performOperation(MessageOperationBase.java:1152)
    at oracle.bam.common.messaging.base.operation.MessageOperationBase$UtilityThread.run(MessageOperationBase.java:2545)
    Caused by: oracle.bam.common.messaging.api.exception.RecoveryFailedException: BAM-00523: Resource recovery for destination jms/BAMEBIZTopic failed.
    at oracle.bam.common.messaging.base.operation.MessageOperationBase.onRecoveryFailedException(MessageOperationBase.java:2027)
    at oracle.bam.common.messaging.api.MessageConsumerRegistry.onRecoveryFailedException(MessageConsumerRegistry.java:954)
    at oracle.bam.common.messaging.base.operation.MessageOperationBase.recover(MessageOperationBase.java:1865)
    at oracle.bam.common.messaging.base.operation.MessageOperationBase.onOpenException(MessageOperationBase.java:1251)
    at oracle.bam.common.messaging.base.operation.MessageOperationBase.performOpen(MessageOperationBase.java:1222)
    at oracle.bam.common.messaging.base.operation.MessageOperationBase.open(MessageOperationBase.java:1163)
    ... 3 more
    Caused by: oracle.bam.common.messaging.api.exception.RecoveryFailedException: BAM-00523: Resource recovery for destination jms/BAMEBIZTopic failed.
    at oracle.bam.common.messaging.base.operation.MessageOperationBase.performRecovery(MessageOperationBase.java:1979)
    at oracle.bam.common.messaging.base.operation.MessageOperationBase.recover(MessageOperationBase.java:1856)
    ... 6 more
    Caused by: oracle.bam.common.messaging.api.MessageFrameworkException: BAM-00500: exception in messaging framework: ORA-01017: invalid username/password; logon denied
    ORA-06512: at "SYS.DBMS_AQADM_SYS", line 6536
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_AQJMS", line 200
    ORA-06512: at line 1
    at oracle.bam.common.messaging.api.jms.JMSMessageConsumerRegistry.acquireResources(JMSMessageConsumerRegistry.java:775)
    at oracle.bam.common.messaging.base.operation.MessageOperationBase.performOpen(MessageOperationBase.java:1211)
    ... 4 more

    You is using a DBLINK and that username/password is incorrect.
    if you don't know what DBLINK is using, you can query the DBA_DB_LINKS:
    SQL> desc dba_db_links;
    Name                                      Null?    Type
    OWNER                                     NOT NULL VARCHAR2(30)
    DB_LINK                                   NOT NULL VARCHAR2(128)
    USERNAME                                           VARCHAR2(30)
    HOST                                               VARCHAR2(2000)
    CREATED                                   NOT NULL DATE
    after that you need recreate it:
    conn / as sysdba
    create public database link <TARGET_DB_NAME> using '<TARGET_DB_NAME>';
    conn strmadmin/strmadmin@<SOURCE_DB_NAME>
    create database link <TARGET_DB_NAME> connect to strmadmin identified by strmadmin;

  • Create and Start all SFCs of a ShopOrder with webservice call

    Hi all!
    Is it possible to create and start all SFCs for a given ShopOrder at a operation step with a webservice call?
    At the moment we use start sfc (StartRequestSFC) webservice in combination with Create SFC (DM520) Activity Hook at operation level to create and start single SFCs which works fine. Now we need to automatically create and start all SFCs for a given ShopOrder and later also complete them at the same operation step.
    So ME should create SFCs according to the ShopOrder quantity and start every SFC.
    This works in POD when entering the ShopOrder into the SFC field. Now we need the same functionality for a webservice call..
    Thanks in advance!
    Patrick

    The web service to Start and close SFC are under ProductionService  (Start and Complete)
    You can have multiple SFC in this Web service
    What you can do is to firstly call  ProductionOrderByBasicDataQuery WS (under ProductionOrderProcessingInBinding) which you will get a list of SFCs and then you can use Start and Complete for the list of SFC.
    Hope this help.
    BTW, do you know if there is a way to release ShopOrder per WS? I created shop order per WS but could not find WS for releasing it.
    sengkiang
    Edited by: Seng Kiang Hoe on Oct 11, 2011 5:16 PM

Maybe you are looking for

  • SP4 and Form Based Authentication

    Hi, I had just advised a customer to apply SP4 to WLS and then plug in the 'source code' patch, he replied that he had been informed that SP4 breaks Form Based Authentication for war web apps? Can anyone confirm/deny this for me please ? regards,    

  • Sales division for material

    Hi Gurus, My client wants to do a sale of single material in domestic as well as in export market. Presently there are two separate sales divisions for Export and domestic are available,but he don't allow to make common division for export & domestic

  • Is Payload of SXMB_MONI stored in Some table?

    hi Experts, I am looking at table named SXMSPERROR, is it possible to resend the message(not using SXMB_MONI restart option) if there is an entry for any interface in this table. Is Payload of SXMB_MONI stored in Some table, so that we can get the pa

  • Can I Auto-Size Columns On Finder?

    I like to use "Finder" in the Columns style (3rd Button on top), however every time I launch finder it seems that I have to resize the columns in order to read it completly.  Is there a way to set it up so that it auto-sizes completly on it's own?

  • Xsl and css

    Can I link css in xsl? The link tag dosen't seem to take effect when used in the xsl sheet while it works fine from a static page. Thanks Sunil