Multiple MACTHES with OR gives error
Hi,
i'm new to oracle database.
I have problem with matches when i use OR but with AND it works fine.
SELECT DISTINCT members.email , authors.IDq
FROM authors, titles, members, queries
WHERE (queries.type = 'AND' AND queries.IDq = authors.IDq AND queries.IDq = titles.IDq AND queries.IDm = members.IDm )
AND ( (MATCHES(title_query,'Multiobjective Evolutionary Optimization of Greenhouse Vegetable Crop Distributions.')>0)
OR (MATCHES(author_query,'Francisco G. Montoya')>0));
ERROR at line 1:
ORA-20000: Oracle Text error:
DRG-10868: matches does not support functional invocation
I read the forum and think that i have to use SECTIONS GROUP is it going to work with SECTIONS ?
Also i can't understand how can i use SECTIONS GROUP because i have 2 INDEX then obviously i will have to go with 1 index .
All the creation of database is below
CREATE TABLE members (
IDm INT PRIMARY KEY,
username varchar2(80),
email varchar2(120),
fullname varchar2(120),
password varchar2(150)
CREATE TABLE queries (
IDq INT PRIMARY KEY,
IDm INT,
type varchar2(10),
query_string VARCHAR2(500)
CREATE TABLE authors (
IDa INT PRIMARY KEY,
IDq INT,
author_query varchar2(250)
CREATE INDEX authorsx ON authors(author_query) INDEXTYPE IS CTXSYS.CTXRULE;
CREATE TABLE titles (
IDt INT PRIMARY KEY,
IDq INT,
title_query varchar2(250)
CREATE INDEX titlesx ON titles(title_query) INDEXTYPE IS CTXSYS.CTXRULE;
CREATE SEQUENCE members_seq
START WITH 1
INCREMENT BY 1
NOCACHE
NOCYCLE
NOMAXVALUE;
CREATE SEQUENCE queries_seq
START WITH 1
INCREMENT BY 1
NOCACHE
NOCYCLE
NOMAXVALUE;
CREATE SEQUENCE authors_seq
START WITH 1
INCREMENT BY 1
NOCACHE
NOCYCLE
NOMAXVALUE;
CREATE SEQUENCE titles_seq
START WITH 1
INCREMENT BY 1
NOCACHE
NOCYCLE
NOMAXVALUE;
thanks you for your time.
Hi,
welcome to the forums.
The problem with this error is not because of the index, but the Oracle Optimizer. It tries sometimes functional invocation. A rewrite of the query can help to split the OR (through an union):
SELECT DISTINCT members.email , authors.IDq
from
select members.email, authors.idq
FROM authors, titles, members, queries
WHERE (queries.type = 'AND' AND queries.IDq = authors.IDq AND queries.IDq = titles.IDq AND queries.IDm = members.IDm )
AND MATCHES(title_query,'Multiobjective Evolutionary Optimization of Greenhouse Vegetable Crop Distributions.')>0
union all
select members.email, authors.idq
FROM authors, titles, members, queries
WHERE (queries.type = 'AND' AND queries.IDq = authors.IDq AND queries.IDq = titles.IDq AND queries.IDm = members.IDm )
AND MATCHES(author_query,'Francisco G. Montoya')>0
)Another option is to use Inline Views or Subquery Factoring (use of With in a select), but the above is the easiest to understand.
Try it and see if that works.
Herald ten Dam
http://htendam.wordpress.com
Similar Messages
-
HT201210 When I Restore My iPhone with itunes gives error -1 will end of the Installing firmware
When I Restore My iPhone with itunes gives error -1 will end of the Installing firmware
what is the problem ?Error -1 generally indicates a catastrophic hardware failure.
You'll need to bring your phone to Apple for evaluation -
When I Restore My iPhone with itunes gives error -1 will end of the Installing firmware
When I Restore My iPhone with itunes gives error -1 will end of the Installing firmware
Error 1 means, as the link that Chris gave you says, that your phone is either jailbroken or damaged.
It can also mean that your antivirus is blocking the update, but this is rare. Try disabling your antivirus if your phone is not jailbroken. If that doesn't resolve the problem you need to get the phone fixed or replaced.
If the phone IS jailbroken you have just learned why you should not hack an iPhone. And you will have to go somewhere other than an Apple-hosted forum for help. -
Weblogic with Hibernate gives error of named queries ? urgent
I have deployed my application on Weblogic 11g, it gives Hibernate Names query exception.
My Application uses Hibernate 3.0 and it works successfully on
Tomcat
JBOSS
Glassfish
But , on weblogic it gives Named query exception .Please any once can help.
I have put antlr-3.0 jar file in lib folder of Weblogic domain folder , and have added path of it in setDomainEnv.cmd file but still Hibernate gives error of named query.You can follow the steps presented here: http://middlewaremagic.com/weblogic/?p=5861
The reason for the failure is the antlr library, which is already loaded through the system classpath, so you
need to tell WebLogic which version is should load as Hibernate uses its own implementation of the antlr library.
Adding it to the domain/lib directory does not help as jar files placed in this directory are added at the end of the system classpath at the end.
Note that it is not good practice to place jar files in the domain/lib directory. -
Jaas ( web.xml) login with uix gives error
I configured a jaas login (web.xml) with my jheadstart project like the jsp example ( Secure BC4J Applications with Oracle9i VPD and Oracle 9iAS JAAS ) this works fine, I get a login box and after i log in, the oc4j server gives a error.
Error in CreateMarlinUIXPage.createUITree: no protocol: /uix/HomePage.uix
what can this be, the jsp example works finehere is my web.xml
<?xml version = '1.0' encoding = 'UTF-8'?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>sicma</display-name>
<description>sicma helpdesk applicatie</description>
<servlet>
<servlet-name>sicmaController</servlet-name>
<servlet-class>oracle.jheadstart.process.controller.JhsHttpServletController</servlet-class>
<init-param>
<param-name>cle-service-descriptor</param-name>
<param-value>sicmaService.xml</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>sicmaController</servlet-name>
<url-pattern>/Startsicma</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>startController</servlet-name>
<servlet-class>oracle.jheadstart.process.controller.JhsHttpServletController</servlet-class>
<init-param>
<param-name>cle-service-descriptor</param-name>
<param-value>startService.xml</param-value>
</init-param>
<security-role-ref>
<role-name>administrator</role-name>
<role-link>administrators</role-link>
</security-role-ref>
</servlet>
<servlet-mapping>
<servlet-name>startController</servlet-name>
<url-pattern>/Start</url-pattern>
</servlet-mapping>
<resource-ref>
<res-ref-name>jaas</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Application</res-auth>
</resource-ref>
<security-constraint>
<web-resource-collection>
<web-resource-name>jaas</web-resource-name>
<url-pattern>/</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>administrators</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>jazn.com</realm-name>
</login-config>
<security-role>
<role-name>administrators</role-name>
</security-role>
</web-app> -
Hi,
I am getting the below error for JXDM when using. It was mentioned in http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6302524 that it is fixed. Still getting this error.
a) Appreciate if anyone can tell how to use the bug fix b20 that is mentioned in the above? I downloaded the latest jaxb 2.0 from this site and also from the jaxb RI(Reference Implementation and tried both).
b) Is there any workaround to get through this?
Will appreciate if any one can give advise on this.
************** Here is the error message ******************
There was this problem creating a context com.sun.xml.bind.v2.runtime.IllegalAnn
otationsException: 1 counts of IllegalAnnotationExceptions
Two classes have the same XML type name "usStateCodeType". Use @XmlType.name and
@XmlType.namespace to assign different names to them.
this problem is related to the following location:
at gov.ojp.it.jxdm.usps_states._1.USStateCodeType
at protected gov.ojp.it.jxdm.usps_states._1.USStateCodeType gov.
ojp.it.jxdm._3_0_2.proxy.usps_states._1.USStateCodeType.value
at gov.ojp.it.jxdm._3_0_2.proxy.usps_states._1.USStateCodeType
at protected gov.ojp.it.jxdm._3_0_2.proxy.usps_states._1.USState
CodeType generated.CjsAddressType.locationStateCodeUSPostalService
at generated.CjsAddressType
at protected java.util.List generated.CjsPersonType.personAddres
s
at generated.CjsPersonType
at protected generated.CjsPersonType generated.CjsSuspectType.su
spectPerson
at generated.CjsSuspectType
at protected generated.CjsSuspectType generated.CjsReportType.su
spect
at generated.CjsReportType
at public generated.CjsReportType generated.ObjectFactory.create
CjsReportType()
at generated.ObjectFactory
this problem is related to the following location:
at gov.ojp.it.jxdm.fips_5_2._1.USStateCodeType
at protected gov.ojp.it.jxdm.fips_5_2._1.USStateCodeType gov.ojp
.it.jxdm._3_0_2.proxy.fips_5_2._1.USStateCodeType.value
at gov.ojp.it.jxdm._3_0_2.proxy.fips_5_2._1.USStateCodeType
at protected java.util.List gov.ojp.it.jxdm._3_0.AddressType.loc
ationStateCodeFips52Alpha
at gov.ojp.it.jxdm._3_0.AddressType
at protected java.util.List gov.ojp.it.jxdm._3_0.LocationType.lo
cationAddress
at gov.ojp.it.jxdm._3_0.LocationType
at protected java.util.List gov.ojp.it.jxdm._3_0.OrganizationTyp
e.organizationLocation
at gov.ojp.it.jxdm._3_0.OrganizationType
at protected java.util.List gov.ojp.it.jxdm._3_0.BookingType.boo
kingAgency
at gov.ojp.it.jxdm._3_0.BookingType
at generated.CjsBookingType
at public generated.CjsBookingType generated.ObjectFactory.creat
eCjsBookingType()
at generated.ObjectFactory
Check this out
Exception in thread "main" java.lang.NullPointerException
at bpd.MakeNewItem.marshallItem(MakeNewItem.java:119)
at bpd.MakeNewItem.persistItem(MakeNewItem.java:112)
at bpd.MakeNewItem.<init>(MakeNewItem.java:31)
at bpd.MakeNewItem.main(MakeNewItem.java:137)
********************End of error message ******************
Thanks
Sat
Message was edited by:
sat_pIn Help > About > Properties:
sqldeveloper.oci.available = true -
Databases with spatial give errors in log during export
my databases export fine, but the databases that have Spatial installed show these errors in the export logs..
enterprise database v11.2.0.2 patchset 11
ORA-39127: unexpected error from call to local_str := SYS.DBMS_EXPORT_EXTENSION.GET_DOMAIN_INDEX_METADATA('PARKING_SI','I_NAVTEQ','SDO_INDEX_METHOD_10I','MDSYS',11.02.00.00.00,newblock,0)
ORA-01403: no data found
ORA-01403: no data found
ORA-06512: at "SYS.DBMS_EXPORT_EXTENSION", line 270
ORA-06512: at line 1
ORA-06512: at "SYS.DBMS_METADATA", line 6498
expdp system/******* DIRECTORY=Export DUMPFILE=OSOW.DMP LOGFILE=OSOW.LOG FULL=Y PARALLEL=4
also tried with sys as sysdba. same resultsHi,
Install the patch Patch:10402740
roblem : ORA-39127 ORA-6512 In SYS.DBMS_EXPORT_EXTENSION During Datapump Export Of Domain Indexes
Kind Regards,
Rakesh -
Help! DLL's replying with strings give errors
Hi ,
I use the Call Library node to call a DLL function I wrote in C
void test (char Text[50])
strcpy(Text, "This is a test\0\n");
Next, I configured the Call Library Function as follows:
Parameter RETURN TYPE: Type = Void;
Parameter ARG1: Type = String; String format = C String Pointer;
(Which leads to Function prototype: void test(CStr arg1) )
The function executes just fine, but when I close the VI, I get an
APPLCATION ERROR! ("The instruction at '0x123456' referenced memory at
'0x123456'. The memory could not be read"). I guess this is when the DLL
is unloaded, but what am I doing wrong?
I am Using LabVIEW 5.1.1 & Win NT 4.0
Please help!
Patrick Pol
The NetherlandsThanks Greg,
I wired a string constant containing at least 50 characters to the input of the
Library node, and that got rid of my crashing-problems.
Patrick Pol
Greg McKaskle wrote:
> I believe that your problem here is that you told the C compiler that there
> were 50 characters reserved for the function to write in. A caller of this
> function will need to allocate storage for the DLL function to scribble into,
> or this will be a possible crash/corruption.
>
> The same thing is true of LV. The caller, in this case, LV has no idea
> how much space to allocate for the DLL call. You will need to do this
> on the diagram using a constant, a control, or some other function that
> produces a string large enough to store the data into.
>
> Greg M
cKaskle -
Running an ABAP Query with transaction gives error!
The queries are there (only in production systems), from PHX. When the queries are started from SQ00 they work.
*The question is, if this has to be done for every single query*?Hi,
When we upgraded, we had only few queries to be generated. Not all the queries were required to be generated...
Hence would depend on case to case..Better regenerate the query. This is similar to activation. Hence will not be an issues for already generated queries.
Hope this helps
Regards
Shiva -
Define Multiple Taxes with different Accounts
Dear Members
I have defined tax in Oracle R12 . and defined multiple rates. these all tax deducted in a single Tax account. but my requirement is, there should be multiple taxes with different acccounts. when I define multiple taxes the system gives error unable to Calculate the tax. when I only enable one tax it works.
Current sanario tax rates
2% Account # 666461
3% Account # 666461
3.5% Account # 666461
Required Sanario
2% Account # 666461
3% Account # 666462
3.5% Account # 666463
Should be different
Do you have any Idea How I configure it.Hmmm, thought I did that but ran into issues...Will give it a harder look.
Thank you for your reply, tt2...BTW, I've been reading these forums for awhile now and your replies in other posts have helped me so thanks for all of them, too... -
HelloThank's for your helpsI hope this document is helpfulBest Regards,
Date: Sun, 22 Jun 2014 17:10:17 -0700
From: [email protected]
To: [email protected]
Subject: when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help me th
when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help m
created by Anoop9178 in Adobe Reader - View the full discussion
Hi,
Would it be possible for you to share the document?
Regards,
Anoop
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6485431#6485431
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Adobe Reader by email or at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.thank's for reply and your help
i did the step's that you told me but i still have the same problem
i have the latest v.11.0.7
i
i disable the protected mode -
when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ?
if you can help me thank's
[email address removed by host]thank's for reply and your help
i did the step's that you told me but i still have the same problem
i have the latest v.11.0.7
i
i disable the protected mode -
Error in multiple operation with change document object for custom table
hi all,
I have developed a change document object for a custom table ZTEST and developed a report program for insertion, updation & deletion..everything works fine if I do only once ie. if I created only 1 entries. If I created 2 new entries , I am getting an Error "DUPREC:POS&Z3RL_TAB&Z3RL_TAB" and EXIT the transaction.
why I am getting this error??? is it not possible to do multiple operation with the change document???
kindly help.
Edited by: JaiKarthik on Apr 7, 2010 6:20 AMLOOP AT ts_mod INTO wa_mod.
READ TABLE <i_itab> INTO <wa_tab> INDEX wa_mod-row.
* Select the existing entries in table Z3RL for change history
SELECT SINGLE * FROM z3rl
INTO wa_z3rl
WHERE vkorg = <wa_tab>+3(4)
AND zzkunnr = <wa_tab>+7(10).
* Move the old entries
IF sy-subrc = 0.
CLEAR ls_z3rl.
ls_z3rl = wa_z3rl.
ENDIF.
* Update the table
MODIFY (viewname) FROM <wa_tab>.
CLEAR wa_z3rl.
wa_z3rl-mandt = <wa_tab>+0(3).
wa_z3rl-vkorg = <wa_tab>+3(4).
wa_z3rl-zzkunnr = <wa_tab>+7(10).
* Populate change tables
CLEAR wa_change.
wa_change-teilobjid = 'Z3RL'.
wa_change-textart = 'TEST_2'.
wa_change-textspr = 'EN'.
wa_change-updkz = 'U'.
APPEND wa_change TO ts_change.
*call the fM to log the values in CDHDR table.
CALL FUNCTION 'Z3RL_WRITE_DOCUMENT'
EXPORTING
objectid = 'Z3RL'
tcode = sy-tcode
utime = sy-uzeit
udate = sy-datum
username = sy-uname
planned_change_number = ' '
object_change_indicator = 'U'
planned_or_real_changes = 'U'
no_change_pointers = 'U'
upd_icdtxt_z3rl= 'U'
n_z3rl= wa_z3rl
o_z3rl = ls_z3rl
upd_z3rl= 'U'
lv_opt = ' '
TABLES
icdtxt_z3rl= ts_change.
CLEAR : wa_mod, <wa_tab>.
ENDLOOP.
Edited by: JaiKarthik on Apr 7, 2010 6:49 AM -
ITunes gives error code -54 when sync with my iphone 5
iTunes gives error code (-54) when i try to sync with my iphone5
I am having the same issue. Since updating to iTunes 11 my iPhone 5 will no longer wirelessly sync. I am operating the latest version of Mountain Lion on a two month old Macbook Pro. When I plug in the USB I go through the steps of making sure the box is clicked to Wireslly sync, but after a few minutes of un-plugging the cord my phone dissapears from my devices. It tries to locate it, but cannot.
Furthermore, when I launched iTunes 11 for the first time my phone was synced, but since I accidenttly hit the eject button in the top right, this button has yet to come back. Even when the iPhone is linked via USB. Am I Crazy, stupid, or is this a bug?
BTW, how did MrTrav15 have this problem on 10/17 a month-and-a-half before the launching of iTunes 11? -
When I am uploading file with special character it gives error
Hi All,
I am uplloading one file with special character then it gives error. Please let me know solutions on this is soon as possible.
Thanks,
Madhavhi are you looking for the file to be transferred with the special character then declare it wil the char field...and send it..
or the special charactera are coming unnecessary use the command ............replace all occurances to avoid this..
Maybe you are looking for
-
Why do i have duplicate calendars?
I noticed this morning that I have duplicate calendars showing duplicate events on all of my devices: iMac 2011, MacBook Pro Retina 2014, iPad Air and iPhone 4S. All with latest system updates. Only the calendar for my school events (which I use most
-
Unable to delete the file. (Some times deletes and sometime fails to delet)
Please help me in deleting the file from the temporary location . Below is my code //Append the session is with filename as there is possibility of having same name of file. try{ boolean isMultipart = ServletFileUpload.isMultipartContent(request)
-
Order Reason ABC not defined for Order Type Retrun order
Hi I am getting following " Message no. V1 899 " when i am doing return order without refernce . Order reason is defined in customization but still we are getting the following message " Message no. V1 899 " /Order Reason E18 not defined for Order T
-
When I got home I synced my phone to itunes so I would have all my information. So now everything looks just like my old phone did. Great, but I can't find the new things such as Siri. How do I find her and did I do something wrong?
-
Problem loggin to Websheet application - error HTTP 403
Hi Experts, I need your help : My Apex configuration: apex 4.0.1.00.03 working with Weblogic +apex listener DB 11.2 -Can create and run successfully DB Applications on my Apex -Can create Websheet application but when I try to run it I get: "Requeste