migration in partitioned table

Hello world

I need to migrate on a two table range-list partitioned table, one of them is partitioned list, the other is not. The largest contains 400 million lines (partitioned), the smallest contains 90 million lines. The database cannot insert all of the table at a time, so I started to migrate the tables into pieces. I have two options:

1 create pieces using a date_field (IDO_ID)
2. create the pieces with the help of a generated field (MIGR_RANK) using the list field (TAB_KOD) and a number generated randomly, which limits the lines to migrate a line no more than 1 million of partitioning

My questions are the following:
1. is it possible that the insert is slow due to the large number (about 750) list partitions? Can I use the 2. method, inserting only one partition? Or a kind of simple is enough for partitioning columns? How does the insert works in Oracle for a partitioned table? Especially in a range-list partitioned table?
2. How can I adjust the database to migrate two tables in one step (if possible)?

Thanks in advance,
Gabor

Published by: csiszgab on Sep 28, 2012 07:47

Whenever you provide post your Oracle version 4-digit (result of SELECT * FROM V$ VERSION).
>
I need to migrate on a two table range-list partitioned table, one of them is partitioned list, the other is not. The largest contains 400 million lines (partitioned), the smallest contains 90 million lines. The database cannot insert all of the table at a time, so I started to migrate the tables into pieces. I have two options:
>
-Oracle is certainly able to process the entire table in one so why do you say otherwise?

You can speed up insert PARALLEL aid (for the source and target tables), using the direct-path load (APPEND indicator) and NOLOGGING mode on the target table.
>
1. is it possible that the insert is slow due to the large number (about 750) list partitions? Can I use the 2. method, inserting only one partition? Or a kind of simple is enough for partitioning columns? How does the insert works in Oracle for a partitioned table? Especially in a range-list partitioned table?
>
Your "2" is not just insert in a partition. You said your target table was partitioned ' range-list' but your source is only 'list' partitioned. Therefore a partition target: data from the "one" won't a single list.

Load using the entire table at once without (other than the partition key) index on the target table.

Tags: Database

Similar Questions

  • Migration to a new transportable tablespace partition table

    I created a table that is partitioned with 2 partitions (2010 & 2011) and transportable tablespace to migrate data to a new envionment. My question is, if I decide to add a partition (2012) in the future, can I simply move as new portable partition as well as the associated through tablespace data file or I have to spend all the partitions (2010, 2011, 2012).

    user564785 wrote:
    I created a table that is partitioned with 2 partitions (2010 & 2011) and transportable tablespace to migrate data to a new envionment. My question is, if I decide to add a partition (2012) in the future, can I simply move as new portable partition as well as the associated through tablespace data file or I have to spend all the partitions (2010, 2011, 2012).

    Yes, why not.
    (1) create a table like new Tablespace on source 2012 DEC
    (2) transport the tablespace
    (3) add the existing partition table partition or swap partition

    Oracle has also documented this procedure:
    http://docs.Oracle.com/CD/B28359_01/server.111/b28310/tspaces013.htm#i1007549

  • Conversion of non partitioned in partitioned table


    Hi gurus,

    I need to convert the partition table not in the partition.  More flexible way is to use the DBMS_REDEFINITION package for this.
    I do not have access to run this package, when I asked the EXECUTE permission for my dev
    CUSTOMER rejected suggestion that
    "DBMS_REDEFINITION is a method very slow migration that has never been used before here for these migrations.
    so I do not recommend using it as it can trigger bugs and unexpected side effects.


    is this true?

    What will be the alternative method, I can go away?

    Please suggest

    S

    I don't think DBMS_REDEFINITION has bugs.  However, you (and the client) should be familiar with the steps involved.

    Other that that, you will need to create a partitioned table and insert data to the existing table.  You can speed up integration through parallel direct-path insert.

    You will also need to build indexes on the new (partitioned) table.  Define constraints if necessary.  Run grants to other patterns, if necessary.

    Hemant K Collette

  • How to encrypt a USB, when I get the message "(GPT) GUID Partition Table partitioning scheme is required? '."

    I just tried to encrypt a USB drive with my Mac book (latest version) and got the message "A GUID Partition Table (GPT) partitioning schΘma required." What does this mean and suggestions on how to proceed?

    The drive must be formatted for Mac. Start in the Recvery mode. Erase the drive using disk utility (select the top icon which represents the entire disk and click clear. Partition scheme must be Mac OS (Extended) first partition GUID, which is the default value.

    If you want to install a system on it follow these steps:

    How to reinstall OS X on your Mac - Apple Support

  • Qosmio x 500 - 14W - invalid partition table

    Hay guys,

    I wanted to start my Toshiba Quosmio x 500 - 14W PQX33E (Product Code), but the only thing I found on my desk: invalid partition table.

    In another Forum I found a threat, which means I have to restart my computer. So I tried a Reboot Cd, but found nothing. Then I tried to call the Call Center of Toshiba, but they are closed...

    For me, is the Toshiba Service miserably and I hope that some guys from the Forum can help me.

    Thank you
    Paul

    Hello

    You must install the operating system once more.
    Invalid partition table means that something is wrong with the HARD drive and the operating system cannot start.
    So if you n t have a recovery disk, you must order one:
    http://backupmedia.Toshiba.EU/landing.aspx

    PS: I made good experience with the Toshiba service comparing the service with another laptop from the manufacturer I have to say that s OK and I meet a lot of people who said that other manufacturers are not really better
    Which; s my opinion

  • Satellite L630-00V - need to partition table

    Hello to you guys...

    So I really screwed up here, I did my girlfriend buy a laptop (Toshiba Satellite L630) and also a new hard drive to replace the one on the inside because they have slow (5400 RPM)

    I've used ghost to clone the drive inside the laptop to the new one I mounted in a housing that is connected via USB to the computer.

    Although I double checked everything and that the destination drive was the good the bad thing happened, the blank disc has been cloned on the full.

    I don't think that all my data are deleted, because there were at least 70 GB of commands on the computer (3 recovery partitions and Windows 7 one) and I doubt enough that it can all be erased within 5 seconds.

    I used GetBackData for NTFS witch scanned the hard drive for about 05:30 (Yes, 5 hours and a half) and well found a lot of files... If right now I copy all partitions said based on another hard drive...

    I'll have to do the scan a 2nd time to get Fat32 partitions...

    Something that would be useful for me is to have the partition table of a released factory Toshiba L630-00v (500 GB HDD) *.



    Beginning and end clusters would be really useful, I would be able to rebuild my much easier partition table


    And oh, no idea how to get the OEM Windows 7 cd to a new facility? They were paying for a copy of windows with their computer, their must be a way to install it...

    Thank you very much! ;)

    Hello

    > And oh, no idea how to get the OEM Windows 7 cd to a new facility? They were paying for a copy of windows with their computer, their must be a way to install it.

    Now, you can get money from Toshiba Recovery disk.

    For European models:

    https://backupmedia.Toshiba.EU/landing.aspx

    American models:

    https://www.CSD.Toshiba.com/cgi-bin/TAIS/support/JSP/serviceUnitVerification.jsp?orderType=SFF

    > my girlfriend did buy a laptop (Toshiba Satellite L630) and also a new hard drive to replace the one on the inside because they have slow (5400 RPM)

    What happens if put you the old hard drive to make a recovery disk and replace it with a new one, then... Then you will be able to restore the factory settings on the new hard drive with a recovery disk. Or you have not previously burned?

  • after image restore, backup partition table is different

    Hello

    He is a 2012 Macbook mid Pro with El Capitan and Bootcamp.

    After repeated with Bootcamp (Windows 10 Pro) problems I started using Image of Terabyte for Linux in order to safeguard this Macbook. Forums terabyte that people know that the Image of Linux (such as Image for Windows) is able to create a reliable backup, but also to restore - restore an entire disk image or restoring individual partitions.

    I followed their instructions precisely and activated the two options "restore first Beach" and "TPG hidden OS" (as one terabyte official, Member of the forum wrote) when restoring a partition.

    Unfortunately, it did not work! Bootcamp was no longer visible in the start screen or wasn't visible, but not start.

    What I found was that I had to keep the two options (see above) with DISABILITIES.

    Then I could restore some partition images - and 10 Windows in Bootcamp is bootable.

    Well, it was the long introduction.  I'm sorry.

    Now my question is:

    Is this something that has changed my partition table?

    Before restoring an Image for backup of Linux for the first time, I had this partition table:

    localhost: ~ root # fdisk/dev/disk0

    Disk: geometry / dev/disk0: 60801/255/63 [976773168 sectors]

    Signature: 0xAA55

    From end

    #: cyl hd s - cyl hd s id [Start - size]

    ------------------------------------------------------------------------

    1: EA 1023 254 63 - 1023 254 63 [1-409639]

    2: AF 1023 254 63 - 1023 254 63 [409640-857906448] HFS +.

    3: AB 1023 254 63 - 1023 254 63 Boot Darwin [858316088-1269536]

    * 04:07 1023 254 63-1023 254 63 [859586560-117186560] HPFS/QNX / TO THE

    BUT:

    After failed attempts to restore and work finally restore my partition table operation is different:

    Fdisk/dev/disk0

    Disk: geometry / dev/disk0: 60801/255/63 [976773168 sectors]

    Signature: 0xAA55

    From end

    #: cyl hd s - cyl hd s id [Start - size]

    ------------------------------------------------------------------------

    1: EA 0 0 2 - 1023 255 63 [1-409639]

    2: AF 25 102 15 - 1023 255 63 [409640-857906448] HFS +.

    3: AB 1023 0 57 - 1023 255 63 Boot Darwin [858316088-1269536]

    * 04:07 1023 199 8-1023 255 63 [859586560-117186560] HPFS/QNX / TO THE

    Everything seems to work fine, but I wonder if the different appearance of the partition table can be a problem?

    For example, compare:

    1: EA 1023 254 63 - 1023 254 63] 3 o 409639]

    TO

    1: EA 0 0 2 - 1023 255 [63 3 o

    409639]

    It's the output of 'diskutil list ':

    localhost: ~ root # diskutil list

    / dev/disk0 (internal, physical):

    #: NAME SIZE TYPE IDENTIFIER

    0: GUID_partition_scheme * GB 500,1 disk0

    1: disk0s1 EFI EFI 209.7 MB

    2: Apple_HFS Macintosh HD 439,2 GB disk0s2

    3: disk0s3 Apple_Boot Recovery 650.0 MB HD

    4: Microsoft database BOOTCAMP 60.0 GB disk0s4

    And the output of 'TPG - r - vv show/dev/disk0':

    See the TPG: / dev/disk0: mediasize = 500107862016; SectorSize = 512; blocks = 976773168

    See the TPG: / dev/disk0: MBR suspicious to sector 0

    See the TPG: / dev/disk0: Pri GPT to sector 1

    See the TPG: / dev/disk0: GPT Sec at sector 976773167

    start index size summary

    0 1 MBR

    1 1 Pri GPT header

    2 32 table GPT Pri

    34 6

    40 409600 1 part TPG - C12A7328-F81F-11D2-BA4B-00A0C93EC93B

    409640 857906448 2 part TPG - 48465300-0000-11AA-AA11-00306543ECAC

    858316088 1269536 3 part TPG - 426F6F74-0000-11AA-AA11-00306543ECAC

    859585624 936

    859586560 117186560 4 part TPG - EBD0A0A2-B9E5-4433-87C0-68B6B72699C7

    976773120 15

    976773135 32 table dry GPT

    976773167 1 dry GPT header

    Out of 'gdisk/dev/disk0:

    localhost: ~ root # gdisk/dev/disk0

    GPT fdisk (gdisk) version 1.0.1

    WARNING: Open with shared lock devices will not have their

    table partition automatically reloaded!

    Scanning partition table:

    MBR: hybrid

    BSD: absent

    APM: absent

    TPG: present

    Found a valid GPT with hybrid MBR; using GPT.

    Command (? for help): p

    Disk/dev/disk0: 976773168 sectors, GiB 465.8

    Logical sector size: 512 bytes

    Identifier (GUID) of disc: 38A2E667-6E00-4C0F-BD78-C95979E3CFAE

    Partition table contains up to 128 entries

    First usable sector is 34, last usable area is 976773134

    The partitions will be aligned with the boundaries of sector 8

    Space is free total 957 sectors (478,5 KiB)

    Starting number (sector) end (sector), Code name of size

    409639 40 1 MiB EF00 EFI 200.0

    2 409640 858316087 409.1 giB AF00 Macintosh HD

    3 858316088 859585623 619.9 MiB AB00 Recovery HD

    4 859586560 976773119 55.9 giB 0700 BOOTCAMP

    Any ideas?

    Another question:

    Is it possible to save the table to partition like that?

    DD if = / dev/sda of = gptandmbr bs = 512 count = 34

    Thank you very much

    NEUMAC

    In Fdisk, the CHS numbers are arbitrary on modern disks. They are the time of BIOS and old disks with CHS geometry. Puts BCA from Mac 0-1023 (1024 cylinders), 0-255 (256 heads) and 0-63 (64 sectors). Modern disks far exceed those numbers and would drain them. Must match what is the triplet of start/end/size and it fits in GPT and MBR. You can put arbitrary 0,0,0 for CHS and you will see all issues on GPT disks.

    Please do not use TBIL to restore W10 to circa 1970-80 disks.

  • invalid partition table

    invalid partition table is displayed on my screen, pl help out me...

    Exactly what happened before you saw the error message?

  • After reinstalling Windows on Linux invalid partition table

    I got an operating system linux on my pc, then I tried to install windows along the side with linux, so I put my windows cd in the drive and follow the steps, the first steps were well made, but when the pc restarts, it is a message (invalid partition table). p.s. I formatted the c partition and it did not work, so I deleted and made a new partition in unallocated space and there do not have too much work, help?
    Another PS it is no os can I enter on my pc.

    If you deleted all the partitions of the hard disk using Linux, then you should be able to put your Windows install disk, boot from it and install Windows.  The installation procedure needs to configure your hard drive correctly for Windows.

    -JW

  • Partition table / no entry of safe mode

    HERE'S MY QUESTION:

    I'M TRYING TO RECOVER MY XP DESKTOP COMPUTER. WHENEVER I TRY not to enter MY "SAFE MODE" VIA THE XP CD I GET NO PASSAGE. NORMALLY I CAN GO THROUGH LOG BUT I'VE NOW DAMAGED A PARTITION. I USED THE HELP FILE (FIXMBR) HERE IS THE MESSAGE I HAVE,

    * THIS COMPUTER SEEMS TO HAVE A NON STANDARD OR INVALID MASTER BOOT RECORD *.

    FIXMBR may damage your partition tables if you continue (of course I did). This could cause all of your scores on the current hard disk to become inaccessible.

    If you have problems to access your drive, DO NOT CONTINUE (of course I did)

    Are you sure you want to write a new MBR?       (of course I checked yes)

    Then... If I'm screwed?   I have to buy a new hard drive?   I can solve this problem?  Can I use the old as a ghost player to get my files?

    HELP ME OB 1... YOUR MY ONLY HOPE THOMAS

    Hi Thomas,

    ·         Are able to connect in normal mode?

    ·         What happens when you try to connect in safe mode?

    ·         You get the error message?

    I suggest you to run the disk check to check for possible errors.

    How to perform disk error checking in Windows XP

    http://support.Microsoft.com/kb/315265

    Note: If bad sectors are found in the hard drive, then it could try to fix this particular sector. If you have any data on that, it can get lost.

  • How to recover the partition table (corrupt) for the partition in good health?

    Partition (drive H) was working fine, then I rebooted my system normally and the drive is now inaccessible.

    "An error occurred reading the file: the file or directory is corrupted and unreadable." (1392).

    Window CMD CHKDSK says NTFS file system and "unable to determine the State and version volume.»

    [This is a disk external drive with 2 partitions on it - H and Mr. the second partition (drive M) discs works fine.]
    [Vista Ultimate OS]

    Is there a way I can get it to work or get the data off of it?

    Try the procedure described in the article below

    http://www.ehow.com/how_7500292_recover-bad-partition-table.html

  • Invalid partition table appear on my HP a1700n

    Can a

    • System repair and recovery to be

    The partition table is the main hard disk index, indicating to the computer what stored where... what part of the hard disk contains the Windows operating system, which contains the files of restoration, which part contains utilities, and so forth.  If this table is damaged, the computer can not tell what is stored where.  To aid the recovery partition will not work because the computer is no longer able to see.  You would need a set of CD recovery or restoration of the manufacturer of the computer to restore it. Before you do, you must run a set of diagnostics of hard disk on the disk to make sure that this is going only to fail again.

  • Partition table does not have a valid system partition

    I am working on a Dell XPS 420 computer for a customer.  She has Windows Vista installed on it (not sure what version of Vista).

    He's doing a loop, wherever it loads to the point where I can see the bottom and the mouse, but it stops there.  After 5 minutes of him sitting on this screen, it restarts, I can't access one of the Advanced menu F8.  I tried Safe Mode, and after that it loads the crcdisk it restarts, it does with Safe Mode, Mode safe mode with networking Mode and safe mode with command prompt.  I can't use the last known configuration because it will just try to load and eventually restart.

    Things I've tried is that I ran a diagnosis of hard drive and memory, and they both pass.

    I tried the repair with the regedit option and load the system hive in the registry.

    I tried the bootrec command.

    Well I put in a disk for Installation of Vista and choose the repair option.  I did the auto diagnosis and repair option (first choice I think) and I checked the report after he finished saying that it fixes itself and needed to restart (which he did not in fact)

    Well the result that came was that the Partition Table does not have a valid System Partition.

    I tried the bootrec command, and they all said it has repaired but it did not, when I tried to do the bootrec /rebuild he gave me the message "element not found".

    I ran a test diagnosis system and I received the following message

    System test
    error code 0146
    Msg error code 2000-0146
    MSG HDD 0 - self-test log contains previous errors. Given the code and can be used by the support message technology guide to help diagnose the problem.

    be honest, I just need to know if I need to replace the hard drive or not, it's for a customer.

    I did not see if the HDD is set to AHCI or SATA in the bios again, but I will when I get home today, but I would like some answers backup.

    Hi countryboyofal,

    I suggest that you contact Dell support for the outcome of the diagnostic system.

    http://support.Dell.com/support/topics/global.aspx/support/DellCare/contact_us?c=us&l=en&s=Gen&redirect=1

     

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Partition table is corrupted how to fix?

    Hello, I get this error after I turned off my computer (by the button) because it had frozen it had been frozen for 3 hours and I decided to hold it down for 5 seconds (stop the power) and I turned it back and it started. Is there a solution? I get the error message: "Partition table is corrupt on disk \Device\Harddisk0. Repair action: repair of partition result table: failure. Error code = 0 x 490 time: Mrs 160572

    Hello

    With the publication of the description, I understand that you are having problems to start your Windows 7 computer and gets also a errors of Partition table is corrupt on disk \Device\Harddisk0 code = 0 x 490. I will certainly help you get this fixed number.

    I suggest you refer to the suggestions by Stephanie Podder replied on 27 November 2011 in the below mentioned thread and check if this is useful:

    http://answers.Microsoft.com/en-us/Windows/Forum/all/partition-repair-startup-repair-failed-error-code/3af92d1a-e7ef-451D-9adc-3f7ffe8bb9c4?page=1

    Important: Running chkdsk on the drive if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data may be lost

    Hope this information is useful. Please come back to write to us if you need more help, we will be happy to help you.

  • How to configure the partition table for SSD?

    Drive: 32 GB SSD

    I accidentally delete without backup partition table information and would like to know how to put the partition table, I can access the tools of partition table, but do not know how to define.

    Does anyone have any suggestions?

    Thanks in advance for your suggestions

    Hello

    Thanks for posting your query in Microsoft Community.

    The SSD could be seen in the disk management window, and you could name and set up as another hard drive internal. To create a partition or volume on a hard disk, you must be logged in as an administrator, and there must be unallocated disk space or free space in an extended hard disk partition. To repartition your hard drive, please consult the following link and check if it helps.

    I can I repartition my hard disk?

    Additional information:

    Create a new Partition on a hard disk in Windows 7

    Hope this information is useful. Let us know if you need more help, we will be happy to help you.

Maybe you are looking for