Check for index existing

I'm a DBA working with 3 application developers, they want to know how to check for index existing for certain column
in a table in their schema,
one friend told me , to check for index existing for certain column you have to query
the view dba_ind_columns so you have to be a sysdba user
but I don't want to grant the application developers the sysdba privilage
but my friend told me , to avoid grant sysdba to the application developers, they can query the view user_indexes in their schema, but after watching the view user_indexes ,
it gives me a lot of data but doesn't give me the COLUMN NAME
how can I solve this problem which is :
Allow the application developers to check for index existing for certain column in their schema without granting them sysdba privilage.

You can use that query:
select ai.index_name INDEX_NAME,
substr(ic.column_name, 1, 30) COLUMN, ic.column_position POSITION,
ic.table_name TABLE,
ai.tablespace_name TABLESPACE
from all_ind_columns ic, all_indexes ai
where ai.index_name = ic.index_name and ai.table_name = 'TABLE_NAME' and ai.table_owner='OWNER'

Similar Messages

  • Checking for an existing filename in a directory

    How does iFS know that a filename already existing in a directory? I need to capture the information when someone tries to copy a file to a directory before the file is stored in iFS. For example, if I copy a filename to a directory that already has the same filename using windows explorer, the window will pop up a confirm message before the file is written. How do I get the same information? I need to work on the existing file in the directory before allowing it to be overwritten. Any suggestion.
    Thanks,
    Sun

    Just a small improvement on the API call used to check for the existence of an object at a specified path: the Folder method checkExistenceOfPublicObjectByPath() is better than findPublicObjectByPath(), as the former will return true if there is an object occupying that namespace even if the user doesn't have permission to discover that object; findPublicObjectByPath() will return null in this situation.

  • Use thread to check for file exists. How?

    public class FileSearcher extends Thread
         String name = "Unknown";
         //RunFileSearcher rfs = new RunFileSearcher(name);
         //FileSearcher rfs = new FileSearcher(name);
         File f = new File();
         Thread t = new Thread(); // create  the thread
         t.start(); // start the thread running
         public void run(name)
              if( f.exists(name) )
                   System.out.println("*** File " + f + " has been created. ***");
              else
                   System.out.println("Searching for file " + f) ;
    }How do I use each thread to check for each file exists per sec??
    Please Help Thanks

    1) Why are you using Threads?
    2) It is preferrable to implement Runnable.
    3) This is all incredibly pointless (see point 1)

  • DDIC Dictionary check for indexes

    Hi,
    We have few indices that are created at Database level, but not at ABAP Dictionary level. What is the best way to check for consistency between DDIC dictionary and Database? to get the list of indices that are exiss in DB but not in ABAP?
    Any suggestions...
    Thanks,
    Kumar

    Kumar Subramaniam wrote:
    Hi,
    >
    > We have few indices that are created at Database level, but not at ABAP Dictionary level. What is the best way to check for consistency between DDIC dictionary and Database? to get the list of indices that are exiss in DB but not in ABAP?
    >
    > Any suggestions...
    >
    > Thanks,
    > Kumar
    Try to access transaction SE14.

  • Java: How can one check for index out of bound?

    simple while loop
    while (something [ i ] ==k)
    i+=1;
    document.write(save [ i ]);
    Thanks everyone :o)
    Edited by: bvc on Sep 21, 2007 3:33 PM
    Edited by: bvc on Sep 21, 2007 3:34 PM
    Edited by: bvc on Sep 21, 2007 3:34 PM

    you need to make sure that i is always less than the length of the array, so in your while loop, you should have that as one of your conditions
    while( i < something.length && something[i] == k )
      //blah blah
    }Also, please encapsulate your code in code tags.

  • Is there any tools can check for existed database ?

    hi all, is there any tools that can check for that existed database after inserted a database to Ms access??

    Then you'll open a connection and then do a Select from table to retrieve information. (and close afterwards)
    /Y 
    LabVIEW 8.2 - 2014
    "Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
    G# - Free award winning reference based OOP for LV

  • Any way to check for errors in an external table besides the log?

    For example if you have an external table where a column is defined with a CHAR(1) but when you run a SELECT on it, the mapping comes up with trying to put a CHAR(2) into that single space. The only way I'm aware to see if something is wrong is to check the .log file. Is there any other way to check for an error message or count?
    I'm mounting external tables and copying data over to a 'holding' table to be able to work on the data before it's moved into the actual production table with PL/SQ code. If the stored proc can determine what rows are bad or missing or even that there just are some rows with problems then hand back to the app, it would greatly improve things.
    Thanks.

    No other way than to check for the existance of a .bad file, then have a look see at the .log then?

  • I cannot access any of my old purchases. Movies, mainly. It has nothing to do with authorized accounts, I've checked for available downloads a thousands times over. They simply do not exist any longer.

    Well, this has been going on for a long time and I've had my absolute fill of it tonight.
    I have purchased a large collection of movies from iTunes that for mainly the reason that I have a new computer, my old films no longer exist as downloaded iTunes videos. That being said, I know I should be able to download purchased films as long as they're still on the iTunes store. I cannot download any of them. Tonight I decided to buy a collection that should have allowed me to download all three films (which I had previously owned, but got sick of trying to find a solution to why I cannot redownload them). So tonight, I purchase this collection of three films, downloads the frst one. Theres absolutely no sign of the second or third film and when I select Check for available purchases it says all available purchases have been downloaded.
    If this was true, 25+ movies would be available to download, least to say the two missing from tonights purchase (which I have purchased in the past as well).
    My account is authorized, everything is alright with my account and I have tried multiple suggestions and am completely lost. Apple support is giving me the run-around.
    What do I do?

    Nevermind. I finally found a third party answer and will post it for anyone else with my problem.
    >Go to the iTunes store.
    >Halfway down the page, right hand side, says account
    >Under account it says purchaced, select that
    >Wa-la

  • How to check for the sub folder in the document library Is already Exist using CSOM?

    Hi,
    My requirement is to create the  folder and sub folder in SharePoint document library. If already exist leave it or create the new folder and the subfolder in the Document library using client side object model
    I able to check for the parent folder.
    But cant able to check the subfolder in the document library.
    How to check for  the sub folder in the document library?
    Here is the code for the folder
    IsFolder alredy Exist.
    private
    string IsFolderExist(string InputFolderName)
    string retStatus = false.ToString();
    try
    ClientContext context =
    new ClientContext(Convert.ToString(ConfigurationManager.AppSettings["DocumentLibraryLink"]));
                context.Credentials =
    CredentialCache.DefaultCredentials;
    List list = context.Web.Lists.GetByTitle(Convert.ToString(ConfigurationManager.AppSettings["DocumentLibraryName"]));
    FieldCollection fields = list.Fields;
    CamlQuery camlQueryForItem =
    new CamlQuery();
                camlQueryForItem.ViewXml =
    string.Format(@"<View  Scope='RecursiveAll'>
    <Query>
                                            <Where>
    <Eq>
    <FieldRef Name='FileDirRef'/>
    <Value Type='Text'>{0}</Value>
                                                </Eq>
    </Where>
    </Query>
                                </View>",
    @"/sites/test/hcl/"
    + InputFolderName);
                Microsoft.SharePoint.Client.ListItemCollection listItems = list.GetItems(camlQueryForItem);
                context.Load(listItems);
                context.ExecuteQuery();
    if (listItems.Count > 0)
                    retStatus =
    true.ToString();
    else
                    retStatus =
    false.ToString();
    catch (Exception ex)
                retStatus =
    "X02";
    return retStatus;
    thanks
    Sundhar 

    Hi Sundhar,
    According to your description, you might want to check the existence of sub folder in a folder of a library using Client Object Model.
    Please take the code demo below for a try, it will check whether there is sub folder in a given folder:
    public static void createSubFolder(string siteUrl, string libName, string folderServerRelativeUrl)
    ClientContext clientContext = new ClientContext(siteUrl);
    List list = clientContext.Web.Lists.GetByTitle(libName);
    CamlQuery camlQuery = new CamlQuery();
    camlQuery.ViewXml =
    @"<View Scope='RecursiveAll'>
    <Query>
    <Where>
    <Eq>
    <FieldRef Name='FSObjType' />
    <Value Type='Integer'>1</Value>
    </Eq>
    </Where>
    </Query>
    </View>";
    //camlQuery.FolderServerRelativeUrl = "/Lib1/folder1";
    camlQuery.FolderServerRelativeUrl = folderServerRelativeUrl;
    ListItemCollection items = list.GetItems(camlQuery);
    clientContext.Load(items);
    clientContext.ExecuteQuery();
    Console.WriteLine(items.Count);
    if (0 == items.Count)
    //create sub folder here
    Best regards
    Patrick Liang
    TechNet Community Support

  • File Handling (Check for existing file)

    now my problems is that i need to have a code that upon a request checks for a file (in the home dir) and if the file exists reads the information and ouputs it. here is an example:
    check if file TEST.DATA exists?
    check approved TEST.DATA exists
    information outputed...
    if the file is missing i need to have an error message...
    PS. sorry if the question falls under "lame" but i am fairly new to java and i dont know the commands that well... thank you in advance!

    File.exists()
    Reading Text from a File
    Useful places to seek for information:
    - Java API documentation
    - The Java Tutorial
    - Code examples from Java developpers Almanac
    - Google
    - ...

  • How can I create index(uniqie index) for a existed table?

    Hi guys,
    I want to create a index for a existed table, it should be unique index. I did it using se11, "indexes," and select the radio button "unqiue index", of course the fields as well. But when I activate it, I get a waring and therefore can not create this index. But if I select radio button "non-uniqe index", it works.
    However I have to reate a unqiue index.
    How can I do it?
    Thanks in advance
    Regards,
    Liying

    HI Wang
    You can create your index via SE11, enter the table name, click change, choose Go To, Indexes. Here create your index with the key fields that you want. To use the index, your select statement WHERE clause, you must have the key fields of the index in the order that they appear in the index. The "optimizer" will choose the index depending on your fields of the WHERE clause.
    One thing to remember is that when you create indexes for tables, the update or insert of these tables may have a slower response then before, I for one have never seen a big problem as of yet.
    this Document may help u on primary and secondary indexes :
    http://jdc.joy.com/helpdata/EN/cf/21eb20446011d189700000e8322d00/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb47446011d189700000e8322d00/content.htm
    If it helps Reward the points
    Regards,
    Rk
    Message was edited by:
            Rk Pasupuleti

  • Checking for existing Rollback Segments

    Hello you all,
    Is there a possibility to check for existing rollback segments within procedures?
    Thanks
    Hans

    Hello
    If you just want to be able to find out what rollback segments there are, you can query dba_rollback_segs, which will give you all sorts of info about rollback segments.
    Is that what you need or is it more involved?
    David

  • Hello, I have already bought FIFA 14 unlock pack.But now I've installed on my iPod and make check for existing purshase and it happen ''The Apple ID you entered couldn't be found or your password was incorrect.'' What that means?

    Please help me

    What do you mean by ""make check for existing purchase and it happens (error message)."
    Just what are yo doing when yo get that error message?

  • Problems searching for not existing index entries

    Hi,
    we are creating a Java Fat Client Application with JDK 1.5.0_07 and compliance level 1.4. The GUI bases on the SWT libraries.
    The application ships with JavaHelp 2.0_02 (jh.jar).
    The helpset is dynamically merged.
    JavaHelp has problems e.g. during search for index entries, which does not exist. The JavaHelp Window does not react anymore. The rest of the application still works fine.
    Has someone encountered similar problems, found the reason and propably a solution?
    Thanks, Joerg.

    Hi Mikkel
    1) number attributes are only exposed in the complete search sample (search.jsp), not the others (usearch.jsp, tsearch.jsp, gsearch.jsp)
    2) Your understanding of the binary encoding is correct, except wk_queryexp package does not handle binary encoding. This is because that package
    is meant for 9.0.1 API, which only supports string attributes.
    In 9.0.2 and beyond, the encoding of number, date attributes is done in the query API layer in Java, using
    the Equals, GreaterThan, LessThan, Between query operators. Please take a look at search.jsp
    and see how they are used. The compile() method of the query operators will encode the values for you.
    Keep in mind that you should code your application to use the query API, as the encoding algorithm
    may change in the future.
    David

  • Credit check for existing Verizon customer

    Hello!  I am looking for some assistance.  I recently received an email from BB about a 2500 point Reward Zone bonus for buying a new phone w/ a two year plan.  I am currently on my mother-in-law's family plan but due for an upgrade.  After going through all the checkout steps, I was met with a request for a credit check for my mother-in-law.  This makes little sense to me, as we have been Verizon customers for years and have a total of four accounts with them under this plan.  If we are longstanding customers with Verizon, why does Best Buy claim Verizon needs to do a credit check?  I know one wouldn't be necessary if we were to go to an authorized Verizon dealer for this purchase.  So how can BB claim the check isn't for themselves when Verizon already has no issue with the account's credit?
    I would love the bonus points but I'm not about to dent my mom-in-law's credit with a credit check.  It sours me on ever going through Best Buy for any mobile service in the future.  If Verizon is fine with the account and the current credit status, why does BB force one on us while claiming it's for a company that alreayd has no issue with the account holder's credit score?

    All credit checks are done through the carrier. Verizon does periodically request updated an credit report, even when performing an upgrade. This same process would take place no matter where you get your phone -- Best Buy, Verizon corporate stores, or other third-party dealers.
    Dan K. | Mobile Specialty Stores
    Any opinions expressed in this post are those of
    the author and do not represent Best Buy Co., Inc.

Maybe you are looking for

  • Is it possible to make a DVD rom work on Sparc Ultra 5 running Solaris 2.6?

    I have been asked to try and get a DVD drive to work on a sparc ultra 5 running Solaris 2.6. Its been a while since I have done much with an ultra 5. My first reaction was no. However I thought that I should ask just in case it can be done. Its got t

  • "The HP Deskjet 3050 J610 series was not found." Can't scan with wireless printer to desktop. Help

    Our new wireless printer will not scan.  I have tried to scan from the computer and get the below error message and then I have activated the scan from printer and when I push the scan button on the printer, I get the same error message.  Thanks! Pro

  • OS X Server no longer allowing me to link images

    Hello All! Has anyone else experienced the recent issues post mavericks update that has resulted in you no longer being able to link images within your wiki pages? If so is there a way to get it work? At the moment I click on the image and the border

  • Novell File Upload extension not Installing

    I am trying to install the Novell File Upload extension so I can upload my PE file. It will not let me install the plugin in IE or Firefox. I have tried Firefox 22 and IE 8. I have tried from an XP, Win7 and 2003 server. I have tried all of the Activ

  • Sequencs settings for hi-res photos ?

    I have hi-res photos each is a different size. some are very large, 6000x3798, others not so large, 1920x1278.  My client wants HD 1920x1080.  what should my sequence settings be so as not to get something that looks anamorphic yet contain all the in