Massive insert: problems with indexes (Version 10.2)

Hi, friends. I am a rookie in Oracle, so I ask us because I have a problem that I can't solve it,
(in fact it's a inherited problem)
I want to insert about 4.000.000 records in a table with around 10.000.000 records.
This table have many foreign keys, a primary key (on an index) and three indexes.
I try to insert the records with a cursor as this:
OPEN c_cursor;
FETCH c_cursor INTO c_record;
WHILE c_cursor%found LOOP
INSERT INTO table
(id,
VALUES (
FETCH c_cursorINTO INTO c_record;
END LOOP;
commit;
CLOSE c_cursor;
The operation takes very long time. So I want to disable/drop indexes at first of cursor and at the end,
unable-rebuild/create.
- But when I try disable the indexes with UNUSUABLES (alter index INDEX UNUSABLE), the database
said me:
ORA-01502: index 'INDEX' or partition of such index is in unusable state
It looks that I can't write while the INDEX (also is primary key) is unusable
- I can't remove the index DROP INDEX 'INDEX':
ORA-02429: cannot drop index used for enforcement of unique/primary key
- I can't disable the primary key:
ORA-02297: cannot disable constraint (INDEX) - dependencies exist
What would you want in this case?.
Thanks for all and regards.
Javi
Note: I can't do it with sqlldr because the insert requires a treatment (I do it with the cursor).
Thanks again.
Edited by: user12249099 on 12-abr-2010 7:04

Skvaish1, I think that I know less :-( => When I try disable, Oracle says me:
SQL> alter index PK_ACCACT_ID disable;
alter index PK_ACCACT_ID disable
ERROR at line 1:
ORA-02243: invalid ALTER INDEX or ALTER MATERIALIZED VIEW option
Why don't i disable the index whith that sentence?. :-O. It's very rare.
This is the DDL from the table and from the index:
CREATE TABLE table_name
(     "ID" NUMBER(10,0) NOT NULL ENABLE,
     CONSTRAINT index_name PRIMARY KEY ("ID")
USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 16777216 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE tablespace_name ENABLE,
CREATE UNIQUE INDEX index_name ON table_name ("ID")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
STORAGE(INITIAL 16777216 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE tablespace_name ;

Similar Messages

  • Problem with new version 4.3.2 apps not working " after update to the new version "

    Problem with new version 4.3.2 apps not working " after update to the new version "
    i was in 4.3.1 then i do the update , but now after update i face this problem , so what i Supposed to do ?!!

    Hi There
    Had the same problem as you. App would terminate when launched.
    Solution to working You Tube app:
    -Go to playstore
    - Uninstall app (it doesn't remove the app, only removes the update)
    - "Et Voila", working again.
    This doesn't correct the problem, it's just a workaround for you to be able to use youtube app again.
    Hope it helped.
    Best Regards

  • Reader 9 - problem with pdf version 1.0 and descenders

    2 big problems over here:
    * Reader9 will not properly open files created as pdf version 1.0/1.x
    all text is cut off about 2/3 of the way down, whether or not in fields.
    * Any pdf file version above 1.0created with any version of GhostScript does not have the previous issue, However - no descenders of any font are coming out.
    We do not have either problems with any version of Reader prior to 9

    Hi creamac,
    Welcome to communites
    Please install vmware tool and then on vmware task bar select connect or unplug usb drive . You
    will find that on right hand corner above to task bar of host machine  .
    "Nature always wears the colors of the spirit."

  • Problem with index in merged projects

    Dear Sir,
    I have a problem with index in the master project, I can only
    view the master project index keywords under the index tab. My
    master project contains 2 topics besides the other sub projects. I
    have created index for all sub projects indvidually and at the end
    I created the master project index.
    I made sure that the 'Binary Index' flag is ticked before
    compilation and stil the problem is on, do somebody know what could
    be the problem.

    Hi,
    Two points here.
    Firstly, you can duplicate SSL's. (Right click on an SSL in
    the projects sub-directory and select the duplicate layout option.
    This will give you a copy of the original SSL).
    I tend to have two SSL's - one is local and I use that every
    time I test compile the project when I'm working on it.
    The other is set to output to the master project. I use that
    once I'm happy with the sub-project and start working with the
    master project.
    Second point is to be aware of how RoboHelp treats the
    imported/merged .chm files from the sub projects.
    It imports them into the main project master directory - then
    when the master project is compiled it puts a copy of them into the
    master project SSL. However, if you re-compile it doesn't overwrite
    the files that are already in the master project SSL directory.
    This is why you have to be aware of where the sub project
    .chm files are going - you need to make sure that if you revise the
    sub projects, a fresh copy of the .chm files ends up in the output
    SSL directory of the master project.

  • Problems with Italian version of Dreamweaver [subject edited by moderator]

    The italian version of this software doesn't match with the configurations in the tutorials and it's impossible to follow the procedure to learn how to use it!! I've spent more than two hours just to put the "split working area" in vertical with no results. No way to open the same tools. And then, where are the assets files to download??? I think it could be a wonderful idea give us something easier to learn, simply having giving us the right correspondence between the software (open for the first time after the download) and the video tutorials…please, in this condition I cannot work and so how can I do?
    Ciao
    Paolo

    Dear Murray,
    unfortunately I can't go on with this program…it's impossible without the CSS file showed on the tutorial…I've also tried to find something on the web and I've tried to install Adobe Widget Browser but it doesn't work!
    So I've lost a lot of hours and I'm very frustrated and disappointed…and then the Dreamweaver CC version I've downloaded from Creative Cloud is different from the one in the tutorials, so I can follow all the indications without stop and start searching somewhere the things…
    In this condition it's impossible to learn how to use this software…it's an incredible waste of time…and paying for that!!
    Il giorno 01/mar/2015, alle ore 20:17, paolo <[email protected]> ha scritto:
    I'm using just CC…
    Il giorno 01/mar/2015, alle ore 16:46, MurraySummers <[email protected]> ha scritto:
    >>
    >> Problems with Italian version of Dreamweaver
    >> created by MurraySummers in Dreamweaver support forum - View the full discussion
    >> Different language versions of the same version of DW are the same. What I mean by that is that no matter which REGIONALIZED version you are using, the interface should be the same. So even though you say you are using DW CC, is it CC2014, or CC2014.1, or just CC that you are using? (you can tell by looking under HELP > About Dreamweaver)
    >>
    >> 
    >> On this page - How to make and style a web page in Dreamweaver | Adobe Dreamweaver CC tutorials - there is a link to download the sample files right under the "Browse Dreamweaver CC Tutorials".
    >>
    >> If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7240860#7240860 and clicking ‘Correct’ below the answer
    >> Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
    >> Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7240860#7240860
    >> To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"       
    >> Start a new discussion in Dreamweaver support forum by email or at Adobe Community
    >> For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.
    >

  • TS5376 I'm having problems with install version 11.1.4. If I uninstall and reinstall will I lose all my downloaded music?

    I'm having problems with install version 11.1.4. If I uninstall and reinstall will I lose all my downloaded music?

    Hi, so did I.  It seems to be a huge problem with everyone.  I opened a folder on desktop and called it target.  I copied all my songs into that folder.
    I uninstalled Itunes completely.  Rebooted.  Then I installed a fresh install.
    I then dragged all the songs back to Itunes and it worked.  I hope that helps. 
    I read an article the other day and apple is suppose to come out with some genius fix for this problem, it really seems to be global.
    Good luck,

  • Update/Insert Problem with Oracle Warehouse Builder

    Hello,
    i have update/insert problem with owb.
    Situation: I have a source-table called s_account and a target table called w_account_d. In the target table are already data which was filled trough the source table inserts. Now anyone make changes on data on the target table. This changes should now give further on the source table with an update operation. But exactly here is the problem i can´t map back the data to source because that will create a loop.
    My idea was to set a trigger but i can´t find this component in owb or is anywhere hidden?
    Also i have already seen properties as CDC or conditonal loading in the property inspector of the table, but i have no idea how it works.
    Give it other possibilities to modeling this case? or can anyone me explain how i can implement this eventually with CDC?
    I look forward for your replies :)

    Hi
    thanks for your answer. I follow your suggestion and have set the constraints of both tables into the database directly.Nevertheless it doesn´t work to begin. In the next step i found by right click on a table the listpoint "configure" - I goes to "unique key" --> creation method and set here follow options: Constraint State = ENABLE, Constraint Validation = Validate. That error message that appears before by the deployment disappears yet. Now i start the job to test if the insert/update process works right. Finally it seems to work - but not really.
    My Testscenario
    1. Load the data from source table about the staging area to data warehouse table: Check - it works!
    2. Change one data record in source table
    3. Load the source table with changed data record once again to staging area: Check - it works!
    4. Load new staging area table with the changed data record to data warehouse table: Check it works! BUT, BUT i can not recognize if it is insert or update operation, then under the design window by jobs execution windows is reported "rows selected 98", Rows inserted" is empty and "rows updated" is empty. So i think works not correct, then my opinion if it works correct it should show be "rows updated" 1.
    What can yet now still be wrong or forgotten? Any ideas?
    *By the way think not 98 rows there is not important if you make an update or insert which performance. It is an example table the right tables have million of records.*
    I look forward for your answers :)

  • Problem with multiple versions of documents being published with 001, 002, etc.

    I am using Contribute CS3. I am having a problem with multiple versions of documents being published on the sever with 001, 002, etc in the name. So that I end up with 2 or 3 versions of a document on the server. Does anyone know why / how Contribute  is doing this? Thanks for any help you can give.

    Your Web site administrator will need to update your key to allow you to delete files you are able to edit.

  • Problems with current version of AIR. Won't load and also can't uninstall

    I have recently purchased a new Mac and loaded the most recent version of AIR but now when I try to run it I keep getting the following message
    This application requires a version of Adobe AIR which cannot be found.
    Please download the latest version of the runtime from
    http://www.adobe.com/go/getair,
    or contact the application author for an updated version.
    I am also getting this message when I try and run the uninstaller so I can I can try and re-install.
    Does anyone have any suggestions?
    Thanks.

    I had AIR 3 on my MacBook Pro before I updated it to Lion. I use AIR 3 to run McMillan Study guides Master your CDCs. when I updated my mac to lion and tried to run the application the application couldn't find AIR 3 on my mac. So I uninstalled it and tried to install it again. when I tried to install it the installer program doesn't open. please help me this program is crucial for my upgrade training. 
    From: lisachao <[email protected]>
    To: A1C PD <[email protected]>
    Sent: Monday, October 24, 2011 12:35 PM
    Subject: Problems with current version of AIR. Won't load and also can't uninstall
    Re: Problems with current version of AIR. Won't load and also can't uninstall created by lisachao in Installation Issues - View the full discussion
    Is this the error you are getting when you are installing AIR 3.0?  Or is this the error you are getting after you've already installed AIR 3.0 and attempting to run AIR applications?  If it's the latter, which applications are you trying to run?  Can you please send us your logs so that we can investigate further?  Thanks!
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/3987820#3987820
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/3987820#3987820. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Installation Issues by email or at Adobe Forums
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Problem with latest version of firefox 15.0.1,whenever i download video from youtube or any other site using idm it shows .webm format instead of flv or mp4.

    problem with latest version of firefox 15.0.1,whenever i download video from youtube or any other site using idm it shows only .webm format to download instead of flv or mp4.previous version works fine.also other browsers work fine.

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    *http://kb.mozillazine.org/Cookies

  • HT3775 I'm using version 10.7.5 OSX. I can't play or use the normal AVI recently. Some problem with (codecs version incompatible with OSX) Please give me some help. I'm in Vietnam and to have a real place to have stuffs from Apple is ****-

    I'm using version 10.7.5 OSX. I can't play or use the normal AVI recently. Some problem with (codecs version incompatible with OSX) Please give me some help. I'm in Vietnam and to have a real place to have stuffs from Apple is ****…

    I would recommend that you download and install the excellent and Free "VLCPlayer for Mac", which reads many more types of files for video than Quicktime Player:
                 http://vlc-media-player.en.softonic.com/mac

  • Problems with latest version of Muse

    I'd like to report some problems with latest version of Muse. Its actually all related with scroll effect.
    1. In previous version I had a group of rectangles and when I added to them  motion (initial motion: 0 everywhere, final motion: 0 everywhere) they where sliding nicely down during scrolling my page, and it happened only in y line (horizontally). Now its moving also on the right and left, when I am changing size of window. Other thing is that in firefox this group of rectangles is pinned to bottom of window.
    2.  I have footer that I want to be always pinned to the bottom of window. The footer is a group of objects: rectangle + one png file with hyperlink, and one text with hyperlink - and of course it worked perfectly in previous version, but now finally when I export the page I have only the rectangle without hyperlink on the bottom of the page and the rest is missing.
    I hope I explained it clearly? I did my best :-)

    I have a same problem like no.2.
    Finally, I fixed it.
    First, You have to ungroup the footer objecs.
    Second, Group again that.
    Then export your site.
    Please try this!
    I hope this will be of some help.

  • Pages '09 problem with index

    Hi all,
    So this is my problem, i'm editing ePub to publish in the Apple iBooks Store, and do them with Pages, but i've big problems with index
    i'm using personal styles (as i change chapter colors, font size)
    in "old Pages" i could not do index as it was telling me i was not using none of the style in index (even with my proper styles markeds, now when i create index in the style box my styles doesn't show soo it can't create index)
    In Pages '09, i have no problem to create index, the problem is when i export to ePub it does not show it
    or when it was shoing it, in the normal index, i could also see it in the book as a normal page, and i want it only in the normal ebook index.
    any suggestions?
    thanks for your help
    (if answer can be from Spanish person in Spanish, beter, than beter, but English or french answer welcome too )
    have nice .... what ever it is for you.

    more or less i got it (after trying, and trying)...
    i used the template from apple: http://images.apple.com/support/pages/docs/ePub_Best_Practices_EN.zip
    then i make my peronal style using the color i whant for chapter title... this is ok
    but still hane the enoying  index as normal page....(pic 1) only what pic 2
    if i find a solution, will post it, if you find it, and also how to change the color of the index text (it is supposed to be change to black...)
    I'll apreciate the help.
    thanks again, and have nice day

  • Scrolling with the mouse wheel does not always work with 4.0? Never a problem with previsous versions.

    in firefox 4.0, at times the scrolling wheel will not work. It has never been a problem with previous versions, and always works in internet explorer.

    Hello Henry,
    Thanks for the hint!
    My mouse wheel is  working, but not in flash player...strange... It is a Microsoft Comfort  Mouse and I see there is already logged bug about that: https://bugs.adobe.com/jira/browse/FP-5145
    Anyway besides this bug, there is an additional issue I think, that the vertical layout does not calculate properly the vertical scroll position, when certain elements are excluded from the layout. I have described this additionally in the Jira.
    Regards,
    Dinko

  • Problem with index markers and importing MS Word 2007 files

    This was ugly in that it wasn't caught until after a book had been typeset and the index was being finalized. I'm now having to go back and manually insert a zillion index markers. Not fun.
    This was my first project since migrating from FM 7.1 to FM9.0.3.
    Source documents are Microsoft Word 2007. Am working in Microsoft Windows 7 64-bit.
    When the Word files were imported into FrameMaker, only SOME of the index markers were imported. The difference between those that were imported and those that weren't was seemingly random.
    I did some testing and found the problem and a solution.
    Looking at the source Word .docx file, and displaying hidden text shows two types of index markers:
    1. { XE "word to be indexed"}
    2. {xe "word to be indexed"}
    Note the difference in case and the extra space after the opening brace in #1. Markers of type 1 were imported fine. Markers of type 2 were stripped by the import process.
    The solution:
    Backsave the Word file to Word 2003 format (.doc) before importing into FrameMaker.
    I backsaved to Word 2003 and imported using both the "Microsoft Word" and "Microsoft Word 2007" filters and both filters imported correctly. It's only when trying to import a Word 2007 .docx file directly that things run amok.
    Grr...

    Thank you for posting your solution, Dan. It's cold comfort, but I've also ran into this issue in the past, almost certainly well before Word2003 though, probably as far back as Word2000 or earlier.
    In your testing, did you try saving as RTF to see if the markers were homogenized, by any chance? In my simple testing just now, Word itself recognized the index field correctly no matter whether I changed the field to "xe" or "XE", but FM's import of the .docx file format wouldn't recognize "xe", only "XE". But importing an RTF file handled both upper- and lower-case entries.
    Ah, yes, that's it -- saving the Word2007 file as RTF (with 2 fields, one caps, one lower-case) changed cap field to lower-case when the RTF is opened in Word again, so saving as RTF does homogenize the fields to lower-case. Is it possible that your file(s) were changed to or saved as RTF at any point in their life-cycle? I believe some older versions of Word were actually RTF under the hood, too -- if you do Save As in Word2007 you can scroll through the File Type entries and see "Word 97-2002 & 6.0/95 - RTF (*.doc)"  I believe some doc management systems change binaries to RTF too, or conversely some apps create RTF but they name the files as doc.
    So Word itself recognizes either lower- or upper-case, and FM's RTF import handles both, but not the .docx import.
    Sheila

Maybe you are looking for