Find all the segments that belong to a DOMAIN index (effective)

Hello

I'm going through several diagrams to a different tablespace (because some objects have been created in wrong tablespace).

Although this isn't a big deal index and ordinary table, I can't figure out how to find the segments that belong to a DOMAIN index to check whether they are in the good (or bad) tablespace.

A select * from dba_indexes where index_type = 'DOMAIN' gives me these indexes.

The only way to understand the corresponding segments for secondary objects seems to match the segment names. So if the index is the name of FOO_IDX, the segments would be DR$ FOO_IDX$ I, DR$ FOO_IDX$ K, DR$ FOO_IDX$ R and DR$ FOO_IDX$ N.

What I currently have, is the following statement, but it takes forever (> 5 minutes) to find the clues of the field on the 'bad' even for just a single user tablespace:

select *
from dba_indexes idx
where idx.owner = 'FOOBAR'
and idx.index_type = 'DOMAIN'
and exists (select 1 
            from dba_segments seg
            where regexp_replace(seg.segment_name, '^DR\$|\$[RIKN]$', '') = idx.index_name
              and seg.owner = idx.owner
              and seg.tablespace_name = 'WRONG_TBS'
              and seg.segment_type = 'TABLE');

I can't find a system view, linking a segment to the 'owner' index directly without going back to the distortion of the name.

It's my version of Oracle:

Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

PL/SQL Release 11.2.0.1.0 - Production

CORE 11.2.0.1.0 Production

AMT for Linux: Version 11.2.0.1.0 - Production

NLSRTL Version 11.2.0.1.0 - Production

Andrew, beautiful recoding of the SQL.

casorp, how you looked at the content of the all_secondary_objects?  I think that this point of view has the information you want, but I don't have any domain defined index I can think to use as a check.

- -

HTH - Mark D Powell.

Tags: Database

Similar Questions

  • How is possible to create a smart collection to find all the photos that are not belongs to any collection?

    Hello

    How is possible to create a Smart Collection to find all the photos are not belongs to any collection?

    "Yesterday I was importing a lot of photo when my camera battery died then I succeeded him and continued to import without thinking that the previous import collection literally means" previous import. "

    So I need to find a way to create a smart collection that will reveal all the photos that do not belong to any collection.

    I solved the problem with a workaround is creating a collection based on the date of the photo which worked well, but must be nice to have a more general collection to find all the photo that are not from the collections.

    Thanks in advance,

    Marco.

    Another way to do

    1. Select all photos in the catalog

    2 dismiss a color label

    3. go to collections and multi select all your collections (ctrl)

    4. select images and give them a color

    5. return to the catalogue

    6. filter by color label - No

  • query: find all the rows that are not separate

    Hi first of all I am not dba nor have much experience of fancy requests so be gentle

    Im trying to find all the lines that have a non-distincte value in column "C".
    Therefore, if the values in the column 'C' where:
    4
    54
    33
    4
    1
    9
    9

    the query returns 4 and 9

    I made this request:

    Select t.c
    table t
    where 1 <)
    Select count (c)
    table
    where c = t.c)

    but this looks like n ^ 2 complexity that is too long for the size of this table

    is there a better way?
    Thank you
    select *
      from (select t.*, count ( * ) over (partition by C) cnt
                    from table1 t)
     where cnt > 1
    
  • Try to find all THE objects that point to a column...

    Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE Production 11.2.0.3.0
    AMT for Solaris: 11.2.0.3.0 - Production Version
    NLSRTL Version 11.2.0.3.0 - Production



    I have several patterns, all that have tons of objects that point to a column in a table.
    I tried looking at v$ sqltext and v$ sqlarea, but it does not appear as expected.

    There is a view that I can watch that will show me all the objects that relate to a single column?

    my situation. Had to change the structure of data in this one column. Changed the default value of a Y a l I have packages, functions, triggers, etc... dealing with this single column. I make sure I have go through EACH of them and modify them to reflect the change in the column of the table. And still, it extends over several patterns that point to it.

    I can't forget all the objects. Is there any one place to find it?

    Thank you.

    Use the mode - DBA_DEPENDENCIES

    select * from dba_dependencies
    where type= 'TABLE'
    and name = '';
    

    Another gross way...

    select * from all_source
    where lower(text) like lower('%%')
    group by owner,name,type;
    

    But, this will not search in the views & MView queries.

    HTH
    Vanessa B.

    Published by: Vanessa B on October 15, 2012 23:09
    -added

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    
    
  • Query to find all the tasks that were running for a particular user

    Hi all

    When you see the 'history of resource' of a particular resource for a user, we can see all the tasks that have been completed for the user.

    I have a requirement which is, I need to display the same information via a database query.

    Any help in this regard will be highly appreciated.

    Kind regards.

    OSI table contains the final task instance data.  If you see a task rejected 5 times, it will be so only one entry of osi.

    Select usr.usr_login, obj.obj_name, mil.mil_name, sch.sch_status

    OSI, mil, CHS, orc, pkg, usr, obj

    where osi.mil_key = mil.mil_key

    and osi.sch_key = sch.sch_key

    and osi.orc_key = orc.orc_key

    and orc.usr_key = usr.usr_key

    and osi.pkg_key = pkg.pkg_key

    and pkg.obj_key = obj.obj_key

    and upper (usr.usr_login) = upper(:usr_login)

    and upper (obj.obj_name) = upper(:obj_name)

    You can provide the user login name and resources, and this will provide you with all their tasks given.

    -Kevin

  • User accounts - I created a user account, but now I can't seem to find all the files that were on the pc before I put it in place... what happened to them?

    I never had an aaount usser put on the pc and had a large number of backup files.  Then I set up a new user account and it auto saet as administrator, but all the files are not there.  There is an another user account on the pc and it is called comments but the files aren't there either.  Is there a way to recover the missing data?

    Hi ColleenBrown-Hickey,
     
    Setting up a new user account does not remove the files. Search if the file is present on the computer by using Windows Search.
     
    For more information, see:
  • Why can't I find all the sites that I have visited in my temporary internet files? It will display all the sites I visited. Now it doesn't and I can't open the strange things contained therein. I didn't remove the navigation or the private browsing.

    Ok... I want to see where were the other people on my computer.

    That would be the navigation history. Firefox > history-> show all history

    Firefox does not use temporary Internet files for anything except the Windows Media files.

    Type of topic: cache in the URL bar and press ENTER.

    Disk cache device = the list Cache entries

  • try to find all the people that I blocked

    I blocked a few people and I can't find where are my blocked people. Im trying to unlock. Help!

    Hey !
    When blocking people, you have the option to remove them too, if you removed them, just a search on Skype and re-add/unblock their similarly to all block, you must search for them and click on "Tap to establish new contacts" and you should see your blocked contacts here

    Let me know if it helped you !

  • Vista 32 Bit 2468871 KB and error code 643 - all the information that I find doesn't apply to Vista. Any suggestions?

    I'm trying to update KB 2468871 and sometimes it acts like it installs, but it is once again Important updates. I have tried many resolutions in these discussions, but nothing seems to solve the problem (perhaps because that relate to Windows 7). Someone at - it assistance for Vista SP2 Build 6002?

    I look for my Vista installation disc and can't find it. I finally is broken down and bought the Win 7 Pro Upgrade. If all goes well, that will solve all the questions that I have not only the one on this thread. Thanks for your help.

  • Where can I find all the drivers Win 7 for Satellite L40 - 14F

    Hi all
    Find all the drivers for L40 laptop model 14F for windows 7 OS? Is that someone has installed this OS? Is it possible to have some problems during installation? Thank you very much.

    Most of the new models is Win8 or Win10 models, they won't get Win7 drivers available.

  • How to find all the Subvi value changes to a control inside a cluster?

    I have a question I've had brewing for many years now, and as of today, this issue has become less philosophical for me now that I have a VI project with hundreds of screws in there to work through... If I have a cluster which is passed between/through several subVIs, is there a way to find all reads/writes to a particular control within this cluster? For example, if I use a global variable, I can find all the instances where this variable has been changed. Several times, a cluster is used to pass data instead of lots of global variables, but I know not anyway quickly find where specific parts of the latter are read or written in subVIs. Global variables becomes a headache when they are too many of them fly around, but I can't keep track of reads/writes in bunches without manually looking through a few screws hundreds that take in the cluster. Is there a function for this that I'm not aware of? I hope that this question/problem of logic. This may prompt a discussion of architecture, which I would be happy, because I will need to build projects of this scale in the future, but I think also completely stuck when the clusters are used (by me or others) to pass data autour. Thank you! John

    If you ungroup by name and bundle by name, just do a search for text to the name of the control.

  • How to find all the my post anywhere in the forum?

    Desktop HP Pavilion Elite HPE - 110 t... Operating system: Windows 7 Home Premium

    .

    Several months ago (maybe even a couple of years), I discovered that backup/restore are not created.  At this time I posted a question here.  Which lead to a very long series of back & suite assignments between myself & a answering machine (name?) & Finally I planned a daily task to create backup/restore points.  I saved the instructions into a Word document on my computer, but now I can't find them.

    .

    I just found out that there is still no restore point, even though the Task Scheduler shows that he ran this morning @ 02:00.

    .

    I just searched (I thought that all the forums here) for my username (jarhtmd) & only found 4 son, none of whom was what I was looking for.

    .

    How to find all the my post anywhere in the forum?

    Hello:

    Click on your user name to access your user name page.

    Then click recent posts by jarhtmd. Click on view all.

    Maybe it's the post you were talking about.

    http://h30434.www3.HP.com/T5/desktop-operating-systems/scheduling-system-protection-backup-restore-points/m-p/647911#M32431

    Paul

  • I want to see all the devices that are connected to my router

    I have a router E1200 and it is very good, however I have noticed that there are 12 devices connected to my router so infact it should be only 4 devices. I would like to see all the devices that are connected and disconnect those who do not belong to HELP!

    You use software to see all the devices that are supposed to be connected to your router? You can reset and start over with your router.  Make sure you have security enabled on it as WPA Personal. You can try a DHCP reservation so to ensure that devices that will have access to your router are those you have included on the list.

  • All the messages that I opened in Windows Mail disappears completely.

    Windows Mail problem

    All the messages that I opened in Windows Mail disappears completely.  I can't find in in box, deleted, spam or any where else.

    Unopened messages remain in a box.

    While in the Inbox go to view | Current view | Show all messages.  Messages can be get hidden.

    Steve

  • HP Pavilion n072sy-15 Notebook PC - where to find all the drivers for Windows XP and Windows 7

    Who knows where to find all the drivers for Windows XP and Windows 7 for HP Pavilion n072sy-15 Notebook PC?

    Hello:

    XP will not install or run on a PC with an Intel 8 series chipset, so you need not be concerned with finding drivers.

    Here is the link to a template that you can use the W7 x 64 bit drivers from.

    When you install the graphics drivers, first install the Intel HD graphics driver, reboot and then install the graphics driver nVidia.

    DO NOT USE ALL DOWNLOADS OF BIOS OR FIRMWARE FROM THIS LINK

    http://h10025.www1.HP.com/ewfrf/wc/softwareCategory?OS=4063&LC=en&cc=us&DLC=en&sw_lang=&product=6521374

Maybe you are looking for

  • Get new mail for multiple accounts at the same time &amp; displayed together.

    I have several email addresses and want to get new messages in all accounts e-mail with a single click.Also would like to have all THE messages from all accounts appear together. It would imitate the Mac Mail implementation that I used. I'd rather NO

  • Satellite L300 - wireless switch power switch does not work

    I installed XP on my L300 - 110 (PSLB0E), cause I don't like Vista. I installed all the drivers, and everything is quiet OK. But one thing little annoying me - wireless, switch, it does not work. So I can turn on Wi - Fi only by pressing Start-> conn

  • Convert the string array to array of numbers

    How to convert an array of strings (which are numbers) to an array of numbers so I can find the maximum value? I tried to use the code below in the excerpt, but my numbers come out too much.

  • Microsoft Corporation Lottery promotion,

    Hi dear, I got the following email Is this true? so thank you Microsoft Corporation Lottery promotion,The customer service.Your winner of the lot no.: HLS/LTY/2901Your victory reference: Lb/029/2910 NOTIFICATION OF THE OFFICIAL WINNER. We are pleased

  • Files and Settings Transfer duplicate directories/folders

    After upgrading to a hard drive more, tried to install XP from old hd install disc; used easy transfer and also some other recov ery program and ended up with duplicate files and directories source of confusion.  for example several folders My Docume