Effect of Force use of non-existing index in program

Hi,
What is the Effect of Force use of non-existing index in program?
We have forced the use of a custom index in our program, i want to know the effect in the program if in the future this index will be deleted or removed from the database?
Thanks a lot!

Hi Freishz,
>
freishz wrote:
> What is the Effect of Force use of non-existing index in program?
> We have forced the use of a custom index in our program, i want to know the effect in the program if in the future this index will be deleted or removed from the database?
Hints note, it is a hint not a command, are ignored by the optimizer if they are not
syntactically and/or semantically correct. An index hint pointing to a non-exisitng index
is semantically not correct -> will be ignored. (A normal costing with the available indexes
is done).
Kind regards,
Hermann

Similar Messages

  • Primary Key supported by a non-unique index?

    Encountered a weird situation today. A utility we setup which allows Analysts to restore data into their tables, started failing when it attempted to drop an index. The index was supporting a Primary Key. Makes sense. But our script was supposed to only be attempting to drop/recreate non-unique indexes. Turns out the supporting index on the Primary Key was non-unique, and to the best of my knowledge came about as follows:
    SQL> create table junk (f number(1));
    Table created.
    SQL> create index junk_ix on junk(f);
    Index created.
    SQL> select UNIQUENESS from DBA_INDEXES where index_name = 'JUNK_IX';
    UNIQUENES
    NONUNIQUE
    SQL> alter table forbesc.junk add constraint junk_pk primary key (f) using index junk_ix;
    Table altered.
    SQL> select UNIQUENESS from DBA_INDEXES where index_name = 'JUNK_IX';
    UNIQUENES
    NONUNIQUE
    SQL> insert into junk values (1);
    1 row created.
    SQL> insert into junk values (1);
    insert into junk values (1)
    ERROR at line 1:
    ORA-00001: unique constraint (FORBESC.JUNK_PK) violated
    SQL> select index_name from dba_constraints where constraint_name = 'JUNK_PK';
    INDEX_NAME
    JUNK_IXWhat I can't figure out is how a non-unique index is enforcing uniqueness. I thought that it was the key in that very same process. I thought that perhaps an index with the 'SYS_123456' was getting created, perhaps, but I couldn't find one:
    SQL> select object_name, object_type from dba_objects order by created desc;
    OBJECT_NAME   OBJECT_TYPE
    JUNK_IX     INDEX
    JUNK     TABLE
    ...How is the uniqueness getting enforced in this case? This is in Oracle 11.1.0.7
    Thanks,
    --=Chuck

    It has always been that way. Oracle can, and will, use a non-unique index to enforce a PK constraint, The existing index just needs to have the PK column(s) as the leading column(s) of the index:
    SQL> create table t (id number, id1 number, descr varchar2(10));
    Table created.
    SQL> create index t_ids on t(id, id1);
    Index created.
    SQL> select index_name from user_indexes
      2  where table_name = 'T';
    INDEX_NAME
    T_IDS
    SQL> alter table t add constraint t_pk
      2  primary key (id);
    Table altered.
    SQL> select index_name from user_indexes
      2  where table_name = 'T';
    INDEX_NAME
    T_IDS
    SQL> insert into t values (1, 1, 'One');
    1 row created.
    SQL> insert into t values (1, 2, 'Two');
    insert into t values (1, 2, 'Two')
    ERROR at line 1:
    ORA-00001: unique constraint (OPS$ORACLE.T_PK) violatedJohn

  • Non existing local user managed to RDP to windows 2012 target machine

    Hi,
    It seems the exact same issue as I see it here: http://social.technet.microsoft.com/Forums/en-US/91f09a4b-350f-47f8-814b-53b29d1a6306/windows-2012-rdp-login-credentials-are-not-used-on-remoteapp-connect-dialog-box?forum=winserverTS
    But I couldn't see any real/final answer.
    Can I get official response from MS about this issue?
    When we use the RDWeb, we use a non existing user to connect to some target 2012 machine and it actually works... it connects me to the target.
    How cab I eliminate it?
    Tx,
    shlom

    Hi,
    Thank you for posting in Windows Server Forum.
    For the user which you don’t want to provide the access of Remote Desktop to target machine, you can apply GPO setting for that user. Need to apply “Deny logon through Remote Desktop Service” GPO policy and add that user under that policy. You can
    find the policy under below mention path.
    Windows Settings/Security Settings/Local Policies/User Rights Assignments
    Hope it helps!
    Thanks.
    Dharmesh Solanki

  • One can create an index on a non-existent column in a table

    I am using Oracle 10.2.0.3 on Windows 2003. I wanted to create an index on columnb of
    Tablea. When I use statement like:
    Create index index1 on tablea (‘columnb’) …
    Oracle created index: index1. However, when I looked tat the column in user_ind_columns it had some weird colculn like SYS_NCxxxx. For sometime, I had
    No idea what was going on. My index was not being used in queries at all. Then it dawned on me that I should not put single quotes around columnb. Once I removed quotes, things worked as expected.
    But why does Oracle allow index on a non-existent column?

    we cannot create the index on nonexistent column of table We can. Its called a function-based index. Here's how we do it.
    Also read Howard's reply, right above yours.
    SQL> desc t
    Name                                      Null?    Type
    OWNER                                     NOT NULL VARCHAR2(30)
    OBJECT_NAME                               NOT NULL VARCHAR2(30)
    SUBOBJECT_NAME                                     VARCHAR2(30)
    OBJECT_ID                                 NOT NULL NUMBER
    DATA_OBJECT_ID                                     NUMBER
    OBJECT_TYPE                                        VARCHAR2(19)
    CREATED                                   NOT NULL DATE
    LAST_DDL_TIME                             NOT NULL DATE
    TIMESTAMP                                          VARCHAR2(19)
    STATUS                                             VARCHAR2(7)
    TEMPORARY                                          VARCHAR2(1)
    GENERATED                                          VARCHAR2(1)
    SECONDARY                                          VARCHAR2(1)
    SQL> create index t_idx on t( substr(object_name, 1, 5));
    Index created.
    SQL> select column_name from user_ind_columns where index_name = 'T_IDX';
    COLUMN_NAME
    SYS_NC00014$
    SQL> select index_type from user_indexes where index_name = 'T_IDX';
    INDEX_TYPE
    FUNCTION-BASED NORMAL
    SQL>

  • What is RID in non clustered index and its use

    Hi All,
    I need help regarding following articles on sql server
    1) what is RID in non clustered index and its use.
    2) What is Physical and virtual address space. Difference in 32 bit vs 64 bit Virtual address space
    Regards
    Rahul

    Next time Please ask single question in a thread you will get better response.
    1. RID is location of heap. When you create Non clustered index on heap and
    lookup happens to get extra records RID is used to locate the records. RID is basically Row ID. This is basic definition for you. Please read
    this Thread for more details
    2. I have not heard of Physical address space. I Know Virtual address space( VAS)
    VAS is simple terms is amount of memory( virtual )  'visible' to a process, a process can be SQL Server process or windows process. It theoretically depends on architecture of Operating System. 32 bit OS will have maximum range of 4 G VAS, it's calculated
    like a process ruining on 32 bit system can address max up to 2^32 locations ( which is equivalent to 4 G). Similarly for 64 bit max VAS will be 2^64 which is theoretically infinite. To make things feasible maximum VAS for 64 bit system is kept to 8 TB. Now
    VAS acts as layer of abstraction an intermediate .Instead of all request directly mapping to physical memory it first maps to VAS and then mapped to physical memory so that it can manage request for memory in more coordinated fashion than allowing process
    to do it ,if not it will  soon cause memory crunch.Any process when created on windows will see virtual memory according to its VAS limit.
    Please read
    This Article for detailed information
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Wiki Article
    MVP

  • Handle a non existance of report object while using find_report_object ?

    How to handle a non existance of report object while using find_report_object?
    HOW CAN I HANDLE THE ERROR FRM-41219 PROGRAMATICALLY.
    SINCE ID_NULL IS NOT SUPPORTING FOR REPORT OBJECT.
    1) Message level for FRM-41219 is 20, even if i set the message level to 20, it's not getting suppresed.
    As per my follwoing code, error is rasing once immidiatlly after the find_report_object.
    DECLARE
    REPID REPORT_OBJECT;
    BEGIN
    REPID := FIND_REPORT_OBJECT('REP_OBJECT');
    --NOTE 'REP_OBJECT' DOES NOT EXIST, IT'S NOT GOING TO THE EXCEPTION
    --SECTION AND RASING THE ERROR 41219 CANNOT FIND REPORT : INVALID ID.
    --QUESTION : HOW CAN I HANDLE THIS ERROR?
    EXCEPTION
    WHEN OTHERS THEN
    MESSAGE('INSIDE EXCEPTION');
    MESSAGE('INSIDE EXCEPTION');
    END;

    This is really more of a Forms issue since these are Forms built-ins. However, check out note 209513.1 in Metalink. It describes how to check if the report objects exists and how to trap the error.
    Hope that helps,
    Toby

  • Fuzzy Lookup cannot use existing index

    Hi all,
    we have upgraded to SQL Server 2008 R2 from SQL Server 2008 and since then our fuzzy matching process has failed when trying to re-use existing index with the error:
    [Fuzzy Lookup] Progress: Warming caches - 0 percent complete
    [Fuzzy Lookup [9824]] Warning: Catastrophic failure
    [SSIS.Pipeline] Error: component "Fuzzy Lookup" (9824) failed the pre-execute phase and returned error code 0x8000FFFF.
    Warming cache property is set to False though.
    Has anyone experienced the same error?
    When building a new index fuzzy matching runs without problems.
    Thanks a lot.
    Fran

    Hi Fran,
    The error may occur due to a memory issue such as the Fuzzy Lookup task consumes high memory buffers. Please try the following steps:
    Run the package in 64-bit mode by setting the Run64BitRuntime property of the project to True.
    Right click the Fuzzy Lookup task and click “Show Advanced Edior…”
    Switch to the Component Properties tab, and set the following properties:
    CopyReferenceTable: 0
    DropExistingMatchIndex: 0
    WarmCaches: False
    Hope this helps.
    Regards,
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • "Your script uses objects from a non-existent collection"

    I have a multiple page form with a barcode on each form.  I created a separate collection for each barcode.  The auto generated code looks fine and has the correct collection created, however I still get the error, Paper Forms Barcode error "Your script uses objects from a non-existent collection".
    I'm not sure what is wrong and I don't know how to fix it.  Anyone else run into this?

    You will need to create a shared folder in Dropbox, then populate that with what ever folders you need to organize the files. It appears the DropBox app,will not handle this, but you can do, it by logging in to you account via Safari. Once the folders are created, they will show up in the app. Likewise with designating the folders as shared. Anyone you wish to share with will need a Dropbox account. (using the public folder will not work since links out it are for files only, not folders. An odd restriction, but it is what it is).
    IF you have copies of the files on a PC, you will find that will be the easiest place to upload them from. If they are only in iBooks on the iPad, you will need to synch and use the file management function to copy them off. not sure if you can synch them back over to DropCopy within iTunes (never tried it).
    DEpending on your needs, a couple of apps to look into are iCab Mobile (a browser), and GoodReader (doc viewing and management app). Both integrate well with DropBox.

  • Ok my iphone 3g touch screen is not responding, i can recieve calls and it can charge and connect to itunes, but i cannot go any further than using the home button or the power button, but the slide feature and touch feature is non existent

    ok my iphone 3g touch screen is not responding, i can recieve calls and it can charge and connect to itunes, but i cannot go any further than using the home button or the power button, it is only the slide feature and touch feature that has become non existent.  Also, i have a f'ew cracks in my screen for a while now and it was running smoothly up until saturday when i sat on it applying large amounts of pressure to the phone screen.  Is there a way i can fix this myself without having to recover my phone to factory settings or wasting 50 bucks to get it fixed??

    Hi Dire Dawa,
    If the screen on your iPhone isn't responding, you may find the following article helpful:
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/ts3281
    Regards,
    - Brenden

  • When trying to download yosemite it sais that i do not have enough memory. when i look at my memory use it shows that 111.00gb of space is used by movies but when i go th the movie folder it is empty. how can i remove the non existant movies.

    when trying to download yosemite it sais that i do not have enough memory. when i look at my memory use it shows that 111.00gb of space is used by movies but when i go th the movie folder it is empty. how can i remove the non existant movies.

    Freeing Up Space on The Hard Drive
      1. See Lion/Mountain Lion/Mavericks' Storage Display.
      2. You can remove data from your Home folder except for the /Home/Library/ folder.
      3. Visit The XLab FAQs and read the FAQ on freeing up space on your hard drive.
      4. Also see Freeing space on your Mac OS X startup disk.
      5. See Where did my Disk Space go?.
      6. See The Storage Display.
    You must Empty the Trash in order to recover the space they occupied on the hard drive.
    You should consider replacing the drive with a larger one. Check out OWC for drives, tutorials, and toolkits.
    Try using OmniDiskSweeper 1.8 or GrandPerspective to search your drive for large files and where they are located.
    You will need a minimum of 10-12 GBs of free space to install Yosemite, however, that is a bare minimum and should be at least twice that amount.

  • If I use Explorer, none of these problems exist. This suddenly happened overnight! I have your newest upgrade and I haven't had any problems for the past year or so....this is weird.

    1. only in firefox - flashplayer won't upgrade, endless loop of "add plug-ins" etc.
    2. vertical scroll bar flipped from left side to right.
    3. crtl ++ to zoom doesn't function.
    4. can't load any "personas" when in Google gmail.
    If I use Explorer, none of these problems exist. This suddenly happened overnight! I have your newest upgrade and I haven't had any problems for the past year or so....this is weird.
    == This happened ==
    Every time Firefox opened
    == Monday 6/14

    Your above posted list of installed plugins doesn't show the Flash plugin for Firefox.
    See [[Managing the Flash plugin]] and [[Installing the Flash plugin]]

  • Patch 11072246  Addresses non-optimal index use

    Hi,
    on 11.2.0.3.0 on Win 2008
    the patch 11072246 Addresses non-optimal index use when an index column is in descending order.
    How can we know if we should apply this patch or not ?
    Until now no user has found a problem like this. Does it mean that we have not non-optimal index use at all ?
    thanks and regards.

    thank you. yes , 13965211 is superseded.
    But in 16774393 ( Windows Patch 20) , non-optimal index use when an index column is in descending order is not addressed.
    Regards.

  • What happens to Existing index after table partition and created with local index

    Hi guys,
    desc part id  number, name  varchar2(100), salary  number
    In an existing table  PART  i am  adding 1 more column DATASEQ NUMBER. i am asked to partition the table part based on dataseq.now the table is created with this logic
    create table part( id  number, name  varchar2(100), salary  number, DATASEQ  number) partition by list(dataseq) (partition PART_INITIAL  values (1));
    Suggestionn required. since  the table is partitioned based on DATASEQ i am asked to add local index on dataseq. i have added local index to dataseq create index idx on part(dataseq) LOCAL; Now my question is  already there is existing index is for the column ID and salary.
    1)  IDX for  dataseq is created locally so that it will have partition on each partition on the main table. Please tell me what happens to the existing index on the column ID and salary.. will it again created in local?
    Please suggest
    S

    Hi,
    first of all, in reality "partition a table" means create a new table a migrate existing data there (although theoretically you can use dbms_redefinition to partition an existing table -- however, it's just doing the same thing behind the scenes). This means that you also get to decide what to do with the indexes -- which indexes will be local, which will be global (you can also re-evaluate some of existing indexes and decide that they're not really needed).
    Second of all, the choice of partitioning key looks odd. Partitioning is a data manageability technique more than anything else, so in order to benefit from it you need to find a good partitioning key. A recently added column named "data_seq" doesn't look like a good candidate. Can you provide more details about this column and why it was chosen as a partitioning key?
    I suspect that whoever suggested this partitioning scheme is making a huge mistake. A non-partitioned table is much better in all aspects (including manageability and performance) than wrongly partitioned one.
    Best regards,
    Nikolay

  • CS3 Installer asks for non-existent DVD drive

    I'm running CS3 on Windows XP. I need to reinstall because I somehow lost codecs for Premiere Pro. Whenever I try to reinstall, the CS3 installer puts up an Installer Alert that asks me to insert CS3 Master Collection Disc 1 into drive G:\ to continue installation.
    That sounds pretty simple, but there is no G: drive on my computer. My two DVD drives are D: and E:, and inserting the disc there has no effect. Checking the Windows device manager shows no G: device recognized anywhere on the computer.
    I can only click OK, which returns the same alert, or Cancel to cancel the installation. I cannot, for the life of me, figure out how to get the CS3 installer to ask for installation disks on an existing drive. What's particularly annoying is that the installer is running from a DVD in drive E:, so you'd think it would know to ask for further discs in drive E:. I've tried it as well from drive D:.
    Any ideas for getting the installer to stop asking for discs in a non-existent drive?
    I've toyed with the idea of completely uninstalling CS3, but am afraid that the installer still won't work, in which case I won't be able to get any work done using CS3 at all.
    Thanks for any and all help,
    Mike Boom

    The 404 means you have not followed the Very Important Instructions on the prodesigntools page before clicking the download links.
    The 7 steps are crucial for setting the correct cookies on your hard drive so that the Adobe servers will grant you access to the download files when you click the links.
    So:
    Go back to http://prodesigntools.com/download-adobe-cs4-and-cs3-free-trials-here.html
    Follow the Very Important Instructions (Step 0 to Step 6 = 7 Steps)
    Then click the download links and they will work.

  • Impact of creating a non-clusterd index on a huge transaction table?

    Hello Everyone,
    We have a transaction table containing 10 million records and everyday a million records will be inserted. We don’t have any clustered index on this table as this is a transaction table (more than 10 columns to uniquely identify a row). We
    do have some SPs which in turn some reports getting generated using this table. In order to improve the performance of an SP, we created a non-clustered index on this table and we found a huge performance gain.
      Here comes my question - will this (creation of non-clustered index) impacts my table data load performance or other reports generation?
    Any suggestions will be appreciated.
    Many Thanks!
    Rajasekhar.

    Hello Rajasekhar, 
    First identify this table and corresponding columns usage. Through SP_depends system procedure you can identify this table dependencies. 
    Then look at complex queries and it's execution plans. You can get an output recommendations of appropriate missing indexes. 
    Now you can try to create appropriate indexes. Always I suggest you to limit the index count if you are inserting/updating large volume records. Also if possible create clustered index. 
    One more option, you can horizontally partitioned the table and move data to multiple filegroups. Based of range of data your query performance also improve a lot. 
    To apply partition for existing table, you should take backup and recreate from scartch. 
    Check this link : http://www.mssqltips.com/sqlservertip/2888/how-to-partition-an-existing-sql-server-table/
    Best Regards, 
    Ashokkumar.
    Ashokkumar

Maybe you are looking for

  • Should I buy a new Macbook Pro 13 inch or Macbook Air 13 inch?

    Hi, I was wondering if I should buy the new Macbook pro 13 inch, or keep my old 2010 1.4 C2D Macbook Air. I am not satisfied with the tiny 64GB SSD that my current Macbook Air has, because just a few weeks after I had done a clean reinstall of OSX Li

  • Using JavaScript to Print and Overwrite Active Form Files

    Hello all, I have zero knowledge of JavaScript and I am hoping someone can help me quickly solve an issue I am having with active forms. I tried using the flatten feature in the action wizard but it is not working. I also tried using "this.flattenPag

  • Application automation

    hi all, does anybody know a way/method to automate a web user activities such like logging into a web site and retrieving relevant information from the internet? is it possible using the servlet package in J2EE? how about using URLConnection and java

  • JComboBox, JTable, cellRendering CHALLENGE

    Hi all, I would like to ask a question of the resident guru concerning a Netbeans/MYSQL application. I based it on a tutorial found here: [http://www.netbeans.org/kb/61/java/gui-db-custom.html]. I have two seperate JDialogs that write data to a maste

  • Create templates using Dreamweaver CS6 (Was: greate template)

    How can i greate a template use dreamweaver cs6 can some one help me ?