Best way to recover from incorrect migration

Let me start out by saying that we know we did things incorrectly, and that "doing it over again the right way" isn't the advice we're looking for in this discussion.
Here's the situation:
Existing database instance (A) is Oracle 10g on AIX.
New database instance (B) is Oracle 11g on Solaris.
We exported our schema from A and imported it into B.
Unfortunately, about 12 tables in the schema were versioned using Workspace Manager in the 10g instance, but no data from WMSYS was exported.
So we have a situation where we have MyTable_LT tables containing rows, but the MyTable views are reporting 0 rows. User_WM_Versioned_Tables reports 0 rows.
It would be perfectly OK with us if we could "unversion" the tables in the new instance, and start again.
Is there a way to determine which rows in the _LT tables are belonging to the LIVE workspace?
Alternatively, is there a way to export/import the metadata from WMSYS in instance A into instance B?
Thanks in advance for your advice.

Ben -
Thank you - that is very helpful. Your first solution looked like it would be best.
Yesterday I looked at obtaining the LIVE version data from the source DB instance, but the drift in data content since the time the original export was done meant that the data refresh would have been fraught with risk, just as you identified.
I convinced the powers-that-be that a do-over of the full export/import was the best way to go, however, this time we first un-versioned the tables in the source DB.
I intend to study the documentation for how best to perform this process if we *did* want to retain all the workspaces and versioned data, but can I beg your indulgence and ask you what you would recommend?
Assuming a clean install of Oracle 11g (complete with WMSYS) as the destination, would it be appropriate to:
drop the WMSYS schema in the destination;
export the MY_SCHEMA and WMSYS from the source;
import into the destination
upgrade the WMSYS in the destination from 10g to 11g
Is this the basic process, or am I missing something important?
Thanks,
- Colin

Similar Messages

  • Best way to recover from "drop user; drop table space"

    Hello,
    I am practicing several different RMAN recovery senarios on oracle 11g windows 2003.
    The senario that I am stuck on is.
    drop user MYUSER cascade;
    drop table space MYUSER including contents and datafiles;
    Originally, I was trying to do this with RMAM. From further reading, it seems that RMAN fit for this type of recovery.
    What is the best approach to recover from this?
    thanks for any tips.

    DBPITR did not bring backup my tablespaces.
    break database
    drop user PWRPLANT CASCADE
    drop role PWRPLANT_ROLE_USER
    drop role PWRPLANT_ROLE_DEV
    drop role PWRPLANT_ROLE_ADMIN
    alter tablespace PWRPLANT_IDX offline
    alter tablespace PWRPLANT offline
    drop tablespace PWRPLANT_IDX INCLUDING CONTENTS AND DATAFILES
    drop tablespace PWRPLANT INCLUDING CONTENTS AND DATAFILES
    recover with BDITR
    RMAN> run {set until sequence 56; restore database; recover database;}
    executing command: SET until clause
    using target database control file instead of recovery catalog
    Starting restore at 28-APR-11
    allocated channel: ORA_DISK_1
    channel ORA_DISK_1: SID=317 device type=DISK
    channel ORA_DISK_1: starting datafile backup set restore
    channel ORA_DISK_1: specifying datafile(s) to restore from backup set
    channel ORA_DISK_1: restoring datafile 00001 to I:\ORACLE\ORADATA\PWRGAME\SYSTEM
    01.DBF
    channel ORA_DISK_1: restoring datafile 00002 to I:\ORACLE\ORADATA\PWRGAME\SYSAUX
    01.DBF
    channel ORA_DISK_1: restoring datafile 00003 to I:\ORACLE\ORADATA\PWRGAME\UNDOTB
    S01.DBF
    channel ORA_DISK_1: restoring datafile 00004 to I:\ORACLE\ORADATA\PWRGAME\USERS0
    1.DBF
    channel ORA_DISK_1: reading from backup piece I:\ORACLE\FLASH_RECOVERY_AREA\PWRG
    AME\BACKUPSET\2011_04_28\O1_MF_NNNDF_DATABASE_FULL_BACKUP_6VMMSSXV_.BKP
    channel ORA_DISK_1: piece handle=I:\ORACLE\FLASH_RECOVERY_AREA\PWRGAME\BACKUPSET
    \2011_04_28\O1_MF_NNNDF_DATABASE_FULL_BACKUP_6VMMSSXV_.BKP tag=DATABASE_FULL_BAC
    KUP
    channel ORA_DISK_1: restored backup piece 1
    channel ORA_DISK_1: restore complete, elapsed time: 00:07:06
    Finished restore at 28-APR-11
    Starting recover at 28-APR-11
    using channel ORA_DISK_1
    starting media recovery
    archived log for thread 1 with sequence 55 is already on disk as file I:\ORACLE\
    PRODUCT\11.1.0\DB_1\RDBMS\ARC00055_0748950531.001
    archived log file name=I:\ORACLE\PRODUCT\11.1.0\DB_1\RDBMS\ARC00055_0748950531.0
    01 thread=1 sequence=55
    media recovery complete, elapsed time: 00:00:02
    Finished recover at 28-APR-11
    Did I miss something?

  • What is the best way to recover from an error which requires a reconnect (e.g. ORA-01033)?

    We use 11g with the OCI library.  A session pool was created for the server process (OCISessionPoolCreate), and a session was obtained in a thread (OCISessionGet).  Is it sufficient to call OCISessionRelease(...,OCI_SESSRLS_DROPSESS) in the thread, and then get a new session?  Or should the application call OCISessionPoolDestroy(...,OCI_SPD_FORCE), and then recreate the pool?

    Do the following:
    Copy the backup library package/folder to the Pictures folder on your new Mac. If you have any other libraries there move them to the Desktop first.
    Download and run iPhoto Library Upgrader 1.1 on the library to convert it to the new format.  The app will be in your Applications/Utilities folder.
    Launch iPhoto 9.5.1 and open the "converted" library.
    Now you can delete any libraries that you previously moved to the Desktop.

  • What is the best way to print from an iPad?

    I have the Printer Pro app, and it seems to do a good job locating my wireless printer, but it gets complicated to print webpages or pages documents. What is the best way to print from an iPad 2?

    If you have a compatible printer, use AirPrint http://www.apple.com/ipad/features/airprint.html and http://support.apple.com/kb/HT4356
    If not, you would need to purchase software, such as:
    http://itunes.apple.com/us/app/printcentral-for-ipad/id366020849?mt=8
    http://www.ecamm.com/mac/printopia/
    http://www.collobos.com/

  • Best way to read from a file

    What would be the best way to read from a file. Which classes do I need to use?
    I have to write a program, which reads data from a comma separated flat file, parse it and after inserting some busineess logic insert into a databse .
    I will have to read the data line by line.
    Any help????

    I would use:
         public void readData()
              try
                   data = new String[this.countRows("comp.txt")][];
                   BufferedReader br = new BufferedReader(new FileReader("comp.txt"));
                   for(int x = 0; x < data.length; x++)
                        StringTokenizer temp = new StringTokenizer(br.readLine(), "?");
                        data[x] = new String[temp.countTokens()];
                        for(int y = 0; y < data[x].length; y++)
                             data[x][y] = temp.nextToken();
              catch(Exception e)
                   System.out.println(e.toString());
         private int countRows(String f)
              int t = 0;
              try
                   BufferedReader brCountRows = new BufferedReader(new FileReader(f));
                   while(brCountRows.readLine() != null)
                        t++;
              catch(Exception e)
                   System.out.println(e.toString());
                   return t;
              return t;
         }It works deliciously!

  • Best way to go from FCP to After Effects and back?

    Hi guys,
    What's the best way to go from FCP (5) to AE (7)? I'm exporting as a Quicktime Movie, but not self-contained. Then from AE I make a Quicktime Movie
    and drag it back to FCP.
    Is this the best method?
    Thanks
    G5 Quad   Mac OS X (10.4.6)   Dell 2405

    Thanks Cap'n, but am I losing any resolution this way? And should I be including or excluding markers?
    That is one rich little duck! :P
    G5 Quad   Mac OS X (10.4.6)   Dell 2405

  • Best way to scan from office jet pro 8600 to mac pro and attach to email

    What is the best way to scan from an officejet pro 8600 printer to a mac pro desktop, attach and scan?

    dunno if you can do it directly, but, assuming the drivers are up-to-date, use Image Capture*, which should get you  a scan, then save it, then when sending the email, click on the paperclip,  and choose whatever it was that you scanned, wherever you saved it....
    and then send it.
    JB
    *Preview might work, but I don't recall 100% if it does...
    don't recall seeing anything that'd let you scan something in, then have it go directly to email and send it out, one-step

  • I need a recommended way of recovering from Bus Off errors

    I have write problems when a UUT is instructed to reset. When the UUT in the reset state I get Error Passive warnings and Bus Off errors after attempting to write extended CAN messages using the Frame API.
    In brief the test goes like this,
    1. I send extended message 0x500 with 8 data bytes containing information to tell the UUT to go into reset.
    2. I wait 400ms hopeing that the UUT get's at least 1 of the 3 possible messages. It always does and does a reset.
    3. I then MUST send message 0x500 with updated data telling the UUT to come out of reset.
    Problem is the write fails with a Bus Off error (can't remember the error code as I am typing this at home). I can get this to work in a brute force kind of way by repeating these steps below several times in a loop,
    1. reopen the network object
    2. reopen all perodic tx objects,
    3. do a ncAction NC_OP_RESET on the network object,
    4. do a ncAction NC_OP_RESET on all periodic tx objects,
    5. do a ncAction NC_OP_START on the network object,
    6. do a ncAction NC_OP_START on all the periodic tx objects,
    (no warnings or errors so far from these calls allthough occasionally ends up with an exception and NI-CAN internal driver errors. I'm probably abusing the CAN standard and API with all the rapid opening and closing of all these handles and blindly ignoring errors.)
    7. then do a ncWrite for all periodic tx objects (we usually get Error Passive warnings here, if the write is repeated it frequently gets a Bus Off error).
    When the UUT (by chance in all honesty) gets the 0x500 message and comes out of reset, CAN operations are fine, but the problem lies when the UUT is in reset, I can't send the updated 0x500 message to tell it to come out of reset. I get randomly Error Passive errors and Bus Off errors.
    Found out today this is what the UUT is doing when in reset (written in PDL),
    while not received 0x500 with data indicating to come out of reset
       possibly repower most of the UUT circuitry (I can't remember)
       reset Bosch CANBUS controller circuitry on ASIC (takes 2us I'm told)
       do some unit reset processing, takes up to 100ms
    wend
    (yes, it resets the CANBUS controller roughly every 100ms!)
    I need a sensible way of recovering from a Bus Off error and retry sending that 0x500 message again.
    Any thoughts, comments, solutions?
    Regards.

    Hi Flump,
    The idea here is that many CAN devices will "sleep" after some predetermined period of inactivity (not receiving a frame). In such cases, the device usually wakes up after seeing activity on the bus, where the amount of time it takes to go from the "sleep" state to an "active" state will inevitably vary from device to device. Well, suppose the controller on a CAN network sends a frame to a device which is "sleeping," and the device takes, for arguments sake, 10 seconds to "wake up" and become active again. By definition in the CAN standard, frames which are not acknowledged will be retransmitted. Also in the CAN standard is the requirement that a device or controller implement transmit and receive "error counters" in order that an "errant" device or controller can be "silenced" if it continues to generate errors. There are 3 basic error states, the last (worst) of which is the Bus Off Error State, which occurs when the error counter exceeds 255. Herein lies the problem; if a device takes a long time to wake up, then a controller will send, and subsequently resend, the frame while it attempts to communicate with the "sleeping" device. Since the controller's transmit error counter will increase by 8 for each frame which is sent and NOT acknowledged, and it will continue sending frames until acknowledged, the controller can actually reach a Bus Off Error state before the device fully "wakes up." This is usually undesirable, and can be prevented.
    For more information about the CAN standard, see Appendix B of the NI-CAN Hardware and Software Manual linked in the Related Links section below.
    The solution may be to send a single wake-up frame (just one time), then delay to allow the device to "wake-up," and then continue normal communication. It is important to realize that when a device "sleeps," it actually relies on the fact that a CAN controller will send frames multiple times. That is, the first frame received when a device is "sleeping" is NOT processed. The sudden voltage change on the bus caused by a frame transmission is sensed by a CAN device and will cause it to resume active operating conditions, but the frame which initiates the wakeup cannot be processed because the hardware was previously asleep (some of it literally not powered). Thus, if we have a mechanism for sending a single "wake-up" frame, and then delay until all devices (or at least the one we intend to communicate with) wake up, we can resume normal communications while knowing deterministically that subsequent commands should/will be processed by the device to which we wish to communicate.
    In the NI-CAN API, the way to transmit a single frame - one time only - is by setting the Single Shot Transmit attribute to 1 (using the set attribute function: in LabVIEW use the ncSetAttr.vi for the Frame API and CAN Set Property.vi for the Channel API). For Frame API users, the Network Configuration object (programmed explicitly) can be used, where of course we must stop and start the task (using ncAction.vi) around the attribute setting. The sequence of events would generally be: Network Config (should have happened anyway at some point), Network Open, Stop, Set Attribute, Start, Write "wakeup frame," proceed with the program after sufficient delay. Please note that the required delay may be very small; the "10 second" wake-up time suggested for a device above is much much longer than a normal device's "wake-up period". Of course, the baud rate used on a given network will factor into how many frames can be sent by a controller in a given period, and therefore how fast a corresponding error counter will increment as a result of unacknowledged frames.
    Attached is an example, which will write a single "wake-up" frame using the technique described above, where the write will take place when a "Wake-Up" button is clicked.
    Is this what you are looking for?
    AdamB
    Message Edited by AdamB on 12-12-2006 04:47 AM
    Applications Engineering Team Leader | National Instruments | UK & Ireland
    Attachments:
    SendSingleWakeUpFrame.vi ‏73 KB

  • BEST WAY TO RECORD FROM TV

    Whats the best way to record from TV and then be able to edit the footage, without losing quality?
    Is it with a dvd recorder, how to you get the files off the recorder???
    Thanks
    Simon

    If you already have a digital video camera, you can probably do it without buying anything extra. I have done this by connecting the video output from my able box to an input on my video camera, then connected the camera to the computer using the FireWire cable. I opened iMovie and imported the video from there. Of course, it's a bit of a pain, so I haven't done it often, and the quality is only as good as your camera is capable of. You may need to buy the cable to connect the cable box to the camera, though mine came with such a cable.

  • Best Way to go from 2.1.1 to 2.1

    What is the best way to go from 2.1.1 to 2.1? I have a legit copy of 2.0 and no application backup copy available to me.
    Thx in advance

    remove the 2.1.1 app ... prob best to remove the app support folders for aperture too ...
    install 2.0 from disk and go to :
    http://www.apple.com/downloads/macosx/apple/application_updates/aperture21update .html
    for the 2.1 update ...
    prime example of why one needs to have a good solid plan prior to performing ANY upgrade/update on one's systems ... but i don't need to tell you that now do i ...

  • Best way to print from iPad?

    Which app is best to print from iPad, iPhone?

    Well AirPrint is probably the best way to print from a iOS device but if you dont have a AirPrint printer then there are apps like print central that can help you

  • Best way to handle raiseerror after migration from SQL 2K?

    Hi,
    Here a sample code :
    raise_application_error(-20999, 'message id: 50048');
    /*[SPCONV-ERR(7)]:('Raiserror ( <message id>....) Manual conversion required*/
    /* message id gives id in sqlserver syscomments table*/
    RAISE_APPLICATION_ERROR(-20500,'Trigger forces a rollback');
    /* ROLLBACK; */
    I wonder what the best way to find the equivalent message id, or what the best to do in oracle to replace those event....???
    Thanks in advance
    Pete

    No matter found something !

  • HT5554 how is the best way to recover deleted texts on an iPhone5s?

    I would like to know if there is a product or simply take to Apple?

    The best way and only way is to restore from your backup, if that backup included your text message.
    http://support.apple.com/kb/HT1766
    Apple can't recover your text for you.

  • Best way to set up or migrate to a new Mac?

    Briefly, the best way to set up my new iMac (which arrives shortly) and transfer my accounts, files, etc. from my older iMac (intel OS X, 10.6.7).
    I have a time machine back up external hard drive connected via fire wire.
    I don't have a second firewire cable but would buy one if it helps.
    I have an extra ethernet cable.
    I use an ATT Uverse router as my network hub.
    Ideally. I want to transfer all settings EXCEPT for a dozen downloaded applications that I no longer want.  If I can't pick and choose applications to transfer, then I will re-download them onto the new machine.
    What would you recommend?
    1. Using Set-up assistant on the new machine?  If so, do I physically connect the two machines before powering on the new one?
    2. Using Migration assistant after getting the new machine powered up?  If so, does it matter if I use mig/asst on the new machine and choose transfer files 'from another Mac' or use mig/asst on the old machine and choose transfer files 'to another Mac'?
    In short, given these facts about my situation, what might be the better way to proceed?
    Thank you!

    Just to second what NewMac1 says, the link to Setup assistant tips (above) doesn't work. Can someone please provide new link? thanks.
    It links to a mobile me address, maybe the website was hosted on MobileMe before it closed earlier this year?

  • Best way to move from msjava to sun java

    Hello Java people,
    We have a web version of a program, attachmate extra, (mainframe emulator), that requires Java 1.5 runtime applet. I have a package set up using the msi from java ready to be pushed with SMS. My goal is to have users using Sun java 1.5 as their default applet and I don't care if msjava is still left on the pc's.
    So here are my questions...
    1) Do we need to remove msjava or can we just install sun java 1.5?
    2) If we just install sun java 1.5 is this the command line to use for IE to use java 1.5 as it's default? msiexec.exe /i jre.msi IEXPLORER=1 (would that work?)
    3) Are there any procedures outlined anywhere on the best way to do this?
    Any help would be greatly appreciated as Java is a little foreign to me.
    Thanks!
    Bryan

    The differences in processors makes the migration not as easy and other posters have already given you good advice.
    I actually DID the G5 PPC Tiger to Leopard migration and after many (unsuccessful) attempts to achieve a stable Leopard by merely installing it "over" my Tiger volume, I ended up having to do the equivalent of "erase and install" (I simply bought a new harddrive disk [HDD] and installed a brandnew Leopard). Despite this, the IBM processor did not really "like" Leopard and repeated Kernel Panics (KP) started to occur resulting in loss of RAM and bus; too many issues having to run many programs under "rosetta". Also, some of the nicer features in Leopard (front row, bootcamp) did not work at all with the PPC architecture. Also Photoshop needed upgrading for Leopard and plugins need updates, too (check with Adobe and with e.g. Alien Skin)
    Having said that, I have heard of success stories of PPC and Leopard. (intersting article about "complexity of Tiger in a server": http://ls.berkeley.edu/mail/magnet/2008/0374.html might have a relevance to ordinary OS). So I am not trying to put you off, just giving you a first hand experience my own experience.
    I think you need to ask yourself:
    1) Is my machine not working satisfactorily? (If so, then why not try the upgrade)
    2) Why do I want Leopard (if you fancy a change, why not for it then)
    3) Is the upgrade essential? (It is nice to have something new, but you know, I do miss OS9, as that no longer works with Leopard unless you emulate with e.g. sheepshaver (see discussion:
    http://macosx.com/forums/mac-classic-system-software/296734-classic-os9-leopard. html)
    4) As always, there is always something "newer and better" (snow leopard: http://www.apple.com/macosx/snowleopard/)
    Good luck with your decisions
    NB: I am running Leopard with my Intel Mac Pro and am absolutely lunatic (=over the moon )
    Message was edited by: Alexandre

Maybe you are looking for

  • Mid 2010 macbook pro wont boot, cant find hhd

    I got a 13' Macbook pro, after a kernal panic, the computer stuck at the same page: u need to restart your computer. Later i run restore disk, but is seems cant find my hhd. Most likely i need to chaneg a new HHD?? I tried to search on apple website

  • How to install iTunes in win 7 32 bit

    After clicking on itunessetup.exe a error in ms dos window comes that is (inactive itunessetup.exe).   Program too big to fit in memory . Please help to solve this problem. My pc is win 7( 32 bit) ram 1.00GB , 1.80ghz processor

  • Problem With Smartform Main window

    Dear All, I have a requirement in which I need to print a PO using Smartforms. In this requirement we need to check a flag, and based on the flag we need to call the subsequent pages. if the Flag is set then I need to print the first page 2 times and

  • Color Burn inverts color!! Not working!!

    Hello! I have recently started to work with different VFX for example man getting shot and blood comes out. I have action essentials and when i add the blood and put color burn on the black background is still there and a different color appears on t

  • Elements 9 to CS5 upgrade

    How can I upgrade from PS Elements 9 (still in the box) to PS CS5? Is there an upgrade price? Must I pay the full price?