Best way to change partition key on existing table

Hi,
Using Oracle 11.20.3 on AIX.
We have a table about 800 million rows and 120gb in size.
Want to try copies oif this table to evalaute different partitiong strategies.
What is the quickest way to do this?
Would have liked say datapump table 1 tro disk and datapumo import the data to new table but do the tables need to be of the same format.
Thanks

>
Using Oracle 11.20.3 on AIX.
We have a table about 800 million rows and 120gb in size.
Want to try copies oif this table to evalaute different partitiong strategies.
What is the quickest way to do this?
Would have liked say datapump table 1 tro disk and datapumo import the data to new table but do the tables need to be of the same format.
>
First your subject asks a different question that the text you posted: Best way to change partition key on existing table. The answer to that question is YOU CAN'T. All data has to be moved to change the partition key since each partition/subpartition is in its own segment. You either create a new table or use DBMS_REDEFINITION to redefine the table online.
Why do you want to export all data to a file first? That just adds to the time and cost of doing the op.
What problem are you trying to use partitioning to solve? Performance? Data maintenance? For performance the appropriate partitioning key and whether to use subpartitions depends on the types of queries and the query predicates you typically use as well as the columns that may be suitable for partition keys.
For maintenance a common method is to partition on a date by year/month/day so you can more easily load new daily/weekly/monthly data into its own partition or drop old data that no longer needs to be kept online.
You should use a small subset of the data when testing your partitionings strategies.
Can you do the partitioning offline in an outage window? If not then using the DBMS_REDEFINITION is your only option.
Without knowing what you are trying to accomplish only general advice can be given. You even mentioned that you might want to use a different set of columns than the curren table has.
A standard heap table uses ONE segment for its data (ignoring possible LOB segments). A partitioned/subpartitioned table uses ONE segment for each partition/subpartition. This means that ALL data must be moved to partition the table (unless you are only creating one partition).
This means that every partitioning scheme that uses a different partition key requires ALL data to be moved again for that test.
Provide some information about what problem you are trying to solve.
>
Is this quicker than datapump?
>
Yes - exporting the data simplying moves it all an additional time. Ok to export if you need a backup before you start.
>
Found artcle which talks about using merge option on datapump import to convert partitioned table to non-partitioned table.
>
How would that apply to you? That isn't what you said you wanted to do.

Similar Messages

  • Best way to change fund posted in an EBS document

    What is the best way to change the fund in one line item in a document produced when the electronic bank statment is processed? The bank charges fees that come through the statement and should post to a different fund then any other item such as checks, etc.
    I am trying a substitution but coming across the error Field COBL-KOSTL. does not exist in the screen SAPLKACB 0002.

    The error message that I was receiving...Field COBL-KOSTL. does not exist in the screen SAPLKACB 0002, was coming from function module EXIT_RFEBBU10_001 and include ZXF01U01. The programming code was attempting to default a cost center when the external transaction code = 661. The coding was removed and the default acct assignment cost center was added to the cost element master data. The substitution also worked correctly as it should.

  • Is there a way to change the key photo on iPhoto Faces?

    Hi
    The picture on the corkboard for each person appears to be the first photo you identify for that person.
    Is there any way to change the key photo, like you can do with Events?
    Thanks
    Dave

    Thanks very much!
    I hadn't realised you can do that on Events, I have always right clicked on it and brought up the option to Change key Photo. That doesn't work the same way n Faces, so thanks for the Space Bar trick.
    All the best
    Dave

  • Best way to change TreeMap value?

    Hello,
    I am wondering what is the best way to change a value in a TreeMap? I have retrieved a value by .get on the key i.e.
    String aString = (TreeMap) aTreeMap.get(aKey);but would now like to change aString and ?.put? it back into the map?
    How would I do this?
    Thank you,
    Poot.

    but would now like to change aString and ?.put? it
    back into the map?Do I just have to keep a note on the (key,value) - especially key - change the value and then .put(key,value) back in? Though I'll need to remove the initial pairing if I do this since TreeMap won't allow duplicate keys!
    There must be an easier way as this.
    Thank you for your reply,
    Regards,
    Poot.

  • Newbie Quesion: Best way to change colour of a movie

    Hi,
    Could someone tell me the best way to change the colour of
    one element of a
    movieclip in AS2?
    Say for example I had a filled white circle in the middle of
    a black square,
    how can I change just the colour of the circle?
    I have tried this.myColor.setRGB( color ); but that sets the
    entire clip to
    be of one colour. Do I need ( as I suspect ) one clip on top
    of another or
    is there any way of keeping details of the clip being
    changed?
    TIA
    Wil

    Cheers jdh,
    This is one method I'd considered.
    I'll give it a bash.
    Wil
    "jdh239" <[email protected]> wrote in
    message
    news:ens1vd$ahn$[email protected]..
    > Don't know if this will help, but this code changes the
    color of my
    > "LOADING"
    > text while it is loading. Should have the essential code
    to do what you
    > are
    > looking for.
    >
    > Make the white circle a movie clip and pick the
    following code apart to
    > get it
    > to change colors:
    >
    >
    >
    > stop();
    > loading.gotoAndPlay(1);
    > import flash.geom.ColorTransform;
    > import flash.geom.Transform;
    > var colorTrans:ColorTransform = new ColorTransform();
    > var trans:Transform = new Transform(loading);
    > trans.colorTransform = colorTrans;
    > loadI = setInterval(loadF, 100);
    > function loadF() {
    > percent =
    Math.floor(_root.getBytesLoaded()/_root.getBytesTotal()*100);
    > if (percent<=39) {
    > colorTrans.rgb = 0x0000FF;
    > // blue
    > trans.colorTransform = colorTrans;
    > } else if ((percent>39) && (percent<60)) {
    > colorTrans.rgb = 0x00FF00;
    > // green
    > trans.colorTransform = colorTrans;
    > } else if ((percent>60) && (percent<80)) {
    > colorTrans.rgb = 0xFF8000;
    > // orange
    > trans.colorTransform = colorTrans;
    > } else if ((percent>80) && (percent<99)) {
    > colorTrans.rgb = 0xFF0000;
    > // red
    > trans.colorTransform = colorTrans;
    > } else if (percent>=99) {
    > clearInterval(loadI);
    > _root.gotoAndPlay(16);
    > } else {
    > loading.gotoAndPlay(1)
    > }
    > }
    >

  • Best Way to Change Source System Client

    We initially had a ECC source client for BI as 35.  But over time, we suffered with good test data because the ECC team use client 15 and not 35.  We want to change BI 7 to use client 15.  I have created a new source system in RSA1 for Client 15 but when I try to delete client 35 and /or change the source client on a datasource, all the data mappings are deleted!
    I would really appreciate any advice or information on the best way to change the source R3 client for Bi without losing data mappings.  Point awarded and much respect
    Warm regards
    Lee Lewis

    Hi,
    Yes. There is a way to change the source system without deleting the old system. Please use the T.code BDLS and for more information refer the below link
    Re: Changing a Source System.
    OSS note 886102 will also give more information about this.
    Hope it helps.
    Thanks.

  • Best way to change config then change it back after a while.

    I spent some time today trying a couple approaches to this, but they all seemed a little klunky.
    I'm looking for the best way to change the BGP prefixes which are advertised out to an ISP, based on some check.  I want to set a timeout so the router won't attempt to send the route again for say 30 minutes after it is triggered, but then will start advertising it again, and monitor to see if the trigger condition returns.  If the trigger condition returns then again withdrawl the route for 30 minutes and so on.
    I'm using a prefix-list already to limit outbound route advertisments, so it seems simplest to just make a config change to remove one line in the prefix-list, then a few minutes later put it back.
    I tried just using the "cli command wait", but if I set the wait period too long, the applet seemed to die, and never ran the later cli commands to put the prefix-list line back.  There is also a exit-time clause for the event, but I couldn't figure out how to put the line back after the exit-time expired.  Lastly I tried doing an event with a watchdog timer, but also couldn't get that to work either.  Before I spend too much time working on differant options, I wanted to see if anyone had any recommendations.
    I've done some TCL scripting on Cisco routers, but that seemed to be overkill for this, and I wanted to keep the config easy to manage for peers who might not be as proficient in TCL scripting.
    This is intended for ASR-1002X routers if it matters.
    Any suggestions would be much appreciated.
    Thanks
    Derek

    Thanks for all your help Joe. 
    Ok, so here is my current script, which seems to be working pretty well (changing to entry-type "value" fixed the variability in detection times).  For testing in the script below, I'm using a 30 second timeout for when the line gets put back, and a 60 second timeout for when monitoring should resume after the event is triggered. The script checks the value of the OID every 5 seconds.
    The only other thing I would like to do with it that I can't figure out, is how to use an environment variable for the exit-time.  Ideally, I would just add a value, like 10 seconds, to the ATimeout variable.  However I can't figure out the syntax to just use a var for the exit-time.  Anyone know the secret (or if it is possible?)
    event manager environment ATimeout 30
    event manager environment q "
    no event manager applet DDOS_RESPONSE01
    event manager applet DDOS_RESPONSE01
    event snmp oid 1.3.6.1.4.1.9.9.166.1.17.1.1.21.80.65538 get-type exact entry-op gt entry-val "0" entry-type value exit-time 60 poll-interval 5
    trigger
    action 001 cli command "enable"
    action 002 cli command "config term"
    action 003 cli command "no ip prefix-list PUBLIC_NETWORKS seq 140 permit 10.4.1.0/24 le 32"
    action 004 syslog msg "DDoS Attack Detected. Removing Web Srvr Subnet from PUBLIC_NETWORKS for ($ATimeout) seconds."
    action 005 cli command "event manager applet RESTORE_PREFIX"
    action 006 cli command "event timer countdown time $ATimeout "
    action 007 cli command "action 101 cli command $q enable $q"
    action 008 cli command "action 102 cli command $q config term $q"
    action 009 cli command "action 103 cli command $q no event manager applet RESTORE_PREFIX $q"
    action 010 cli command "action 104 cli command $q ip prefix-list PUBLIC_NETWORKS seq 140 permit 10.4.1.0/24 le 32$q"
    action 011 cli command "action 105 syslog msg $q DDoS Attack Timeout ($ATimeout) reached. Re-adding Web Srvr Subnet to PUBLIC_NETWORKS. $q "
    action 012 cli command "action 106 cli command $q no event manager applet RESTORE_PREFIX $q"
    exit
    event manager environment ATimeout 30
    event manager environment q "
    event manager applet DDOS_RESPONSE01
    event snmp oid 1.3.6.1.4.1.9.9.166.1.17.1.1.21.80.65538 get-type exact entry-op gt entry-val "0" entry-type value exit-time 60 poll-interval 5
    trigger
    action 001 cli command "enable"
    action 002 cli command "config term"
    action 003 cli command "no ip prefix-list PUBLIC_NETWORKS seq 140 permit 10.4.1.0/24 le 32"
    action 004 syslog msg "DDoS Attack Detected. Removing Web Srvr Subnet from PUBLIC_NETWORKS for ($ATimeout) seconds."
    action 005 cli command "event manager applet RESTORE_PREFIX"
    action 006 cli command "event timer countdown time $ATimeout "
    action 007 cli command "action 101 cli command $q enable $q"
    action 008 cli command "action 102 cli command $q config term $q"
    action 009 cli command "action 103 cli command $q no event manager applet RESTORE_PREFIX $q"
    action 010 cli command "action 104 cli command $q ip prefix-list PUBLIC_NETWORKS seq 140 permit 10.4.1.0/24 le 32$q"
    action 011 cli command "action 105 syslog msg $q DDoS Attack Timeout ($ATimeout) reached. Re-adding Web Srvr Subnet to PUBLIC_NETWORKS. $q "
    action 012 cli command "action 106 cli command $q no event manager applet RESTORE_PREFIX $q"
    exit

  • Best way to change workstation

    What is the best way to change the workstation name and import it into
    edirectory.
    We constantly have user change computer name. Most of the time when we
    change the computer name it takes day to reflect on the edirectory. When
    rename the workstation object, we cannot even remote to the workstation.
    I have problem remote to through user name, I keep getting user does login
    when in fact the user is login. We have netware 6.5 with the latest
    service pack.

    Sang,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
    - Check all of the other support tools and options available at
    http://support.novell.com.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://support.novell.com/forums)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://support.novell.com/forums/faq_general.html
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Best way to change the speed of a sequence of linked short clips?

    I have a sequenced project of about 150 short 1 second clips linked together via a crossfade transition... I would like to make the timelapse faster. What is the best way to change the speed of the sequence or the clips themselves? I would rather change the sequence for it would be less labor intensive I would imagine!!
    Thanks
    RD

    Or...select all the clips in the timeline, control-click (or right-click) on them and select 'Duration'. Change the duration to whatever will fit/fill the timespan you need, then hit OK.
    If you're needing to change the dissolve as well, you should remove all but one of them first, then drag the remaining transition into the browser. Dbl-click it into the viewer, set the duration of what you want, then use the hand icon at top right and drag it back into the browser. Rename it relevent to it's new duration, then control-click on it and select "Make Default".
    Now, set an inpoint at the first frame of your clips in the timeline, then drag all the shortened clips from the timeline into the canvas and release where it says 'Overwrite with Transition'.
    That's another way to accomplish this.
    K

  • Best way to to partition a 500GB Seagate Freeagent

    What is the best way to to partition a 500GB Seagate Freeagent external HD. I need to have it set up into three different drives for use with timemachine. Not sure if all the section should be journaling enabled. I do need 1 partition for a windows machine.

    This is what I did.
    PARTITIONING EXTERNAL DRIVE FOR MAC AND PC USE
    You need to have a partition for OS X and one for your PC. Partitioning will erase your drive.
    1. Open *Disk Utility* in the utilities folder in finder. Pick your external drive and choose Partition under volume scheme choose number of partitions needed. Pick the size of the partitions by either dragging the center bar with the dot on it or type in the size.
    Note: if you don’t need 2 Mac partitions leave out step 3.
    2. Pick the partition you want to be your mac partition then choose Options and pick guid partition table. For format choose mac os extended journaled. Pick a name for this partition.
    3. Pick the partition you want to be your 2nd mac partition and under Options choose *Apple Partition Map*. For format choose mac os extended journaled. Pick a name for this partition.
    4. Now pick the other partition and under Options choose master boot record. Under format choose MS-DOS file system. Choose a name for this partition.
    5. If you need more partitions you can either repeat number 2 or number 3.
    6. Now in the right hand corner choose Partition. It will take a while so be patient.

  • Can we create partitions in an existing table?

    Hi,
    Can we create partitions in an existing table which has about a million rows? I am using oracle 9i database.
    Can any one suggest me on this please.

    07b3ea8e-c4c5-4559-9055-ed38853dc64e wrote:
    Hi,
    Can we create partitions in an existing table which has about a million rows? I am using oracle 9i database.
    Can any one suggest me on this please.
    can NOT be done.
    research DBMS_REDEFINITION

  • Best way to update individual rows of a Table?

    I've taken a look at some examples, though haven't gotten any clarification on this.  I am looking to have something close to a listbox or table to where I can update just a single column of row values at a 1 time per second pace.  I am looking to display our data-acquisition values in a table or listbox.  The single listbox seemed to work good for this, but I was unable to use row headers to list the channel names next to the channel values.  I was thinking about connecting the cursor values of two list-boxes to do this, but didn't find any info on this for the single list-box.
    I have a few questions:
    1) I have a 1D array to where I want to use that array of data to constantly update the first column (with a multitude of rows) of a table.  I am looking for the best route so as not to take up too much processing time in doing this.
    What is the best way to update individual rows of a table?   Invoke Node "Set Cell Value" ... or is there another method?
    2) Why is it that after every other iteration the row values are erased? 
    Also, for adding additional strings to the original arrray ... is it best to use the "Array Subset" and then the "Build Array" function, or the "Array Subset" and "Insert Into Array" function?
    See the attached example.
    Thanks.
    Solved!
    Go to Solution.
    Attachments:
    Table Example.vi ‏19 KB

    Jeff·Þ·Bohrer wrote:
    2) Why is it that after every other iteration the row values are erased?
    Classic race condition.  dump the for loop and p-node and just wire the 2D array to the table terminal.!
    I'm not seeing the race condition.  What I am seeing is the table emptying after the last element was written to it on every other run.  I saw watched this with highlight execution on.
    But I'm in full agreement with just writing to the terminal.  It is a 1D array, so you will need to use a build array and transpose 2D array in order for it to write properly.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to add create partition to an existing table?

    hi,
    please tell me how to add partition to an existing table.
    i have tried
    alter table mvr add partition sno
    but getting error : ORA-14501: object is not partitioned
    thanks.

    Just Googling for ora-14501 resulted in the following
    Adding a partition results in ORA-14501: object is not partitioned
    It is really sad you can not do this on your own, and always need someone to do this for you.
    Sybrand Bakker
    Senior Oracle DBA

  • Can we addnew partition and sub partition in the existing table in one shor

    can we addnew partition and sub partition in the existing table in one short

    nav wrote:
    can we addnew partition and sub partition in the existing table in one shortYes,
    You can and below is the example for Range-List partition
    ALTER TABLE <table_name>
       ADD PARTITION <partition_name> VALUES LESS THAN (<value>
          STORAGE (INITIAL 20K NEXT 20K) TABLESPACE <TS name> NOLOGGING
              SUBPARTITION Clause
              SUBPARTITION Clause
              SUBPARTITION Clause
              SUBPARTITION Clause
               );

  • Whats the best way to Change, Increase partition on Win side.

    I want to up grade to Windows 8 on my bootcamp partition which is 34GB now, I have 500GB free space on my Mac side. IF I understand what others have written,
    I will go into Disck utility and erase the bootcamp and then reinstall bootcamp and increase the partition of boot camp to 200GB. I already back up my mac data and the windows data separately, so I have that if I need it. So Is this the best way to repartition?  Or do I also need to erase and start over on my mac side also?  I have a iMac 2010, 16GB RAM, 1 TB HD, and been running boot camp since I bought it. I also use Parallels (recently upgraded to 10) to go back and forth between them.
       Thanks for any help.

    I just successfully installed Windows 8.1 Update 1 on BootCamp on Mac OS X Yosemite. Here is a step by step I just wrote, hope it helps y'all:
    How to successfully install Windows 8, or above, on Mac OS X Mavericks or above:
    Requirements:
    1- Windows OS ISO Image file
    2- An 8GBs USB Flash Drive
    3- A good Internet connection as you will need to download the Windows compatible drivers for your Mac
    Steps:
    1- Open up Disk Utility and create an additional partition for Windows formatted as ExFat. 100GBs, or above, is recommended as update to the operating system, as well as Apps requiere space on your HD or SSD [This step can be done during Mac OS X's installation process]
    2- Open up BootCamp Assistant
    3- Make sure only the 'Create a Windows 7 or later version install disk' is checked and your USB Flash Drive plugged in and click 'Continue'
    4- Click 'Choose' and select your Windows ISO Image file
    5- Select the USB Flash Drive you will be using during the installation process and click continue to confirm
    6- Once done, restart your Mac and hold down the 'alt/option' key on your keyboard to bring up the Boot Menu
    7- Select the USB Flash Drive named Windows, not the UEFI Boot
    8- Install Windows as you normally would
    * Remember to press and hold the 'alt/option' key, and select the Windows Partition, whenever the installation process requires your Mac to restart
    * http://msdn.microsoft.com/en-us/library/windows/apps/jj945423.aspx
    * http://windows.microsoft.com/en-us/windows-8/install-windows-on-mac

Maybe you are looking for