A question about Row Movement

I'm trying to do the Row Movement, but will it impact indexes? Will I have to re-create indexes or rebuild them?

On partitioned table, if you update the value of partition key of a row, the row move to the new partition and get a new ROWID. But no need to work on index after that.
Example :
Taken this partitioned table :
SQL> select table_name,partition_name,high_value from user_tab_partitions;
TABLE_NAME                     PARTITION_NAME                 HIGH_VALUE
MY_TABLE_2                     MY_TABLE_PART1                 1000
MY_TABLE_2                     MY_TABLE_PART2                 2000
MY_TABLE_2                     MY_TABLE_PARTM                 MAXVALUEOk, now taken a row of this table from part1. Note the ROWID, then see as well the explain plan and index usage :
SQL> select rowid,a.*
  2  from MY_TABLE_2 partition (MY_TABLE_PART1) a
  3* where id=258
SQL> /
ROWID                      ID DESCRIPTION
AAAO0TAAEAAACstAAA 258 DUAL
SQL> set autot traceonly explain
SQL> select rowid,a.*
  2  from MY_TABLE_2 a
  3  where id=258
  4  /
Execution Plan
Plan hash value: 2906089138
| Id  | Operation                          | Name        | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
|   0 | SELECT STATEMENT                   |             |     1 |    21 |     2   (0)| 00:00:01 |       |       |
|   1 |  TABLE ACCESS BY GLOBAL INDEX ROWID| MY_TABLE_2  |     1 |    21 |     2   (0)| 00:00:01 | 
|*  2 |   INDEX UNIQUE SCAN                | IDX_TABLE_2 |   645 |       |     1   (0)| 00:00:01 |       |       |
Predicate Information (identified by operation id):
   2 - access("ID"=258)Ok, now move the row from the first to the second part :
SQL> set autot off
SQL> update MY_TABLE_2 set id=1500 where id=258;
update MY_TABLE_2 set id=1500 where id=258
ERROR at line 1:
ORA-14402: updating partition key column would cause a partition change
SQL> alter table MY_TABLE_2 enable row movement;
Table altered.
SQL> update MY_TABLE_2 set id=1500 where id=258;
1 row updated.Well, now, the row is no more in first, but in second part as waiting.
Note the ROWID (different of above when the row was in the first part) :
SQL> select rowid,a.*
  2  from MY_TABLE_2 partition (MY_TABLE_PART1) a
  3  where id=1500;
no rows selected
SQL> select rowid,a.*
  2  from MY_TABLE_2 partition (MY_TABLE_PART2) a
  3* where id=1500
SQL> /
ROWID                      ID DESCRIPTION
AAAO0UAAEAAAPb3AAE 1500 DUALAnd now, see the explain plan and still index usage :
SQL> set autot traceonly explain
SQL> select rowid,a.*
  2  from MY_TABLE_2 a
  3* where id=1500
SQL> /
Execution Plan
Plan hash value: 2906089138
| Id  | Operation                          | Name        | Rows  | Bytes | Cost (%CPU)| Time     | Pstart| Pstop |
|   0 | SELECT STATEMENT                   |             |     1 |    20 |     2   (0)| 00:00:01 |       |       |
|   1 |  TABLE ACCESS BY GLOBAL INDEX ROWID| MY_TABLE_2  |     1 |    20 |     2   (0)| 00:00:01 | 
|*  2 |   INDEX UNIQUE SCAN                | IDX_TABLE_2 |    74 |       |     1   (0)| 00:00:01 |       |       |
Predicate Information (identified by operation id):
   2 - access("ID"=1500)
SQL> I would advise you the reading of the article of J. Lewis : When Should You Rebuild an Index?
HTH,
Nicolas.

Similar Messages

  • Questions about old movies

    I have a lot of movies that I had downloaded on my external hard drive all of which are in regular dvd format, my question is how would I go about streaming and watching those movies or for that matter converting to movies to any Apple format? Please any assistance before I buy an Apple Tv would help.

    If you convert all the movies in a format accepted by ATV (m4v) you will be able to enjoy your ATV.
    I see you are using PC and I not familiar with Windows software. But for MAc Toast 9, Quicktime Pro, Handbrake....etc.

  • Questions about Downloading Movies from Itunes

    I have used itunes extensively for my music, but have never downloaded any movies or video. If I downloaded a movie from the Itunes store can I then burn it on to a disc. If so, it needs to be a DVD-R disc not a CD-R right? This may sound like a really dumb question, but I have never done this before. Thanks

    From the itunes store terms of service:
    "You shall not be entitled to burn video Products"
    http://www.apple.com/legal/itunes/us/terms.html

  • How can I get a REAL person to ask a question about a movie rental?

    I rented a movie on 3/1 and it said "9 hours" to download...and yes I've a fast provider....have not watched the movie...sign on today and get a 'you have 4 hours left to watch your rental' notice.....I have to go to work! I can't watch it until tomorrow....
    How can I call/chat w/a real person to get this resolved......
    Thank you

    Apple - Support - iTunes - Contact Us
    Contact them like everyon else must do.

  • Question about old movies and getting the motion.

    In the middle of bringing in old 16mm movies to FCE. There are times when it seems as if the movie, after it has been captured, is running a little slow when viewed in the viewer? However, one of the short movies had sound, and this was captured perfectly. If there is any difference, it is extremely subtle. The one time I it was perhaps more obvious, was when I watched as someone dove into the water. The splash, seemed to me to be someone off, but not by much.
    Is this something that is known? ( As far as I can tell, presets are all correct, and the fact that the "sound" film captured correctly, which seems to be a professionally recorded sports highlight film of 1947, leads me to believe all is as it should be. ). Again, there are times when I feel the players running down the field as just a little out of sync from where they should be.
    For completeness, using a canon HV30. The transfer was done by a professional outfit here in Seattle, with a stellar reputation. Presets for capture used are DV-NTSC either alone, or 32 kHz with the sound.
    Your thoughts would be appreciated.

    Do you have an opinion as to whether this will cause a problem later as I add >music etc to the sequence.
    It should be fine to do that.
    Your Sequence will be either 32 or 48 kHz, the audio coming in needs to match or you have to render.
    iTunes or QuickTime Pro can convert the audio to the required rate.
    Now...all the captures done using DV-NTSC ( not basic)
    The difference is to cater for different cameras rather than FCE Sequence setups.
    An Easy Setup of _DV-NTSC 32 kHz_ acts the same as _DV-NTSV Firewire Basic_ as far as FCE is concerned, you just have two options for FCE to talk to your camera for capture purposes. If one does not work correctly the other problably will.
    P.S. Maybe your new Canon can use the DV-NTSC Easy Setup correctly. I've been wondering why it's been taking them forever to bring it up to speed.
    Al

  • Question about folder move

    Dear all,
    When moving a folder to a place where a folder of the same name already exists, I am being asked whether I want to stop or replace and then the source folder deletes the contents of the destination folder.
    Is there a way to have the source folder not deleting the destination's folder contents ?
    E.g.:
    Folder 1/Folder 2/File 1
    Folder 3/Folder 2/File 2
    I then move Folder 2 from Folder 1 to Folder 3 and the result is:
    Folder 3/Folder 2/File 1
    Instead of
    Folder 3/Folder 2/File 1
    /File 2
    Thanks for your help,
    Laurent

    Hi Laurent,
    Welcome to Discussions! As Barney mentioned, the Finder doesn't function that way. In fact, it has thrown off many an OS 9 and Windows user in the past and takes some getting used to. However, if you're intending to specifically merge two folders, you can use the FileMerge utility which is installed as part of the (optional) Developer Tools package. You will find this on your Leopard DVD.
    There was a short article in MacWorld way back in 2006 regarding its usage. You'll find it just short of halfway down this page. I also thought this comment on LowEndMac gave a good representation of the issue if you care to read.
    Yang

  • Quick question about looping movie clips

    I'm a REAL Flash novice, and I'm trying to get a movie clip to loop 3 times, and then continue on.
    Here's the code I've written (I'm sure it's painful to see)
    stop();
    if (!loopCount) {
      var loopCount:Number = 0;
    loopCount++;
    if (loopcount < 3) {
    gotoAndPlay (1)
    if (loopCount = 3) {
      gotoAndPlay(363);
    Could someone help me out?
    Thanks,
    Brandon

    use double equal (==) to test for equality:
    stop();
    if (!loopCount) {
      var loopCount:Number = 0;
    loopCount++;
    if (loopcount < 3) {
    gotoAndPlay (1)
    if (loopCount == 3) {
      gotoAndPlay(363);

  • A question about fiting movie in the browser

    Hey!
    Im wondering how you get your movie file to cover the whole
    browser window, cause even when i have a pic covering the whole
    stage in flash it dosent cover the whole window in the browser.
    hope someone can help me with this prob.
    thx for you time

    When you first set up the New Flash movie, go to
    modify/document/demension
    properties. The settings here set up the size of your movie.
    When you publish, under the html tab, change your demensiont
    to 'percent'
    and make each 100%
    You'll have to experiment both of these settings.
    "korubana" <[email protected]> wrote in
    message
    news:egu5eg$nb1$[email protected]..
    > Hey!
    >
    > Im wondering how you get your movie file to cover the
    whole browser
    > window,
    > cause even when i have a pic covering the whole stage in
    flash it dosent
    > cover
    > the whole window in the browser.
    > hope someone can help me with this prob.
    >
    > thx for you time
    >
    >
    >

  • Question about HD movies on Apple TV

    When it says for a movie that's for sale through the iTunes Store "Also available in HD on Apple TV", does that mean you can buy the movie in HD through Apple TV or rent only? Through iTunes the movies that have this statement are only available for download in SD.
    Thanks.

    Usually means you can rent it on AppleTV
    Also may all depend on where you live - UK users cannot buy any HD films through iTunes or AppleTV as far as I'm aware, only some TV Shows.

  • Question about downloading movie from itunes

    If i purchase and download a movie from itunes, can i burn it to a dvd?(assuming i have a dvd burner) thx

    Sorry, no. The protection on the file will only allow you to burn a data disc for backup purposes. The protection prevents burning a DVD that can be played in any home DVD unit. This is required by the major motion picture studios & other copyright holders, not Apple.

  • Thinking of making the PC to Mac Move, questions about Photos App

    Helped my mother on her Mac a little bit and got the Photos App working for her. Now my turn, I have been a die hard Windows user, but I will never use a Windows phone. (Can never give up my iPhone) I have been taking on a huge family project of scanning old photos and dating them. Along with digital photos from early 2000’s. I have probably about 10,000 photos. (And 20,000 more to scan) In Windows I use photo gallery 2012 to organize and date etc. my photos. The thing I like about photo gallery is that when I make a change to a photo it edits the original. The dates and GPS I add to the photo are forever saved to the file in the metadata.
    I am very tempted to move to a Mac. (I have an iPhone & Apple TV, I would like to sync across all my devices) I never like iPhoto, the idea of a “non destructive” editing means I have to import and export photos. I think the new Photos app might work for me.
    A few questions:
    If I move all my directories/folders of my photos to a Mac, will I be able to use the Mac Photo App to edit the photos and the changes I make be saved directly to the photo file in the respective folder? (Or are the photos then saved in a new location after being edited in the Mac Photo App?)
    If I turn on the iCloud Photo Library (on the Mac & iPhone) I understand all my photos will be uploaded to the cloud and any changes made on either device will be seen on the other. My question, if I make changes to a photo that is in the iCloud will that change be made to the original photo file that is stored on the Mac? (Basically I want to have at all times a hard drive copy for my personal backup)
    With the iCloud Photo Library feature I understand that any new photo I take with my iPhone is uploaded to the iCloud. Are the photos taken on the iPhone physically downloaded to the Mac? I know I can view them on the Mac Photo app, but I want to know if they are downloaded to the Mac and if so where does it save the new photos?
    Thanks,
    Nick

    I do not use ICloud so someone else will need to answer those questions.  For question one though...  Photos, like Aperture and Iphoto before it, puts your photos in its own filing system.  You would need to export the photos to get them back out of Photos.  You can export them to anywhere in your mac file system.

  • HT201303 i have tried to perchase a movie and it keeps coming up with questions about my past thet i dont remember the answer to. how do i find out the answers? i have never come across these questions until now

    i have tried to perchase a movie and it keeps coming up with questions about my past thet i dont remember the answer to. how do i find out the answers? i have never come across these questions until now

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Question about setting Rows to "All" for defualt Interactive Report

    I have a default report with 2 user requirements that I have some questions about.
    1. The report in the data sould be 90 days old.
    2. The report show "All" rows.
    First to set the date I have this page process:
    apex_util.ir_clear(p_page_id => 2);
    apex_util.ir_filter(p_page_id=>2,
    p_report_column=>'REQUISITION_DATE',
    p_operator_abbr=>'GTE',
    p_filter_value=>SYSDATE - 90);
    I also set the rows to "All" and save the report to be the default. However I think when the "apex_util.ir_clear(p_page_id => 2)" is executed it clears someting and my report opens with rows set to "15".
    Any ideas on this or even a better way to do it?

    the following link may help...
    It says that the ir_clear "Clears any report filters including default filters"
    apex_util.ir_* documentation - where to find them?
    Gus..

  • Questions about movies in iTunes

    I like our new iPhone and still need the iPod Classic because of its nice large hard drive (which still doesn't hold all podcasts).
    I bought the Classic more for its ability to share pictures than to play music.
    Photo Stream's nice, but not for > 1,000 pictures... which for us is not for > 3-4 months ago.
    So having all pictures on the Classic helps us share with Mom and others, via the Classic, and better... via the TV screen (via the cables).
    To do this, I have, every few weeks, dragged and dropped the home camera movies from iPhoto into iTunes.
    When that happens, only the name comes across, no date information.
    So, to then have the movies in a good sort order (since we had more than one camera, sorting by file name doesn't work), I needed to manually name each one.
    Questions:
    1) How to get all deails about the movies, especially the date/time stamps, from iPhoto into iTunes?
    2) If we can't do that... is there a way to use automator to, after I highlight a movie or group of movies and press the macro keystrokes (does it support that??), read the number of the current highest-number movie (I rename to Video###) + 1?
    With either of these, my life would be easier getting all content onto the iPod Classic.
    On a related note...
    Some podcasts don't download in a format that works on the iPod.
    Is there a way, beyond the manual one I use, to convert the file formats automatically to the one that plays on iPods?
    Thanks,
    Mike

    havvg wrote:
    Hi there,
    I'm new to the part of buying movies in iTunes store and got some questions about it. I live in Cologne, Germany. iTunes settings are set to English (US).
    I found myself in the US Store but after all I can't buy items there, which is pretty annoying anyway and got forwarded to the German store, which is missing .. lots of content (e.g. Echelon Conspiracy).
    go to the iTunes store. click on "TV Sendungen" (tv shows), and find the entry +exclusive: unaired TV shows in english+ in the upper right corner.

  • Question about the FRONT ROW REMOTE

    ok i have 2 questions about this remote.... i ordered a Mac Book Pro and am waiting for it....
    Well the 1st question is that has anyone use Powerpoint or Keynote with this remote. That would be great for keeping me mobile while giving my speeches...
    2nd. Is the IR "eye" in the computere sensitive to other products. Maybe a cell photo that has the obex all locked up (thanks VERIZON)....
    any info would be great
    steve

    Sorry to disappoint you but I don't think it is that kind of a remote. It seems to be designed strictly for audio/video software. I have tried it with both Keynote and PowerPoint and all it did was effect iTunes that was running in the background.
    As far as other IR devices; I aimed all the IR remotes I have and tried different buttons. Nothing happened. But things like TV remotes usually have to be coded to the specific devices you wish to have them operate. If you purchase a Universal Remote for your TV, DVD, VCR, etc., you have to tell it what the brand and model are, usually from a list of codes that come with the remote.

Maybe you are looking for

  • How to use the alter statement in Execute

    Hi All, Need your help to solve this issue. i want the call the alter statement in procedure to load data to the external table. As per our requirement location will be given as a input parameter. Created procedure as shown below CREATE OR REPLACE PR

  • I charged my iPhone 5s all night and I woke up to a 27%. What's wrong with my iPhone 5s?

    I charged my iPhone 5s all night and I woke up to a 27%. What's wrong with my iPhone 5s?

  • How to run a form in debug OEXOEORD.fmb

    Hi all, I am New to Apps development. I wants to run the standard form "OEXOEORD.fmb" from client. Client details: 1.PC with forms6i installed in windows enviroment. 2.IE ver 6.0 SP1 ,128 bit. My accessing ur to apps: http://kauvery.india.co.in:8003/

  • Iphone 4S queries

    Q from an amauter 1) is microsoft office 2011 on mac book pro a iCloud-enabled app? 2) is airport card required for iCloud to wirelessly push all to apple device(s); specifically MacBook Pro?  3) wifi-hotspot: enable by using iphone as a modem for ma

  • Doing calculations on a table or group of tables

    Table A Name          Length REDBOX          45 GREENBOX     67 YELLOWBOX     89 PINKBOX          23 How would I write a query that would count the number of rows in the table which is this case is 4 (count* maybe) , add up the four values in length