Advice on indexing names and phone numbers

Hi!
I currently have a database with 2,6 million records containing names, addresses and phone numbers. I would like to do fast search like: Give me all persons called "Hansen" living on "Elm street". More complex queries like "%sen" living on "%street%" with a phone number like "3888____".
I'm running on a huge Windows 2000 server with Oracle 8.1.7
I currently have indexed the fields with interMedia and substring indexing. Below is my setup.
BEGIN
ctx_ddl.create_preference('tdk_store', 'BASIC_STORAGE');
ctx_ddl.set_attribute('tdk_store','I_TABLE_CLAUSE',
'TABLESPACE tdk_imt STORAGE (INITIAL 4M NEXT 512K PCTINCREASE 0)');
ctx_ddl.set_attribute('tdk_store','K_TABLE_CLAUSE',
'TABLESPACE tdk_imt STORAGE (INITIAL 4M NEXT 512K PCTINCREASE 0)');
ctx_ddl.set_attribute('tdk_store','R_TABLE_CLAUSE',
'TABLESPACE tdk_imt STORAGE (INITIAL 4M NEXT 512K PCTINCREASE 0)');
ctx_ddl.set_attribute('tdk_store','N_TABLE_CLAUSE',
'TABLESPACE tdk_imt STORAGE (INITIAL 4M NEXT 512K PCTINCREASE 0)');
ctx_ddl.set_attribute('tdk_store','I_INDEX_CLAUSE',
'TABLESPACE tdk_imt STORAGE (INITIAL 4M NEXT 512K PCTINCREASE 0)');
ctx_ddl.set_attribute('tdk_store','P_TABLE_CLAUSE',
'TABLESPACE tdk_imt STORAGE (INITIAL 4M NEXT 512K PCTINCREASE 0)');
ctx_ddl.Create_Preference ( 'tdk_wordlist', 'basic_wordlist' );
ctx_ddl.Set_Attribute ( 'tdk_wordlist', 'substring_index', 'true');
end;
CREATE INDEX tdknavn ON tdk ( navn )
INDEXTYPE IS ctxsys.context
parameters ('WORDLIST tdk_wordlist STORAGE tdk_store');
CREATE INDEX tdkadresse ON tdk ( adresse )
INDEXTYPE IS ctxsys.context
parameters ('WORDLIST tdk_wordlist STORAGE tdk_store');
CREATE INDEX tdktelefon ON tdk ( telefon )
INDEXTYPE IS ctxsys.context
parameters ('WORDLIST tdk_wordlist STORAGE tdk_store');
Query like this gives horrible execution times:
SELECT count(*)
FROM tdk
WHERE contains(navn, 'bedsted') > 0
AND contains(adresse, 'gade') > 0
A query like this caused a dump:
SELECT count(*)
FROM tdk
WHERE contains(adresse, '%gade%') > 0
Is this a stupid approach??

Yes it caused a core dump! End-of-file on communication channel.
I just learned about the catsearch function. I read in this forum that is doesn't support wildcards until 9i. So I have to use contains for now.
But... is catsearch faster than contains when you combine to catsearch' in one where clause?
Another question: Is catsearch only faster than contains when you combine it with structured data??

Similar Messages

  • HT1296 How can I stop and delete facebook names and phone numbers from my iphone

    How can I stop facebook names and phone numbers from being downloaded to my iphone and how can I delete the ones that are already there?

    A better way might be
    Settings > Facebook > Contacts > turn off.
    There are other Facebook settings you might want to leave on. But I also prefer to turn off Calendar there as well to keep every Facebook friends birthday from clogging up my calendar app.

  • I have lost all the information on my personal calendar on my phone as well as selected contact names and phone numbers. Can they be recovered?

    I seem to have lost all info on my personal calendar that I keyed in myself whether they were single appointments or recurring meetings or events. As well, I had added quite a few phone numbers with corresponding names that have mysteriously vanished.Iam in a panic as I can't seem to find them and do not know if they are lost forever.CAn anyone help?

    Icloud provides for backups AND for contacts and calendars being stored. You are not forced to do a icloud restoration to recover calendar and contacts from icloud.
    Please read this article about recovering contacts and calendars from icloud.
    Please understand this only works with the idea that you have initially used icloud for your contacts and calendar entry storage.
    http://support.apple.com/kb/TS4108
    good luck!

  • Names, addresses and phone numbers have dissappeared from my list, favorites and tx mess

    Suddenly I went to favorites and realize most of my phones have no names only phone numbers.  I went to all contacts and they are not there. I lost names addresses and all info.  I need to know if is still there? in the memory? or I need to do it all over again.

    Try importing your contact list from Verizon Backup Assist.
    If you do not have that, then upload them from your saved contacts in your computer.
    If you do not have that, then try to restore your backed up phone data from a previous backup on itunes.
    If you still have none of those, then yeah.  You're SOL and will have to manually insert everything.  I recommend afterwards getting the backup assist app and backing everything up so you don't have to do that ever again.
    Hope this helps!

  • Retrieve information and phone numbers from a stolen iphone

    I need to retrieve the information and phone numbers from my stolen iphone

    Not possible.
    What To Do If Your iDevice Is Lost Or Stolen
    If you activated Find My Phone before it was lost or stolen, you can track it only if Wi-Fi is enabled on the device. What you cannot do is track your device using a serial number or other identifying number. You cannot expect Apple or anyone else to find your device for you. You cannot recover your loss unless you insure your device for such loss. It is not covered by your warranty.
    If your iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should have done in advance - before you lost it or it was stolen - and some things to do after the fact. Here are some suggestions:
    This link, Re: Help! I misplaced / lost my iPhone 5 today morning in delta Chelsea hotel downtown an I am not able to track it. Please help!, has some good advice regarding your options when your iDevice is lost or stolen.
      1. Reporting a lost or stolen Apple product
      2. Find my lost iPod Touch
      3. AT&T. Sprint, and Verizon can block stolen phones/tablets
      4. What-To-Do-When-Iphone-Is-Stolen
      5. What to do if your iOS device is lost or stolen
      6. 6 Ways to Track and Recover Your Lost/Stolen iPhone
      7. Find My iPhone
      8. Report Stolen iPad | Stolen Lost Found Online
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
      1. Find My iPhone
      2. Setup your iDevice on iCloud
      3. OS X Lion/Mountain Lion- About Find My Mac
      4. How To Set Up Free Find Your iPhone (Even on Unsupported Devices)

  • HT4528 my iphone synced with my computer and left my contact info but erased the address and phone numbers but left notes and email addresses on the phone and computer

    Is there any way to restore the addresses and phone numbers to the contacts on the iphone and computer that were erased after it synced?

    Then chances are you won't be able to get them back.  You can try restoring from your last iPhone backup to see if they're still there.  To do this, prior to connecting your phone, open iTunes on your computer and go to Preferences; on the Devices tab check "Prevent...from syncing automatically".  Then connect your phone to your computer and when it appears in iTunes on the left sidebar right-click on its name and choose Restore from Backup.  Of course, if your backup has already been overwritten with a new backup that doesn't contain the missing contact information then this will not restore it to your phone.)  When done you can go back to iTunes Preferences and re-enable automatic syncing if you prefer this.

  • I have four devices on one Apple ID, i have separate emails and phone numbers for each device but when I tried to add one to my iPod, it said that the email was already in use.

    I have four devices on one Apple ID, i have seperate emails and phone numbers for each device but when I tried to add one to my iPod, it said that the email was already in use.  I have tried many things and the only guess I have is that either someone else has this email as their iMessage but is fake or it wasn't taken off my old iPod when I reset it.  Any ideas on what to do?

    Thanks but that doesn't give me the information I need.  I am putting an email on my ipod for people to contact me for iMessage and FaceTime but when I put the email in, it gives me an error saying that the email cannot be veirified because it is already in use.  My Apple ID can be varified, just not the email that they will contact me with.

  • TA38622 how do you delete a contact name and phone number from this?  i have deleted it from my regular contacts, but it remains in a text memory when i begin to type the beginning of a name

    How do I delete a contact name and phone number from my texting memory?  I have deleted this contact from my regular contact information; however when I text and begin to text a contact beginning with the 1st letter of the name I had deleted, it brings up the old, deleted contact information in my texting history only.

    You would have to restore as new.

  • All listing element must have index,name and value?

    when i trying to convert a fmb file to xml, it shows a warning.
    All listing element must have index,name and value...
    how to resolve this..
    Edited by: skud on Mar 9, 2011 6:03 AM

    when i trying to convert a fmb file to xml, it shows a warning.
    All listing element must have index,name and value...
    how to resolve this..
    Edited by: skud on Mar 9, 2011 6:03 AM

  • How to compare index names and columns from different user?

    I am using below query to compare two indexes from 2 different users but even though index name and columns are same... result shows me they are different.. what I am doing wrong? Thanks
    WITH t AS
            (SELECT COUNT (DISTINCT index_owner || index_name || indexed_cols)
                       cnt
               FROM (  SELECT index_owner,
                              index_name,
                              listagg (column_name, ',')
                                 WITHIN GROUP (ORDER BY column_position)
                                 indexed_cols
                         FROM dba_ind_columns
                        WHERE index_name='XPKTBL_A'
                     GROUP BY index_owner, index_name))
    SELECT CASE
              WHEN cnt > 1 THEN 'Indexes are different'
              WHEN cnt = 0 THEN 'Indexes dont exist'
              WHEN cnt > 1 THEN 'Indexes are identical'
           END
              commnt
      FROM t
    Result:
    Indexes are different
    but Actually if you check below they are same After when I run this query:
    SELECT index_owner,
             index_name,
             listagg (column_name, ',') WITHIN GROUP (ORDER BY column_position)
                indexed_cols
        FROM dba_ind_columns
       WHERE index_name='XPKTBL_A'
    GROUP BY index_owner, index_name;
    Result:
    Index_owner
    Index_name
    Index_cols
    USER1
    XPKTBL_A
    FIELD_A1
    USER2
    XPKTBL_A
    FIELD_A1

    Hi,
    Erhan_toronto wrote:
    I am using below query to compare two indexes from 2 different users but even though index name and columns are same... result shows me they are different.. what I am doing wrong? Thanks
    WITH t AS
            (SELECT COUNT (DISTINCT index_owner || index_name || indexed_cols)
    So index_owner is 'USER1' in one case, and 'USER2' in the other; right?
    A string that starts with 'USER1' will be distinct from a string that starts with 'USER2', no matter what the rest of the string contains.  Maybe you don't want to compare the owners, or maybe you meant to use some other column (such as table_name) instead of index_owner).
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE, CREATE INDEX and CONNECT statements), and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • International Addresses and Phone Numbers

    How do people typically deal with International Addresses and Phone Numbers? Do you use special attributes for these?

    I know how to create attributes, the issue is how to create the right set of attributes that can be used for all given international telephone and addresses?
    I would think there would be some sort of predefined standard for doing this but if you have to create your own custom attributes just to do this, then that's not really a great thing.
    Oracle or the ldap standards people whomever they are should include all the object classes and attributes for International Telephone numbers and addresses so all you need to do is add the objectclass to your users and use them!
    Sorry it just doesn't make sense to have everyone create these...

  • HT4623 I've lost my contacts and phone numbers when I updated...how do i get those back?

    How do I get my contacts and phone numbers back after I finished the upgrade?

    jnet30705 wrote:
    How do I get my contacts and phone numbers back after I finished the upgrade?
    Hopefully you backed up that info on your Mac or PC. Do a restore and they should all come back. If you have an iCloud account you can recover them from there as well.

  • Editing contact's names and tel numbers on the Nok...

    I would appreciate if someone could explain to me how I can edit my contacts' names and tel numbers. Have tried without succeeding.
    cr.
    Solved!
    Go to Solution.

    -got o  to the menu
    -then open contacts tap on any contact you want to edit
    -tap on the top bar where you fill find the name, you will get a menu--tap on edit   or   you can click on the avatar display pic
    -now you should be able to edit your contacts info
    hope this helps
    abdoo

  • Need Employee Names and Employee Numbers that charge a WBS Element

    Hello,
    Does anyone know how I can get a list of employee names and employee numbers that are charging a series of WBS elements?
    Thanks

    Hi,
    You could use transaction CATS_DA with Receiver Account Assignment and enter the WBS element.
    Good luck!
    Tammy

  • HT4906 When I synched my phone to the iCloud, I lost my contact list and phone numbers.

    When I synched my 3G phone to upgrade the operating system and to join i cloud, I lost my contact list and phone numbers
    How can I get the list and phone numbers back???
    allen8844

    If they aren't in your contacts on icloud.com when you check from your computer, you would have to restore them from a backup source.

Maybe you are looking for

  • Purchase Invoice

    Hi all, how to handle Purchase Invoice Including or Excluding Tax. For eg. Client is having Export Business in Foreign countries and for that they are making Export Invoice and with in country they are using normal invoice system. If they made A/P In

  • Problem removing trial version of LiveCycle Designer in order to install new and input license key

    User installed the trial version and has been using it. Now that we have a license key to enter, they have tried to remove it so they can reinstall and enter the key. They get a mesage that there is a problem with the install and it will not remove i

  • Looping in BDC

    Dear All, This below program will generate a list of PR with a check-box beside it. User can select the PRs and then click on the Create PO/Create RFQ button. The contents in the PR will be transferred to the PO/RFQ. The user will check the contents

  • Bex Customer Exit (Doubt)

    Hi , I would really appreciate if anyone could explain me the below said in brief. "  I_STEP = 2  - Call takes place directly after variable entry. This step is only started up when the same variable is not input ready and could not be filled at I_ST

  • My iphoto was rebuilding and now all my pictures are gone

    so tonight i ws trying to open my iphoto and it said it had to rebuild well i have a lot of picture and it was going on all day maybe 8hours and then it just stop well then i just froced quit, now when i reopen iphoto it act like i have never used it