Can I select the data of the indexes?

Hi everybody,
Oracle storages indexes in index type segments as I know.
Is it possible to see the data of these index segments like a table or view?
So I would like to see not only the structue of it with:
select * from dba_segments SG where SG.segment_name = ’index_name’
I think something like this:
For example if I have a table named Table1.
(please don’t see the format of the rowid):
Rowid....field1
1_1.......AA
1_2.......AB
1_3.......BB
and I have an index on field1 named ndx_t1_f1.
Create index ndx_t1_f1 on Table1(field1);
I would like to see something like this
(if it is a simple Btree index like the ndx_t1_f1):
Select * from some_schema.???ndx_t1_f1???
Rowid..........ParentRowid..........ValuePrefix..........SolutionRowid
2_1
2_11............2_1.......................A
2_12............2_1.......................B
2_111..........2_11.....................AA......................1_1
2_112..........2_11.....................AB......................1_2
2_121..........2_12.....................BB......................1_3
And if i run:
select field1 from table1 where filed1 like 'B%'
oracle can use ndx_t1_f1 index like this:
2_1 -> 2_12 -> 2_121 -> BB
Yes, I know, there are some promlems with this imagine, but is it possible, or is it a silly question?
Thanx: lados.

Hi,
You asked: „Why do you want to do that?”
Well, I have a table T with fields F1, F2, F3 ...
If I run:
select F2, T.* from T where F1=12345;
the result is one record and the value of F2 is ‘A’.
But if I run:
select F2, F1 from T where F1=12345;
the result is one record and the value of F2 is ‘B’.
And this is the same record. Oppps!!!!!
I think the cause of the problem is the next:
I have an index on F1, F2 named ndx_T_F1_F2
In the second case: oracle uses only the index blocks and no table blocks, because all asked data exists in the index blocks.
In the first case: oracle uses the table blocks too, because I asked all field.
And I think there is a corrupted data on the index.
I created a new index on (F1,F2,F3), and I suggest to use this.
select /*+index(T, ndx_T_F1_F2_F3)*/ T.F2 from T where F1=12345;
the result is one record and the value of F2 is ‘A’.
But what is strange, oracle didn’t realise this inconsistent situation.
(It could be an earlier crash, I don’t know, I’m new at this workplace)
I think, the problem can solve with recreating the index ndx_T_F1_F2.
But it’s a very special situation for me, and I would like to see the corrupted data concretly with my eyes.
I think, that
Select * from some_schema.???ndx_t1_f1???
would I see like a view, but it would based on procedures and not tables.
It would be enough to me, because I only could see the data in the index.
But it is impossible as you wrote, isn’t it?
Thanx: lados.

Similar Messages

  • How can i select the next column instead of next row when press enter key

    I need to know how can i select the next column instead of next row when i press the enter key.By default ,when i press enter key the next row is selected and the column remain unchanged but I wants opposite that is the row should remain unchanged but column index will changed.
    Thanks to all.

    Well, the right arrow key will already move you to the next column, so the easiest way to do this is to modify the InputMap to have the Enter key invoke the same Action as the right arrow key.
    You can search the forum for my "Table Actions" (without the space) example that will show you how to do this.

  • How can I find the index from a specific container?

    How can I find the index from a specific container?
    For example, if I'm traversing through textframes like so (an example, not tested):
    var doc = app.activeDocument;
    var story = doc.pages[0].textFrames[0].parentStory;
    for (var i=0, l=story.textContainers.length; i<l; i++) {
         var textFrame = story.textContainers[i];
         if (textFrame.constructor.name == "TextFrame") {
              var lastPara = textFrame.paragraphs.lastItem();        //How can I find the index of this in relation to the story?
    How can I find the index of "lastPara" in relation to the story rather than the current container?
    I tried:
    var newPara = story.paragraphs[lastPara.index];
    but this results in an invalid object. . .
    alert(newPara.isValid);      //returns false

    The .index property is the character offset. So lastPara will begin at story.characters[lastPara.index].

  • I'm trying to install an update to itunes that downloaded but can't complete installation as its trying to install onto D: drive. I don't have a D drive and i'm not given option of selecting the drive to install on. How can i select the drive that i want

    I'm trying to install itunes but can't complete installation as its trying to install onto F: drive. I don't have a F drive and I'm not given option of selecting the drive to install on. How can I select the drive that i want to install on?

    Hi,
    How do you connect the printer to the XP machine ? If USB, you need to make that machine as a Print server. Please try this:
       http://techtips.salon.com/make-windows-computer-pr​int-server-11914.html
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Hi all, i'm new and facing a problem while creating a new file for Xcode. I can't select the box "with XIB for user interface" if the subclass is "UIViewController".this problem happen after i upgrade Xcode to 4.6 version.Appreciate for any help rendered.

    Hi all, i'm new to Mac book & Xcode. I'm learning and facing problems while creating a new file for Xcode. Before i upgrade the software, i have no issue to create simple steps in apps. After upgrade Xcode to 4.6 version, i'm facing lot's of issue eg.
    1) "the identity "iphone developer" doesn't match any valid certificate/ private key pair",
    2) can't select the box "with XIB for user interface" if the subclass is "UIViewController"..
    Appreciate for any help rendered.

    Mikko777 wrote:So what is the best?
    I wouldn't judge. I've been to Arch for a week, you know? But as said, it's VERY close to it.
    What I dislike after a week is makepkg not handling dependencies automatically (which would be overhead, so probably not appropriate).
    Mikko777 wrote:Also theres KDEmod for modular kde, dunno if its for 64 bits tho.
    Don't actually need that as said ... I see no real benefit of having that other than not beeing a KDE user or having Gentoos useflags.
    Mikko777 wrote:PS:You produce a lot of text and welcome smile
    Yeah. Wonder why I'm still employed? So do I ...

  • My phone is no wifi. I can not select the button. this situation has happened to me several times and I have spent lots of money on repairs. what can I do?

    my phone is no wifi. I can not select the button. this situation has happened to me several times and I have spent lots of money on repairs. what can I do?

    Bring your phone to Apple for evaluation and replacement.  It's broken.  There's no magic we can provide you.

  • I can´t remove win from my mac because I can´t select the remove option from boot camp assist. Can anybody help me?

    I can´t remove windows partition from my mac because I´can´t select the remove option from boot camp assit. Can any body help me?

    open disc utility choose the drive you need partitioning highlight the bootcamp partition and click on the minus sign at the bottom left.
    after this manually resize your drive by dragging the partition line all the way down and click on partition.

  • My MacBook Air lost mac os x. So I would like to reinstall mac os. But I can't select the disk to install mac os x. Only Recovery HD is shown and I can't select it. How can I reinstall my Mac os x.

    My MacBook Air lost mac os x. So I would like to reinstall mac os. But I can't select the disk to install mac os x. Only Recovery HD is shown and I can't select it. How can I reinstall my Mac os x? Thank you!

    you can download the mac os x recovery hd and run the setup to a flash drive using another mac computer running os x 10.7,(so that while installation the os x setup can varify your computer's serial no. and provide you the installation setup through internet)
    or the time machine backup(if you have)
    Now boot through the flash drive and follow the steps to install mac os x
    here is the link to download the recovery hd for flash drive
    http://support.apple.com/kb/DL1433
    see this before you download
    http://www.apple.com/macosx/recovery/

  • After placing a new text box in my document, typing new text, clicking away, then coming back to edit the text, I am unable to get my cursor to reappear within that text box. I can only select the box itself. I cannot select the text. Where is my cursor?

    After placing a new text box in my document, typing new text, clicking away, then coming back to edit the text, I am unable to get my cursor to reappear within that text box. I can only select the box itself. I cannot select the text. Where is my cursor?

    Even simpler than that.
    Clicking once in a text box selects it.
    Clicking once in a selected text box places the insertion point in the box.
    The clicks do not need to be close enough in time to be read as a double click.
    The same behaviour applies to table cells in Pages and in Numbers.
    Regards,
    Barry

  • I am doing a book.  Can I select the option of 13 photos on a page, put only one photo on the page in the middle box and expect the page to be printed with only that picture surrounded by white?

    I am doing a book.  Can I select the option of 13 photos on a page, put only one photo in the middle box and expect the rest of the page to be printed with only white aroind that photo in the middle?

    No
    All photos frames must contain photos or you can not order the book
    LN

  • How can I select the existing worksheet while using OLE2 to open the template workboo

    Source:
    application:=ole2.create_obj('Excel.Application');
    workbooks:=ole2.get_obj_property(application,'Workbooks');
    args := ole2.create_arglist;
    ole2.add_arg(args, 'c:\RptTemplate.xlt');
    workbook:=ole2.invoke_obj(workbooks,'Open',args);
    ole2.destroy_arglist(args);
    worksheets:=ole2.get_obj_property(application,'Worksheets');
    args := ole2.create_arglist;
    ole2.add_arg(args, 'Sheet1');      
    worksheet     :=ole2.invoke_obj(worksheets,'Select',args);
    ole2.destroy_arglist(args);
    Problem:
    1. While executing the above code, error -305500 occurs after executing "worksheet := ole2.invoke_obj(worksheets','Select',args)". How can I select the sheet i wanted in the template ??
    2. As I refer to the forms on-line document, it stated that the ole2 programmers documentation can provide all object types and methods that can be used with the OLE2. Does any link can provided to download the specified documentation ??

    The error is probably that your Worksheets variable is actually empty. Looking at your code I think the problem is that you try and get the value of the worksheets collection from the application then you should try and get it from the Workbooks object.

  • Can I select the inverse of a text selection?

    In Photoshop, when I make a selection I can then choose to select the inverse. I'd like to do a similar thing in InDesign CS4, but for text. i.e. make a selection of a certain amount of text, and when I choose "inverse" the remaining part of all text in that text frame (including overset text) is selected.
    Why do I want to do that? To get rid of overset text easily. I've been meaning to ask about this for years, and now the time has come.
    Sometimes I end up with overset text and I want to get rid of it. The overset text may extend to 50 pages or more. I thought the easiest way to get rid of the overset text would be to select the inverse of the text on the page that I want. Basically, I've got the red overset text symbol on a frame and I don't want any text in that frame other than what's on the page.
    I know how to break the thread, and rethread, and all that type of thing: the problem is, there are 50 pages of overset text and I can't select the overset text to delete it. Well, not easily.
    Am I in luck with this one?

    Eugene Tyson wrote:
    In CS5 - with the Story Editor open all the time the text appears rasterised when you type in the Story Editor.
    Eugene Tyson wrote:
    That's inside the story editor. I'm talking about on the layout.
    I'm not seeing it. MacBook Pro Snow Leopard.
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices

  • Concerning Epson Printer 4880: after changing the Ink from Photo Black to Matte Black I'm not getting the Epson Software in Photoshop and Lightroom. I can not select the paper medium, I don't see my profiles. What is wrong?

    Concerning Epson Printer 4880: after changing the Ink from Photo Black to Matte Black I'm not getting the Epson Software in Photoshop and Lightroom. I can not select the paper medium, I don't see my profiles. What is wrong?

    That is priceless!!!  Thanks!  I sure needed a good laugh after spending/wasting hours & days trying to either get my c6280 to give up on its Ink System Failure fixation, or find a decent replacement.  Unfortunately I need the Smart Web Printing feature that I guess only HP has, or I'd try a different brand. And now even HP has very few models with that available.
     My error msg is a little different from those previously stated, but close:  0xc18a0201.  Even tho there were frustrations with my c6280, I did like several of its unique features which are hard to find now under $100.  I hate how HP (& I suppose other brands also) are CONSTANTLY changing models & then of course ink cartridges.
    Oh heavens, I've had the c6280 a whopping 2 1/2 years!   I'm sure they want us poor slobs to have to buy a new one every year & a day!  To say nothing of the exorbitant prices for ink.  And now if this one is really dead in the water, I have SIX unused #02 ink cartridges which I cannot return---I got them in a combo pack, & for some reason have wound up with THREE lite pink & THREE lite blue cartridges, while having to buy extras of the other colors, that ran out before the others!!!   Yeah, & what's with that not being able to print in BLACK if a color runs out????
    Anyway I really loved your essay!   It's a classic!  And says it all!  I hate that we have to be 'slaves' to the electronic 'wonders'!!!

  • Can I select the language when installing iLife 11?

    I have an iLife 11 installation DVD bought in the U.S. Can I select the language in which iLife 11 should be installed in on my Mac?

    It will use the Language that your OS is set to.

  • CS3 - Place Word document: How can I select the current preset?

    Hi
    In my Plugin I like to place a word document into a text frame. To do this I want select a defined preset before.
    How can I do that?
    How can I select the current preset for the placement (import)?
    Thanks for the support
    Hans

    Hi,
    I had posted a similar query few days back to place excel file in text frame. And I found out that, it is not possible to specify formatting option for any of microsoft document when using Indesign SDK.
    But we can do this by running script.
    If you are able to specify the formatting option through script, write code to get script object & execute this script through Indesign SDK.
    I was able to specify formatting option, sheet number, range etc through this.
    Hope this helps.
    Rajani

  • Can I select the Storage type of Azure Backup from April, 1, 2015 ?

    Can I select the Storage type of Azure Backup from April 1, 2015 ?
    I want to select the Storage type for saving money and for purpose.
    "$10 per protected instance for each 500GB per month + Storage consumed".
    The price of Azure Backukp from April 1, 2015.
    I want to select the Storage type.
    LRS type = for client pc backup to saving money.
    GRS type = for critical server backup to protect against disaster.
    Regards,
    Yoshihiro Kawabata

    Short answer - yes, in the new pricing model, you can select LRS and GRS storage.  That being said, we are going to update this and other questions related to the pricing change with a list of FAQs hopefully by next week. Please bear with us
    Thanks
    Shreesh

Maybe you are looking for