Moving an IOT

How do you move an index organized table? I tried the following:
SQL> alter table WKSYS.SYS_IOT_OVER_27912 move tablespace sysaux;
alter table WKSYS.SYS_IOT_OVER_27912 move tablespace sysaux
ERROR at line 1:
ORA-25191: cannot reference overflow table of an index-organized table
[pre]
Then, after searching for a solution, I tried the following:
[pre]
SQL> alter table WKSYS.SYS_IOT_OVER_27796 move tablespace sysaux overflow tablespace sysaux;
alter table WKSYS.SYS_IOT_OVER_27796 move tablespace sysaux overflow tablespace sysaux
ERROR at line 1:
ORA-01735: invalid ALTER TABLE optionNo luck.
Next question:
Is there a way around this one or should I extract the DDL for the index and recreate it?
SQL> alter index CTXSYS.SYS_IOT_TOP_51146 rebuild tablespace sysaux;
alter index CTXSYS.SYS_IOT_TOP_51146 rebuild tablespace sysaux
ERROR at line 1:
ORA-28650: Primary index on an IOT cannot be rebuiltThanks

Hi,
The IOT overflow must be moved.
SQL> select table_name from dba_tables
2  where iot_type = 'IOT_OVERFLOW'
3  and tablespace_name = 'TS1';
TABLE_NAME
SYS_IOT_OVER_12214
SQL> select object_name, owner from dba_objects
2where object_id in
3  (select replace(table_name,'SYS_IOT_OVER_')
4  from dba_tables
5  where iot_type = 'IOT_OVERFLOW'
6  and tablespace_name = 'TS1');
OBJECT_NAME            OWNER
T1_IOT                 TEST
SQL> -- Move the overflow segment to another
tablespace.
SQL> alter table t1_iot
2  move
3  overflow tablespace users;
SQL> select table_name, tablespace_name, iot_type
2  from user_tables;
TABLE_NAME                    TABLESPACE_NAME
IOT_TYPE
SYS_IOT_OVER_12219            USERS
IOT_OVERFLOW
T1_IOT      IOT
Hi,
this method didn't work for me
select table_name from dba_tables 
  where iot_type = 'IOT_OVERFLOW' 
    and tablespace_name = 'EXAMPLE';
select object_name, owner from dba_objects 
where object_id in 
  (select replace(table_name,'SYS_IOT_OVER_') 
    from dba_tables 
      where iot_type = 'IOT_OVERFLOW' 
        and tablespace_name = 'EXAMPLE'); 
OBJECT_NAME                    OWNER
AQ$_ORDERS_QUEUETABLE_G        IX
AQ$_STREAMS_QUEUE_TABLE_G      IX
SQL> alter table ix.AQ$_ORDERS_QUEUETABLE_G    move    overflow tablespace users;
alter table ix.AQ$_ORDERS_QUEUETABLE_G    move    overflow tablespace users
ERROR at line 1:
ORA-08108: may not build or rebuild this type of index online
SQL> alter table ix.AQ$_STREAMS_QUEUE_TABLE_G    move    overflow tablespace users2;
alter table ix.AQ$_STREAMS_QUEUE_TABLE_G    move    overflow tablespace users2
ERROR at line 1:
ORA-08108: may not build or rebuild this type of index onlineAny help will be appreciated.

Similar Messages

  • Nologging to Logging & Moving IOT

    Hello,
    Oracle ver. 8.1.6 on Linux.
    Problem 1:
    When converting an IOT from "nologging" to "logging"
    Oracle didn't gave any error. But when i queried the dba_tables it still shows 'NOLOGGING'. However when i tried with ordinary( non-IOT) it works fine. How to go about it ?
    Problem 2:
    Will indexes ( including secondary indexes ) created on an IOT will reside along with the table ( like primary index )? When i tried moving the IOT from one tablespace to another only the primary indexes moved to the new tablepace. I am forced to rebuild the secondary indexes in the new tablespaces. Is there any method to take both ( primary & secondary ) to move to new tablespace in one command.
    Thanks in advance.
    Saji

    I see following objects in USER_SEGMENTS. All of them are related to IOT indexes. Around 512 entries.
    OBJECT_NAME
    SYS_IOT_TRNS_1082943
    SYS_IOT_TRNS_162982
    SYS_IOT_TRNS_1083001
    SYS_IOT_TRNS_163358
    SYS_IOT_TRNS_1083035
    SYS_IOT_TRNS_163546
    SYS_IOT_TRNS_1083065
    SYS_IOT_TRNS_163734
    SYS_IOT_TRNS_1083095
    SYS_IOT_TRNS_163922
    SYS_IOT_TRNS_1083125
    SYS_IOT_TRNS_164110
    SYS_IOT_TRNS_1083163
    SYS_IOT_TRNS_164298
    SYS_IOT_TRNS_1083193
    SYS_IOT_TRNS_164486
    If I issue -
    ALTER TABLE SYS_IOT_TRNS_1082943 MOVE TABLESPACE "DPIPE_SUMMARY_SEG_2"
    getting -
    ORA-28674: cannot reference transient index-organized table
    Please help. Thanks.

  • !0.5.2 Install is stuck

    I installed 2 update items (10.5.2 & Quicktime) on my mac mini...rebooted and screen is now stuck half way on 'Installing 2 items - writing package receipts' progress bar...hasn't moved an iota after 1 hour....any suggestions what to do next? (Hard restart? Wait some more?...anything?)

    X Lab Rat wrote:
    I installed 2 update items (10.5.2 & Quicktime) on my mac mini...rebooted and screen is now stuck half way on 'Installing 2 items - writing package receipts' progress bar...hasn't moved an iota after 1 hour....any suggestions what to do next? (Hard restart? Wait some more?...anything?)
    Do you have any control over the computer? Can you force quit anything?
    If not, your only recourse is a hard shutdown.
    If you can reboot, see what damage was done; you may need to perform a Safe boot and then reboot on the login screen (don't login).
    In the future, I recommend never updating anything along with a major system upgrade. I always do all the software updates one at a time, especially when two or more updates require a restart.
    I would also recommend using the full combo update to 10.5.2, even after you get the computer restarted. You can get it here:
    http://www.apple.com/downloads/macosx/apple/macosx_updates/macosx1052comboupdate .html

  • IOT move

    Hi,
    Db : 10.2.0.4
    How to move the IOT table?
    If it's partition/ partition index,how to move?
    ALTER TABLE gei.I_S_RL MOVE TABLESPACE GE3 STORAGE
    (INITIAL 131072 NEXT 131072 PCTINCREASE 0);
    ERROR at line 1:
    ORA-28660: Partitioned Index-Organized table may not be MOVEd as a whole
    Thanks & Regards,
    VN

    You have to move/rebuild a partitioned IOT one partition at a time.
    Issue a separate ALTER statement for each partition.

  • Moving files in LR4.1

    Why when moving several selected files, from 1 folder to another, all will be moved except the first selected file, LR says it can't move it.  You then have to move thje file on iot's own.  Is this a bug or am I doing somthing wrong.  When I select from the last file to the first file they all move OK.  Seems odd!
    Using a Windows 7 machine at 64bit with Quad AmD

    PS   Don't drag and drop if you want to move stuff!

  • Why Index-organized Table (IOT) is so slow during bulk/initial insert?

    Tested in 11.1.0.7.0 RAC on RHEL 5 with ASM and 16KB block size.
    Table is not wide: PK contains 4 columns and the leading 2 are compressed because they have relatively low cardinality; 2 other columns are included; the table contains another 4 audit columns; overflow table space defined.
    Created 2 tables, one is IOT, the other is a normal heap-organized table with "COMPRESS FOR ALL OPERATIONS". Both tables have been range partitioned by the first column into 8 partitions, and DOP is set to 8.
    Initial load volume is about 160M rows. Direct Path insert is used with parallel degree 8.
    After initial load, create PK for the 4 columns with the leading 2 compressed on the normal table. The IOT occupied about 7GB storage; the normal table occupied 9GB storage (avg_row_len = 80 bytes) and the PK occupied 5.8GB storage.
    The storage saving of IOT is significant, but it took about 60 minutes to load the IOT, while it only took 10 minutes to load the heap-organized table and then 6 minutes to create the PK. Overall, the bulk insert for IOT is about 4 times slower than the equivalent heap-organized table.
    I have ordered the 4 columns in PK for the best compression ratio (lower cardinality comes first) and only compress the most repetitive leading columns (this matches ORACLE's recommendation in index_stats after validate structure), partition is used to reduce contention, parallel degree is amble, /*+ append */ is used for insert, the ASM system is backed with high-end SAN with a lot of I/O bandwidth.
    So it seems that such table is good candidate for IOT and I've tried a few tricks to get the best out of IOT, but the insert performance is quite disappointing. Please advise me if I missed anything, or you have some tips to share.
    Thanks a lot.
    CREATE TABLE IOT_IS_SLOW
      GROUP_ID      NUMBER(2)                   NOT NULL,
      BATCH_ID      NUMBER(4)                  NOT NULL,
      KEY1              NUMBER(10)                    NOT NULL,
      KEY2              NUMBER(10)                NOT NULL,
      STATUS_ID         NUMBER(2)                   NOT NULL,
      VERSION           NUMBER(10),
      SRC_LAST_UPDATED      DATE,
      SRC_CREATION_DATE     DATE,
      DW_LAST_UPDATED   DATE,
      DW_CREATION_DATE  DATE,
      CONSTRAINT PK_IOT_IS_SLOW
      PRIMARY KEY (GROUP_ID, BATCH_ID, KEY1, KEY2)
    ORGANIZATION INDEX COMPRESS 2
    INCLUDING VERSION
    NOLOGGING
    PCTFREE 20
    OVERFLOW
    PARALLEL ( DEGREE 8 )
    PARTITION BY RANGE(GROUP_ID)
         PARTITION P01 VALUES LESS THAN (2),
         PARTITION P02 VALUES LESS THAN (3),
         PARTITION P03 VALUES LESS THAN (4),
         PARTITION P04 VALUES LESS THAN (5),
         PARTITION P05 VALUES LESS THAN (6),
         PARTITION P06 VALUES LESS THAN (7),
         PARTITION P07 VALUES LESS THAN (8),
         PARTITION P08 VALUES LESS THAN (MAXVALUE)
    );Even if /*+ APPEND */ is ignored for IOT, it is too slow, isn't it?

    David_Aldridge wrote:
    oftengo wrote:
    >
    Direct-path INSERT into a single partition of an index-organized table (IOT), or into a partitioned IOT with only one partition, will be done serially, even if the IOT was created in parallel mode or you specify the APPEND or APPEND_VALUES hint. However, direct-path INSERT operations into a partitioned IOT will honor parallel mode as long as the partition-extended name is not used and the IOT has more than one partition.
    >
    http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/statements_9014.htm
    Hmmm, that's very interesting. I'm still a bit cynical though -- in order for direct path to work on an index organized table by appending blocks I would think that some extra conditions would have to be satisfied:
    * the table would have to be empty, or the lowest-sorting row of the new data would have to be higher than the highest-sorting row of the existing data
    * the data would have to be sorted
    ... that sort of thing. Maybe I'm suffering a failure of imagination though.Could be. From a Tanel Poder post:
    >
    The “direct path loader” (KCBL) module is used for performing direct path IO in Oracle, such as direct path segment scans and reading/writing spilled over workareas in temporary tablespace. Direct path IO is used whenever you see “direct path read/write*” wait events reported in your session. This means that IOs aren’t done from/to buffer cache, but from/to PGA directly, bypassing the buffer cache.
    This KCBL module tries to dynamically scale up the number of asynch IO descriptors (AIO descriptors are the OS kernel structures, which keep track of asynch IO requests) to match the number of direct path IO slots a process uses. In other words, if the PGA workarea and/or spilled-over hash area in temp tablespace gets larger, Oracle also scales up the number of direct IO slots. Direct IO slots are PGA memory structures helping to do direct IO between files and PGA.
    >
    So I'm reading into this that somehow these temp segments handle it, perhaps because with parallelism you have to be able to deal anyway. I speculate the data is inserted past the high water mark, then any ordering issues left can be resolved before moving the high water mark(s). Maybe examining where segments wind up in the data files can show how this works.
    >
    I can't find anything in the documentation that speaks to this, so I wonder whether the docs are really talking about a form of conventional path parallel insert into an IOT and not true direct path inserts.
    One way to check, I think, would be to get the wait events for the insert and see whether the writes are direct.

  • IOT/insdexes and inserts

    hi,
    if we have an IOT or index made up of 100 extents, and all the data blocks in those extents are full, and then we insert a row that is supposed to go in the first data block of say the 5th extent, what happens? does all the data after the 5th extent have to be moved, or is the extent just slipped in between the 5th and 6th extent and just some data moved?
    thanks

    OracleGuy777 wrote:
    hi,
    if we have an IOT or index made up of 100 extents, and all the data blocks in those extents are full, and then we insert a row that is supposed to go in the first data block of say the 5th extent, what happens? does all the data after the 5th extent have to be moved, or is the extent just slipped in between the 5th and 6th extent and just some data moved?http://download.oracle.com/docs/cd/B28359_01/server.111/b28318/schema.htm#i23877
    IOT effectively is an index and needs to store stuff in primary key's index order. That means inserting and block splits if needed.

  • I moved iTunes music to my hard drive "D" and now it won't open!

    My hard drive "C" was getting somewhat full, so I decided to move my iTunes music files over to my second hard drive "D" (I have a dual hard drive on my computer). When I try and open iTunes, it says, "The folder 'iTunes' cannot be found or created, and is required. The default location for this folder is inside the 'Music' folder."
    I cannot open the "Music" folder, because when I do, it just opens up the same window I was already in when I tried to open it. The main reason I want to open iTunes is so I can reset my iPod because it is not working anymore. The scroll wheel, the hold button, the backlight, and it automatically sleep mode (after not touching it for a couple of minutes) is all that works. I cannot click anything.
    I have moved all of my iTunes folders back over to my "C" drive, but it still won't work. I also reinstalled iTunes in the "Music" folder, and it won't work. Basically nothing has worked!

    You might find this article useful, don't be put off by the title, the process is substantially similar moving to another internal drive: iLounge - Managing your iTunes Library on an External Hard Drive

  • Cannot send email from mail after moving to iCloud

    I have just moved to iCloud and now I cannot send email but can still receive email

    Hi Judy,
    Problem solved.
    Go into Mail/Acounts and delete you iCloud account.
    Now add a new account and type in your details for MobileMe/iCloud.
    It should now work. O noticed the default server name is different.
    Hope this helps.
    Yours,
    Charlie

  • Have found multiple iTunes Library.xml files. Moved Library to new Hard Drive and it needs to be completely rebuilt?

    Hello. I have a Mac Mini operating Mac OS X 10.7.2. I recently had to move my iTunes Library to a new hard drive. I followed the directions on how to move the library and refind everything yet when I do so what comes up is a mere skeleton of what I had. I have had to hunt down my purchased Apps, Music and Movies and re-add them to the library. I also noticed in doing this I have multiple iTunes Library.xml files ... shouldn't there only be one?  If so how do I clean this up without doing any accidental damage (i.e. how do I find the one that is being used and delete the rest?)?  If I delete the others is there any risk of losing purchased content? Lastly syncing my iPads has become a nightmare as I get the "This iPad is currently synced to another iTunes library" message. Obviously something

    It's hard for me to picture the exact situation. It sounds like you still have your library file on the internal but some files on the external, and maybe some on the internal, some of which are in the library and others not...  By re-adding things after consolidating it may have made things into a hodge-podge. Yes, that article you referenced says: "iTunes for Mac: Moving your iTunes Media folder"with Media Folder being the emphasis.  You probably should have just moved your whole iTunes folder.  Still, moving the media folder as instructed should not have messed up the library.  Did you make the mistake of starting up iTunes before the external drive had mounted fully and it then told you it couldn't find many files?  How you proceed to sort it out will depend upon how much time you want to spend and how important things such as ratings and playcount are to you.  I have not actually used the consolidate feature across different drives myself (and don't feel inclined to do so here to test ).
    If you are in the USA you can download some previous purhcases with iCloud, but not all.
    Here's a bit on what an iTunes folder should look like:
    What are the iTunes library files? - [http://support.apple.com/kb/HT1660]
    More on iTunes library files and what they do - [http://en.wikipedia.org/wiki/ITunes#Media_management]
    Library files with graphic and explanation of different iTunes versions - http://discussions.apple.com/message.jspa?messageID=13169517
    Once you get iTunes working off the external drive it should just put new media to the external when you add it.
    I have almost no experience with synching (I synched my neice's iPod, once, about 4 years ago).

  • Please help me open an iMovie trailer, moved to my iPad from my PC. I can view it on my iPad but am unable to import it into the app to edit it.

    I created a trailer on an iPad at a workshop to use in my classroom. I retrieved it from my PC and can view it on my iPad mini, but the iMovie app won't open it. I need to edit it. Desperately need help. I want to show it to my students tomorrow. Thanks! I've checked other threads here but can't find a solution.

    Hi Leica 42,
    I never said that a PP file moved to your ipad cannot be straight edited in keynote. Nor did I say that you needed a third party solution...
    My response was to offer an option (Jump) because like many others, you're having problems.
    Check out the app store and user Keynote reviews. There are more (by 1) 1 star ratings than 5 star ratings for the current version. There are 72 ratings of 3 or more stars while there are 78 ratings of one or two stars. In terms of statistical significance, the numbers are pretty equal, but I prefer to deal with an app that shows more top stars and fewer bottom stars. Some posters have been on here with your same question, so I'm thinking maybe, just perhaps, Keynote is not perfect. 
    Pro tech reviews vary, many given at the time it was released. Many do not point out that they actually used Keynote before the review. Google Keynote for more pro tech reviews where reviewers have actually used the app.
    http://www.techradar.com/us/reviews/pc-mac/software/business-and-finance-softwar e/apple-keynote-ipad-689424/review
    http://www.theverge.com/2013/10/29/5042880/apple-iwork-2013-refresh-complaints
    http://www.igeeksblog.com/ipad-presentation-apps/

  • SSRS 2008 Column Chart with Calculated Series (moving average) "formula error - there are not enough data points for the period" error

    I have a simple column chart grouping on 1 value on the category axis.  For simplicity's sake, we are plotting $ amounts grouping by Month on the category axis.  I right click on the data series and choose "Add calculated series...".  I choose moving average.  I want to move the average over at least 2 periods.
    When I run the report, I get the error "Formula error - there are not enough data points for the period".  The way the report is, I never have a guaranteed number of categories (there could be one or there could be 5).  When there is 2 or more, the chart renders fine, however, when there is only 1 value, instead of suppressing the moving average line, I get that error and the chart shows nothing.
    I don't think this is entirely acceptable for our end users.  At a minimum, I would think the moving average line would be suppressed instead of hiding the entire chart.  Does anyone know of any workarounds or do I have to enter another ms. connect bug/design consideration.
    Thank you,
    Dan

    I was having the same error while trying to plot a moving average across 7 days. The work around I found was rather simple.
    If you right click your report in the solution explorer and select "View Code" it will give you the underlying XML of the report. Find the entry for the value of your calculated series and enter a formula to dynamically create your periods.
    <ChartFormulaParameter Name="Period">
                      <Value>=IIf(Count(Fields!Calls.Value) >= 7 ,7, (Count(Fields!Calls.Value)))</Value>
    </ChartFormulaParameter>
    What I'm doing here is getting the row count of records returned in the chart. If the returned rows are greater than or equal to 7 (The amount of days I want the average) it will set the points to 7. If not, it will set the number to the amount of returned rows. So far this has worked great. I'm probably going to add more code to handle no records returned although in my case that shouldn't happen but, you never know.
    A side note:
    If you open the calculated series properties in the designer, you will notice the number of periods is set to "0". If you change this it will overwrite your custom formula in the XML.

  • Error Message - Moving a Folder

    Please help! I just tried to move a folder from my portable hard drive to my MacBook Pro desktop. Therefore, I used the following key combination: "Command + C" and "Option + Command + V". For some reason an error message appears, and I am not able to continue the moving process. I attached the error message as a photo to this question. The Trash actually seems to be completely empty. Nothing seems to be in the trash, and I am not able to remove the error message. When I click "OK" nothing happens. Additional I still can not move the actual file to my MacBook Pro desktop.
    Please let me know what to do. Thank you very much for your help.

    You can try and find the locked items and unlock them.
    Get info (CMD+i), under "General", there's a "locked" checkbox.
    Copy and paste is an odd way to move files, but if it works. I'd still rather drag and drop. But maybe that's showing my age (that was not an option until recently).

  • My ipod touch will no longer download new apps after i updated via apple store.How can i get the updates deleted or correct the problem moving forward?

    My ipod touch will no longer download new apps after I updated via apple store.It freezes now when I attempt to download and blanks the app off entirely . How can I reverse the updates or correct the problem moving forward?

    Basics from the manual are restart, reset, restore.
    Try those

  • AirPort Extreme extends my network and has worked well for three months. Now it can no longer extend the network and flashes Amber. I have restored to factory settings moved it closer to time capsule and rebooted the system without luck

    i have a blinking Amber on my extreme now and it cannot extend the network.  It was working fine and nothing has changed. I have restored to factory settings moved it to another room and rebooted the system without luck. Any suggestions

    What OS are you running?
    Please give me a screenshot of the current AE setup..
    I strongly recommend if you have issues.. take control of all the variables. Apple routers have too much auto..
    Here is a list that I use for setups when using Yosemite.. but it relates to any OS.
    You will need to factory reset again to get going.
    Factory reset universal
    Power off the AE.. ie pull the power cord or power off at the wall.. wait 10sec.. hold in the reset button.. be gentle.. power on again still holding in reset.. and keep holding it in for another 10sec. You may need some help as it is hard to both hold in reset and apply power. It will show success by rapidly blinking the front led. Release the reset.. and wait a couple of min for the AE to reset and come back with factory settings. If the front LED doesn’t blink rapidly you missed it and simply try again. The reset is fairly fragile in these.. press it so you feel it just click and no more.. I have seen people bend the lever or even break it. I use a toothpick as tool.
    Then redo the setup from the computer with Yosemite or whatever you are using.
    1. Use very short names.. NOT APPLE RECOMMENDED names. No spaces and pure alphanumerics.
    eg AEgen5 for basestation.
    Use AE24ghz and AE5ghz for wireless on each band, with fixed channels as this also seems to help stop the nonsense.
    2. Use all passwords that also comply but can be a bit longer. ie 8-20 characters mixed case and numbers.. no non-alphanumerics.
    3. Ensure the AE always takes the same IP address.. this is not a problem for router but if the AE is bridged you can have trouble.. Try using the static IP method or control it via the main router dhcp reservations.
    4. Check your share name on the computer/s is not changing.. make sure it also complies with the above.. short no spaces and pure alphanumeric..
    5. Make sure IPv6 is set to link-local only in the computer. For example wireless open the network preferences, wireless and advanced / TCP/IP.. and fix the IPv6. to link-local only.
    6. Set up the extend to the Express using 2.4ghz and then see how good or bad the connection is.. this is better in the old v5 utility but if you hover your mouse over where it shows connection an extra chunk of info comes up.
    I have specifically used 5ghz to make the extend.. because by testing it works better.. but do not be fooled.. this good connection is poor.. the RSSI.. which is difference signal .. at -79dbm is down the bottom of the stable.. and it drops out on a daily basis.. you want to see that signal around -60dbm at min.
    There is a lot more jiggery pokery you can try but the above is a good start.. if you find it still unreliable.. don't be surprised.

Maybe you are looking for

  • Webutil file transfer problem

    I have a problem, I am using webutil_file_transfer.AS_To_Client to copy a file in a directory, but when I want to delete the original file with webutil_file.delete_file I get the error that the file is in use and it remains blocked until I close the

  • How to send as iMessage instead of text?

    I just got the iphone 5c and i was trying to figure out how to send a text as an imessage (blue) instead of a sms (green). When i start a conversation with contacts that i KNOW have imessage turned on, it always sends as a text! How can I fix this? I

  • Retrieve the date a file was created in the background

    EDITED CONTENT---- Apologies all...I just realized there is a specific forum for this type of question.  I will post it there. Thanks Marilyn for point this out>>>>should have read it first as suggested.  /message/2572763#2572763 [original link is br

  • Report Painter - Display Report

    Dear Friends, While displaying/changing Z reports from GRR3 transaction, we are getting short dump. The dump does not occur for standard transactions. The error occuring is: The current application program detected a situation which really should not

  • How do I import Red Camera .r3d files?

    I downloaded the plug ins from RED, but i dont see where the import bin is located. Red has no documentation on how to use their plug-in that i could find. Any insight would be well appreciated.