Reverse database mirroring - and is this the right approach?

Here is my scenario. I have 2 database servers, P and M, to serve our production website. P = Principal; M = Mirror.
After some time my Principal crashes. No problem, I've got M, it's been synchronizing, and it has all latest data. So I repoint my production web server to hit the Mirror. Still, all is good.
Now comes the part where I'm fuzzy, and I need to know if my understanding is correct...
The Principal comes back online, but my website is still pointing at the Mirror. I want to repoint the site back to Principal. But P now has old data. Maybe it's been down 3 days and M has 100,000 new records that don't exist in P. When P came back online,
did transaction logs begin shipping from M to P to get P back in sync? Would it do that if a Witness were in place? How does P get caught up with all latest data? Do I have to do a full backup and restore from M to P? Is there a way this can be set up to just
gracefully (or even easy manual) get P updated and synced? Can the Principal/Mirror roles be easily swapped between the 2 servers? Does that happen automatically with a Witness in place?
Thanks in advance for any help.

First, mirroring is being removed for "AlwaysOn" technology.  I would not recommend using it in SQL 2012.  However, if you are talking about prior versions, then...
When the failover occurs, the old mirror, now primary, attempts to send updates back to the old principal, now mirror.  This is completely automatic and requires nothing manual to happen.
However, if the now mirror is down for a long period of time, the transaction log on the principal will continue to grow and grow until it is able to deliver the transactions to the mirror.
You can setup your website with a "Failover Partner=" in the connection string and the failover/failback will be completely invisible to your application.
I would suggest reading:
http://technet.microsoft.com/en-us/library/ms189852.aspx
http://technet.microsoft.com/en-us/library/cc917713.aspx

Similar Messages

  • Please tell me which Ipod dock adapter is compatible with the Ipod Classic 80GB?  They no longer make this particular Ipod and I need the right dock adapter for my Panasonic SC-HC25 stereo system I recently purchased.

    Please tell me which Ipod dock adapter is compatible with the Ipod Classic 80GB?  They no longer make this particular Ipod and I need the right dock adapter for my Panasonic SC-HC25 stereo system with universal dock for Ipod/Iphone I recently purchased.
    You can also send my answer to [email protected]
    Thanks in advance for all who will help.
    slovebk

    refer to this Apple support Article, on Universal Dock which retail at $59 at Apple store.
    http://support.apple.com/kb/HT1380
    Look through the compatible list chart and see which 80GB model are you using, either ID 9 or 10. you can order through Apple Online Store.
    Have a nice day!

  • I cannot receive email properly now. When I open mail, it says that is downloading about 1,700 emails. At the very end, it gives me my newest ones. But this takes a long time. I've contacted the Internet service provider and verified all the right setting

    I cannot receive email properly on either my IPad or my IPhone. I have had them for over a year and they have always worked fine. Until three days ago, when they both started acting up. On the IPad, when I open mail, it says it is downloading about 1,700 emails. At the very end, which takes quite a while to get to, I finally get the most recent ones. The IPad is sending emails just fine.
    On my IPhone, when I open mail, it says it is downloading 100 emails, but it doesn't do that. And it gives me no new emails at all. The IPhone is sending email just fine.
    I have already deleted the email accounts on both devices and reinstalled them. I've contacted the Internet service provider and verified all the right settings. The Outlook email on my desktop is working perfectly.

    WMV is a heavily-compressed format/CODEC, and the processing time will depend on several factors:
    Your CPU, which is not that powerful in your case
    Your I/O sub-system, which is likely a single HDD on your laptop
    The source footage. What is your source footage?
    Any Effects added to that footage. Do you have any Effects?
    Each of those will have an impact on the time required.
    The trial has only one main limitation - the watermark. Now, there are some components, that have to be activated, but are not with the trial, but they would be evident with Import of your source footage, if it's an issue.
    Good luck,
    Hunt

  • Thread safety! Is this the right way?

    Hello,
    Lately I'm reading lot about thread-safety in Swing...
    so just wondering that is this the right way to code ...
    For ex following code executes(which makes DB connection and load some list) when user press the "connect (JButton)" ....
    private void prepareAndShowConnBox()
            //System.out.println("prep - EDT: " + javax.swing.SwingUtilities.isEventDispatchThread());
            pwd.setEchoChar('*');
            javax.swing.Box box1 = new javax.swing.Box(javax.swing.BoxLayout.Y_AXIS);
            javax.swing.Box box2 = new javax.swing.Box(javax.swing.BoxLayout.Y_AXIS);
            box1.add(new javax.swing.JLabel("DB URL :     "));
            box2.add(db_url);
            box1.add(new javax.swing.JLabel("User Name :  "));
            box2.add(uid);
            box1.add(new javax.swing.JLabel("Password :   "));
            box2.add(pwd);
            final javax.swing.Box box = new javax.swing.Box(javax.swing.BoxLayout.X_AXIS);
            box.add(box1);
            box.add(box2);
            int retval = javax.swing.JOptionPane.showOptionDialog(me, box,
                    "Database Connection:",
                    javax.swing.JOptionPane.OK_CANCEL_OPTION,
                    javax.swing.JOptionPane.QUESTION_MESSAGE,
                    null, null, null);
            if(retval == javax.swing.JOptionPane.OK_OPTION)
                status.setText("Connecting...");
                Thread t = new Thread(makeConn, "Conn Thread");
                t.setPriority(Thread.NORM_PRIORITY);
                t.start();
        }And the makeConn is....
    private Runnable makeConn = new Runnable()
            boolean success;
            Exception x;
            public void run()
                //System.out.println("Con - EDT: " + javax.swing.SwingUtilities.isEventDispatchThread());
                success = true;
                x = null;
                try
                    //load sun JDBC-ODBC bridgr driver...
                    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                    //make connection to DB...
                    con = java.sql.DriverManager.getConnection("jdbc:odbc:" + db_url.getText(),
                            uid.getText(), new String(pwd.getPassword()));
                catch(Exception e)
                    success = false;
                    x = e;
                    System.err.println(x);
                java.awt.EventQueue.invokeLater(GUItask);
            Runnable GUItask = new Runnable()
                public void run()
                    //System.out.println("Con gui - EDT: " + javax.swing.SwingUtilities.isEventDispatchThread());
                    if(success)
                        bConn.setText("Disconnect");
                        status.setText("");
                        status.setIcon(imgLink);
                        imgLink.setImageObserver(status);
                        //load the pic list...
                        Thread t = new Thread(execQuery, "List1 Thread");
                        t.setPriority(Thread.NORM_PRIORITY);
                        t.start();
                    else
                        status.setText("Connection Failed.");
                        showErr(x.toString());
        };Here uid,db_url (JTextField) , pwd (JPasswordField) , status (JLabel) are class fields.
    Thanks for any comments... :)

    Threading looks fine too me... the connection is created on a background thread, but (critically) all GUI updates are performed on the EDT, even if there's an exception. Well done.
    My only comment is... why is your GUI creating a database connection at all? Ideally the controler would get the DAO (which would connect itself) and inject it (the connected DAO) into the view... but I'm a server-side boy, so feel free to ignore me.
    Cheers. Keith.

  • Difference between Database Mirroring and Cloning?

    Hi,
    Can anybody tell me the exact difference between Database Mirrorring and cloning?
    Is database mirroring and multiplexing same?
    Thanks
    Rajesh

    cannot be kept current automatically with the source database It is possible using manually scripted code to automatically update a cloned database to in effect build your own mirrowing process. This is basically a description of home grown Data Guard and is how many sites maintained a ready to use backup prior to Oracle introducing Data Guard.
    The best way to create a clone database today is probably to use the rman duplicate command.
    The clone could be the base for use with a mirrowing process you are setting up or used for other purposes such as providing a consistent frozen snapshot of production for special reporting. It could become the unit test or system test environment or perhaps be used for diaster recovery purposes.
    A clone is a one-time event. Mirrowing is an ongoing process.
    HTH -- Mark D Powell --

  • [SOLVED] Thunar 1.6 doesn't drag-and-drop with the right mouse button

    Hallo all.
    It might be something I've done (though I did delete my ~/.config/Thunar directory before upgrading), but Thunar doesn't let me drag-and-drop with the right mouse button, thus stopping me from copying something instead of moving it, etc. Has anyone else had that too?
    Last edited by GordonGR (2012-12-28 14:34:20)

    Joel wrote:
    anonymous_user wrote:Is it supposed to be with the right-mouse button? I always thought drag and drop was done with the left button?
    Could be right-hand user
    Come on! Read what GordonGR wrote!
    Microsoft Windows, Nautilus, the Haiku Tracker, and probably many other file managers have a feature where, when you right-click or middle-click and drag an icon to a new location, a pop-up menu appears and asks what you'd like to do (Move, Copy, Link). I thought I used to use this feature in Thunar too but it seems to have stopped working in recent versions. Has anyone else had any experience with it?
    EDIT: Here's random blogger talking about the feature in an older version of Thunar: http://jeromeg.blog.free.fr/index.php?p … and-tricks So that's good, I wasn't just imagining the feature.
    Last edited by drcouzelis (2012-12-12 03:45:05)

  • Hi! I´m having problems with showing video files in Qlab on my Macbook Air. A sound/video technician told me to "blow out" my Mac. Was told to use  cmd+ r  when restarting. Is this the right way?

    Hi! I´m having problems with showing video files in Qlab on my Macbook Air. It started suddenly. Consulted a sound/video technician who told me to "blow out" my Mac. Was told to use cmd+r  when restarting. Is this the right way to clean up my Mac? And is it likely that some kind of bug is causing problems for Qlab to show video files? I´ve already tried with a bunch of different video files and sometimes Qlab plays them and sometimes not. I need the Qlab playlist for a theatre show and only have a week until showtime so starting to really worry. Is there anyone out there who can help?

    Your Mac runs maintenance in the background for you.
    Command + R gives you access to restore, repair, or reformat the drive using OS X Recovery
    No idea why that was suggested.
    You may have a third party video player installed that's causing an incompatibility issue.
    Check these folders:
    /Library/Internet Plug-Ins/
    /Library/Input Methods/
    /Library/InputManagers/
    /Library/ScriptingAdditions
    ~/Library/Internet Plug-Ins/
    ~/Library/Input Methods/
    ~/Library/InputManagers/
    ~/Library/ScriptingAdditions
    The first four locations listed are in the root-level Library on your hard disk, not the user-level Library in your Home folder.The tilde (~) represents your Home folder.
    To access the Home folder in OS X Lion or Mountain Lion, open the Finder, hold the Option key, and chooseGo > Library.

  • A small but very irritating bug in Mail: after pressing the spacebar after typing an apostrophe in a word such as "we're", the cursor moves to the left i.e. backwards, and not to the right, effectively deleting a space and not creating one.

    When composing an email in Mac Mail I've noticed a small but very irritating bug: pressing the spacebar after typing an apostrophe in a word, e.g. "we're", the cursor moves to the left i.e. backwards, and not to the right, effectively deleting a space and not creating one.
    Any ideas?

    I just recreated this problem on my iMac (wired KB, no wireless KB) by changing Mail > Preferences > Composing > Spellcheck from "as I type" to "never". Then type a contraction ending in 're and the space bar causes the cursor to jump back as others have stated, to the spot 'r|e
    Next, I went into System Preferences > Keyboard > Text, and turned off "use smart quotes" and the problem went away again.
    From this point (smart quotes off, spell checking never), if I turn Smart Quotes ON, the problem returns.
    The problem is dependent on the state of both settings.
    The spacebar in Mail "works" if I have either of the following setting combinations:
    Keyboard: smart quotes OFF, Mail: check spelling ANY SETTING
    Keyboard: smart quotes ON, Mail: check spelling AS I TYPE
    Other combinations FAIL
    Keyboard: smart quotes ON, Mail: Check spelling NEVER
    Keyboard: smart quotes ON, Mail: Check Spelling WHEN I CLICK SEND
    Looks to me like there's a bug in Mail > Preferences > Check spelling > NEVER and WHEN I CLICK SEND that interacts badly with Keyboard > Smart quotes ON.
    Thanks.
    Todd Smithgall

  • Is this the right program for me?

    I need a program that'll work very well with all of my audio equipment for recording. I need something that is easy to use, but still has nice results. I plan on uploading my recordings as MP3s to a musician myspace. Is this the right thing to purchase?

    Jake, one man's perspective. Your mileage may vary:
    I came to Logic via Garageband, and some experience with ProTools from around five or six years ago. After the usual setup headaches that, quite honestly, were more due to my inexperience than any inherent Logic lameness, I am up and running and quite happy with it.
    I think I benefit from the fact that I pick up new technologies/gadgets/what have you very quickly. In addition, this being the first pro-level recording application I've worked with, I'm pretty much a blank slate -- I can't say "Man, logic f-in ***** compared to Cubase/ProTools/etc." Maybe it does; maybe it doesn't. I just have no real frame of reference, so it's all new and cool to me.
    Also, I suspect my needs are fairly simple relative to the pros on this board. I do guitars/bass/ mando/vox audio, keys and drums (Addictive Drums, yeah!) software instruments, usually about 12-16 tracks. (Musically my stuff is a combo of Django Reinhardt and Black Sabbath, all those minor 6ths doncha know; I also orchestrate stuff written by a friend of mine who's a post-grunge dude from Seattle.)
    I'm totally excited with the sonic possibilities Logic has offered. I love tinkering around with the different plugins/instruments etc to achieve just the right little ear tickle *******. I'm now listening to music in a different way -- and having these little "Oh, that's how Jimmy Page did it! I can do that!" moments which is a pretty awesome experience. Being able to listen to old music in new ways is always a good thing.
    And seriously, for the price I am not sure you can beat it -- the basic studio environment, plus software instruments, plus loops. For a (fairly accomplished) parkin'-lot picker and DIY'er who's doing the Myspace thing, it's everything I want.
    But as to Logic's industrial strength, and applicability to professional environments, I gotta defer to the pros on the board.

  • Purchasing an Airport Express card...Is this the right move?

    Hey Folks,
    I've recently been given an older iMac (it's the all in one purple one from around 99-2000) i talked to two different apple employees in two different stores (chicago and milwaukee) the concensus sounds like i need to purchase the "airport express card" and open up the hatch and install it manually in order to get the wirless internet that is already hooked up in my apartment builing. Is this the right purchase? i'm not clear on if this mac is airport ready, and am worried that 120 bucks later i will find out the hard way, any suggestions/advice?
    thanks everyone!

    Jason my model is most certainly the Mac Rev C, i copied and pasted the information available below, turns out it is the Grape Imac, what does this mean for my wireless connectivity, and does this change my purchasing options, thank you so much for you help!
    CPU
    CPU: PowerPC 750
    CPU Speed: 266 MHz
    FPU: integrated
    Bus Speed: 66 MHz
    Data Path: 64 bit
    ROM: 1 MB ROM + 3 MB toolbox ROM loaded into RAM
    RAM Type: 144 pin SO-DIMM
    Minimum RAM Speed: 100 MHz
    Onboard RAM: 0 MB
    RAM slots: 2
    Maximum RAM: 256 MB
    Level 1 Cache: 32 kB data, 32 kB instruction
    Level 2 Cache: 512 kB backside, 1:2
    Video
    Monitor: 15"
    VRAM: 6 MB SGRAM
    Max Resolution: 24 bit 1024x768
    Storage
    Hard Drive: 6 GB
    ATA Bus: EIDE
    Optical Drive: 24x CD-ROM
    Input/Output
    USB: 2
    Audio Out: stereo 16 bit mini
    Audio In: stereo 16 bit mini
    Speaker: stereo, SRS
    Microphone: mono
    Networking
    Modem: 56 kbps
    Ethernet: 10/100Base-T
    Miscellaneous
    Codename: Lifesavers
    Gestalt ID: 406
    Power: 80 Watts
    Dimensions: 15.8" H x 15.2" W x 17.6" D
    Weight: 40 lbs.
    Minimum OS: 8.5.1
    Maximum OS: 10.3.9
    Introduced: January 1999
    Terminated: April 1999

  • I am having trouble with the initial connection. I have isolated the problem to the cable/ connection. My new hdmi cable has a resolution up to 1080p...does the resolution matter?is this the right hdmi cable for the apple tv?

    I am having trouble with the initial connection of the apple tv. I have isolated the problem to the cable/connection. My new hdmi cable has a resolution up to 1080p...does the resolution matter?is this the right hdmi cable for the apple tv?

    There are only two types of HDMI cables (standard and high speed - listen to all 1.2, 1.3 etc etc nonsense they will try to tell in the store) both types will work with the Apple TV.
    The cable may be faulty though, have you got another to try, what exactly is happening.

  • Patriot RAM, is this the right one?

    Hey, I'm picking up a MacBook this weekend and I want to upgrade the RAM to 2G, and after reading the forums I decided to go with the Patriot RAM. Is this the right one?
    http://shop2.outpost.com/product/4789099?site=sr:SEARCH:MAINRSLTPG
    Just wanted to make sure before I bought it. Thanks!

    The RAM modules you linked look correct. I purchased Gigaram Memory with those specs from NewEgg.com and it works great. I don't think you'll have any problem with those Patriot chips. Good luck!
    PowerMac G4 Quicksilver 867mhz, MacBook 2GHz (white)   Mac OS X (10.4.6)  

  • I use aperture 3 since a long time. Using slit viewer, now the bigger image become bigger then the given space and shifted to the right, so that I can't see the complete picture anymore. And I also don't see the last few picture in the strip below. How ca

    I use aperture 3 since a long time. Using slit viewer, noe the bigger image become bigger then the given space and shifted to the right, so that I can't see the complete picture anymore. And I also don't see the last few picture in the strip below. How can I splve this problem?

    This lloks like your preferences file might have become corrupted.
    you probably have a problem with corrupted user preferences.
    Remove the Preferences: Remove the Aperture's user preferences from the User Library as described here:
    Aperture 3: Troubleshooting Basics   http://support.apple.com/kb/HT3805
    Note:Your User Library is hidden by default in 10.7.x or later - to open it in a Finder window use the "Go" menu from the Finder's main menu bar.
    Quit Aperture, if it is running. Log off and on again.
    Open the user library by using the Finder's "Go > Go to Folder" menu and hold down the options-key, until "Library" appears in the drop down menu. Select it.
    In the widow that will open, scroll down to "Preferences"
    From the "Preferences" folder  remove "com.apple.Aperture.plist".
    Then try to launch Aperture again.
    But deleting the "Preferences" file will cause Aperture to forget the preferences settings. Be prepared to have to reset all options you set using the Aperture Preferences panel.
    Regards
    Léonie

  • Is this the right to use or for iOS can use dynamic google maps embeded(can be embedded fo iOS)

    function displayMap(e) {
    var title = e.data.title,
        latlng = e.data.lat + ',' + e.data.lng;
    if (typeof device !='undefined' && device.platform.toLowerCase() == 'android') {
    window.location = 'http://maps.google.com/maps?z=16&q=' + encodeURIComponent(title) + '@' + latlng;
    } else {
    $('#map h1').text(title);
    $('#map div[data-role=content]').html('<img src="http://maps.google.com/maps/api/staticmap?center=>' + latlng + ' &zoom=16&size=320x420&markers=' + latlng + '&sensor=false">');
    $.mobile.changePage('#map', 'fade', false, true);
    my phonegap (Adobe press, Powers jQuery with dw 5.5) book (old book (c)2010-11) says for above code: // is this valid for today, is this the right to use or for iOS can use dynamic google maps embeded(can be embedded fo iOS)???
    On iOS, calling window.location loads the map directly
    into the app. That’s great until you realize that iOS devices
    don’t have a Back button, so there’s no way to exit the
    map. To get round this problem, I loaded a static map as
    an image in the map page block. It’s not interactive, but at
    least you can continue using the Travel Notes app after
    viewing the map by clicking the Back button generated by
    jQuery Mobile.

    Well, this took me a while to get solved, but it is indeed solved.
    I tried USB Overdrive and it could, and perhaps should work, but apparently it will not. When adding a device, it seems that USB Overdrive is not set up to handle any input device that does not register itself as either a Mouse or a Joystick. The VEC USB Footpedal that I'm using is "Device type: Other".
    So, I went for Quickeys. And Quickeys can do it all. It did recognize the device, I was able to assign it to the scope of the particular audio playback app I wanted to use (Amazing Slow Downer OS X - which is truly amazing. Any musicians reading this who are looking for a way to learn pieces by ear, this does it better than anything else I've seen yet).
    I created a shortcut in Quickeys for the ASD app; added the middle button of the foot pedal as the trigger; set one step, entering 'space bar' as the step (which toggles playback, similar to many audio players).
    It all worked.
    Quickeys is very confusing and seemingly featured with an endless array of options. Enter at your own risk. Ask me for help. This was the only way to get it done that I could find. I did write to the author of USB Overdrive asking him to please support additional devices as I did find some traction from gamers who like to use a foot pedal in addition to other input devices. There was a Windows-only management utility for the foot pedal that was intended for custom input, assigning the buttons to any keyboard input or mouse click event. It would be nice to have a simple and easy to use utility like this. But, Quickeys did do the job.
    Thanks for your help, you guys!!!

  • Is this the right way - 9i

    I have schema 'A' with few large and many small non-partition tables. I created another schema 'B' identical to 'A' and the only difference was that I partitioned the large tables resulting a combination of partitioned and non partitioned tables in schema 'B'.
    I exported schema 'A' and imported it into 'B'. My question is, IS this the right way or I should done something else.
    Thx

    It would depend on the your goals, but I'd suspect that you would want to create most of the same indexes and views in the new schema. If you're partitioning the tables, though, you would have to give serious thought to how to define the indexes-- should they be global or local, should they be equipartitioned with the underlying tables, etc.-- which exporting and importing wouldn't resolve.
    If the end goal of this exercise is just to produce the same schema with partitioned tables, transition any code & applications to the partitioned schema, and then drop the unpartitioned schema, creating the new schema just adds extra work. Create partitioned tables in the same schema (with slightly different names), load the data, create appropriate indexes, and then ALTER TABLE ... RENAME everything so that the partitioned tables now have the old non-partitioned table names.
    Justin

Maybe you are looking for

  • RUNNING TOTAL

    Hi, Can any one tell me how to create a running total in Oracle reports. I have two fields pulled in the SQL called CR and DR. I want to do the running total at report level. Here what I want CR------DR-------RTOTAL 20-----10---------10 ( here the RT

  • Audio playback keyboard shortcut

    hello maybe a stupid question but is there a way to preview an audio file when browsing through a folder without having to use the mouse? like a keyboard command? hit space or something else and the file plays? or is it possible in tiger? not wanting

  • Response.redirect not working on IE when it is live but works fine on local.

     Response.Redirect("http://myurl/php/test.php?username=" + LoginHelper.userName + "&password=" + LoginHelper.password); Hi All, I am trying to redirect the user to different website with username and password. I am using the code above and passing us

  • Unable to connect to printer wirelessly

    I have an Hp Officejet 7612 My computer is running Windows 7 64-bit with Service Pack 1 I am not able to connect to my printer wirelessly. When trying to add printer, after selecting "Add network, wireless, or Bluetooth printer", my computer is not a

  • Find number within string

    Hi guys/gals, Im looking to be able to find a number (any number) within a text string, what i ultimately want to do is crop the number out of the string to just be left with a number value, the only problem is the string could be any length and the