If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > Ora-29908

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-13-02, 06:37
azydron azydron is offline
Registered User
 
Join Date: Jun 2002
Posts: 2
Ora-29908

Hi,

I am trying to do a text lookup which includes
some other joins as per:

select score(1), enUSA.guid, enUSA.tuid, enUSA.crc, frFRA.text, enUSA.text as text_src,
whereused.sysno, whereused.grpno, whereused.sectno, whereused.outline from enUSA, frFRA, whereused
where
contains(enUSA.text, '$Automatic, $transmission, $fluid, $change' , 1) > 0 and
enUSA.guid = whereused.guid and
enUSA.guid = frFRA.guid and
enUSA.tuid = frFRA.tuid order by score(1) desc

This causes an ORA-29908: missing primary invocation for ancillary operator.

If I add a 'kludge' condition such as:

"and enUSA.guid >= '%' "

it works, but seems far from efficient.

Could some one tell me what is wrong with theoriginal statement?

Thanks in advance,

AZ
Reply With Quote
  #2 (permalink)  
Old 01-12-03, 16:59
pningoo pningoo is offline
Registered User
 
Join Date: Jan 2003
Posts: 1
Re: Ora-29908

Hi,

I am getting the same error message
ORA-29908: missing primary invocation for ancillary operator

does anyone have a solution to this?

Cheers
Pravin.

Quote:
Originally posted by azydron
Hi,

I am trying to do a text lookup which includes
some other joins as per:

select score(1), enUSA.guid, enUSA.tuid, enUSA.crc, frFRA.text, enUSA.text as text_src,
whereused.sysno, whereused.grpno, whereused.sectno, whereused.outline from enUSA, frFRA, whereused
where
contains(enUSA.text, '$Automatic, $transmission, $fluid, $change' , 1) > 0 and
enUSA.guid = whereused.guid and
enUSA.guid = frFRA.guid and
enUSA.tuid = frFRA.tuid order by score(1) desc

This causes an ORA-29908: missing primary invocation for ancillary operator.

If I add a 'kludge' condition such as:

"and enUSA.guid >= '%' "

it works, but seems far from efficient.

Could some one tell me what is wrong with theoriginal statement?

Thanks in advance,

AZ
Reply With Quote
  #3 (permalink)  
Old 01-13-03, 03:47
azydron azydron is offline
Registered User
 
Join Date: Jun 2002
Posts: 2
Re: Ora-29908

Quote:
Originally posted by pningoo
Hi,

I am getting the same error message
ORA-29908: missing primary invocation for ancillary operator

does anyone have a solution to this?

Cheers
Pravin.
Hi Pravin,

Oracle's SQL is not very clever when including text queries. The answer is to sub-query the text search part of the SQL statement as in:

select score(1), enUSA.guid, enUSA.tuid, enUSA.crc, frFRA.text, enUSA.text as text_src,
whereused.sysno, whereused.grpno, whereused.sectno, whereused.outline from enUSA, frFRA, whereused,

(contains(enUSA.text, '$Automatic, $transmission, $fluid, $change' , 1) > 0 order by score(1) desc) qtext where

enUSA.guid = qtext .guid and
enUSA.guid = qtext .guid and
enUSA.tuid = qtext .tuid

This works and performs much better

Regards,

AZ
Reply With Quote
  #4 (permalink)  
Old 01-22-03, 02:43
mail2sanjit mail2sanjit is offline
Registered User
 
Join Date: Jan 2003
Location: Kolkata, India
Posts: 4
Angry

Just add the primary invocation with the same label as the ancillary operator.
This will work
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On