A new question on how to Enable Flashback Database on the standby database?

Best Practice document said:
Enable Flashback Database on the standby database to minimize downtime for logical corruptions.
I would like to know where to find document or anybody already had experience for this topic?
Also I would like to know what is the best practice for backup/recovery of the Physcial standby database?
Thanks in advance.

Hello;
Just an opinion but I like the book "Oracle Data Guard 11g Handbook" as both the document and the answers to the second question.
Chapter 12 covers the A to Z of RMAN with Data Guard.
This book sold me on Flashback since Flashback allows a former Primary database to be reinstated after a failover operation with being restored ( provided sufficient flashback logs are available)
My own experience is I tried a failover test without it and trash my test Primary.
I did a simple failover test a few weeks ago, here are my notes.
http://www.visi.com/~mseberg/Data_Guard_Failover_Test_using_SQL.pdf
Best Regards
mseberg

Similar Messages

  • How to delete archive logs on the standby database....in 9i

    Hello,
    We are planning to setup a data guard (Maximum performance configuration ) between two Oracle 9i databases on two different servers.
    The archive logs on the primary servers are deleted via a RMAN job bases on a policy , just wondering how I should delete the archive logs that are shipped to the standby.
    Is putting a cron job on the standby to delete archive logs that are say 2 days old the proper approach or is there a built in data guard option that would some how allow archive logs that are no longer needed or are two days old deleted automatically.
    thanks,
    C.

    We are planning to setup a data guard (Maximum performance configuration ) between two Oracle 9i databases on two different servers.
    The archive logs on the primary servers are deleted via a RMAN job bases on a policy , just wondering how I should delete the archive logs that are shipped to the standby.
    Is putting a cron job on the standby to delete archive logs that are say 2 days old the proper approach or is there a built in data guard option that would some how allow archive logs that are no longer needed or are two days old deleted automatically.From 10g there is option to purge on deletion policy when archives were applied. Check this note.
    *Configure RMAN to purge archivelogs after applied on standby [ID 728053.1]*
    Still it is on 9i, So you need to schedule RMAN job or Shell script file to delete archives.
    Before deleting archives
    1) you need to check is all the archives are applied or not
    2) then you can remove all the archives completed before 'sysdate-2';
    RMAN> delete archvielog all completed before 'sysdate-2';
    As per your requirement.

  • How to create many user in the same database

    hi
    my question is "How to create many user in the same database(application)?"
    for example, i have students, teachers, and staffs user using my application.
    i can create many users to use the same application right?, how ^^''' ???
    (right now i can only create application and then it shows every data in my DB
    but i want it to show only the data for the user who login to that application)
    Thanks.
    ps. i'm newbie, please help T^T

    You need to create a user table within your application that maintains their privileges. If you have LDAP you could use this for authorisation otherwise the table would handle that as well (store passwords etc). Your reports etc would then be filtered on information from this table.
    Check out some of the sample applications to see how authorisation and access is implemented (Online store is one). The how-to on the issue tracking system should also have some useful pointers.
    http://download-west.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28839/issue_track.htm#BABBGBJG
    cheers,
    Ron

  • I need a new power cord for my Mac book Pro its the T type mag connector. I don't need a Tech just a new cord. How do I buy one. The closest Aplle store is 75 miles away and I do not drive.

    I need a new power cord for my Mac book Pro its the T type mag connector. I don't need a Tech just a new cord. How do I buy one. The closest Aplle store is 75 miles away and I do not drive.

    Are you in the US? Order one from here:  http://store.apple.com/us/browse/home/shop_mac/mac_accessories/power?mco=MTM3NjU xNDg
    Or check out Best Buy.

  • Hi everyone, I have a computer linked to my iPAD through itunes.  Then my Computer crashed and had to get  a new one. How do I get rid of the old computers link on ipad and get it on new computer bcos is wont work! (doesn't work) PLZ HELP :(

    Hi everyone, I have a computer linked to my iPAD through itunes.  Then my Computer crashed and had to get  a new one. How do I get rid of the old computers link on ipad and get it on new computer bcos is wont work! (doesn't work) PLZ HELP

    what do you mean the old computers link?
    my ipad is sycned with my computer but nowhere is there a link
    and if I connected it with a new computer and set it to sync it would replace all my data with the data from the new computer

  • HT4889 Replacing System hard drive with a new one. How to get everything over to the new boot drive?

    Replacing System hard drive with a new one. How to get everything over to the new boot drive? Should I use Carbon Copy or does apple have a better untility to do this?
    I can't get my current system drive (OSX 10.8.3) to start on the first try. I always have to shut down and restart again to finally see the Apple logo.
    Have used disc utility to repair the disc and permissions several times and that works. The next time I boot up, it works fine and I get the apple logo, but then the second time I boot up, it's back to the blank screen again and it only boots after the second try.  I have tried this repair three different times now always with the same result. Works right the first try (after the repair) then from the second time on it doesn't work. I just get the white screen until I reboot a second time.
    Thinking I should change drives but what's the easist and best way to move everything over to the new drive so it will boot correctly with all my data on it. This is the system drive for a Pro Tools 10HD setup. MacPro 3,1 with 16 gigs ram and OSX10.8.3 on it.
    Thanks for any help!

    If you have a time machine back up of your current drive you can do this
    Shut down your computer, install the new drive. While the computer is off plug in the external hard drive that you have your time machine back up on. Hold Option key while the computer turnes on, let go of the option key once you get a grey screen. Shortly after you'll see  a list of bootable drives, select the one that has your time machine back up on it and boot into that drive.
    From there go into disk utility, format your new drive too, osx extended journaled ( I think, double check that, its been awhile since ive had to do this), hit format
    Exit disk utility and then you can use time machine to copy all your exisit data to the new hhd and then your pretty much done.
    There is also a program called Carbon Cloner that will do esentially the same thing however I've never uesed it.

  • I downloaded ringtones and text tones then got a new phone. How do I get them on the new phone?

    I downloaded ringtones and text tones then got a new phone. How do I get them on the new phone?

    Transfer your purchases from old iPhone to computer iTunes, then select tones in iTunes with your new iPhone connected, do a sync.

  • My iPad mail shows 5 letters in my inbox, but when I check there is nothing that shows new letters.  How do I get rid of the "5" showing on my home page?  My home computer has no new emails either.

    My home page shows "5" new emails but when I go to my mail account there are no new letters.  How do I get rid of the "5" on my home screen.  My computer and other email accounts show no new ones.  Help.

    Have you tried deleting the account and re-installing?

  • How to enable Print Preview with the Envy 5530

    How to enable Print Preview on the Envy 5530

    Hi,
    A print preview is not offered by the current HP software as older software versions provided.
    A preview is only available if the application you are printing from include a such, it is not provided by the printer driver itself.
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • I installed ShopAtHome toolbar, now Yahoo has hijacked my new tab. How do I fix this to the last visited tabs?

    I installed ShopAtHome toolbar, now Yahoo has hijacked my new tab. How do I fix this to the last visited tabs?
    Multiple forums have addressed the fact that Yahoo is hijacking new tabs. I installed the ShopAtHome toolbar - which I love - but then I get Yahoo installed (mysteriously and uninvited).
    I would like the new tab to reset to its default of: either the panels of previous sites, or the blank page. The prior issues relating to netassistant do not work.
    Any help would be appreciated.

    Hi,
    You can try to right-click and '''Reset''' the key '''browser.newtab.url''' in [http://kb.mozillazine.org/About:config about:config] or '''Modify''' and enter '''about:blank'''.
    [http://kb.mozillazine.org/About:config_entries about:config Entries]
    The [https://services.addons.mozilla.org/en-US/firefox/discovery/addon/config-descriptions/ Config Descriptions] add-on adds helpful source comments in about:config.
    [https://support.mozilla.org/en-US/kb/new-tab-page-show-hide-and-customize-top-sites New tab page]
    If the issue returns, you can try to check/change the '''Options''' for ShopAtHome in Firefox '''Tools''' ('''Alt''' + '''T''') > '''Add-ons''' > '''Extensions''', or in the toolbat itself.
    [https://support.mozilla.org/en-US/kb/Using%20extensions%20with%20Firefox Using extensions]

  • I have a creative cloud membership.  I just purchased a new computer.  How do I download it to the new computer?

    I have a creative cloud membership.  I just purchased a new computer.  How do I download it to the new computer?

    If you have already installed the CC software before, you just repeat the same process for the new machine.
    Download/install the desktop application, sign in, install the subscription application(s).
    Creative Cloud Help / Download, install, update, or uninstall apps
    https://helpx.adobe.com/creative-cloud/help/install-apps.html
    Creative Cloud Help / Creative Cloud for desktop
    https://helpx.adobe.com/creative-cloud/help/creative-cloud-desktop.html
    Creative Cloud Help / Sign out, Sign in | Creative Cloud desktop app
    http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
    Creative Cloud Help / Install, update, or uninstall apps
    http://helpx.adobe.com/creative-cloud/help/install-apps.html
    Installing Creative Cloud Apps
    http://tv.adobe.com/watch/cs6-creative-cloud-feature-tour-for-video/installing-desktop-app s-from-creative-cloud/

  • HT1631 I am not able to recover my keychain access.  I followed the directions to "Reset My Default Keychain" and then entered a new password.  It will not accept a new password.  How do I Reset or recover the KeyChain Access Password?

    I am not able to recover my keychain access.  I followed the directions to "Reset My Default Keychain" and then entered a new password.  It will not accept a new password.  How do I Reset or recover the KeyChain Access Password?

    This is what you tried?
    Resetting your keychain in Mac OS X...
    If Keychain First Aid finds an issue that it cannot repair, or if you do not know your keychain password, you may need to reset your keychain.
    http://support.apple.com/kb/TS1544
    Keychain Access asks for keychain "login" after changing login password...
    http://support.apple.com/kb/HT1631

  • How to sync the standby database with the primary?

    Hi..We have dataguard setup for our production databases(10.2.0.3).
    I need one clarification regarding the standby database sync with primary.We identified one of our databases is not in sync with the primary and for longtime the archives are not getting applied at the secondary.
    We decided to take the incremental (from SCN)backup from primary and use that at the standby to resolve the gap as described in the book "Oracle dataguard concepts and administration".
    But, before doing that,we observed couple of structural changes were not applied at the standby(ex:some tablespaces were not created in secondary where as they were there in primary).
    How to apply these changes at the secondary as the standby is in mount state.(Can I open this database and create those tablespaces ?? or do you suggest any other way.
    Thanks for your reply.

    This points to a setup problem. Something missing, a parameter set wrong etc.
    While your question is asking something different - How to correct, I would consider how to prevent. Unless you have a gap or logs not applied you have a deeper issue.
    If you have a gap or logs not applied then correct it and check to see if the missing object are present.
    The key parameters for Oracle 10 are :
    FAL_SERVER=STANDBY
    FAL_CLIENT=PRIMARY
    STANDBY_FILE_MANAGEMENT=AUTO
    DB_FILE_NAME_CONVERT='STANDBY','PRIMARY'
    LOG_FILE_NAME_CONVERT='STANDBY','PRIMARY'
    log_archive_dest_1='LOCATION=/u01/app/oracle/oradata/PRIMARY/archive VALID_FOR=(ALL_LOGFILES,ALL_ROLES) DB_UNIQUE_NAME=PRIMARY'
    log_archive_dest_2='SERVICE=STANDBY LGWR ASYNC VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE) DB_UNIQUE_NAME=STANDBY'
    LOG_ARCHIVE_DEST_STATE_1=ENABLE
    LOG_ARCHIVE_DEST_STATE_2=ENABLE
    LOG_ARCHIVE_MAX_PROCESSES=30
    Check them on both sides for issues.
    If your standby is really trashed consider using RMAN to duplicate it. You might end up saving time. I have Oracle 11 short notes on this but it will work on Oracle 10 too.
    http://www.visi.com/~mseberg/duprman.html
    Otherwise use statements like this to resolve you gap.
    ALTER DATABASE REGISTER LOGFILE '/u01/app/oracle/oradata/STANDBY/archive/PRIMARY_1_20_716110538.arc';
    ALTER DATABASE REGISTER LOGFILE '/u01/app/oracle/oradata/STANDBY/archive/PRIMARY_1_21_716110538.arc';See Section 5.8 Managing Archive Gaps of oracle document B14239-05
    Best Regards
    mseberg
    CKPT is correct, sorry I missed the Welcome to OTN!
    Edited by: mseberg on Jul 5, 2011 10:34 AM

  • How do you declare objects in the master database

    I am trying to register our CLR assembly as an unsafe assembly without having to make the database trustworthy.  Since making the database is_trustworthy_on = 1 is not a best practice, and would cause some of our customers (and our development process)
    a little bit of grief.
    I have read a ton about it but am still having trouble.
    The reason the assembly is 'Unsafe' is because it is calling the TimeZoneInfo class to convert between timezones, since we are not yet on UTC dates.  We plan to in the future but that's a big project.
    We are also not using the 'SQLCLR' but rather have written our own class library and just have a project reference to it, which works just the same, but we have found to be better for the C# programmers.
    I am playing with signing the assembly using an SNK file and have figured out what I need to do, including 1) creating a master key, 2) creating an asymmetric key using the same SNK file that signed the assembly, 3) creating a login for the asymmetric key,
    and 4) granting unsafe assembly to the login.
    When I do all that with straight SQL, it actually works!  But I am having trouble fitting this into our SSDT world.
    Should I create a separate SSDT project for items #1 through #4 above, and reference it, and check 'Include composite objects' in our publishing options?  As stated in this blog post though, I'm terrified of messing up the master database, and I'm not
    excited about the overhead of another project, a 2nd dacpac, etc.
    http://blogs.msdn.com/b/ssdt/archive/2012/06/26/composite-projects-and-schema-compare.aspx
    Since we do use a common set of deployment options in a deployment tool we wrote, which does set the 'block on data loss' to false, and the 'drop objects not in source' to true, b/c we drop tables all the time during the course of refactoring, etc. 
    I don't want to drop anything in master though, and I don't want to have to publish it separately if we didn't have to. 
    I suppose I could just have some dynamic SQL in a pre-deployment script that takes care of the master database, but I was trying to do it the 'right' way, in a declarative style, but struggling.
    So, in short, what's the recommended approach for getting an 'unsafe' CLR assembly into an SSDT project?
    The error that started all this was:
    CREATE ASSEMBLY for assembly *** failed because assembly *** is not authorized for PERMISSION_SET = UNSAFE. 
    The assembly is authorized when either of the following is true:
    the database owner (DBO) has UNSAFE ASSEMBLY permission and the database has the TRUSTWORTHY database property on;
    or
    the assembly is signed with a certificate or an asymmetric key that has a corresponding login with UNSAFE ASSEMBLY permission.
    Also, would a certificate be better than an asymmetric key?  I'm not entirely sure of the difference just yet to be honest.
    Thanks,
    Ryan

    After much fighting with this, figured something out as a workaround, and thought I'd share it.
    First, I'm pretty certain the SSDT declarative way for these master objects just doesn't work yet.
    My workaround was to make a pre-deployment script (that runs when we create new databases, as well as for the current release), that takes care of the security items needed to support a signed CLR assembly with unsafe permissions.
    One issue we were running into was when it came to creating the asymmetric key, there are 4 ways to do so, and we didn't want to depend on a hard-coded/absolute file path.  The 4 ways are "From file", "from external file", "from
    assembly", or "from provider".  I still don't 100% understand the from provider way, but ultimately we are actually using the from assembly way, with a little trick/hack I did that allows us to not have to use the 'from file' way and to
    reference a hard-coded path on someone's C:\ drive.  I really really didn't want to do that b/c we create local dev databases all the time and not everyone has the same paths setup.  Also, our databases are deployed on our servers as well as remote-hosted-customer
    servers, and up until now, the database release has not needed file system access.  Even the CLR itself is created using assembly_bits, which is awesome.
    So I thought of something...
    What if I had a simple/temporary assembly, which I create from assembly_bits, use to import the public key from, through the create asymmetric key from assembly command, and then drop as if it never existed?
    Well...it works!
    Here is my current prototype of a pre-deployment script, which I'll go through and cleanup more, but thought I'd share.  I also want to document how I created the temporary assembly_bits in case anyone ever wants or needs to know, even though they really
    shouldn't.  But it should make them feel better.  Basically I just created did this to get them:
    1 - Created a C# Class Library project in the solution.
    2 - Added our .SNK to that project and removed the 'Class1.cs' that it created by default
    3 - Signed that class library with the .SNK
    4 - Added a project reference to that class library from the main database solution.
    5 - Generated a deployment script (but didn't run it) and grabbed the create assembly statement (copy/paste)
    6 - Deleted the temporary project
    7 - Pasted the code I had copy/pasted into the pre-deployment script
    Note that the objects do apparently need to go into MASTER, so at the end of the pre deployment script, I switch back to the automatic [$(DatabaseName)] after first having done USE master.
    Hope this helps someone.  Finally got it!
    BTW - The other way we almost used was to introduce a SqlCmdVariable of $StrongNameKeyFilePath but that would have been a hassle for people to set whenever they got a new machine, etc.
    Thanks,
    Ryan
    PRINT '**************************************************************************'
    PRINT 'Pre\SetupMasterDatabaseKeysAndLoginsIfNecessary.sql'
    PRINT '**************************************************************************'
    PRINT '************************************************************************************'
    PRINT 'If they do not already exist, create the database master key, as well as the asymmetric'
    PRINT 'key, from the Strong-Named File (.SNK) which signed the CLR assembly.  Finally, also'
    PRINT 'create a login from that asymmetric key and grant it the UNSAFE ASSEMBLY permission.'
    PRINT 'This is all necessary b/c the CLR currently has to be referenced for UNSAFE permissions'
    PRINT 'in order to access the TimeZoneInfo class.  This code and these objects can be removed'
    PRINT 'if the system is ever updated to use all UTC dates and no longer requires the TimeZoneInfo class.'
    PRINT '************************************************************************************'
    USE master
    PRINT N'Creating Temporary Assembly [Wits.Database.AsymmetricKeyInitialization]...'
    CREATE ASSEMBLY [Wits.Database.AsymmetricKeyInitialization]
        AUTHORIZATION [dbo]
        FROM 0x4D5BlahBlahBlah;
    IF NOT EXISTS (SELECT 1 FROM sys.symmetric_keys WHERE name LIKE '%DatabaseMasterKey%')
        BEGIN
            PRINT 'Creating Master Key...'
            CREATE MASTER KEY
                ENCRYPTION BY PASSWORD = 'I Removed This Part For This Post'
        END
    IF NOT EXISTS (SELECT 1 FROM sys.asymmetric_keys WHERE name = 'ClrExtensionAsymmetricKey')
        BEGIN
            PRINT 'Creating Asymmetric Key from strong-named file...'
            CREATE ASYMMETRIC KEY [ClrExtensionAsymmetricKey]
                FROM ASSEMBLY [Wits.Database.AsymmetricKeyInitialization]
        END
    IF NOT EXISTS (SELECT 1 FROM sys.server_principals WHERE type_desc = 'ASYMMETRIC_KEY_MAPPED_LOGIN' AND name = 'ClrExtensionLogin')
        BEGIN
            PRINT 'Creating Login from Asymmetric Key...'
            CREATE LOGIN [ClrExtensionLogin] FROM ASYMMETRIC KEY [ClrExtensionAsymmetricKey]
            PRINT 'Granting Permissions to Login created from Asymmetric Key...'
            GRANT UNSAFE ASSEMBLY TO ClrExtensionLogin
        END
    PRINT N'Dropping Temporary Assembly [Wits.Database.AsymmetricKeyInitialization]...'
    DROP ASSEMBLY [Wits.Database.AsymmetricKeyInitialization]
    USE [$(DatabaseName)]

  • How to monitor the successful archive log shipment to the standby database

    Hello,
    From the primary database, which data dictionary do I view to get information whether the standby database has received and processed the archive logs from the primary database. Both databases are 11202 on linux. Another question, which views on the primary database contain a flag sent by the standby database to the primary database to let the primary database knows that the standby database is up and functional? My purpose is to query the primary database for infomation that tell me the standby database is alive and functioning. I want to only query the primary database for these information about the standby database. Thank you in advance.

    watson2011 wrote:
    Hello,
    From the primary database, which data dictionary do I view to get information whether the standby database has received and processed the archive logs from the primary database. Both databases are 11202 on linux. Another question, which views on the primary database contain a flag sent by the standby database to the primary database to let the primary database knows that the standby database is up and functional? My purpose is to query the primary database for infomation that tell me the standby database is alive and functioning. I want to only query the primary database for these information about the standby database. Thank you in advance.You can troubleshoot standby by views as
    v$managed_standby (standby)
    v$dataguard_status
    v$dataguard_stats
    Some of the new views are introduced from 11g, check below link too
    http://docs.oracle.com/cd/B28359_01/server.111/b28294/views.htm#i79129

Maybe you are looking for

  • Help trying to create a button in safari please.

    trying to create a button that runs an applescript. I have been discussing it in 101 but cross posting it here because it's not getting much interest over there. Any help would be nice. I have read Become an xCoder and it doesn't seem to answer my qu

  • Error in query when using offset in variable

    Hi, I have a query in which I use av variable (0CWEEK) for the current week. The query works fine with this varable. But when I use an offset of for example minus 1, the query displays an error: (A299(BRAIN)) Terminate: System error in program SAPLRR

  • Help with iphoto book in iphoto 08

    Ok.. I made a book in iphoto 08 using the Crayon theme. the cover in my theme is blue... When I click order book... it only gives me two options for a cover... brown or black... am I missing something??? are these themes not available to print even t

  • I have updated my iphone 5 and lost all my music

    please can someone help i have just updated my iphone 5, has i have been told how amazing this new update is so, after i have saved all my music and photos, i updated the phone, when i switched it on, i noticed that none of the songs or the photos wa

  • After install ios 7 wifi won turn on please help....

    after install ios 7 wifi won turn on please help....