Rollback database migration saving changes

Hi All,
We are planning to migrate our production database from one location to another.
We are still in planning phase and I need a suggest for one of the possible scenarios we have considered:-
Suppose on at DAY 1 ,we copy database from old location to new location.And old database is closed after copy process is complete and new database is in action.
Now new database is under operation and all the new transactions affect new database.
Now at DAY 10, we find that there is XYZ problem and we want to move back to the old database .In this case we have to move all the "changes" from newer to the older database and bring it up.
So my question is : Is it possible to apply achived logs for 10 days of period from the newer database to the older one???
If my question is not clear to you please ask..
Please suggest for both cases of database upgrade and migration for same version.
Please reply..
Thanks in advance..
Saket Bansal

If
a. you preserve the online redo logs and the entire sequence of archivelogs and do NOT OPEN RESETLOGS
b. the platform doesn't change
c. no oracle patches are applied (and the database isn't upgraded !!)
d. there are no NOLOGGING operations
then you can "revert" to the old site by pretending that you are restoring the database from a backup of 10 days ago and then doing a RECOVER DATABASE to apply the archivelogs !
HOWEVER, you would be replaying the error-causing XYZ behaviour through the archivelogs as well and "corrupting" the database at the old site !

Similar Messages

  • Error message: "Querying or saving changes to the database failed."

    Hi all,
    I can sense I'm becoming a regular on this particular forum - the problem of spending 8 hours a day trying to get this software working!
    _*The problem*_
    When i try and setup a new device, or modify an existing one, I get an error message when i get to the Transcode Settings page. The error message is "Querying or saving changes to the database failed." After this I get a blank screen and can no longer see my settings.
    No amount of restarting has fixed this. And I cannot see a way to create a device through the client software and add transcode settings.
    Help?
    Thanks in advance,
    Ben

    Ah very good!
    Ok - it seems then that this works absolutely fine as a work around. I can create a device and then assign the device to transcode settings through the client adminsitration panel (which is indeed what I meant).
    So, there is a work around. Far less pressing now, but I would like to know why I'm getting the error message all the same - I'm now concerned about the integrity of the database...
    Thanks Tony!
    B

  • Changes to be made in EP server during Oracle database migration

    Hi,
    Currently we have a scenario where both our Oracle database 10.2 and NW 7.0 server are on same system which has got the hardware configuration as 32 bit 2003 windows machine. Due to memory constraints DB team is planning to migrate the database in to another system which is of 64 bit unix OS.
    Now before they migrate the Oracle database from current system to new system i wanted to know on what all parameters and changes have to carried out from NW/ EP end so that after the database is moved EP points to the same Oracle database in the new system and runs smoothly.
    Thanks in Advance,
    Regards,
    Vipin.

    > Currently we have a scenario where both our Oracle database 10.2 and NW 7.0 server are on same system which has got the hardware configuration as 32 bit 2003 windows machine. Due to memory constraints DB team is planning to migrate the database in to another system which is of 64 bit unix OS.
    This is a heterogeneous migration (you change the operating system) - which requires a certified migration consultant to do that task. If you do it on your own you will loose support for the target system (see http://service.sap.com/osdbmigration)
    > Now before they migrate the Oracle database from current system to new system i wanted to know on what all parameters and changes have to carried out from NW/ EP end so that after the database is moved EP points to the same Oracle database in the new system and runs smoothly.
    You will have to use the Java export/import method, not copying database files over.
    Check the official system copy guides.
    Markus

  • Best practice for database migration in 11g

    Hello,
    Database migration is required due to OS change.  Here, I have two database instances say A and B in the old server where RDBMS_VERSION is 11.1.0.7.0. They need to be migrated into a new OS where the oracle has been installed with version 11.2.0.2.0.
    Since all data + objects need to be migrated into the new server, I want to know what the best practice is and how to do that. Thanks in advance for your necessary guidance.
    Thanks and Regards,
    Prosenjit

    Hi Prosenjit,
    you have some options.
    1. RMAN Restore: you can restore your database via rman to the new host, and then upgrade it.
        Please follow instruction from MOS Note: RMAN Restore of Backups as Part of a Database Upgrade (Doc ID 790559.1)
    2. Data Guard: check the MOS Note: Mixed Oracle Version support with Data Guard Redo Transport Services (Doc ID 785347.1)
    3. Full Export / Import (DataPump)
    Borys

  • Upgrade of Database with Oracle Change Data Capture

    Hello,
    We are upgrading and moving our database to a different server.
    The move is from 10G R1 database on Solaris to 11G R2 on Linux.
    Our database uses Oracle Change Data Capture.
    What is the best way to perform this migration? Unlike in the approach below, ideally, it would be without any manual steps to drop and recreate CDC subscriptions, change tables, etc.
    Thanks.
    Considerations for Exporting and Importing Change Data Capture Objects
    http://docs.oracle.com/cd/B13789_01/server.101/b10736/cdc.htm#i1027532
    Starting in Oracle Databse 10g, Oracle Data Pump is the supported export and import utility for Change Data Capture. Change Data Capture change sources, change sets, change tables, and subscriptions are exported and imported by the Oracle Data Pump expdp and impdp commands with the following restrictions:
    After a Data Pump full database import operation completes for a database containing AutoLog Change Data Capture objects, the following steps must be performed to restore these objects:
    1. The publisher must manually drop the change tables with the SQL DROP TABLE command. This is needed because the tables are imported without the accompanying Change Data Capture metadata.
    2. The publisher must re-create the AutoLog change sources, change sets, and change tables using the appropriate DBMS_CDC_PUBLISH procedures.
    3. Subscribers must re-create their subscriptions to the AutoLog change sets.

    Hello,
    I opened SR with Oracle Support, they are suggesting to perform full database import/export
    Change Data Capture change sources, change sets, change tables, and subscriptions are exported and imported by the Oracle Data Pump expdp and impdp commands with the following restrictions.
    Change Data Capture objects are exported and imported only as part of full database export and import operations (those in which the expdp and impdb commands specify the FULL=y parameter). Schema-level import and export operations include some underlying objects (for example, the table underlying a change table), but not the Change Data Capture metadata needed for change data capture to occur."
    CDC has different implementation methods:
    You may use the below query to determine-
    select SOURCE_NAME, SOURCE_DESCRIPTION, CREATED, SOURCE_TYPE, SOURCE_DATABASE, SOURCE_ENABLED from change_sources;
    – Synchronous CDC: with this implementation method you capture changes
    synchronously on the source database into change tables. This method uses
    internal database triggers to enable CDC. Capturing the change is part of the
    original transaction that introduces the change thus impacting the performance
    of the transaction.
    – Asynchronous Autolog CDC: this implementation method requires a staging
    database separate from the source database. Asynchronous Autolog CDC uses
    the database's redo transport services to transport redo log information from
    the source database to the staging database1. Changes are captured at the
    staging database. The impact to the source system is minimal, but there is some
    latency between the original transaction and the change being captured.
    As suggested in the document-
    Change Data Capture objects are exported and imported only as part of full database export and import operations (those in which the expdp and impdb commands specify the FULL=y parameter). Schema-level import and export
    operations include some underlying objects (for example, the table underlying a change table), but not the Change Data Capture metadata needed for change data capture to occur.
    ■ AutoLog change sources, change sets, and change tables are not supported.
    Starting in Oracle Database 10g, Oracle Data Pump is the supported export and import utility for Change Data Capture.
    Re-Creating AutoLog Change Data Capture Objects After an Import Operation
    http://docs.oracle.com/cd/B19306_01/server.102/b14223/cdc.htm#i1027532
    After a Data Pump full database import operation completes for a database containing AutoLog Change Data Capture objects, the following steps must be performed to restore these objects:
    a. The publisher must manually drop the database objects underlying AutoLog Change Data Capture objects.
    b. The publisher must re-create the AutoLog change sources, change sets, and change tables using the appropriate DBMS_CDC_PUBLISH procedures.
    c. Subscribers must re-create their subscriptions to the AutoLog change sets.

  • Day Light Saving Changes for Europe

    Hi,
      We are using SQL Azure databases in North Europe location. 
    When trying to use GETDATE() function, it is not considering the day light saving changes and brings back the time less by an hour.
    Is that something that we need to or can do on the server or database
    Having issues in saved records even for auditing purposes.
    Any help will be highly appreciated
    Many thanks
    Deepu

    When trying to use GETDATE() function, it is not considering the day light saving changes
    Hello Deepu,
    All SQL Azure server in all Azure locations (America, Europe, Asia, etc) returns for GETDATE always the same value: The current UTC date time. No time zone offset, no daylight saving, always UTC only. You can simply check it with this query:
    select GETDATE(), GETUTCDATE()
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Split Table Procedure in Database Migration

    Hello,
    We are doing Database Migration from Informix to Oracle...
    We have a Big Table PCL4 in our system which is around 100 GB..
    I want to split the table and would like to know what is the procedure to do so...
    What changes are to be done at database level , in STR Files , in TOC files and if any in .cmd files...
    Thanks & Regards,
    RaHuL...

    RaHul,
    In my last experience with Informix migration (HeSC), I didn't use split table, because the following caution:
    CAUTION: This may not be possible on databases that need exclusive access on the table when creating an index (for example, Informix).
    I used the following informix features:
    1. We fragmented the BIG Table (In our case CDCLS) into four peices ( Four DBSPACES) and moved CDCLS~0 (Index) to others DBSPACE.
    2. We increased CPU VPs and used the following Informix parameters:
    PDQPRIORITY 100
    PSORT_NPROCS 32
    The results of the test was:  ~ 5hs50min less during export
    Cheers,
    Jairo

  • Database Migration:Resolving DB links issue.

    Hi,
    We are to migrate one of our production database to a new server. The DB version is 11.2.0.3 and it is on AIX 6.1. There will be no change in version of DB or OS.
    In our setup there are some number of other Oracle databases which connects to this database using DB links. We do not use DNS so, DB links are completely dependent on IP address. In this case the IP of the database server will change due to migration.
    My Question, Is there any way I can determine which databases connects to this database using DB links? We need to resolve those db links post migration.
    Looking for kind help. Thanks.
    -Gourab

    940748 wrote:
    Thanks for reply.
    What I tried is to query dba_audit_trail and found a distinct list of USERHOST. These contains clients as PC/Application Servers/Other Database servers. This narrow down my search though, I can not confirm this list is 100%. DBA_AUDIT_TRAIL has a retention and there may be an application that runs twice a year.
    --Gourab
    Well, consider this.  Your connecting clients fall into three groups:
    1) End-user desktops
    2) Application servers
    3) other databases using db links.
    Hopefully, group 2 is already well known.
    Group requires a bit of research, but is actually pretty easy to collect on an ad-hoc basis.
    Create two sql script files.
    -- sweep_db.sql --
    spool sweep_db.log
    connect system/manager@db_1
    @query_db_links.sql
    connect system/manager@db_2
    @query_db_links.sql
    -- etc, etc
    spool off
    exit
    and
    -- query_db_links.sql
    select * from dba_db_links.
    exit
    You will need to know the names and connection credentials of all possible 'client' databases in order to build 'sweep_db.sql'.  And it will take a manual reading of sweep_db.log, but for a one-time effort that's not all that bad.
    You may want to add some sqlplus formatting commands to sweep_db.sql

  • Need help with database migration using export/import

    Hi,
    I am planning to do a database migration from 8.0.6 to 10.2.0.4. I am using export/import. Please answer some of my queries:
    1) Do i need to do full export using SYS/SYSTEM user.
    exp80 system/manager file=c:full.dmp log=c:\full.txt full=y consistent=y
    2) Will there be any data corruption while export.
    3) Is export/import the only method of migration/upgradation.
    Please help
    Thanks.

    I'll answer the specifics that I know about your questions, but please look at the post from Srini for additional info:
    1) Do i need to do full export using SYS/SYSTEM user.
    exp80 system/manager file=c:full.dmp log=c:\full.txt full=y consistent=yA full export will move as much information (metadata/data) as possible. In order to do a full export/import, you need to do this from a
    privileged account. A privileged account is one with EXP_FULL_DATABASE for export and IMP_FULL_DATABASE for import.
    2) Will there be any data corruption while export.The data in the objects that you are exporting is being read, nothing is written to user data. I'm not sure what this is available in 8.0.6,
    but if you need a consistent export, look to see if consistent=y is available in 8.0.6. All this means is that the dump file created will have
    consistent data in it.
    3) Is export/import the only method of migration/upgradation.If you are changing hardware, the only supported way from 8.0 to 10.2.0.4, that I know of, is using exp/imp.
    Hope this helps.
    Dean

  • Core data: Versioned model migration with change in existing attribute data types.

    Hi ,
    I want to upgrade my ios app with app store version with enhancement of new functionality related to core data features in the app.
    -In new upgarde version, I want to change data types of attribute which is already present in core data model of existing app store version.
    e.g.In Version 1.0 ,Attribute "date" datatype is "NSDate", New change required to change  datatype "NSDate" to "NSString" with new version model.
    I followed Lightwaight migration, but as per documentation , Lightwaigh migration not support for change data type of any existing attribute/entity of core data model.
    Please suggest optimized solution for migration of database along with change in data type of exsiting attribute of the entity in core data.
    If required in further info ,please ask.
    Thanks in advances.
    Regards,
    Laxmikant

    More Info: The two entries are actually pointing to the same object. If I save the context and restart, I only have one entry (I can also see this by looking at the XML store).
    It seems that the NSTableView is getting messed up somehow after the FetchRequest. Still stumped.

  • Unable to login to SAP B1 after database migration

    I would like to know how to login to SAP B1 after database migration. I export data from MSSQL 2005 and import data to MSSQL 2008 which is located in different server. I failed to login to SAP B1 with both current password and default password. It will prompt me the error 'User code or password is incorrect'. Is there any other login ID(current user ID is manager) or how I can change the password? Or is there any other way to transfer or migrate the database to a new server?

    hi,
    i am afraid your database is corrupted, try to make a full database backup from your SQL 2005 then restore it to your SQL 2008. also you can try another method, by detaching your Database from 2005 then copy the .MDF and .LDF then copy this 2 files in your new server, put it in your desired directory, then from your SQL 2008, attached the Database.
    also, have one question, is your SA account in 2008 and 2005 have the same password? it must be the same.
    regards,
    Fidel

  • Oracle Database Migration Guide (MOS) and csscan info

    Hi
    I have to expdp select set of schemas from one database (10.2.0.5) to another (new database on new server - 10.2.0.5, both RHEL 5.8). I am basically moving a database fro move server to another and I have been told to do it this way. This is not a database migration from one release to another - but it is migration from one server to another within same release and version (same patch level).
    I believe there is more to it than just expdp and impdp. I have been trying to find some kind of checklist or guide on Oracle Support site which may guide me in right direction but could not find on this specific task (there are many on DB Upgrades and Migrations to new releases). I also heard of a tool called "csscan". I had a very beirf chat with an expert and he asked me to look for MOS on this task and also make use of csscan.
    Can anyone please help me find such document or guide?
    Best regards

    csscan is for checking to see if a character set change will affect data.  Do the two databases have different character sets?  Is the client different than the db?
    You can go to tahiti.oracle.com and select your version, then search for the term.
    You have to understand what grants and synonyms and procedural objects your app uses.  Details depend.

  • Zero-downtime Database Migration tool ?

    We are exploring\evaluating tools provided by Oracle (or its partners) that ensures Zero-downtime Database Migration. Migration should include:
    - Migration of data from one version of the application to another version with or without changes to the database schema.
    - Migration of data from staging to production where staging was used for beta testing to host customers who created live data which need to be migrated to production. (Oracle to Oracle, SQL Server to Oracle, MySQL to Oracle, etc)
    - if a data type changes (say int to varchar) in staging database for a particular column in a table, the change migration should happen in the production database as well
    - if a column is added\deleted in a table of staging database, the same table alteration should migrate to production database
    - records in production database should not be deleted\truncated during data\schema migration
    - maintain zero-downtime
    By Zero-Downtime we mean: both the source and the target should be up and accept updates in real time during migration process. This should again be synced across and hence help to eliminate downtime during migration between various vendor databases.
    We are not looking for any ETL product, but out-of-the-box products like GoldenGate and Celona that ensure Zero-downtime database migration.

    Hi,
    I dont think that there is any easy answer. It looks like huge project so it should be done part to part.
    If I understand
    1) you have create staging database with all changes
    2) production is in old structure
    3) now you want to merge this two databases into one? Or applly all changes form staging to prod?
    I see there one solution clone your staging and create new prod. Whenit's donw switch connection to your new prod database.
    Regards,
    Tom

  • Database Migration project Estimation

    Hello,
    Can someone help me with the techniques of estimating efforts for front end application changes required due to database migration (lets say from Sybase ASA to SQL Server/Oracle)?

    Hello,
    The following resources may help you.
    https://technet.microsoft.com/en-us/library/bb497050.aspx
    http://www.mssqltips.com/sqlservertip/1936/sql-server-database-migration-checklist/
    https://technet.microsoft.com/en-us/solutionaccelerators/dd537572
    Hope this helps.
    Regards,
    Alberto Morillo
    SQLCoffee.com

  • Where are my saved changes....please

    I know to all of you this will sound like the stupidest question ever asked... but I've always used Picnik to edit my photos...and after this last holiday thought I'd try and get my head around using iPhoto...Straight away I've hit a number of problems..but whats giving me the biggest headache..
    After clicking on the thumbnail to bring up the picture, do my cropping, editing etc, once happy, press DONE, some times nothing happens and the picture just returns un-edited to thumbnail size.... or more annoyingly drop down and bar tells me its saving changes.... but nothing happens... where the **** do I find this illustrious changed to my liking photo... I've looked everywhere...
    Would be so grateful to be pointed in the right direction..
    A complete fool on a PC... Tony

    Tony
    You should see the change you've made in the iPhoto Window. If you don't then your database may be damaged.
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    Regards
    TD

Maybe you are looking for

  • "Events" in iphoto

    iphoto has quit creating Events in my library. Uploaded photos appear in Photos however. I haven't changed anything as far as I know. Thanks for any help.

  • Seduced to the Dark Side ....

    Hi all, I've been a die hard PC fan all my adult life and the thought of using a Mac would send me into a panic. However over the past 18 months or so, I've slowly been seduced to the dark side ;o). It was slow at first not even perceivable (is that

  • Logic board replaced...asking me to reinstall OS X Lion, but stuck on "loading installation information" for 4 hours. What to do?

    I had to have the logic board in my 7 month old iMac replaced due to the fact that my now exboyfriend put a firmware password on my iMac remotely and I couldn't get into my computer. I took it to the Genius Bar and they replaced the logic board so I

  • Reg. OBYC configuration

    Dear Experts In OBYC,I have created and assigned G/ account for Stock of material and for Jobwork charges,but in FI document,only the GR/IR clg and WIP account only listing. Where to assign the above two (Jobwork and Stock account). Pls advise Thanks

  • Paid app was faulty, uninstalled immediately, how do I get my money back?

    Calendar Me doesn't work.  The calendar extended beyond the edge of the screen, no way to see the weekend dates which are when I'm the busiest, no way to adjust it.  Complete fail.  How do I get my money back? Note that not getting my money back is n