Webapp should dynamically choose second DB when first DB is down.

I need to create a web app, considering disaster recovery situation. I have to DBs on two remote locations.
Now what necessary steps should I take, so that when one DB is down, my app will pick Another DB?
Please help me out...!!!
Note: I'm using Jdev 11.1.1.4 version & Oracle XE 10g version

This is something you normally handle on the wls where you set up a cluster and a rac db connection to a rac db.
You can configure the data sources on the wls to check each connection before checking it out of the pool.  This check is then used to use the other db from the rac.
This however needs the full Oracle db. You can't do this with XE.
If you want somehow mimic this yourself you have to handle the db connections yourself which needs some tweaking of the framework.
Timo

Similar Messages

  • Play back stops 10 seconds in when first playing project

    so when i first open a project and press play to hear it itll stop right when it reaches the main part of the song where all the instruments kick in.. itll say "error" or project overload. But when i play it from the beginning again it will play back just fine, every time. ??

    Eriksimon wrote:
    Hi PC,
    I have noticed this as well, especially on my system. Sometimes I have to hit play every two bars. It's like having a car that will only move after one has pushed it. Maybe ApplEmagic should add some 'prepare play' (=load buffers) key command.
    Is there any 'official' acknowledgement or justification for this?
    regards, Erik.
    Hi Erik,
    As far as I know there's no official word from Apple on this.
    There is this page dealing with System Overload messages.
    http://docs.info.apple.com/article.html?artnum=304970
    Logic's method has always been to free resources when the sequencer is stopped.
    VI's are shut down as are any FX plugins, after stopping Logic the CPU meter will eventually drop to zero. This was done early on and was a saving grace for many years as it allowed almost any computer with enough RAM to run Logic and still have a resonably quick machine (say for editing) when the sequencer was not running.
    Most, if not all other MIDI/Audio sequencers keep plugins and VI's partially active and as a result can quickly bog down underpowered computers. However, the upside is... when hitting play you don't get a bunch of VI's, FX plugins and disk buffers suddenly going from 0 to 160kph trying to grab a load of data, memory and CPU cycles at the same time.
    Personally, in this day of 8-core 3gHz machines Logic could change it's M/O and no one would ever notice.
    Just my opinion but the way Logic works has created several other small related problems that sometimes make it appear less than professional.
    pancenter-

  • How do I use my second monitor when first monitor in full screen??

    HI.  I just added a second monitor to my mac mini lion setup and when I go full screen with an app I can't use the other monitor.  How do I fix this?  Thanks.

    Bump?

  • How to dynamically choose which view to display in second step

    Hi Guys,
    I am just started to evaluate fpm to decide whether to use it in our project. So i have question that might be very simple to you all, that i hope you all can help me with.
    Say i want to use the fpm GAF with a single webdynpro component. I have 3 steps, first step display a dropdown list for user to choose, second step will be a view that will depend on user input on the first step and 3rd step just a confirmation screen.
    I plan to use UIBB for all the screen, not using the GUIBB. So i will need to dynamically decide which view to show on step 2, and since we don't call navigation plug when we use fpm, what is the best way to archive this? How do i design my webdynpro component and the fpm configuration etc...?
    I read from the programming guide about initial screen and variant. But what if my application doesn't need an initial screen and the user choosing step is not at the first step, I can't use variant in this case right?
    thanks.

    Hi
    You can give the dropdown on initial screen and than u can decide which screen  to show on the second (or infact that will we the first step you you have first step as a initial screen.
    How?? :
    1. Create different varients for the second step.
    2. Basis on the Value choosen in the dropdown list, select the appropriate varient using the following code.
      TRY.
            CALL METHOD io_gaf->set_variant
              EXPORTING
                iv_variant_id = 'VAR_CLIENT'.
          CATCH cx_fpm_floorplan .
        ENDTRY.     
    where  VAR_CLIENT  is your varient.
    Hope this will help you.
    Thanks & Regards,
    Arvind

  • HT201269 Have new iPhone 5s and older iPad ( looking to buy new iPad ) question for both is should I hook them up to mu computer and back up the computer on each devise and sink and than the next one.  The second question is should I do the I pad first ca

    Have new iPhone 5s and older iPad ( looking to buy new iPad ) question for both is should I hook them up to y computer and back up the computer on each devise and sink and than the next one.  The second question is should I do the I pad first cause it has photos in my email that have not been downloaded and it is one of or is the first model

    No it's not stealing. They have an allowance that you can share with so many computers/devices. You'll have to authorize her computer to play/use anything bought on your acct. You can do this under the Store menu at top when iTunes is open on her computer.
    As far as getting it all on her computer....I think but I am not sure (because I don't use the feature) but I think if you turn on Home Sharing in iTunes it may copy the music to her computer. I don't know maybe it just streams it. If nothing else you can sign into your acct on her computer and download it all to her computer from the cloud. Not sure exactly how to go about that, I haven't had to do that yet. I wonder if once you authorize her computer and then set it up for automatic downloads (under Edit>Preferences>Store) if everything would download. Sorry I'm not much help on that.

  • When i bought my new iMac recently i transferred all my photos from pc to iPhotos  then i recd an update that gave me Photos  how do i combine the two into one photo library and which should i choose?

    When i recently bought my new iMac, i transferred my photos from the old pc.  then i recd an update which introduced the Photos...so now i have two photo repositories and i only want one.  how do i get them together and how can i easily find duplicates to delete?  and which library should i choose.

    When you launch Photos for the first time it will import all of your photos from iPhoto. iPhoto is going away eventually and Photos is the replacement. For the time being both apps will remain on your system but you should start using Photos exclusively for the future.

  • I bought an i pad as second owner, the first owner said he just open it but when i returned to my twon, i realized that he make account and download some programes, i lost the opportunity to download free I work programes how can i solve this problem

    i bought an i pad (4) on 2014 as second owner, the first owner said he just open it but when i returned to my town, i realized that he make account and download some programs, i lost the opportunity to download free I work programs how can i solve this problem?

    If you are trying to activate an iPad or iPhone and it is asking for the original owners Apple ID and password, you have encountered the Activation Lock. This is a security feature that prevents thieves from setting up and using a stolen or lost iPad or iPhone. You have no alternative. No must contact the original owner to get permission to use the device. If you cannot contact the original owner return the device to where you bought it and get a refund. You will never be able to activate the device and no one can help you do it.
    IF the iPad is working ok but is signed in to another users Apple ID use the Settings app to sign out of the old ID and sign in to your Apple ID.
    Settings > itunes and App Store > tap on the applie ID and sign out > sign in with your Apple ID.
    you should then be able to download or purchase apps using your Apple ID.

  • I have 2 phones on my iTunes account, why are text messages showing on the second phone when sent from the first

    I have 2 phones on my iTunes account, why are text messages showing on the second phone when sent from the first phone?

    it's meant to work like that
    so if you receive a message on your iphone you also get it on your ipad or ipod touch
    to avoid it use separate appleID for each device
    or turn off imessage on 1 or both devices in their settings
    but that will not fix the issue that 2 devices using the same appleID will never be able to facetime eachother
    the appleID is a unique handle for 1 user only

  • I recently moved to Australia and received a new iphone with a local AUS number. I have a backup of my US iphone in the icloud. Question: when I activate my new AUS iphone which option should I choose - new phone or restore from backup?

    I recently moved to Australia and received a new iphone with a local AUS number. I have a backup of my US iphone in the icloud. Question: when I activate my new AUS iphone which option should I choose - new phone or restore from backup?  I would like to have all my contacts, email, etc. however wasn't sure that option was appropriate since it is a different/new number and a new phone.

    Yes, as new iPhone then restore from backup.

  • When I try to access my original wifi name, I can't.. So I had to create a second one. the first one is still there after resetting numerous times. Any suggestions

    when I try to access my original wifi name, I can't.. So I had to create a second one. the first one is still there after resetting numerous times. Any suggestions

    Hello Oddsbodkin,
    It looks like the creator of Netflix Desktop has a site for the project here:
    https://answers.launchpad.net/netflix-desktop/
    I would try posting your question there and see if anyone else has encountered this error and has a solution.
    Cheers, Patrick

  • I have two textframes on one page. But when iterating using everyitem() it picks second prior to first?

    Hi Expert's
    I have two textframes on one page. But when iterating using everyitem() it picks second prior to first?
    var ObjDoc = app.activeDocument;
    var LstPara = ObjDoc.pages.everyItem().textFrames.everyItem().paragraphs.everyItem().getElements();
    for(var c1=0;c1<LstPara.length;c1++)
         var par = LstPara[c1];
         $.writeln(par.contents.toString());
    is there any specific reason for that? Please explain

    To solve your issue, try the below code:
    var ObjDoc = app.activeDocument;
    var LstTxtFrame = ObjDoc.pages.everyItem().textFrames.everyItem().getElements();
    for(var c1=LstTxtFrame.length-1;c1>=0;c1--)
        var LstPara = LstTxtFrame[c1].paragraphs.everyItem().getElements();
        for(var c2=0;c2<LstPara.length;c2++)
            var par = LstPara[c2];
            $.writeln(par.contents.toString());
    I have two textframes on one page. But when iterating using everyitem() it picks second prior to first?
    is there any specific reason for that? Please explain
    InDesign text frames will work in LIFO (Last in first out) method, i.e., the last created text frame will be treated as a first frame in for loop, hence try the above code.
    Vandy

  • My iTunes Match automatically charged me for a second year when the first year finished.  In spite of that, I have lost all of my playlists on my iPhone.  How can I get them back?

    My iTunes Match automatically charged me for a second year when the first year finished.  In spite of that, I have lost all of my playlists on my iPhone.  How can I get them back?

    Hi,
    No need to post three times!
    Is iTunes Match still turned on on your iPhone? If not, you need to turn it back on.
    If it is still on, go to settings, music app and turn off match- sign out of iTunes Store. Reboot iPhone, sign back into iTunes and turn on match. Poem music app. Does this help?
    jim

  • Moving from Bridge to Lightroom, when adding existing files on hard drive, will metadata transfer? Should I choose embed sidecar in file handling or will it automatically happen if I choose standard?

    Moving from Bridge to Lightroom. Will metadata in existing files be recognized by Lightroom, and should I select embed+sidecar when adding files to library for the first time.

    Thanks guys, appreciate the feedback.
    CHRIS - you are exactly right about my FUTURE workflow. What I'm trying to figure out now is how to best handle images already processed. My import should be OK based on the way I have duplicates in separate directories, BUT I'm wondering how to avoid seeing all of these duplicates in LR when I search by keyword, etc.? I guess I can somehow flag the RAW files and only get them in my results.
    One question though - Stacks, etc. sounds great for the LR processed images. But what about variations based on processing in Photoshop after the LR Develop stage? I guess in this case I will just have to keep duplicate images if I have multiple versions from my PS work?
    ISAAC - Thanks for clarifying that LR will recognize my XMP files from Bridge. What about the opposite direction . . . if I edit something in LR and capture this via XMP, it won't prohibit Bridge from recognizing XMP info if I access a file via Bridge, will it?
    ALSO - Do you know where I can find info about tracking via XMP vs. the central database? You mentioned a couple of valid points, but I'm not sure I have a full handle on the pros/cons of these options.
    Thanks!
    Mark

  • Which client should I choose when i do client copy during PI post-install?

    Hi,gurus:
       Which client should I choose to be the source client when i do client copy during PI post-install?
    000 or 001?are there any differences?Thanks!

    hi
    Do client copy with client 000 and user sap* only .
    001 is the copy of 000 .
    rgds,
    Arun

  • HT1848 When trying to transfer my purchases on my phone to my computer, I went to file devices transfer purchases, and said I have done so. But if I try to update my iphone a box pops up and says I should still transfer my purchased items first. But I alr

    When trying to transfer my purchases on my phone to my computer, I went to file>devices>transfer purchases, and said I have done so. But if I try to update my iphone a box pops up and says I should still transfer my purchased items first. But I already have, am I doing something wrong?

    No, just a reminder that you should do so beforehand, which you have already done.

Maybe you are looking for

  • Problems with Airport setup after buying Version 7 models, (older ones will not upgrade)

    Problems with Airport setup after buying Version 7 models, (older ones will not upgrade) I re set up my Airport network , having had 4 expresses for years doing a good job. I bought another and an express, but then a time capsule after my external dr

  • Suggested BPM Composer tutorials anyone?

    I am having a bit of an issue with finding the learning tools I need. My office is starting with Oracle Middleware and with all the money such new technology costs, it has been decided to save money on training, that is to say... teach yourself. This

  • Adding a hidden column in the report

    i have to add a column to the existing form,the newly added column should not visible at the run time .whenever i am inserting the data into the form automaticallly the newly added column should update with the flag as 'N'. Note:i will not enter any

  • Exclude a server from background processing of a job

    I have a background job that runs slowly on only the Central Instance on the database server host.  The 6 other application servers run the same job in half the time.  How can I configure this job to run on all but one application server?  Is there s

  • Paging in jsp

    please sir i need ur help to display large number of items retrived from database in page by page style for ex display 10 records in each page then click next to view the second 10 records asd soo on thank u