URGENT IMP INDEX Question

I have two index on table
a)unique index1(a1,a2)
b)index2(a1)
Some one suggested to me that index2 is useless ...He mean there is no need for index2...(index1 will take care of it ..)
Is it true ?
Please reply

The second index is definitely useless in case you have the first index.
If you have several querries that are something like:
select * from tab where a2=:vala2,
then an index on tab (a2) would be useful.
But, when you have a composite index (a1, a2), any qyery that has
- where a1=:vala1 and a2=:vala2 or
- where a1=:vala1 would
use that composite index.
A query that has only where a2=:vala2 would not use the (a1, a2) index.
Whenever building indexes you should have in mind the most frequent querries you will have in your application, or you'll just use up more disk space and slow down the inserts, updates and deletes.
Best of luck,
BD.

Similar Messages

  • PDF Output and Index question

    I know its a little unorthodox - but due to some security and
    search-spider constraints for a project I'm on, we need to post PDF
    documentation to our website rather than HTML Help or WebHelp.
    My question is this - is there a way when generating a PDF
    from RoboHelp, to have the index that was created in the project be
    converted to a PDF page(s) with links in it that when clicked will
    take the user to the location in the PDF where the word they
    clicked on in the index appears.
    Basically, I'm looking for the index in the PDF to function
    much the same as it would in HTML Help or WebHelp.

    The reason for needing the PDF is a bit convoluted, but I
    will try to explain it to the best of my ability.
    First, the content which the client is trying to post is
    actually not a "Help" system, but actually more of a document, a 50
    page guide to be exact.
    As for security, CHM files are out of the question as using
    them would require changes to our servers which our Information
    Security team refuses.
    As for the WebHelp format, as the document itself is part of
    a larger website, all of its content need to accessible to
    search-engine spiders. Since Web Help utilizes frames, and frames
    are a roadblock for spiders, the only way around this would be a
    decent amount of additional development to make each section of
    content within the Web Help directly accessible through some
    indexed page of links - which isn't practical for us with this
    document.
    Therefore we chose PDF, as it is indexible and the contents
    can be read by spiders. The reason the client would like to use
    RoboHelp to generate the PDF is in order to take advantage of the
    Content Managment features it provides.

  • Quick MySQL Indexing question

    Hi all,
    I know this is not strcitly a JDBC problem, but i was wodering if you have any ideas anyhow...
    I've implemented an Index on two of my columns in a table in my MySQL db. My question is, when i insert new rows into the database, is the index automatically updated? If not, how do I go about updating the Index?
    Many thanks,
    BBB

    I thought the database would manage that for you. AFAIK, you don't have to do anything. That's the way it is in Oracle. I thought that was true for all RDBMS. - MOD

  • Urgent help - interview question

    Guru,
    Please help with the above interview question .Help me an answer to the question below
    Have you dealt with scenarios that include multiple suppliers for the same item with minority compliance requirements?
    What SD experience and skills do you possess with respect to the following;
    What industry?
    What business model
    What portions were placed in scope?
    How was freight configured with respect to billing?
    X Retail as a cutomer  Repack sales to X Retail, What are our options to setup freight charges?
    Thanks in advance
    Regards,
    Andy

    Andy, read the rules of engagement. Do not Use "Urgent" in your subject line.
    In regards to your interview questions:
    Have you dealt with scenarios that include multiple suppliers for the same item with minority compliance requirements? Sounds like you should answer this "NO"
    What SD experience and skills do you possess with respect to the following;
    What industry? If you have any industry experience, answer as such, if not, be honest and say None
    What business model: Ditto
    What portions were placed in scope? If you know, say so, if not, just say NO
    How was freight configured with respect to billing? do you know ? then say so.
    X Retail as a cutomer Repack sales to X Retail, What are our options to setup freight charges? I'd answer that " I don't understand the question
    Good Luck !

  • Urgent , Two Query questions ...

    Hello everybody ,
          i have created a query in our production system . but i found some people can change my query setting (ex : my local fileds & selection fields ) , has any one can tell me how can i disable the 'Change' function in 'SQ01' ? many thanks !
    (i also use 'su24' to check the authorzation object in 'SQ01' , but i don't know which one can help me to solved this case)
          another question that is when i execute the query i found one of the field's sequence was wrong . but this query is used everyday & nobody has changed it . but when i use  sort this function to make it & it seems ok . therefore i think the problem is in the table index , right ? Has anyone can tell me how to check it ?
    Best Regards,
    Carlos

    hi Ramki
         the query is made by ourselves . the data is only fetched from the billing table (vbrk & vbak) . but today i found some filed's sequence was wrong & i don't know what cause this .
    another problem is that could you tell me how to disable 'Change' function in 'SQ01' ?
    many thanks ~
    Best Regards,
    Carlos

  • Bitmap Index Question

    I have a star schema database setup with a bunch of definition tables with 2-10 values in each. Most things I read say to use bitmap only in data warehousing, but in the same breath talk about tables exactly like I have them set up. So my question is, do bitmap indexes ever have a use outside of data warehouse? We don't do millions of transactions on hr, but it is an asset management front end run using php. So the main data tables is getting updated, inserted, and deleted during the day. I'd say on average we have about 30 users at any given time performing actions on the tables or pulling reports.
    On side note, but still related to indexes, is it better to have the indexes stored in different tablespace from the tables? If so, what is its effect?
    Thanks in advance.
    Setup:
    Oracle 11g running on Ubuntu 9.10 64bit

    ChaosAD wrote:
    I have a star schema database setup with a bunch of definition tables with 2-10 values in each. Most things I read say to use bitmap only in data warehousing, but in the same breath talk about tables exactly like I have them set up. So my question is, do bitmap indexes ever have a use outside of data warehouse? We don't do millions of transactions on hr, but it is an asset management front end run using php. So the main data tables is getting updated, inserted, and deleted during the day. I'd say on average we have about 30 users at any given time performing actions on the tables or pulling reports.
    Having STAR schema design for a transactional processing application seems bit strange (but what do I know...).
    Have you verified/validated that you definitely need bitmap indexes and B*Tree indexes will not serve the purpose? Just because it is a STAR schema does not necessarily mean one has to have bitmap indexes.
    If you expect 30 users (on average) to concurrently modify the data, I believe bitmap indexes is not the right choice as the DML actions will suffer from contention. Bitmap indexes negatively affect the concurrent multiple transactions.
    Rafi has answered your second question.

  • Panel Decoration Reference index Question

    I have a front panel that uses native LV controls so I avoid scaling objects with monitor resolution as I have not had the best results with this when using native LV controls and indicators.
    The front panel was laid out on a 1680 X 1050 widescreen monitor.  I want to use it on my laptop that uses 1280 X 1024.  I have the verticle taken care of by ensuring all the controls fit within th everticle area.  But I need help with the horizontal scrolling.
    I am trying to limit the left and right scrolling to not extend beyond the furthest most left decoration and the furthest right decoration.  I used PANEL - DECORATION property nodes to get access to the decoration bounds so I can set the Left, Top and Right Bottom of the FP.BOUNDS,
    But I have not had any luck getting this to limit the horizontal scrolling,  it still goes to far left and to far right.
    Another question is - How do i find out the index of a decoration when there are a lot of decorations on the front panel.
    Thanks
    Tim Crouse
    1:30 Seconds ARRRGHHH!!!! I want my popcorn NOW! Isn't there anything faster than a microwave!

     Tim,
    You can get the reference of a specific decoration by looking at the size and/or color. Using Width, Height, and Color, you should be able to pin down the exact decoration that you want a reference of. The attched picture just looks at Height.
    ...(I'm getting tired of the editor eating my posts)...
    Richard
    Attachments:
    specific decoration ref.gif ‏50 KB

  • CTXSRV and automatic indexing question.

    We are running portal 3.0 production on Solaris and have documents uploaded on a regular basis.
    We are seeing that new documents are being picked up by CTXSRV for text indexing, But the ATTRIBUTES associated with the documents don't seem to be indexed........
    To make the ATTRIBUTES searchable, we have to drop and recreate the intermedia indexes.
    Is this how this works? Is there another way to make the ATTRIBUTES get "picked up".
    Will CTX_SCHEDULE help here?
    Any thoughts / help appreciated.
    null

    I am new to this field and I had a similar problem. I wanted to start the ctxsrv process to be able to make the inserted data available immediately for viewing. My question is what exactly does this command do? How long does it normally take to execute? Is there a way to test if the command has successfully completed?
    Radhika
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by alan barker ([email protected]):
    We have pdf's stored in the Sun os that are added to on a regular basis, the names of which appear immediately in the database. In order to apply the 'changes' to the intermedia indexes, the indexes can be rebuilt or we choose to use the ctxsrv process which will automatically apply the changes.
    os prompt> ctxsys -user ctxsys/ctxsys -personality m -log ctx.log
    With the latter, fragmentation will occur if performing deletes on this data. We only insert.
    I hope this helps!<HR></BLOCKQUOTE>
    null

  • Directory Server 5.2patch4 index question

    Hello,
    Hopefully just a really simple question about indexes. After creating indexes from the console, do you have to restart the ldap server for it to actually start using the indexes. The reason I ask, is that we have setup a box with ldapclient to authenticate user against an ldap server. We ran the idsconfig and such and we can authenticate, but it is really slow. We have some share directories setup where there are say 5-20 members in groups and when we do an ls -la on the directory it takes about 5 seconds for each directory listing to show up and the ldap server cpu utilization jumps. We also see an unidex search error in the ldap error log file. Also when I do an ldaplist group it is very slow. We have about 25000 groups.
    Any help would be greatly apprecidated.
    Thanks,
    Gary

    When you have created new indexes with the Console (or via CLI), you MUST build / rebuild indexes. It is not because you've configured an index that the data in the Directory has been indexed properly.
    The separation between configuring an index and building it allows you to do the later when it has little impact to client application.
    No server restart is needed.
    The Directory Server Administration Manual, Managing Indexes chapter covers this topic.
    Regards,
    Ludovic.

  • Help required in Index Question

    Hi,
    This is an interview question that i faced.
    Theres a table Statistics having more than 300 columns. It has normal indexes on say five columns col1, col2, col3, col4, col5.
    Queries involving the first four columns give excellent performance but the query involving col5 gives poor performance.
    COL5 has around 5 million data and 1 normal index ix created on it and theres just one value in it say 'STATS'.(He said the query can be simple select queries or join queries, the queries may select all the rows of few rows may be 5%, 10% etc).
    The question was what could be the possible reason?
    I was unable to answer it but i think BITMAP index might be useful in this scenario.
    Any help or suggestions will be highly appreciated.

    Is it a good idea to creat a normal index on a column that have just one value as 'STATS' and the total no of rows is more than 5 million??
    No
    See the I/O
    SQL> CREATE TABLE bitmap_table AS SELECT ROWNUM rn FROM all_objects
      2  /
    Table created.
    SQL> ALTER TABLE bitmap_table ADD (status VARCHAR2(1))
      2  /
    Table altered.
    SQL> SELECT COUNT(*) FROM bitmap_table
      2  /
    COUNT(*)
        64177
    SQL> UPDATE bitmap_table SET status='Y'
      2  /
    64177 rows updated.
    SQL> COMMIT
      2  /
    Commit complete.
    SQL> CREATE TABLE btree_table AS SELECT * FROM bitmap_table
      2  /
    Table created.
    SQL> CREATE BITMAP INDEX bitmap_table_idx ON bitmap_table (status)
      2  /
    Index created.
    SQL> CREATE INDEX btree_table_idx ON btree_table (status)
      2  /
    Index created.
    SQL> EXEC DBMS_STATS.GATHER_TABLE_STATS('SCOTT','BITMAP_TABLE')
    PL/SQL procedure successfully completed.
    SQL> EXEC DBMS_STATS.GATHER_INDEX_STATS('SCOTT','BITMAP_TABLE_IDX')
    PL/SQL procedure successfully completed.
    SQL> EXEC DBMS_STATS.GATHER_TABLE_STATS('SCOTT','BTREE_TABLE')
    PL/SQL procedure successfully completed.
    SQL> EXEC DBMS_STATS.GATHER_INDEX_STATS('SCOTT','BTREE_TABLE_IDX')
    PL/SQL procedure successfully completed.
    SQL> SET AUTOTRACE TRACEONLY
    SQL> SELECT status
      2    FROM bitmap_table
      3   WHERE status='Y'
      4  /
    64177 rows selected.
    Execution Plan
       0      SELECT STATEMENT Optimizer=ALL_ROWS (Cost=2 Card=64177 Bytes
              =128354)
       1    0   BITMAP CONVERSION (TO ROWIDS) (Cost=2 Card=64177 Bytes=128
              354)
       2    1     BITMAP INDEX (FAST FULL SCAN) OF 'BITMAP_TABLE_IDX' (IND
              EX (BITMAP))
    Statistics
            171  recursive calls
              0  db block gets
             31  consistent gets
              0  physical reads
              0  redo size
         804546  bytes sent via SQL*Net to client
         475281  bytes received via SQL*Net from client
           4280  SQL*Net roundtrips to/from client
              4  sorts (memory)
              0  sorts (disk)
          64177  rows processed
    SQL> DROP INDEX BITMAP_TABLE_IDX
      2  /
    Index dropped.
    SQL> EXEC DBMS_STATS.GATHER_TABLE_STATS('SCOTT','BITMAP_TABLE')
    PL/SQL procedure successfully completed.
    SQL> SET AUTOTRACE TRACEONLY
    SQL> SELECT status
      2    FROM bitmap_table
      3   WHERE status='Y'
      4  /
    64177 rows selected.
    Execution Plan
       0      SELECT STATEMENT Optimizer=ALL_ROWS (Cost=26 Card=64202 Byte
              s=128404)
       1    0   TABLE ACCESS (FULL) OF 'BITMAP_TABLE' (TABLE) (Cost=26 Car
              d=64202 Bytes=128404)
    Statistics
            192  recursive calls
              0  db block gets
           4405  consistent gets
              0  physical reads
              0  redo size
         804546  bytes sent via SQL*Net to client
         475281  bytes received via SQL*Net from client
           4280  SQL*Net roundtrips to/from client
              4  sorts (memory)
              0  sorts (disk)
          64177  rows processed
    SQL> SELECT status
      2    FROM btree_table
      3   WHERE status='Y'
      4  /
    64177 rows selected.
    Execution Plan
       0      SELECT STATEMENT Optimizer=ALL_ROWS (Cost=27 Card=64177 Byte
              s=128354)
       1    0   INDEX (FAST FULL SCAN) OF 'BTREE_TABLE_IDX' (INDEX) (Cost=
              27 Card=64177 Bytes=128354)
    Statistics
            171  recursive calls
              0  db block gets
           4429  consistent gets
              0  physical reads
              0  redo size
         804546  bytes sent via SQL*Net to client
         475281  bytes received via SQL*Net from client
           4280  SQL*Net roundtrips to/from client
              4  sorts (memory)
              0  sorts (disk)
          64177  rows processed
    SQL> SELECT index_name,blevel,num_rows
      2    FROM user_indexes
      3   WHERE index_name='BTREE_TABLE_IDX'
      4  /
    INDEX_NAME                        BLEVEL  NUM_ROWS
    BTREE_TABLE_IDX                        1     64177
    SQL> SELECT index_name,blevel,num_rows
      2    FROM user_indexes
      3*  WHERE index_name='BITMAP_TABLE_IDX'
    SQL> /
    INDEX_NAME                        BLEVEL  NUM_ROWS
    BITMAP_TABLE_IDX                       1         3Khurram

  • Index question

    hi
    I have created a query on an infoset containing 2 dso and 1 infoobject. My query timed out whn i run it. Can i create an index on the dso and infoobject.
    Index creation on the ods and masterdata infoobject will have any negative effects. Is going to affect the loading performance of the these objects.
    As of now no index are there on these object.
    Please advise
    Regards
    bipower

    Hi,
    The index you created(Function based index) is right. Each time you use index, its performance keeps increasing. Check that.
    Regarding your second question
    'Does an index only work on an schema-based (Structured Mapping) of an XMLType?'
    No. Index can be created on a XMLType column which is not schema-based also.
    We have designed a Survey sample which uses Oracle Text indexes on a XMLType column which is not schema based.
    The sample is located at
    http://otn.oracle.com/sample_code/tech/xml/survey/content.html
    We have used CTXXPATH index present in Oracle Text
    A tutorial on Oracle XML DB is also present at this location. You can check that and try using the index.
    Get back to me if you need furthur help.
    Thank you,
    Anupama

  • Index Questions

    I have a WebHelp project originally generated using RoboHelp x5 that is now a Robohelp 8 project.  Originally, we used two levels of keywords (primary and subkeywords), and some of our more common subkeywords are used by 50+ topics.  When one of these subkeywords is selected, RoboHelp displays the maximum number allowable (which appears to vary from 25-50 topics depending upon Windows, monitor, and/or other PC variables), but the list is not scrollable and users are not able to see (and therefore not able to select) topics that are not displayed.  I was unaware until recently that additional levels of subkeywords are available.  I plan to start with the .hhk file, identify subkeywords that are used by more than, say 25 topics, and then provide additional subkeywords so that all topics will be visible from the lowest keyword level.
    I have questions about best practices.  First, anyone have a recommended maximum number of topics per keyword (other than the maximum that a PC will display at one time)?
    Second, is it possible and/or recommended to suppress the ability to view topics for primary and/or secondary keywords if it is not possible to view all the topics for a primary/secondary keyword?  If it is possible (e.g., entering "Report\Inventory\Receiving" as a topic's subkeyword without entering "Report" and "Report\Inventory" for the same topic) and advisable to suppress displaying topics when they can't all be displayed for a particular keyword, is it advisable to show topics only for the lowest level keyword used and not for any higher level keyword, even if all topics could be display at the primary, secondary, etc. levels for other keywords in the index?
    Other tips/suggestions?
    Also, a post in a different RoboHelp forum indicated that indexed items for some keywords are not always appearing in alphabetical order.  I have noticed that new topics that I am associating with existing subkeywords are not being alphabetized with the existing topics but are appearing at the end of the list topics for secondary keywords in the compiled help.  Is this typical?  Can this problem be resolved by re-sorting the listing of the items in the .hhk file?  (My keywords are stored with each topic.)  Is there a better solution?
    Thanks!

    1) From a performance standpoint, the primary criteria would be how the queries this index supports are formulated. Will you always specify value for both columns in your query? Or are you sometimes going to specify just one column?
    2) Can you post the query plan Oracle is using? Is it using your index?
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Indexes question

    Hi,
    I'm defining index in order to speed up a query. My query contains a join of two tables.
    I have defined index but I see in the explain plan that Oracle doesn't use the defined indexes.
    I want to know...in which cases Oracle ignore indexes???
    Any advice will be greatly apreciatted.

    This is a question that has been asked a million times.
    There are a dozen major factors to consider here but the basic ones are:
    What do the statistics on the table(s) look like? Are they current? Do the statistics show data skewing is present? Does the table have enough rows to make the index more cost effective than using a full table scan to perform the join.
    Are implicit or explicit datatype conversions taking place on the join colums? Are functions placed on any of the join columns (normally disables use of index)?
    The Concepts and DBA Administration manuals provide the basic information to often answer this question. The SQL and Performance Tuning provide additional information.
    The SQL and explain plan results are normally necessary to get valid performance tuning advice.
    HTH -- Mark D Powell --

  • Delete InfoCube Index Question

    Hi,
         Before my data loads I have always dropped InfoCube Indexes.  I recently Partitioned our largest InfoCube and now it seems that dropping the indexes takes forever so now I can't really drop the indexes during our daytime loads because it would take too long to delete and rebuild the indexes on this InfoCube.
    Does anyone know if this is normal behavior for a partitioned InfoCube to take so long to drop and rebuild indexes?
    Thanks for any ideas or thoughts!

    Hey Kenneth,
    Since you stated that this infocube was large, and you recently partitioned it, make sure you compress your requests . Also consider compressing with zero elimination as much as possible - this will reduce data size for indexing.
    How big is the DB server this is running on?  Are the DBAs looking at DB settings regarding this which could impact index creation time, e.g. ora init settings, temp space, index tablespaces, etc.
    You might also need to delete unused indexes which are still existing on your cube.
    Also, these index rebuilds should be running with No logging specified - which is default. But it might help to check and confirm once.
    Other than this, OSS note 323090 might be worth checking for you.
    Hope this helps!
    Thanks,
    Sheen

  • LDAP (OID) integration with java appilcation( Urgent imp.)

    Currently we are using the OID-LDAP as the repository for storing username, passwds
    and other attributes. All applications that need authentication will essentially
    be using the OID.
    In our effort to do the same we are encountering the following problems
    - Creation of an identity corresponding the application
    - Giving this identity certain LDAP authorizations (Which authorizations are these)
    We have been successful creating LDAP entries for users and getting the initial
    JNDI contexts to do the lookups.
    When we are creating the user lookup from java code using oracle.ldap.util.User pakage ,
    at the run time it's throwing error(no classfound oracle/net/config/ConfigException ).
    why and where this is needed and how to resolve that. is that because we haven't added
    the application in oid and configured authorizations for it.
    Need an urgent answer to this since all applications will be using LDAP(OID).
    here is code of java which tries to connect to OID.
    ================================================================================================
    import oracle.ldap.util.*;
    import oracle.ldap.util.jndi.*;
    import java.io.*;
    import java.util.*;
    import javax.naming.*;
    import java.Exception.*;
    import javax.naming.directory.*;
    public class hello {
    public static void main(String argv[])
    throws NamingException {
    // Create InitialDirContext
    System.out.println("INSIDE SERVLET");
    InitialDirContext ctx = ConnectionUtil.getDefaultDirCtx( "hire11.kmfl.kg","4032","cn=orcladmin", "ias123" );
    // Create Subscriber object
    System.out.println("GOT CONTEXT" +ctx);
    Subscriber mysub = null;
    /* commented for time being -----------------------------
    try {
    // Creation using DN
    System.out.println("CREATING subscriber");
    mysub = new Subscriber( ctx, Util.IDTYPE_DN, "o=oracle,dc=com", false
    System.out.println("GOT subscriber");
    catch (UtilException e) {
    System.out.println("error");
    // Create User Objects
    User myuser = null, myuser1 = null;
    try {
    // Create User using a subscriber DN and the User DN
    System.out.println("CREATING USERl");
    myuser = new User ( ctx,Util.IDTYPE_DN, "cn=abhishek,cn=users,dc=kmfl,dc=kg",Util.IDTYPE_DN,"dc=kmfl,dc=kg", true );
    System.out.println("GOT USER");
    // Create User using a subscriber object and the User
    // simple name
    // commented for time being -----------------------------
    myuser1 = new User ( ctx, Util.IDTYPE_SIMPLE, "abhishek", mysub, true );
    catch ( UtilException e ) {
    System.out.println("COUDN'T GET USER"+e.toString());
    // Authenticate User
    try {
    System.out.println("gOING FOR AUTHENTICATION");
    myuser.authenticateUser(ctx,User.CREDTYPE_PASSWD,"abhi123");
    System.out.println("AUTHENTICATION SuccessFull");
    System.out.println("AUTHENTICATION SUCCESSfULL");
    System.out.println("AUTHENTICATION sUCCESSfULL");
    catch ( UtilException e ) {
    System.out.println("AUTHENTICATION FAILED");
    // Perform User operations
    /* commented for time being -----------------------------
    try {
    PropertySetCollection result = null;
    // Get telephonenumber of user
    String[] userAttrList = {"telephonenumber"};
    result = myuser1.getProperties(ctx,userAttrList);
    Util.printResults(result);
    // Set telephonenumber of user
    // Create JNDI ModificationItem
    ModificationItem[] mods = new ModificationItem[1];
    mods[0] = new ModificationItem(DirContext.REPLACE_ATTRIBUTE,
    new BasicAttribute("telephonenumber", "444-6789"));
    // Perform modification using User object
    myuser.setProperties(ctx, mods);
    catch ( UtilException e ) {
    } // End of SampleUser.java
    ==============================================================================================================

    Hi,
    Make sure you have the netcfg.jar in the same directory as that of ldapjclnt9.jar (in $ORACLE_HOME/jlib).
    Regards
    Radhika

Maybe you are looking for