How to restore primary after the managed failover to standby using sql

Please take note of measures to restore a back-end database after failing during the eve. The old standby mode is now the main role. Don't use only not the broker. You use SQL statements to restore the old primary back in custody of data.

Published by: 783527 on January 31, 2012 13:39

Hello;

If you want a preview my quick test scores are here:

http://www.Visi.com/~mseberg/Data_Guard_Failover_Test_using_SQL.PDF

Best regards

mseberg

Tags: Database

Similar Questions

  • How to restore modules after a refresh in FF?

    How to restore modules after a refresh in FF? Thank you!

    How many modules, and what are they?

    In some cases, it is easier to "resurrect" your old profile and use it for reference, because you can then see your old page Add-ons, or use the page to support information of cross-reference between the friendly names of the extensions and the unique ID of the file/folder (if you plan to copy by hand).

    That message has my suggested procedure to regain access to the old settings on Mac: https://support.mozilla.org/questions/1080782#answer-774455

  • Access to the data after the managed service VOImpl in bean method call

    I use JDeveloper 11.1.2.4.

    I created a method to Interface customer and he calls you a managed bean.

    The method is exposed in the control of data and I have a links to it through links on the page.

    The method runs just a view of criteria for a row of data in the database.

    But, because the method does not have a return value, how could access the View object data.

    Here's the Service method and the method of the bean management;

    The service method: in PersonVOImpl.java - should result in 1 row:

    public void getPersonByCnViewCriteria (String cn)

    {

    ViewCriteria viewCriteria = this.getViewCriteria ("PersonVOCriteriaByCn");

    Reset a display criteria of values that may was resolved at design time

    viewCriteria.resetCriteria ();

    this.setCnBind (cn);

    this.applyViewCriteria (viewCriteria);

    this.executeQuery ();

    }

    Method in managed Bean: I have a linking operation method to access the Service method.


    It seems that the Service method is executed successfully.  But, how to access the data after the call?


    protected void getPersonByCn (String cn)

    {

    BindingContainer bindingContainer = this.getBindings ();

    OperationBinding operationBinding = bindingContainer.getOperationBinding("getPersonByCn");

    Map operationsParamsMap = operationBinding.getParamsMap ();

    operationsParamsMap.put (WorkFlowBean.PROPERTY_CN, NC);

    Object result = operationBinding.execute ();

    If (! operationBinding.getErrors () .isEmpty ())

    {

    }


        // How to access data after the call?

    }

    You should never use a class VOImpl or VORowImpl in a managed bean. If you have to use them, create Interfaces and use.

    I'm not too sure if it's good to return a view in a method object.

  • How to restore control of the trace file file

    How to restore control of the trace file file?

    say I have a file of trace control file and I've lost all control file copies. The only backup of control file is the control file record.

    What are the steps to follow.

    Version: 10.2.0.4
    OS: Solaris 10

    SQL > alter database backup controlfile to trace;

    After giving this statement, oracle will write the CREATE CONTROLFILE statement in a trace file. The trace file will be randomly
    called something like ORA23212. TRC and it is created in the USER_DUMP_DEST directory.

    2. go in the USER_DUMP_DEST directory and open the last trace file in the text editor. This file will contain the CREATE CONTROLFILE
    statement. It will be two sets of instruction with RESETLOGS and one without option RESETLOGS RESETLOGS.use of the CREATE CONTROLFILE statement.
    Now, copy and paste the statement into a file. Whether c.sql

    3. now open the c.sql file in the text editor and set the name of the database to ica to prod illustrated in the example below (replaced REUSE to the GAME)

    CREATE CONTROLFILE

    Prod to DEFINE a DATABASE

    LOGFILE GROUP 1 ('/ u01/oracle/ica/redo01_01.log',)

    U01/Oracle/ICA/redo01_02.log'),

    GROUP 2 ('/ u01/oracle/ica/redo02_01.log',)

    U01/Oracle/ICA/redo02_02.log'),

    GROUP 3 ('/ u01/oracle/ica/redo03_01.log',)

    U01/Oracle/ICA/redo03_02.log')

    RESETLOGS

    DATAFILE ' / u01/oracle/ica/system01.dbf' SIZE 3 m.

    ' / SIZE of the 5 M u01/oracle/ica/rbs01.dbs.

    ' / SIZE of the 5 M u01/oracle/ica/users01.dbs.

    ' / SIZE of the 5 M u01/oracle/ica/temp01.dbs

    MAXLOGFILES 50

    MAXLOGMEMBERS 3

    MAXLOGHISTORY 400

    MAXDATAFILES 200

    MAXINSTANCES 6

    ARCHIVELOG;

    SQL > STARTUP NOMOUNT;

    5. now run the c.sql script

    SQL > @/u01/oracle/c.sql

    6. now, open database with RESETLOGS

    SQL > ALTER DATABASE OPEN RESETLOGS;

    Thank you.

  • How to find the primary key columns in the tables in MS Access using SQL queries

    How to find the primary key columns in the tables in MS Access using SQL queries

    Hello

    This is the forum for Windows Vista programs related issues.

    For better assistance, please try instead the Forums in SQL Server .

    Thank you! Vincenzo Di Russo - Microsoft MVP Windows Internet Explorer, Windows Desktop Experience & security - since 2003. ~ ~ ~ My MVP profile: https://mvp.support.microsoft.com/profile/Vincenzo

  • How to restore dates to the calendar on the windows screen tiles 8

    I stopped inadvertently tiles from calendar in windows 8, the indication of the date.  Now I could not restore the back.  Please tell us how to restore dates on the tile.

    Hi valerie,

    If you are referring to the display of the date on the start screen, then you can simply turn on live tile in a right click on the calendar app and selecting enable Live tile on. Then you should be able to see the date on the start screen of the tile appearance.

    You are always welcome in our community for all queries related to Windows. We would be happy to help you.

  • How can I prevent the text fields and drop downs changed after the form has been signed using a digital certificate? Thank you.

    Hi all

    How can I prevent the text fields and drop downs changed after the form has been signed using a digital certificate? Thank you.

    There is also a checkbox on the dialog box 'Sign' to lock document after signing.

  • My computer crashed and after the purchase of another, I used the Migration Wizard to copy all the files to the new computer.  Everything was going well until I tried to launch LR6.  It was two weeks ago and a search for many pages of the Adobe Web site. 

    My computer crashed and after the purchase of another, I used the Migration Wizard to copy all the files to the new computer.  Everything was going well until I tried to launch LR6.  It was two weeks ago and a search for many pages of the Adobe Web site.  I think I've exhausted all the remedies listed without success codes error A12E5 to questions cloud creative, Manager of Application and error 1: Configuration problems.  I'm ready to reformat my computer and try again with Time Machine.  Help would be greatly appreciated before I waste more time on this task. Any further suggestions?

    Migration of Mac with Time Machine WILL NOT WORK with the Adobe program activations due to hidden registration files

    Sign out of your account... Uninstall... to run vacuuming...

    -non-Cloud programs, to disable the service before uninstalling

    -http://helpx.adobe.com/creative-cloud/help/install-apps.html (and uninstall)

    -using the vacuuming after uninstalling and before reinstalling is often necessary

    -https://helpx.adobe.com/creative-suite/kb/cs5-cleaner-tool-installation-problems.html

    -Restart your computer... Sign in to your account... Reinstall

  • How can I go on the internet from my PC using AppleTV computer?

    How can I go on the internet from my PC using Apple TV computer?

    You need to clarify your question.

    You cannot access your computer of the ATC but you can homeshare personal media from the PC on the ATV.

    The ATV does not have an Internet browser, that you access online content via apps designed and supported by the content owner.  However, you can AirPlay since an other iDevice on the ATV, or using third party software like air parrot on non Apple safari browse i.e. mirror the display on the ATV and iPhones...

  • How export (unload) result of the query without running query on sql developer

    Hello

    I want to know how export (unload) result of the query without running query on sql developer.

    I know this way.
    1. execution of query
    2. click on "Download" on the results tab
    http://i.stack.imgur.com/CQ4Qb.jpg


    Is he available unload a query result before the race?

    No, but you can do this ask the developer SQL change however, for other users can vote and add weight to the possible future implementation.

    Kind regards
    K.

  • How to restore files to the window after it is stopped due to a virus

    How to restore windows files, after that he stop to save files of virus. Virus has now been cleaned up, and I want to restore the data.

    From the backup you made.

  • How to restore files from the Recycle Bin after that that they have been removed

    How to restore the files that I have deleted by mistake?

    Mac Mini

    El Capitan 10.11.1

    Owen,

    owenmckee wrote:

    How to restore the files that I have deleted by mistake?

    From your backup... you have a backup?

  • Restore backup after the reset Time Capsule (1st generation) using Windows PC

    I apologize if this question is somewhere already. I tried to find an answer and I've seen similar discussions but not exactly what I need.

    A bit of history... The location is a small school with about 10 cameras, its network systems, point of sale, cloud networked storage, etc. Was asked by the owner to create or activate a Guest WiFi SSID. They said he worked at the same time, but some work was done by a previous technician and they lost the WiFi of comments.

    So I used the Airport utility to access the time Capsule. However, after the change to the next level (enable the public IP sharing? maybe?), he ended up destroying the entire network, as in nothing was back upward when the utility scanned for devices. Even the Time Capsule was not recognized by the utility. I ended up doing a hard reset on the Time Capsule and do my best to manually configure the device again, even though I was not initially designed the network. I have also discovered that 1st generation Time Capsules have no comments WiFi capabilities.

    To make a long story short (too late... "I know sorry..) .. I got most of the features, functions, etc. on the network back where they were before, with the exception of camera systems and a network storage device active cloud to the owner's House.  What I would like to know is... Since then, I understand that a hard reset does NOT erase the backup or other data on the shared disk in the time Capsule... is there an easy way to restore the settings of all of the time Capsule before the problem occurred?  I would need to do this using a Windows computer.

    Any help will be greatly appreciated. What I'm trying to avoid the most is having to reset all the cameras, which are upstairs, hard to reach areas. I guess that people who were previously assigned on the cameras must still be there. If only I could get the Capsule of time exactly where it was before he went down, which would allow me to save a lot of time and frustration.

    You can also (2nd choice)... If there is a simple way to detect the active network cameras and other devices on the Time Capsule and pull the IP out of them, that would be helpful as well.

    Thanks in advance for answers!

    What I would like to know is... Since then, I understand that a hard reset does NOT erase the backup or other data on the shared disk in the time Capsule... is there an easy way to restore the settings of all of the time Capsule before the problem occurred?

    You have my sympathy all...

    Been to this place before today... and I always get myself into it by pure stubbornness... I should just walk on some of these jobs and tell them too hard...!

    What you had to do was to export the configuration before you start playing. Without export of the configuration there is not much hope of healing to less than the previous tech saved a configuration to the unit... This example gets much delicate.

    The TC is actually able to contain several configurations... There is a good chance, however, that wipe you the.

    Anyway... coming to the serious Tin. (same version on Mac and PC utility should work the same).

    Here's my TC who foolishly a reset.

    When I do something... first manual configuration, I wonder is to revert to the previous version.

    You have done or could you saved the previous settings as a profile... I hope that you did... in the hope...!

    IF so, you have a saved profile.

    In the area of the top menu go in manage profiles.

    Now, if you are lucky or did the job just last time... by accident... you'll have a saved profile... Just click back.

    If nothing is there, or it's current settings... Sorry, but you didn't know something was there... and you cannot was expected to know the trouble you would get yourself in.

    If you have changed a setting in the TC of the bridge in router mode...

    (enable the public IP sharing? maybe?)

    Getting back to what it was... mode bridge being the most common.

    At the bridge of the TC does control most things... and you need to return to the main router.

    If the TC kicking upward a stench to return to the bridge, reset it simply still once and then bridge will work... It would be useful to loads to remember what was the setting... just to see the bridge takes the TC of the equation to know where the cameras are.

    If the cameras are on static IP, they will respond to a ping scanner... If the primary router is configured for a standard range of IP addresses... 192.168.1.xxx some.

    Then the TC in bridge must have also taken an ip address in this range and the cameras (Ethernet or wireless)?

    I hope that ethernet, but if they were using the TC as a wireless access point, unless you know exactly the SSID wireless as it was in the past then you do not have this info...

    Look at any computer, they have in the building that was running wireless and watch all the SSID that they use... one of these is likely the TC and you can restore this name.

    Or drop a camera... and ethernet allows to connect to him... and find the ssid, that it's been fixed... redefine the TC on this name (SSID) wireless security... all cameras must be able to connect to it... and you can then restore the entire system by connecting to the IP address that will be displayed in the list on the main router.

    Good luck.. as says Han Solo... you'll need!

  • System restored automatically after the installation of updates & a few missing desktop icons.

    Original title: same set of updates on both computers due to different problems, one problem being a system restore.

    I have two Windows 7 computers in my house.  They all have two problems after installing updates a month ago.  The problem for 'Computer 1' is a bigger problem than the problem of the "Computer 2".  2 computer problem not really seems to be a problem now, but I'll give you the information for comparison purposes. Sorry for the length of this post - I am trying to be thorough.

    1 COMPUTER DETAILS:

    News of the computer: Dell Studio 1745 laptop computer running Windows 7 Home Premium 64 bit, six months at the time of the problem, now age of seven months. It came with Norton pre-installed, never used and uninstalled.  Trend Micro Internet Security installed at the beginning of the use of the computer.  Analyses Micro trend came clean.

    Background: set up with a single account (Administrator, of course) and after a few days of putting in place computer, said ale user account for everyday use.  Computer is configured to warn me before downloading/installation of updates of Windows, with permission for each type of account to install Windows updates.

    While in the standard account, I welcomed these download/install updates and was prompted to restart the computer.  I was done with the computer, so I just closed instead of restart.  According to "Your update history Review", it's updates and they were all successful:

    Update for Windows 7 for x 64-based systems (KB980846)
    Microsoft .NET Framework 4 Client Profile for Windows 7 x 64-based Systems (KB982670)
    Update for Windows 7 for x 64-based systems (KB982519)
    Update Microsoft .NET Framework 3.5 SP1 for Windows 7 and Windows Server 2008 R2 for x 64 systems (KB982526)
    Cumulative update for Media Center for Windows 7 x 64-based Systems (KB981078)

    After you turn on computer back, everything seemed normal.  I opened Firefox and I got a notice that Firefox has an update is available, a standard user cannot.  Unlike some programs, there is no popup to sign as an administrator, so I went to start > switch user and signed as an administrator.  (There was no update of Firefox at this point - just a switch single user.) That's where the problem appeared: instead of normally load the admin Office, I had to wait while Windows configured my desk (it's new)... wait... wait... wait... wait... BAM!  Your computer has been successfully restored * insert date here * (I don't remember what it was - January of this year, perhaps - because I was so incredulous that it happened and I continued to watch the game "successfully restored").  I do not have the computer to eat, and it don't has not asked me if I wanted to restore it.  He just did, just on its own initiative, when I went on the admin account.  A bunch of shortcut icons are missing from the Office of the admin acct and the ACCT. standard, and wallpaper to the admin account has been changed.  I am not absolutely sure if nothing else was touched.

    I have searched online to try to understand why it happened, and I remember well from my only find, is that if I went to the restoration of the system, there will be an option to cancel it, but I don't see such an option. So I told the computer to eat on a few days to a week before that updates.  It doesn't seem to help.  Shortcut icons are still missing.  Looked at the update history and it shows the five latest updates as being installed successfully, but Windows Update tells me that I need to these five updates AND this time, the little check marks are only already there on four of the five updates listed.  (The first time, the little checkmarks were already there for all five.)  This is the update that is NOT now pre-checked:

    Microsoft .NET Framework 4 Client Profile for Windows 7 x 64-based Systems (KB982670)

    Do not reinstall the five updates.  I don't know if I should jump install them again, or if I should install only the
    now, four are already "pre-checked."  I'm very hesitant to install KB982670, because this update seems to be the likely cause of the problem given the fact that it is already pré-coché in the Windows and the following information updates for computer 2.

    Since I installed the latest updates for 1 computer with no apparent problems:

    X 64-July Windows malicious software removal tool (KB890830) 2010
    Update security for Windows 7 for x 64-based systems (KB2032276)

    NEWS ON COMPUTER 2:

    The computer news: Systemax desktop running Windows 7 Professional 64-bit, a month at the time of the problem, now age of two months.  It has not come with any pre-installed antivirus.  Trend Micro Internet Security installed at the beginning of the use of the computer.  Analyses Micro trend came clean.

    Reminder: Set up immediately with an admin account and a standard account for everyday use.  Computer has been set to automatically download and install updates for Windows, but is about to inform me first.

    At the time of the problem above with the laptop, desktop computer has been enabled.  As all loading,.
    an error message came that there was some kind of issue with the .NET framework.  At another person asked if he knew what was up with that, and it didn't.  Did not note the specific message, thinking he would tell me again if there was a real problem.  I thought it could have been some kind of Windows hiccups when starting the computer, not even knowing about update problems.  I have yet to see this message.  After the number of laptop (computer 1), I took a peek at the desktop computer (computer 2) to check that Windows Update and I saw that an update is available, which is the referenced above same update that the notebook had already the check mark in its box (KB982670), which gives me the choice to check the little to install it.  Very curious, since, as already mentioned, the computer has been configured to automatically download and install Windows updates.  Looked at the update history, and it has already downloaded and installed the other four updates that the laptop has been.  Changed the automatic Windows Update setting to warn me before you download and install updates.  I have not installed the missing update.  Said the only other person in the House who would probably bother install updates to not install it.

    A month later, 2 computer has a notification from Windows update that 21 or 22 updates are available (as a result, by clicking on the icon of the trial of Microsoft Office).  The update not installed a month ago is no longer on the list, and update history shows as having been installed a few days before, apparently because someone else in the House must have thought it looked like a good idea.  I installed all the 'important' updates and have not seen any more problems with computer 2.

    BACK TO THE COMPUTER 1:

    Yes, is there anyone with ideas on how to get 1 computer back to its state before the 5 updates listed above, and what to do about to reinstall some or all of them, I hope, without more problems, for example a random food system does not happen?  I have a feeling I will say that the random system restoration do not occur, but he did.

    Thanks for any help.

    No, I don't use the Norton removal tool.

    IN RE COMPUTER 1 ONLY:

    1. download the Norton Removal Tool, save it to your desktop: ftp://ftp.symantec.com/public/english_us_canada/removal_tools/Norton_Removal_Tool.exe

    2. close all open applications (that is, anything with an icon on the taskbar).

    3. click right on the file saved in #1 above, and then select run as administrator to run the utility. DO TAP not your keyboard until the race ends, then restart.

    4 for good measure, reset Windows Update by...

    How to reset the Windows Update components?
    -Online skip the section to APPLY to; KB971058 access via I8 32-bit only; Run the difficulty in DEFAULT and modes, then AGGRESSIVE [1]
    http://support.Microsoft.com/kb/971058

    5. restart & test.

    ~~~~~~~~~~~~~~~~~~~~~~~~
    [1] full Disclosure: the difficulty operating in AGGRESSIVE mode will delete your update history (but not list updates in the updates installed)

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • lost all the restore points after the reinstatement of windows

    Original title: have just re-recorded windows software, now Ifind I lost all the restore points. How can I get the old one back?

    Windows has been registered online. Checked restore points after recording and found that the only listed restore point was created when the software has been registered. How can I find the previous restore points?

    If you reformatted and reinstalled windows, you will lose any restore points. Theyre gone

Maybe you are looking for