Index Keys

Hi,
I have more then 400 index keys... how can I check which index keys is not functioning? I meant corrupted and need rebuild?
Any one have any kind of infor on this is most welcomed.
Thanks

You can use ANALYZE INDEX .. VALIDATE STRUCTURE.
You could create an Sql script, say val.sql, like this :
set pages 0
set feed off
spool valind.sql
select 'prompt '||owner||'.'||segment_name||chr(10)||'analyze index '||owner||'.'||segment_name||' validate structure;'
from dba_segments
where segment_type='INDEX'
order by owner,segment_name
spool off
spool valind
@valind
spool off
exitset ORACLE_SID to your SID, and execute it at OS prompt
sqlplus "/ as sysdba" @val
In valind.lst you'll find results.

Similar Messages

  • Unable to boot: Mac HD verify error - invalid index key

    Thank you in advance for your assistance. Please provide a detailed response. There is a lot I have to learn about computers.
    I allowed my macbook air mid-2013 os x 10.10.2 to update yesterday. I didn't look at what the update was (just saw the notification and clicked restart). It shut down, but did not restart. When I try to boot, the loading bar slows and tops at approx 35%, and the computer shuts off. I can boot in recovery mode. In disk utility, on the left side the first line is Macintosh HD. I can verify this without errors. The second line is also Macintosh HD written in lighter grey. I cannot interact with this until I click unlock and type in my password. After doing so, it is written in dark black, and I then have the option to verify disk. Doing so, I am given the follow error in the log:
    (in red) Invalid index key.
    (in red) Invalid record count.
    (in red) The volume Macintosh HD could not be verified completely.
    (in black) File system check exit code is 8.
    (in red) Error: This disk needs to be repaired. Click Repair Disk.
    A pop-up message says:
    Disk Utility stopped verifying "Macintosh HD"
    This disk needs to be repaired.
    I click an "ok" box, but the Repair Disk button is not available.
    At this point, I noticed the "mount" button is available. If I click this, it says:
    Mount Failed
    The disk "Macintosh HD" could not be mounted.
    Try running First Aid on the disk and then retry mounting.
    Of course, the only option in First Aid is Verify Disk, which I have already done.
    I also tried reinstalling OS X from safe mode, but the installation failed. I would ideally like to fix this without losing any data, but my computer is backed up so it won't be terrible if I have to start fresh. My SSD failed on my macbook air 2012, so I hope this isn't happening again.
    Thank you.

    Startup Issues - Resolve
    Startup Issues - Resolve (2)
    Startup Issues - Resolve (3)

  • Database growth following index key compression in Oracle 11g

    Hi,
    We have recently implemented index key compression in our sap R3 environments, but unexpectedly this has not resulted in any reduction of index growth rates.
    What I mean by this is that while the indexes have compressed on average 3 fold (over the entire DB), we are not seeing this with the DB growth going forward.
    ie We were experiencing ~15GB/month growth in our database prior to compression, but this figure doesnt seem to have changed much in the 2-3months that we have implemented in our production environments.
    Our trial with ACO compression seemed to yield reduction of table growth rates that corresponded to the compression ratio (ie table data growth rates dropped to a third after compression), but we havent seen this with index compression.
    Does anyone know if a rebuild with index key compression  will it compress any future records inserted into the tables once compression is enabled (as I assumed) or does it only compress whats there already?
    Cheers
    Theo

    Hello Theo,
    Does anyone know if a rebuild with index key compression will it compress any future records inserted into the tables once compression is enabled (as I assumed) or does it only compress whats there already?
    I wrote a blog about index key compression internals long time ago ([Oracle] Index key compression), but now i noticed that one important statement is missing. Yes future entries are compressed too - index key compression is a "live compression" feature.
    We were experiencing ~15GB/month growth in our database prior to compression, but this figure doesnt seem to have changed much in the 2-3months that we have implemented in our production environments.
    Do you mean that your DB size still increases ~15GB per month overall or just the index segments? Depending on the segment type growth - maybe indexes are only a small part of your system at all.
    If you have enabled compression and perform a reorg of them, you can run into one-time effects like 50/50 block splits due to fully packed blocks, etc. It also depends on the way the data is inserted/updated and which indexes are compressed.
    Regards
    Stefan

  • Maximum Number fields in a secondary index key

    Hello All,
    We created a secondary index on BSIS which we had to drop as system was hung up. My question is how many fileds SAP recommends in a secondary index key? Ours had 6 keys including mandt.
    Thanks

    Hi Sameer,
    There is no real specification in number of fields for an index as fas as i know. Definitely 6 fields is allowed for a secondary
    index.But it really matters with the number of secondary indices. So dont create too many secondary index for a single table.
    Try to use other optimization techniques in the programming instead of creating secondary index.
    //Kothand

  • Maximum index key length exceeded

    Hi,
    I am getting following error on executing this command in MS SQL server 2012-
    Command -
    alter table <table1_name> add constraint <constraint name> foreign key (<column1 name>) references <table2_name>(<column2_name>)
    Error -
    System Error: #1400025: Maximum index key length exceeded
    Warning: #1500562: Index will apply to all business objects
    Any suggestion on what I can check in this case?
    Thanks.

    alter table <table1_name> add constraint <constraint name> foreign key (<column1 name>) references <table2_name>(<column2_name>)
    Error -
    System Error: #1400025: Maximum index key length exceeded
    Warning: #1500562: Index will apply to all business objects
    Any suggestion on what I can check in this case?
    This is not a SQL Server error.  What tool are you using? If you are using SSMS, maybe a DDL trigger? 
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • "Invalid Index Key" Error - External HFS+ Drive

    So I've got this external drive (Seagate Freeagent Go) that I formated with the Journaled filesystem. All of a sudden yesterday I could not access the drive after restarting my computer and when I could no longer see it on my desktop I opened Disk Utility. DU was able to see the drive and the partition but couldn't mount it, and when I ran a Verify/Repair I got the following:
    Verify and Repair volume “Artimis”
    Checking Journaled HFS Plus volume.
    Checking Extents Overflow file.
    Checking Catalog file.
    Invalid index key
    Rebuilding Catalog B-tree.
    The volume Artimis could not be repaired.
    Error: Filesystem verify or repair failed.
    Can anyone help me with a potential fix? I've had no power surges and had just been using the drive with no issues the night before

    It's possible that Disk Warrior may be able to repair the drive's directory. If not you will have to reformat it.

  • How to extract full list of Index Key from DB

    Hi there,
    Is anybody can tell me how to extract a full list of index key from my database and how to rebuild index for that full list.
    Thanks alot.

    Probably a bad idea, but in SQLPlus, you would do something like
    SPOOL SHOOTMEINTHEFOOT.SQL
    SET HEADING OFF
    SET PAGESIZE 0
    SELECT 'ALTER INDEX '||owner||'.'||object_name||' REBUILD;'
      FROM DBA_OBJECTS
    WHERE object_type='INDEX'
       AND NOT owner IN ('SYS', 'SYSTEM', 'MDSYS', {list others that should not be messed with})
    SPOOL OFF

  • Invalid index key - hard drive/ OS problems

    After a power surge, I was unable to boot up (using 10.5.1). However, running repairing disk permissions solved this. I still have lots of issues with the hard drive itself though - mainly with files being reported as lost, incorrect reports of the hard drive being full, lag, crashes, etc. Tried Disk Utility and Fsck, neither have been able to repair the hard drive - both report an invalid index key or problems with the catalog file.
    Is Disk Warrior the only solution, or would a format and clean install possibly solve the problem? At the moment I can still access my hard drive, and a back-up then clean install is a much easier (and less costly) solution for me.
    Thank you!

    "Invalid index key" is a much more serious error than you're likely to actually have, since you can mount the hard disk and access files on it. If the Catalog's index key is invalid, the whole filesystem is basically trashed. It's far more likely that other components were damaged by the power surge.
    In my experience, the most common components to fail this way are the logic board and/or the RAM, which means a potentially expensive trip to your local Mac repair shop.
    Sometimes a computer that was damaged by a power surge behaves better if it's placed behind a line conditioner, but your mileage may vary. Most good surge protectors are also line conditioners.
    -:sigma.SB

  • Install failed invalid index key

    I tried to install Leopard and the install failed and then my MacBook Pro would not restart. It would give the start up tone, then would just sit. I tried the disk utility and it would not repair permissions or the disk but it would show some problems including an "invaild index key". I went to the Apple Store and bought DiskWarrior. I asked one of the genius's about the problem and he thought I would have to reformat my hard drive. I went home and ran DiskWarrior and it fixed everything. I then installed Leopard with no more problems.
    I hope this helps somebody else.

    Perseverance pays off. Great work. Sometimes even a "genius" is not correct, and once again, DiskWarrior comes through.
    You might mark this question as answered by yourself to put it to bed.
    Message was edited by: nerowolfe

  • WEP Index Key

    Does anybody know if Leopard supports WEP index keys other than 1? Airport only uses 1, but other wireless router companies allow 2,3, or 4. OS X 10.4 does not support 2, 3, or 4 with the internal Airport card. I'm forced to use a USB wireless card to connect at work because of this.

    There is no way to specify an "index key" for the Mac's Airport interface. On wireless routers that support multiple WEP keys, you must only use the first of the keys because that is the only one which is supported by the Mac's Airport interface.

  • Index.key

    I have been editing a Keynote presentation on my iPad. The edits upload to iCloud successfully. But on opening the presention on my iMac, it starts to open then I get the message "The document “index.key” could not be found. - The document has been moved or deleted."
    Any ideas what to do...
    Best regards
    Kevin

    This is a  Mac based discussion, the users here tend not to know too much about the mobile version of Keynote which is a completly different bit of software, from the one we use. Therefore we dont  reply to posts that are out with our knowledge base.
    Try the Keynote iOS or the iPad discussion.

  • Index Key Column Order

    I've several queries running on a table (for fetching data), to improve the performance of these queries, we've an Index in place, however, the query optimizer suggests upto 94% cost reduction possibility because of the order of the Index key columns in
    40% of the queries.
    I know that if I create an Index that matches the order of columns, the result will be better. However, I would like to know is there a possibility of changing order of columns in query itself so that it can use the existing Index? (I tried it but didn't
    make any difference).
    Also, I want to know how does SQL Server decides a key column order for any query?

    Reordering the predicates in your query will not help.
    If your query has exact matches on all columns in the index, then the order of the columns in the index key doesn't matter.
    For example:
    CREATE TABLE t
    (col1 char(5)
    ,col2 char(5)
    ,description varchar(200)
    CREATE INDEX ix ON t (col1, col2)
    SELECT description
    FROM t
    WHERE col1 = 'abc'
    AND col2 = 'def'
    However, if not all index key columns are filtered, or they are not filtered with equality, then the order does matter.
    For example:
    SELECT description
    FROM t
    WHERE col1 LIKE 'a%'
    AND col2 = 'def'
    In the query above, an index on (col2, col1) is more effective than an index on (col1, col2). If col1 is the leading column, the first match (and every next match) of "col2 = 'def'" has to be scanned within the results of "col1 LIKE 'a%'".
    If  col2 is the leading column, then no col2 keys with the unmatched values have to be skipped. In other words, fewer keys have to be scanned.
    Maybe your query selects a range of values of the index's leading column...
    Gert-Jan

  • Wireless Index Key Setting

    Hi,
    In order to login to my company wireless router, I need to set the index key. How to set the index key inside my iPhone wireless setting? I can't find it.
    Yap

    There is no way to specify an "index key" for the Mac's Airport interface. On wireless routers that support multiple WEP keys, you must only use the first of the keys because that is the only one which is supported by the Mac's Airport interface.

  • WEP Index Keys

    The WEP connection I use has rotating index keys (1,2,3, or 4). It seems that my iPhone will only connect when the index key is set at 1. I have not way to connect when the index key is set at either 2,3, or 4. Am I missing something on the iPhone setup, or is this an iPhone bug? Thanks.

    you can actually check for your wep/wpa key on the rtr's UI.if you have a  pc that is online hardwire to the rtr,open IE and on the URL type there just the numbers--192.168.1.1 and it will ask you for Username & password for the rtr.
    by default rtr's password is "admin".on the rtr's UI click "wireless tab" and on w/less subtab click on "wless security".
    if security mode is set to wep whatever you have on KEY 1 it's your wep key but if it's set to WPA whatever you have on WPA shared key box or PASSPHRASE box that is your WPA key.

  • Index/Key Insert Design Question

    Assume I am dealing with a customer object, and its properties which I'm attempting to insert into the database; one table called customer, with a key/index called id which is a unique number for each customer. As I understand it, this is a typical scenerio. Since the id has to be unique, when a customer inserts a new id, it has to be generated. Most of the world, to my knowlegde, does this with a trigger, ala Oracle. Unfortunately, it is my goal to do this without a trigger, allowing database independence with less setup time. This would then have to be done in code and not with the database. I can't think of, or know of anythying associated with JDBC that will directly help me; for example, getNewId(tablename).
    The best solution I can think of is to have another table holding the last id. My dao would read this id and calucate ids based on the id read, along the way keeping the last id in the table in sync.
    To me, this seems like a hack, but it works. Anybody know of a better non-trigger based and database independant solution? Anybody see the same issues.
    Thanks in advance,
    Brunky
    P.S. Pardom me if I cross post this. There are a couple of groups I would be very interested in hearing their views concerning this topic.

    Thanks for your response GurnB.
    My understanding is that sequence is in actuality a trigger, if anybody can confirm or dispell this, I'd like to know.
    Sequence and Max aren't what I'm looking for because they are Oracle specific. The goal here is to write something database independant; specifically, so developers could use, MS Access(excuse me while I hurl) or mysql( both have potential threading/blocking issues, I know), on their workstations, and run the production app using oracle, with minimal, or no, changes or configuration, except maybe the datasource.
    To do this in code, I was thinking providing a static(synchronized) class, maybe a stateless ejb and/or an entity bean; some type of service that would provide the number uniquely to all applications.
    Although, when I think about this solution, I crindge and feel all icky inside. Has anyone come up with or seen a less icky cross db solution?
    Thanks in advance,
    Brunky

Maybe you are looking for

  • Sharepoint: Syncing dates in excel columns with Project calendar.

    Hi I am two questions if you have some time to answer: First question: I am trying to create a detailed workflow for a Document App.  I basically want to sync dates from certain columns from a number of SharePoint excel spreadsheets with the calendar

  • Flashing file folder with question mark

    Hello, i have a mid-2010, 15"' MacBook Pro running Yosemite.  Also, about two months ago, I replaced the two, 2 GB memory modules with two 4GB modules. Just in the past week the laptop has been acting very sluggish; login won't complete; and today, w

  • Scrollbar for XML text area

    HI, A newbie here and on Flash, Sorry for my poor englih too, I'm French. My pb : I the attach file you will find forfaits.fla which is connected to xml/forfaits.xml. The pb is the UI Component SROLL BAR for the textarea for the img description doesn

  • I uninstalled CS3 DESIGN STANDARD

    !@general question - I uninstalled CS3 DESIGN STANDARD would like to reinstall or download CS3 Website advised to delete app from my hard drive and not use my disks to re-install how to download CS3 from Web site?

  • Can not add a space in a fillable form field

    I have a user that can not add a space in a fillable form field. They are using Adobe reader XI. Others can add the spaces needed to add data to the form fields. I have verified that Scroll log text is enabled. Any idea?