Migration from one oracle DB to another Oracle DB

Hi ,
We are migration data from one oracle DB to another Oracle DB. Lets take it as DB1 and DB2.
Both are having many tables and many columns. So some tables contains common columns with different data types and same datatype with different datasize.
I am trying to map the columns in both the DB's. Then I will retrieve what are the equal columns and what are columns have difference in data types and datatype lengths.
for Eg : Please find the below tables and the structures.
DB1                                                              DB2
EMP                                                             EMPLOYEE
ENO   VARCHAR2(10)                                  EMP_NO  Number(8)
ENAME  Varchar2(25)                                   EMP_NAME  Varchar2(20)
SAL   NUMBER(8)                                        JOb    VARCHAR2(20)
Description  BLOB/CLOB                              Department   Varcgar2(20)
                                                                   SAL  number(8,3)
                                                                   JOB_DESC  varchar2(30)
I would like to migrate DB1 to DB2
Here I found the differences as follows.
1. There is relation between EMP and EMPLOYEE tables.
2. Datatype is different for EMPNO(DB2) compare to DB1. ( Here in DB1 datatype is Varchar and in DB2 it is Number )
3. in DB1 Ename datatype length is 25 and in DB2 it is 20...
So can any one suggest me any pl/sql automation code how can we map the columns,datatypes,datalengths and other required information.
Can you please suggest me and give your suggestions to write automation code if possible or how can we resolve these type of issues.
Thanks,
Vas 

So can any one suggest me any pl/sql automation code how can we map the columns,datatypes,datalengths and other required information.
No such 'automation code' exists. You need to write your own mapping functions and exception handling processes.
Can you please suggest me and give your suggestions to write automation code if possible or how can we resolve these type of issues.
Finish what you started. The most important step you can take is to create a Functional Requirements document that includes, at a minimum:
1. Mapping of each source table to each target table
2. Lists of possible errors, or dirty data issues, that might be encountered
3. The business rules that should be applied to each of those possible errors
You already made a good start on the mapping for the one table above. And you made a good start of identifying the possible errors:
2. Datatype is different for EMPNO(DB2) compare to DB1. ( Here in DB1 datatype is Varchar and in DB2 it is Number )
Good - it should be easy for everyone in your org to agree that you can't put 'TEXT' data into a NUMBER column so now you need to document that issue:
1. Identify data in DB1.ENO that is not numeric
2. Remove, ignore, fix that data?
What do the business users want to do with text data in that DB1.ENO column that is not numeric? They need to tell you. They may want a report or excel file that contains that 'dirty' data so they can review and/or fix it. They may want to query that data for themselves. They may want to know where that data came from - especially if the data is all supposed to be numeric.
3. in DB1 Ename datatype length is 25 and in DB2 it is 20...
Good - use the same process as above
1. Identify data in DB1.ENAME that is longer than 20.
2. Remove, ignore, fix that data? Truncate it?
Again - it is usually the business users that need to actually determine what should be done. Your job is to identify that 'dirty' data and/or make it available to the business users so they can research it
You don't need to wait for the business users to actually provide all of those answers. You can begin writing pseudo-code that contains steps to deal with those issues - you just can't write the actual code until you have the answers.
You can certainly begin writing queries or procedures that look for 'dirty' data. Just based on the two problems you posted you can write queries to find data that has those two issues.

Similar Messages

  • What components of VM are lost after its migration from one physical host to another?

    Hi, I found this post very helpful for me, it is very easy to understand about the live VM migration. I have a confusion regarding VM migration that if any
    VM is migrated from one physical host to another what components of VM (vCPU, vBIOS, vRAM, vHD, vNIC, OS, Apps) will be changed?
    Kindly help me to understand that:
    1.Will Operating System running on VM be changed? 2. Will BIOS and Boot Loader information be changed?
    Thanks Looking forward for your response.

    Just to make sure we're talking about the same thing. We're talking about "live-migration" not VM conversion from one hypervisor to another, like a VM from VMWare or XenServer to a VM on Hyper-V, right?
    As mentioned above, when a VM is
    live-migrated from one Hyper-V host to another, nothing changes. Bios does not change. A
    Gen1 VM with traditional BIOS firmware will not turn into a Gen2 machine with UEFI firmware for example. 
    Boot loader will not change when a VM is live-migrated from one Hyper-V host to another. 
    MAC address on VM NICs will change when a VM is live-migrated from one Hyper-V host to another, unless the VM NIC is configured with a static MAC address. A Changed MAC address will be interpreted by the VM as a new NIC, which will lose its old IP settings.
    Stopping and restarting a VM on the same Hyper-V host changes nothing about the VM synthetic hardware such as NICs, BIOS firmware, or its internal startup files like boot loader. 
    Stopping a VM, and restarting it on another Hyper-V host changes nothing except the VM NIC's MAC address if it is configured to have a dynamic MAC address as described above.
    Sam Boutros, Senior Consultant, Software Logic, KOP, PA http://superwidgets.wordpress.com (Please take a moment to Vote as Helpful and/or Mark as Answer, where applicable) _________________________________________________________________________________
    Powershell: Learn it before it's an emergency http://technet.microsoft.com/en-us/scriptcenter/powershell.aspx http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx

  • SAP Archiving - Migrating from one archive backend to another.

    Hi,
    We use SARA for archiving and the archiving system is IBM Provided Filenet Database with ACSAP middle-ware.
    From 1999 till 2009 we have archived terabytes of data into Filenet Database.
    We plan to discontinue Filenet as our choice of archiving backend system and will like to migrate all existing archived data to the new archivingsystem. We are yet to decide what new system will will move to.
    We are looking for help from SAP to answer following questions:
    1) Is it possible migrate all past data from existing archiving system to a new one?
    2) If Yes, then what is the broad approach? Does the data have to be retrieved back to SAP OR Can it be directly migrated from one backend to another one?
    Retrieving the data and reloading into another tool in my opinion would be rather cumbersome and stupid method until this is the only option.
    In Any case, at the end of day we want that all the data should be readable from SAP like before.
    3) Is there any SAP provided tool that we can use rather then going for a 3rd party product?
    4) Please guide to migration related documentation.
    Thank you in advance for your support.
    Regards,
    Chandra.

    Hello Chandra
    yes- there are ways to migrate data out of Filenet into 3rd party tool without retrieving them back through SAP. I am not aware of any SAP tool itself but we have one and could help you with this effort. Please contact me at 610 3508677 and we can discuss the possibilities.

  • Employee data migration from one company code to another company code

    Hi Experts,
    Can some throw some light on how can we migrate employee master data from one company code to another company code in the same client and different clients. what are the other areas we need to take care  during migration like interfaces etc.,.
    secondly can we copy part of org structure or total org structcture to new org plan. if we need to create new org structure which interface is advisable and why?
    i request experts opinions on this.
    thanks in advance
    vara prasad.

    Hi have to repeat the previous Michael's post:
    <b>What made you post this question in this thread?</b>
    Please read the forum guidlines:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/fe6cf0c7-0501-0010-dda5-f3a89106ee84

  • Import some data from one oracle to another...

    Hi Guys,
    we have 2 oracle database servers on 2 different machines with schema.
    I want to import some data from a specific table from one oracle into another oracle.
    what is the way to do that.
    Please help in details
    Imran Baig

    Hi,
    Thanks for the reply.
    Tables are already created in both of the oralce databases only the data varies. I just have to import only few records from one oracle to another with the same user name and table already existing.
    I have tried using database link. I can view records from the other oracle database but as soon as i write an insert command oracle gets held. I cant do anything.
    Is there any other way?
    Imran

  • Import/export from one oracle db to anothe roracle db

    Hi All,
    I would like to import and export data from one oracle database to another oracle database. Can any one please suggest me/provide me any script if available.
    I am following Datapump IMPDP and EXPDP. I would like to do this data pump process every time. So I wolud like to do this task as automate. So please provide me any script for automating this job
    or let me know if there is any easy method to do this process.. I would like to have a script and am uising Oracle 11.2.0.3.
    Thanks

    Hi,
    Below Anonymous block Exports the 'HR' schema:
    DMPDIR -- Directory object where you want to create the dmp files
    DECLARE
      l_dp_handle      NUMBER;
      l_last_job_state VARCHAR2(30) := 'UNDEFINED';
      l_job_state      VARCHAR2(30) := 'UNDEFINED';
      l_sts KU$_STATUS;
    BEGIN
      l_dp_handle                          := DBMS_DATAPUMP.open( operation => 'EXPORT', job_mode => 'SCHEMA', remote_link => NULL, job_name => 'SCHEMA_EXPORT', version => 'LATEST');
      DBMS_DATAPUMP.add_file( handle        => l_dp_handle, filename => 'SCHEMA_EXPORT.dmp', directory => 'DMPDIR');
      DBMS_DATAPUMP.add_file( handle        => l_dp_handle, filename => 'SCHEMA_EXPORT.log', directory => 'DMPDIR', filetype => DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE);
      DBMS_DATAPUMP.metadata_filter( handle => l_dp_handle, name => 'SCHEMA_EXPR', value => '= ''HR''');
      DBMS_DATAPUMP.start_job(l_dp_handle);
      DBMS_DATAPUMP.detach(l_dp_handle);
    END;
    Now you can use this dmp file to import the 'HR' schema in the required database.
    Below Anonymous block imports the 'HR' schema:
    DECLARE
    dph NUMBER;
    BEGIN
      dph := dbms_datapump.open(operation => 'IMPORT', job_mode =>
      'SCHEMA',job_name => 'SCHEMA_IMPORT');
      dbms_datapump.add_file(handle => dph,filename =>
      'SCHEMA_EXPORT.dmp', directory => 'DMPDIR',filetype=>1);
      dbms_datapump.add_file(handle => dph,filename =>
      'SCHEMA_IMPORT.log',directory => 'DMPDIR',filetype=>3);
      dbms_datapump.start_job(dph);
      dbms_datapump.detach(dph);
    END;

  • Setups migration from one instance to another

    Can any one please tell me how to migrate AME (Oracle Approval Management) setups and GL Setups?
    We are using AME.B.(11.5.10.2). There will be quite a few of these setups required, and migrating by hand in all the eBS instances will be difficult.
    Is there any other way (API/other tools) to achieve this? Can we use FNDLOAD?
    Thanks in advance,
    Regards,
    Velusamy Raja

    Hi Anugrah,
    Unfortunately there isn't a facility to allow a customer iStore site to migrate from one environment to another (e.g. Test to Productions) easily. Currently the staging and migration of iStore environments are done manually, and some installations have utilized their own change control systems and adopted their own naming conventions for JSP customization and iStore content to make the environment promotion process more managable.
    With that said, there are concurrent programs that allow customers to perform site administration around migrating template mappings between instances (import and export). You can refer to the iStore Implementation & Admin. Guide under the iStore Template Mapping Import / Export Concurrent Programs.
    Regards,
    Bob

  • Exchange Migration from One domain to another domain on same forest

    Team, 
    we are in the process of migrating exchange infrastructure from one child domain to another child domain within same forest.
    root domain - root.com
    child domains - US.root.com and EMEA.root.com
    EMEA and US Domains setup are different from each other. Like EMEA has different email address policy , Email Flow than US , connectors etc.
    Now we need to migrate all emea users under US Domain. based on the geographical locations, we are building a new dc, mailbox , cas servers on EMEA location , but these servers will be part of US Domain.
    for CAS Servers - we are planing to register respective sites ( site affinity), so all the local requests will be handled by new cas server which is built under US Domain.
    Mailbox Servers - we would be creating new db's and the limits  on new mbx server and going to replicate as its on EMEA Mailbox server.
    can some one please let us know what are the precautions , recommendation, sequence which we need to follow to perform smoother migration. as of now , I can think of below topics.
    Mailbox Migration  -I  Have a script , which
    will take care of mailbox movement once the objects are being moved.
    Contacts Migration - Willard Martin blog helped me to perform migration
    DL Migration - I believe there is no mechanism to migrate DL. only option is to recreate.
    Email address Policy:we would be creating a new address policy and apply to OU's
    DB Consistency check – do we have to perform the health checks on source mailbox server to see , the servers are free from errors /corruption.
    Check outlook configuration - After the migration, we need to check and see , the exchange server/ auto discover works and identify the new exchange servers.
    Internal /External Email flow.- 
    Active Sybc , OWA
    Public folder Migration -
    Offline Address Book
    Certificates
    any help or suggestions would be great.
    Srinivasa K

    Hi Srinivasa,
    According to your description, I think you have done all the preparation.
    For DL migration, the following article may give your some hints:
    How to Migrate Distribution Groups Across a Forest
    Good Luck!
    Niko Cheng
    TechNet Community Support

  • How to generate multiple output pdf's from one oracle reports

    how to generate multiple output pdf's from one oracle reports.
    I have a report where I have to generate more than one output files from the same report based on a parameter.
    Each output file is for each parameter.
    Is this possible in oracle reports, is so how ?

    You can better post your question in the reports forum instead of this pl/sql forum.

  • How to migrate mail system from one hard drive to another under 10.6.8 in a macpro

    how do you migrate mail settings, calendar information, etc from one hard drive to another under 10.6.8 in the same computer?  Migration Application does not show this option.  It shows from an old computer to another, etc.

    You have to install the OS onto the new HD and then use the setup assistant on first boot to migrate from the original HD.
    27" i7 iMac (Mid 2011) refurb, OS X Yo (10.10.1), Mavs, ML & SL, G4 450 MP w/10.5 & 9.2.2

  • How can I migrate from one user to another within the same computer?

    My main user account in my desktop is becoming buggy after to many migrations from different computers and long time usage. I would like to migrate from one user to another user within the same computer to see if this improves my current problems.
    How can I do it in a reasonably safe and quick way?
    Thank you very much, cheers, Rui
    iMAC, OS 10.6.8... and yes, I love Snow Leopard light and handy... and all my programs work on it...

    Move small groups of files to the /Users/Shared/ folder or another location and see if the problems disappear. Moving everything to a new user account will in all probability transfer the problems.
    (119885)

  • Migrating from one imac to another, it is down to 1 minute remaining but not moving beyond

    migrating from one imac to another, it is down to 1 minute remaining but not moving beyond after 20 minutes

    Ok. Thanks.  We're all anxiously waiting for the good news....

  • HT4889 Can I choose what to migrate from one mac to another mac?

    Can I choose what to migrate from one mac (Powrebook G4) to another mac (New iMac)?  I do not want everything to be migrated, as some programs are not compatible with Mountain Lion or an intelIntel mac!
    As it is a brand New iMac I would also like to keep it clean of unnecessary files that have become  imbedded in the Powerbook over its time.Therfore it would be nice if I can pick and choose what is to be transferd. If you can give me a heads up on if and how it would be appreciated!!!
    Thanks
    PicMac

    Thanks for your input!… I have now come across an Article from Apple 
    Migration Assistant tips and tricks
    http://support.apple.com/kb/HT3231?viewlocale=en_US
    Controlling what is migrated
    With Migration Assistant you control the data that is migrated from another Macintosh computer. By clicking the triangle next to a user's name, you can select which User Accounts to migrate and choose which folders to migrate. You can also choose whether to migrate Applications, Network and Computer settings, or Volumes. Migrating only what you need can reduce the time it takes to complete your migration.

  • Migrate PY and TM cluster data from One SAP System to another

    Hi Experts,
    Could you please suggest me some options to migrate PY and TM cluster data from One SAP System to another? My requirement is to move all the cluster data (Active and Inactive ees).
    I see that PU12 is an option. Anybody used that to migrate between SAP systems. Please provide some details
    Points guaranteed
    I see that using PU12 you can export only PCL2 Clutsers. Are there any ways to move the other clusters like PCL4 ?

    Hi,
    As far as data transfer, If have all normal configuration settings in your targeted system you can use LSMW (Use T.code AS91 in LSMW for recording)  to transfer your data in your both cases.
    Hope it resolves your both the issues.
    Regards,
    Murali

  • DATA Migration Strategy of Inventory from one SAP system to another

    Hi,
    We are migrating data from one sap system to another due to business split . I would like to know what are the considerations, dos and donts for inventory/stock balance  migration.
    Appreciate your responses on the same.
    Kind regards,
    Tanuja

    Hi
    Here are some of the links for Data migration in SAP which may be really helpful for you..Please have a look at them.
    http://www.packtpub.com/article/data-migration-sap-business-one-part1
    http://www.sap-press.de/download/dateien/1468/sappress_migrating_your_sap_data.pdf
    http://sceisqaweb.sc.gov/documents/Agencies-Approach-and-Plan-for-Data-Conversion.pdf
    Thanks.

Maybe you are looking for

  • How to print the value of a field of  type FLTP

    hi experts, pls tell me how to print the value of a field of  type FLTP. i.e in decimal format not in exponential format. thankyou. krishna

  • Process Order Warning Message while doing the Goods Receipt

    Dear All, While doing the GR against process order via t.code MB31, we are getting a warning message which reads u201CProduction date of bch 110420 (17.06.2011) does not match the prod. date entered (26.08.2011)u201D this happens only if the batch nu

  • Buffalo Linkstation not connecting to SLM2024

    I have recently installed an SLM2024 Gigabit switch. We have a mixture of devices on the switch, desktops, servers, printers, wireless access points and all are working ok. We also have four Buffalo Linkstations with Gigabit Ethernet. Each linkstatio

  • T500: Shock-sensors waking from stand-by

    I'm having a problem with the shock-sensors on my T500.  The computer comes out of stand-by when I physically move it.  I looked in the device manager to see if I could prevent the hard disk from waking the computer, but there is no such setting.  I

  • Poor print quality until I remove and replace each toner cartridge

    I have an interesting situation that seems to have manifested itself recently. This is pretty reproducible. The printer is in sleep mode A color job is sent to the printer and the resulting print has no color and faded black and white If I open the f