My indices are breaking things

My indexes are getting corrupted somehow, and I need some
expert advice. I have several tables with identical
structure, which are created like this:
create or replace table &1(
     ssn          char(9) not null unique,
     name          varchar2(20) not null,
     address          varchar2(25),
     city          varchar2(15),
     state          char(2),
     zip_code     char(5),
     phone_number     varchar2(12)
tablespace &1;
I always try to have every table and related files under
the same name; for instance, a table named 'XYZ' will reside
on a tablespace called 'XYZ' (see &1 above), will have an
associated index 'XYZ, and the data used by sqlldr will be in
a file called 'xyz.dat' with a control file named 'xyz.ctl'
(see $CLIENT below).
The following bash script is used to truncate and reload my
tables periodically:
#!/bin/bash
if [ $# != 1 ]; then
     echo usage: load \<client-name\>
     exit 1
fi
CLIENT=$1
cd $HOME/oracle/
if [ ! -f $CLIENT.dat ]; then
     echo load\: unknown client \'$CLIENT\'
     exit 2
fi
sqlplus username/password @unindex $CLIENT
sqlplus username/password @truncate $CLIENT
sqlldr username/password errors=200000 \
     direct=true parallel=true control=$CLIENT
sqlplus username/password @newindex $CLIENT
exit 0
These are the issues:
When a table is created, the 'UNIQUE' constraint on the
primary key (SSN) forces an index to be created. This index
is making my life miserable. Is there any way to prevent
this index from being created (I will add it afterwards)?
Or is there at least a way to use a name of my choice for that
forced index?
The existence of that dawn index also prevents me from using
the more efficient 'direct' and 'parallel' SQL*Loader options.
One more time, this index (obviously needed for fast access
and SSN uniqueness) is in the way.
After fiddling around a little with the script above
(taking out te 'direct' and 'parallel'), my tables
seem to load properly, without any errors. However,
later on I get a message about the indexes being in a
bad or unusable state.
Thanks for any insight and comments.
-Ramon F. Herrera

I did some research on SQLLDR back in 12/2000, using both the direct & parallel options. At the time I wrote this, we were using Oracle 8.1.6, but the info should be true for 8.1.7, and may be true for 9i:
Oracle's SQL Loader has two major modes of loading data, and one of these two modes has two major options. The first mode is conventional-path. This mode would most closely resemble DB2's IMPORT. Basically, under the covers, this is a SQL INSERT. It's the slowest method, but would probably be faster than a pure SQL INSERT. Indexes and constraint checking are fully maintained.
The second mode is direct path, which can be run with or without a Parallel setting. Without the Parallel setting, indexes can be maintained, and PK/Unique/NULL constraints are enabled. This mode will check for foreign-key constraints, but if a foreign-key constraint is violated, the FK constraint is DISABLED! Meta information about the violations can be stored in an exception table. The rows themselves remain in the table, and are accessible by the user! We will need to be very careful if we try to implement this method. Oracle's fastest load mode (via SQL Loader), using Parallel setting, requires that data be added in APPEND mode. Generally, SQL Loader cannot handle the presence of indexes. An additional parameter option, SKIP_INDEX_MAINTENANCE=TRUE, can be added, but the index needs to be rebuilt after the load has completed. In my testing, the index rebuild worked fine when I did the SQL LOAD on an empty table. No timing info was given, but the ALTER INDEX...REBUILD ran in under five seconds. When I reran the load--using APPEND (with the same data), Oracle would not let me rebuild the index: (ORA-01452: cannot CREATE UNIQUE INDEX; duplicate keys found). I was also unable to drop the index: (ORA-02429: cannot drop index used for enforcement of unique/primary key). The only work around I have discovered so far is to drop the foreign key constraints, drop the PK constraint, delete from the table, re-add the PK constraint, then re-add the foreign key constraints. If the Fact tables are empty, the run time isnt too long, but you could spend a lot of time gathering the information to build your drop/delete/add script(s). If the Fact tables are already populated, the run time could also be extravagant. Basically, this means that while direct/parallel load is fine for the initial load, it has to be used with great caution on subsequent loads.

Similar Messages

  • What are the things we need to take care while moving from 11g to 12c.

    Dear All,
    One of my client having the application running on 11g and now he wants to move it on 12c.
    Now he is asking to me that, what are the things will not work or impacted due to this. Any code level changes, syntax, functions etc are working in 11g and now there is difference or not working in 12c. Could you please help me in this.
    Is there any document for all these thing. I searched on google but not able to find any specific doc.
    Thanks in advance.
    Regards,
    ganesh

    Gaurav_91 wrote:
    Hi,
    Moving from 11g to 12c will not impact anything.
    Database in 11g will now act as PDB's in 12c.
    And what makes you say so? What about the changes/fixes done in the optimizer that would alter the plans? What about if the client wants to use in-memory database option? And your statement that database in 11g will now act as PDB in 12c doesn't make any sense. What if the client is not willing to move to multitenancy? What about the scripts that are running in 11g without any issues and suddenly, will break in 12c  due to PDB's ? Do you have any technical reference to validate your claim that there won't be any impact ?
    Aman....

  • Images are cutted and youtube-videos are breaking down in ie7, ie8

    hi muse-experts,
    have the problem, that some images are cutted in ie7, ie8. the side is now working on businesscatalyst and another server.
    images are cutted here on bc: http://trabbitour.businesscatalyst.com/angebote.html , http://trabbitour.businesscatalyst.com/ostalgisches.html , http://trabbitour.businesscatalyst.com/deine-trabbitour.html
    the same on the other server: http://trabbitour.de/angebote.html , http://trabbitour.de/ostalgisches.html , http://trabbitour.de/deine-trabbitour.html
    the videos are breaking down, by starting to scroll the side: http://trabbitour.businesscatalyst.com/trab(b)i-was-is-n-das.html
    for ie adaption I inserted on all pages between html and head this line: <!— switch IE 7,8,9,10 to quirks mode —> but with or without this, the error is the same.
    maybe you have an idea, what I can do and what the problem is?
    thank you.

    It's very difficult to say without knowing more about your system. There are a number of possibilities. First, your 13" lacks a discrete GPU, so the CPU is doing the work that a GPU would have done as far as decoding video streams, etc. Each video stream will consume considerable resources from the machine, and if you have multiple things running with video streams being decoded (for example, a browser with video Flash or cumbersome animation and iMovie running at the same time), then that may be a factor.
    Additionally, it could be that you are memory constrained. You didn't post a picture of the process list from activity monitor or the memory usage stats, but you probably want to look and see what the memory and CPU usage is and who's consuming what. Some applications are pretty inefficient. For example, if you have iPhoto open and have thousands of images, the indexed metadata and thumbnails are all stored in RAM. iMovie pulls in clip thumbnail sets - (and worse, it has to do on-the-fly transcoding video assets from some cameras that don't encode the video using the parameters it expects to make indexing frames easier). Again, this would show up as periodic spikes in CPU activity for the app.
    You seem to have plenty of disk space, that's not likely to be a problem.
    Check if Time Machine is running. Time Machine introduces a performance impact, but it's exacerbated by the presence of frequently changed large files (e.g., you don't want Time Machine backing up your video projects while you are working on them).
    Lastly, you may consider checking the console for error messages. This might reveal background processes that might be bogging down the system, or things like filesystem/disk errors. If there are errors in the filesystem, when you access certain portions of the disk, the OS and applications can slow down or lock-up as a result.

  • Gnome settings do not take, and gnome-settings-manager breaks things.

    I just updated my Arch install. I hadn't done a full system upgrade since December (I think). The install went fine as far as I can tell. It broke my xorg.conf again, but it always does that, no biggie.
    My biggest fight seems to be with the gnome-settings-manager. I am now getting no icons in the menus, the mouse runs extremely slow and the only way to get it to run at a normal tracking speed is to use the KDE 'systemsettings' to change it (bizarre). Also, any desktop background that I assign is essentially covered over on startup with a background color and I cannot (using any settings program in the menus) actually put something there. I'm sure there's just some confusion over what is in control of the desktop and which config file is being used, but I cannot find any other mention of this issue in the forums, and forcefully re-installing gnome has yielded no help. I also moved all my '.gnome' dirs under home to some other location, and this made no difference.
    Some info:
    # pacman -Q gnome-applets gnome-desktop gnome-settings-daemon gnome-session
    gnome-applets 2.24.3.1-1
    gnome-desktop 2.24.3-1
    gnome-settings-daemon 2.24.1-1
    gnome-session 2.24.3-1
    When I run gnome-mouse-properties from a command line, I see this:
    Xlib: extension "Generic Event Extension" missing on display ":0.0".
    Xlib: extension "Generic Event Extension" missing on display ":0.0".
    Xlib: extension "Generic Event Extension" missing on display ":0.0".
    Xlib: extension "Generic Event Extension" missing on display ":0.0".
    Xlib: extension "Generic Event Extension" missing on display ":0.0".
    Xlib: extension "Generic Event Extension" missing on display ":0.0".
    Then, when I try to change the mouse acceleration:
    (gnome-mouse-properties:7165): capplet-common-WARNING **: Unable to find a default value for key for /desktop/gnome/peripherals/mouse/motion_acceleration.
    I'll assume it is an integer, but that may break things.
    Please be sure that the associated schema is installed
    (gnome-mouse-properties:7165): GConf-CRITICAL **: gconf_value_get_float: assertion `value->type == GCONF_VALUE_FLOAT' failed
    (gnome-mouse-properties:7165): GConf-CRITICAL **: gconf_value_get_float: assertion `value->type == GCONF_VALUE_FLOAT' failed
    Any ideas?

    Just to reinforce what byte said: I had similar problems and moving .gconf worked. If it doesn't, you can also try moving .gnome2. And then if you are versed in the edition of gnome settings files, you can search and repair the faulty ones. If not (like me)... start from scratch, delete the moved dir.
    It would be great if the gnome devs simplified the format of settings files (make it more like rc.conf!) and made it so they don't break so often. Maybe a system a la windows where previous versions of the registry get saved. Then upon breakage one could just bring up the last working version. Of course the best thing would be for the settings to not get corrupted in the first place.

  • Refresh DSV - why does it keep indicating it "Added" things, when its already been done? (repost from DW forum)

    Note to moderator(s):
    Please remove the other post
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/d4e30da8-5234-4373-963f-c165b99f8df2/bids-2008-refresh-dsv-why-does-it-keep-indicating-it-added-things-when-its-already-been-done?forum=sqldatawarehousing
    There were a number of changes done and earlier I had used the "refresh" button in the DSV view, and the updates were reflected in the DSV.  Now, however everything should be updates, yet when I hit refresh, the dialog still comes up and list
    all the changes it did earlier as "Added".  What is going on here?
    Now however, all my tables, dimensions, relations etc are setup with no errors and the cube builds, processes and deploys without any errors, yet if I refresh the DSV, I still get the dialog that displays all the things that it "sees" as "Added".
     This is even after closing down BIDS and re-opening.
    Also, I wonder if this has something to do this this thread, since its concerning the DSV getting "confused"
    https://social.msdn.microsoft.com/forums/sqlserver/en-US/33918238-cbe0-4017-bec9-0fe1bad15909/refresh-dsv-gives-net-error-column-argument-cannot-be-null

    Hi Shiftbit,
    According to your description, you need to know why the dialog still comes up and list all the changes it did earlier as "Added" when there is nothing changed in the data source view, right?
    I have tested it on my local environment. We use the sample project AdventureWorks, we didn't make any modification on the DSV and click the Refresh button, and all the changes were list on Refresh Data Source View dialog. So as per my understanding, this
    is default settings. If we click the button, it will list all the changes from the date when you create this project.
    If you have any concern about this behavior, you can submit a feedback at
    http://connect.microsoft.com/SQLServer/Feedback  Your feedback enables Microsoft to make software and services the best that they can be.
    Regards,
    Charlie Liao
    TechNet Community Support

  • IPhone 5s call signal strength is 3 bars and my calls are breaking up?

    I switched from an iPhone 4s to an iPhone 5s and now my iPhone signal strength is 3 bars and my calls are breaking up? what gives?
    I live on top of a hill in a major metropolitan city and my carrier has always been Verizon and my call signal strength has always been 5 bars and occassionally on a cloudy rainy day I had 4 bars. Since upgrading to the 5s my call signal strength at my home has never gone past 3 bars even when Wi-Fi is connected. When W-Fi is turned off and LTE service kicks in, the call signal strength flutters between 2-3 bars and if I am on a call, the person on the other end is telling me I am breaking up.  This has never happened with my iPhone 4, my iPhone 4s.  Is anyone else noticing signal problems?

    I am also having the same exact issue. I had an iPhone 4S with Sprint servince and always had at least 4 bars of service (4 dots after iOS7 upgrade) and I am now fluctuating between 1 and 2 dots on my new iPhone 5S. I am also having people I am on the phone with tell me that I sound like I'm in a tunnel and or that I am breaking up. I am also hearing the breakup of voice service even when speaking to someone on a landline. I took my first iPhone 5S back to the store and traded it in for a new one and am having the same exact problem with this new 5S phone. I was told by the salesman at the store that the problem was due to the 5S is using different towers than the 4S and that the new towers for the 5S were still being implemented. Do I know this to be true or necesarily believe this? No. Do I hope it's true or that Apple will come up with a fix for this problem in the very, very near future? Yes. Apple, what is going on with my service? It's obvious that it's happening to users from all of the major American networks.

  • What are the things taken care while using multiple suites?

    Hi all,
    I have created a plugin which sends the current file path to an url,
    its working fine with debugging in Visual studio 2005 and while it is added to the Adobe Illustrator its works only once.
    That is its sending the file path only for one file. While i tried for the second time its not working
    I am using following suits in my plugin
    AIDocumentSuite
    AIFilePathSuite
    AIActionManagerSuite
    AIUnicodeStringSuite
    AIURLSuite
    I am using the "AIURLSuite" for calling the url and it is calling the url multiple times while its used alone, and its only working once with the multiple suites.
    What are the things taken care while using multiple suites? , is it neccessary to release all variables and the suites after completing the task?
    Should they released in the same order in which they are acquired?
    Thanks in advance
    Sreejesh K V

    Hi,
    The problem was with the "sAIDocument->GetDocumentModified(mod);"
    The "GetDocumentModified" is crashing after  executing once, i just removed that statement , and now
    i am forcefully saving the document with out checking the modification status!
    Its working fine now!
    Could you please tell me how can we lock a plugin , or a particular function in a plugin.
    There is any specific standard to use the GetDocumentModified function?
    Thanks and Best Regards
    Sreejesh K V

  • What are the Things required for BI 7.0 Implementation project

    Hi Friends,
                      Can any one suggest me
    1.What are the Things required for BI 7.0 Implementation project?
    2.System Configurations & Hardware Components?
    3. Any additional steps...
    plz suggest me.
    Regards

    Hi lakshmi,
    http://csc-studentweb.lrc.edu/swp/Berg/articles/PM_2006_upgrade_NW2004s_Bjarne_Berg_v12.ppt#426,3,Why Upgrade u2013 end of supportu2026
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b8d163a7-0301-0010-d9b0-98f692ea3c60
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2e8e5288-0b01-0010-2ea8-bcd4df5084a7
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/472443f2-0c01-0010-20ab-fbd380d45881
    https://wiki.sdn.sap.com/wiki/x/JYk
    Check the following links.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
    check the following
    http://help.sap.com/bp_biv235/BI_EN/html/bw.htm
    business content
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/biw/g-i/how%20to%20co-pa%20extraction%203.0x
    https://websmp203.sap-ag.de/co
    http://help.sap.com/saphelp_nw04/helpdata/en/37/5fb13cd0500255e10000000a114084/frameset.htm

  • What are the things we need to install on client desktop?

    Hi all
    I will need to install Peoplesoft Enterprise. However, for my part I will need to try to install it into serveral clients but connect it to a database. Which means that the main database is not in my com but in another com, is it possible that I can still install in my computer without a database and connect my com to the main com database? And I will also like to know what are the things I will need to install or configure into my computer which has no database. Such as do I need to configure PIA, WebLogic Server and etc. Can anyone please help me. I really need help and assistant in doing it.
    Thanks

    The database has been installed and configured with a given Peopletools version, say 8.52.x. You have to have the same version onto your local machine.
    And since you want only third tier connection, no need to have any database client.
    PIA is a server process to make front end users be able to connection onto the application using their own browser.
    AppServer is a server process allowing people to connect in a 3tier mode, and which manage all the Peoplesoft thingy, exclusively to run on the server to make it available for all.
    Batch Server, same as AppServer, exclusively on server side to make job process running out there. Not on any client.
    Consequently, download the Peopletools (same version as the Peoplesoft database), configure the 3tier connectivity within the Configuration Manager and enjoy PSoft.
    Nicolas.

  • What are the things to check after full imp in 10g?

    Dear all,
    Source
    =======
    OS server ==> HP-UX
    Oracle version ==> Oracle 9.2.0.8
    DB Name ==> MSST
    DB total users ==> 320
    Full export in ==> /u02/export/Jan09.dmp
    Tablespaces ==> SC, SC_I, SA, SA_I, PP, PP_I, AC, AC_I, SD
    Destination
    ============
    OS server ==> HP-UX
    DB Name ==> CHDB
    Existg DB users ==> 20
    Oracle version ==> Oracle 10.2.0.4
    copied 9i dump file in ==> /u03/export
    Tablespaces created same as Oracle 9i i.e;
    Tablespaces ==> SC, SC_I, SA, SA_I, PP, PP_I, AC, AC_I, SD
    I had run full import on Destination server i.e; Oracle 10g & following is the command i used:
    imp system/pwd@conn_string file=/u03/export/Jan09.dmp log=/u03/export/Jan09_imp.log full=y ignore=y statistics=none
    Imported successfully with few errors like
    Now my question is
    ===================
    How to check everything is same/similar like Oracle 9i database ( source ), for example ( i used this technique ):
    What are the things to check after full imp in 10g?
    MSST_DB>SHOW USER
    MSST_DB>SA
    MSST_DB>select object_type, count(*) from user_objects group by objects;
    OBJECT_TYPE COUNT(*)
    DATABASE LINK 2
    FUNCTION 23
    INDEX 1795
    LOB 6
    PACKAGE 8
    PACKAGE BODY 8
    PROCEDURE 30
    SEQUENCE 67
    SYNONYM 60
    TABLE 644
    TRIGGER 3
    VIEW 20
    CHDB_DB>SHOW USER
    CHDB_DB>SA
    CHDB_DB>select object_type, count(*) from user_objects group by objects;
    OBJECT_TYPE COUNT(*)
    INDEX 1794
    PROCEDURE 30
    TABLE 644
    TRIGGER 3
    VIEW 20
    FUNCTION 23
    SYNONYM 60
    PACKAGE BODY 8
    SEQUENCE 67
    PACKAGE 8
    LOB 6

    What are the things to check after full imp in 10g?Only public database links which are in use by your these users which you export/import (Only if you did user level export/import and not DB level).
    If you log files does not show error during creation of any object, you don't need to double check any thing. Otherwise do on with the method which you mentioned by counting the objects.
    Or you can create a database link from source to destination and use a query with MINUS to find out if there is any object missing
    select object_name,object_type from user_objects
    MINUS
    select object_name,object_type from user_objects@destination_database;Salman

  • For the new iPhone 5s - is there not an option anymore to edit imessages without deleting the whole stream?  There are some things I need to keep within a stream and some not necessary, and it looks as like no editing within a conversation?

    For the new iPhone 5s - is there not an option anymore to edit imessages without deleting the whole stream?  There are some things I need to keep within a stream and some not necessary, and it looks as like no editing within a conversation?

    Now I also know about pulling the message to the left to see the time stamp.  Good to know, although I preferred it being right where I could see it without having to do a swipe or keystroke. 

  • Under Option Summary, the usage includes AUDIO, PHOTOS, APPS and OTHERS. What are the things included in OTHERS? It is using up my storage space.

    Under Option Summary, the usage includes AUDIO, PHOTOS, APPS and OTHERS. What are the things included in OTHERS? It is using up my storage space. Can someone please help?

    To add to Nick's comments, "Other" is typically approximately 1 gigabyte.  Occasionally for some users, it gets much (many times) bigger because they have some corrupt files.  If that's the case, it's best to restore the iPhone.
    Plug the iPhone into (current) iTunes, let it sync, then choose "Restore" on the right.  If restoring from the iPhone backup does not help, then restore (again) as new and then manaully sync the iPhone.

  • When I run an Utilities check on the HD. I always get a prompt-SUID System/Library/CoreS has been modified and will not be repaired. how can i access this to be repaired. Most files are corrupted by messages that they are one thing but should be another

    When I  run a system utilities check and select HD. i always get a prompt the the SUID System/Library/CoreS has been modified and will not be repaired. How can I access this file so that I may repair it? Left unrepaired . There are a lot of files that do not have the correct code. They are one thing but should be another

    Hello there, toestothenose.
    It seems that you may not have gotten the entire message into your thread here, but the following Knowledge Base article offers a good resource on which messages from Disk Utility's Repair Disk Permissions can be safely ignored:
    Mac OS X: Disk Utility's Repair Disk Permissions messages that you can safely ignore
    http://support.apple.com/kb/ts1448
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • What are the things to be tested in sap xi server before going to use th

    1) what are the things to be tested in sap xi server before going to impliment first interface?
    2)what are prerequisites to be configured in xi server before implementing first interface?
    ragards

    Hi Dhanush,
    >>>>><i>1) what are the things to be tested in sap xi server before going to implement first interface?</i>
    >>>>><i>2)what are prerequisites to be configured in xi server before implementing first interface?</i>
    For both of your question the answer would be
    1. Check all the Post installation configuration has been done properly, with the help of the following links
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/95d7d490-0301-0010-ce93-c58f9a3cde0b
    http://help.sap.com/bp_bpmv130/Documentation/Installation/Configuration_Guide_FP.pdf
    2. Make sure the latest BASIS Component have been imported into your design time environment
    After this you can start  developing your first interface
    Regards
    Ramesh P

  • What are the things we can do through BASIS?

    Hello everybody,
    I am newcomer in basis, I wish to know the some of the basic
    questions such as,
    what are the things we can do through basis?
    what are the basis components?
    How the basis components are actually works?
    Thanks & Regards,
    Rajesh

    Hello,
    Check these threads on BASIS:
    basis info...!
    New in SAP Basis
    XI Basis Samples
    Note:Points always encourage me to reply !!

Maybe you are looking for