Welcome Guest ( Log In | Register )


 
 
 
 

Oracle performance tuning book

 

 
Oracle performance tuning 

software
 
Oracle 

performance Tuning 10g reference poster
 
Oracle training in Linux 

commands
 
Oracle training 

Excel
 
Easy Oracle Jumpstart
 
Oracle training & performance tuning books
 
Burleson Consulting Remote DB Administration
 
 
> Problem with CONTAINS function in 10g
shahul
post Apr 17 2007, 01:46 AM
Post #1


Advanced Member
***

Group: Members
Posts: 33
Joined: 15-February 07
Member No.: 7,003



Hi All,

I have the following query used in a package procedure. This package gets compiled in 8i. Now the database has been migrated to 10g using export and import. In 10g the package compilation fails. The error is at the CONTAINS function. Error says it is an invalid identifier.

Is CONTAINS deprecated in 10g? Is there any other alternative for CONTAINS? your help is highly appreciated.

select ISH.IND#ID,ISH.DATA,nvl(score(10),0)
from INDIV_SEARCH ISH,SANCTIONS SCN
where ISH.PARTITION_KEY = decode(p_partition_key,0, ISH.PARTITION_KEY,p_partition_key)
and contains( SCN.TEXT, replace_search_terms (ISH.DATA), 10) >= 0;
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
burleson
post Apr 17 2007, 05:19 AM
Post #2


Advanced Member
***

Group: Members
Posts: 7,063
Joined: 26-January 04
Member No.: 13



Hi,

>> The error is at the CONTAINS function. Error says it is an invalid identifier.

Have you created the required Oracle*Text index?

The "contains clause" is alive and well, and I have my notes here:

http://www.dba-oracle.com/t_sql_contains_clause.htm


--------------------
Hope this helps. . .

Donald K. Burleson
Oracle Press author
Author of Oracle Tuning: The Definitive Reference
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 8th February 2010 - 06:33 PM