CONTAINS query -- the NOT operator

Is there a way to do the following:
SELECT *
FROM mytable
WHERE CONTAINS (my_search_col,'NOT keyword',1) > 0;
When I do this, I receive the error:
ERROR at line 1:
ORA-29902: error in executing ODCIIndexStart() routine
ORA-20000: Oracle Text error:
DRG-50901: text query parser syntax error on line 1, column 1
From reading the documentation, it appears that the NOT operator is really an 'AND NOT' operator. Is there a way to perform a true NOT?
Thanks for your help,
Yun-Ho

Here are a few options:
SCOTT@10gXE> CREATE TABLE mytable (my_search_col VARCHAR2(30))
  2  /
Table created.
SCOTT@10gXE> INSERT ALL
  2  INTO mytable VALUES ('wanted')
  3  INTO mytable VALUES ('keyword')
  4  INTO mytable VALUES ('wanted and keyword')
  5  INTO mytable VALUES ('keyword and wanted')
  6  INTO mytable VALUES ('this, that, and the other')
  7  INTO mytable VALUES ('whatever')
  8  SELECT * FROM DUAL
  9  /
6 rows created.
SCOTT@10gXE> CREATE INDEX my_index ON mytable (my_search_col)
  2  INDEXTYPE IS CTXSYS.CONTEXT
  3  /
Index created.
SCOTT@10gXE> SELECT *
  2  FROM   mytable
  3  WHERE  NOT CONTAINS (my_search_col, 'keyword', 1) > 0
  4  /
MY_SEARCH_COL
wanted
this, that, and the other
whatever
SCOTT@10gXE> SELECT *
  2  FROM   mytable
  3  WHERE  CONTAINS (my_search_col, '_% NOT keyword', 1) > 0
  4  /
MY_SEARCH_COL
wanted
this, that, and the other
whatever
SCOTT@10gXE> SELECT *
  2  FROM   mytable
  3  WHERE  CONTAINS (my_search_col, 'keyword', 1) = 0
  4  /
MY_SEARCH_COL
wanted
this, that, and the other
whatever
SCOTT@10gXE>

Similar Messages

  • What is the difference between != and Logical NOT operator

    kindly,tell me what is the difference between Not Equality operator and logical negation operator.
    Edited by: user13414134 on Dec 3, 2010 8:59 AM

    what is the difference between != and Logical NOT operator The NOT operator is transformed into the inequality operator (<>), as can be seen from the Predicate Information of the explain plan:
    SQL> explain plan for select * from dual where  :x != :y
    Explain complete.
    SQL> select * from table(dbms_xplan.display())
    PLAN_TABLE_OUTPUT                                                              
    Plan hash value: 3752461848                                                    
    | Id  | Operation          | Name | Rows  | Bytes | Cost (%CPU)| Time     |    
    |   0 | SELECT STATEMENT   |      |     1 |     2 |     2   (0)| 00:00:01 |    
    |*  1 |  FILTER            |      |       |       |            |          |    
    |   2 |   TABLE ACCESS FULL| DUAL |     1 |     2 |     2   (0)| 00:00:01 |    
    Predicate Information (identified by operation id):                            
       1 - filter(:Y<>:X)                                                          
    14 rows selected.
    SQL> explain plan for select * from dual where not :x = :y
    Explain complete.
    SQL> select * from table(dbms_xplan.display())
    PLAN_TABLE_OUTPUT                                                              
    Plan hash value: 3752461848                                                    
    | Id  | Operation          | Name | Rows  | Bytes | Cost (%CPU)| Time     |    
    |   0 | SELECT STATEMENT   |      |     1 |     2 |     2   (0)| 00:00:01 |    
    |*  1 |  FILTER            |      |       |       |            |          |    
    |   2 |   TABLE ACCESS FULL| DUAL |     1 |     2 |     2   (0)| 00:00:01 |    
    Predicate Information (identified by operation id):                            
       1 - filter(:Y<>:X)                                                          
    14 rows selected.

  • Slow performance using "NOT" operator

    Hello,
    We are experiencing extremely poor performance using the "not" operator as follows:
    AND contains(product.mycontextindex, '(music & rock) ~ hip', 1) > 0
    This query may take up to two minutes whereas eliminating the "~ hip" text will complete in 3-4 seconds. The index is fairly large. Is this a common problem for Oracle Text? Is there anything we can do to speed up the query?
    Thanks in advance.
    David.

    We are using 9i (9.2 I believe). The problem was much worse with 8i. Queries would not even return. 9i, however, hasn't really made the performance acceptable.

  • NOT operator

    hi everyone, i am having problem with the not operator in oracle.
    consider the following
    WITH data AS
    SELECT 'TAK' cd, 'PL' TYPE FROM dual UNION ALL
    SELECT 'TAK' cd, NULL TYPE FROM dual
    SELECT * FROM data WHERE NOT (cd = 'TAK' AND TYPE='PL')
    the above is not returning anything. what i want to do is to exclude all rows with cd=TAK and TYPE=PL
    the rest should be display. so the output should be
    CD       TYPE
    ============
    TAK      <NULL VALUE HERE>however, the query above is not doing that. how can i modify my query to exclude rows with cd=TAK and TYPE=PL but display the one that doesnt match this condition like
    second row, cd=TAK and TYPE=null

    Hi,
    elmasduro wrote:
    hi everyone, i am having problem with the not operator in oracle.
    consider the following
    WITH data AS
    SELECT 'TAK' cd, 'PL' TYPE FROM dual UNION ALL
    SELECT 'TAK' cd, NULL TYPE FROM dual
    SELECT * FROM data WHERE NOT (cd = 'TAK' AND TYPE='PL')the above is not returning anything. what i want to do is to exclude all rows with cd=TAK and TYPE=PL
    the rest should be display. so the output should be
    CD       TYPE
    ============
    TAK      <NULL VALUE HERE>however, the query above is not doing that. how can i modify my query to exclude rows with cd=TAK and TYPE=PL but display the one that doesnt match this condition like
    second row, cd=TAK and TYPE=nullRemember, SQL uses 3-value logic.
    Conditions can be TRUE, FALSE or UNKNOWN. Rows are returned if (and only if) the WHERE clause evaluates to TRUE.
    If either cd or type is NULL, but the other variable is what the condition is checking for, then
    WHERE NOT (cd = 'TAK' AND TYPE='PL')will evaluate to UNKNOWN, because
    NULL = x     is always UNKNOWN, regardless of what x is,
    TRUE AND UNKNOWN     is UNKNOWN, and
    NOT UNKNOWN     is UNKNOWN.
    See the truth tables in the SQL language manual:
    http://docs.oracle.com/cd/E11882_01/server.112/e26088/conditions004.htm#sthref1938
    If you want to equate NULL cds with something other than 'TAK', and to equate NULL types with something other than 'PL', here's one way to do it:
    SELECT     *
    FROM     data
    WHERE     NVL (cd,   'OK') != 'TAK'
    OR     NVL (type, 'OK') != 'PL'
    ;I find the condition above easier to understand than the condition below, but they get the same results.
    SELECT     *
    FROM     data
    WHERE     NOT (    NVL (cd,   'OK') = 'TAK'
             AND      NVL (type, 'OK') = 'PL'
    ;

  • Problem when using About Operator in Contains Query

    Hi,
    I'm new to Oracle and this forums too. I have a problem when using about operator in contains query.
    I create a table with some records and then create a context index on 'name' column.
    CREATE TABLE my_items (
      id           NUMBER(10)      NOT NULL,
      name         VARCHAR2(200)   NOT NULL,
      description  VARCHAR2(4000)  NOT NULL,
      price        NUMBER(7,2)     NOT NULL
    ALTER TABLE my_items ADD (
      CONSTRAINT my_items_pk PRIMARY KEY (id)
    CREATE SEQUENCE my_items_seq;
    INSERT INTO my_items VALUES(my_items_seq.nextval, 'Car', 'Car description', 1);
    INSERT INTO my_items VALUES(my_items_seq.nextval, 'Train', 'Train description', 2);
    INSERT INTO my_items VALUES(my_items_seq.nextval, 'Japan', 'Japan description', 3);
    INSERT INTO my_items VALUES(my_items_seq.nextval, 'China', 'China description', 4);
    COMMIT;
    EXEC ctx_ddl.create_preference('english_lexer','basic_lexer');
    EXEC ctx_ddl.set_attribute('english_lexer','index_themes','yes');
    EXEC ctx_ddl.set_attribute('english_lexer','theme_language','english');
    CREATE INDEX my_items_name_idx ON my_items(name) INDEXTYPE IS CTXSYS.CONTEXT PARAMETERS('lexer english_lexer');
    EXEC ctx_ddl.sync_index('my_items_name_idx');Then I perform contains query to retrieve record :
    SELECT count(*) FROM my_items WHERE contains(name, 'Japan', 1) > 0;
    COUNT(*)
          1
    SELECT count(*) FROM my_items WHERE contains(name, 'about(Japan)', 1) > 0;
    COUNT(*)
          1But the problem is when I using ABOUT operator like in Oracle's English Knowledge Base Category Hierarchy it return 0
    SELECT count(*) FROM my_items WHERE contains(name, 'about(Asia)', 1) > 0;
    COUNT(*)
          0
    SELECT count(*) FROM my_items WHERE contains(name, 'about(transportation)', 1) > 0;
    COUNT(*)
          0I can't figure out what 's wrong in my query or in my index.
    Any help will be appreciated.
    Thanks,
    Hieu Nguyen
    Edited by: user2944391 on Jul 10, 2009 3:25 AM

    Hello (and welcome),
    You'd be best asking this question in the Oracle Text forum, here:
    Text
    And by the way, it will help others to analyse if you put {noformat}{noformat} (lowercase code in curly brackets) before and after your code snippets.
    Good luck!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How does the Filter Operator "Contains" work on the Interactive Reports?

    version 4.0.2.00.07
    Hello,
    I'm creating Tool Tip definitions for the Operators in the Filter on the Interactive Reports. I was looking for a definition for the 'Contains' operator and from what I've found this operator is used to do a text search and it returns a relevance score for every row selected.
    I've also read that in order for that score to be determined that the column(s) need to be indexed with a CONTEXT index. Non of the columns in the tables are indexed with a CONTEXT index, however, when I put a value in the Expression box for a column I get a record returned.
    If I run the same query in PL/SQL Developer like:
    SELECT <column>
    FROM <table>
    WHERE contains(<column>,<search text>,1) > 0;I get an error that the column is not indexed, so how does it work in APEX?
    Thanks,
    Joe

    Joe R wrote:
    I'm creating Tool Tip definitions for the Operators in the Filter on the Interactive Reports. I was looking for a definition for the 'Contains' operator and from what I've found this operator is used to do a text search and it returns a relevance score for every row selected.The IR "Contains" filter is not the same as the Oracle Text <tt>contains</tt> operator.
    The IR "Contains" filter performs a simple string comparison on all of the column values returned. It does not make use of any Oracle Text indexes on the underlying data.
    Despite < a href="https://forums.oracle.com/forums/thread.jspa?messageID=2434666">vague promises of enhancement</a>, no Oracle Text support has yet been included in Interactive Reports.

  • Querying objects not in the NamedCache

    The wiki topic on querying (http://wiki.tangosol.com/display/COH32UG/Querying+the+Cache ) points out that a query will "apply only to currently cached data".
         This seems fairly logical because it seems unreasonable to expect the cache to hold onto information that it has already evicted.
         If you were to design a DAO layer (following http://wiki.tangosol.com/display/COH32UG/Managing+an+Object+Model ) using the first of the following architectures:
         1. Direct Cache access:
         App <---> NamedCache <---> CacheStore <---> DB
         2. Direct Cache and DB-DAO access:
         App
         |
         CacheAwareDAO <---> CacheStore <---> DB
         |
         NamedCache
         |
         CacheStore
         |
         DB
         you would then have a situation where you would not be able to query evicted data.
         So by using the 2nd strategy I assume you would probably always want to bypass the cache for all queries other than by primary key, to ensure that you are always querying the entire persistent population.
         This seems a little coarse grained and also reduces the utility of the Coherence cache (unless the bulk of your queries are by primary key).
         Can anybody tell me if my assumption is wrong and if there are any usage strategies the mitigate this aspect?
         Thx,
         Ben

    Hi Rob,     >
         > Why would you need 2 separate caches?
         the first cache would have eviction policy, and caches values, but does not have indexes
         the second would not have eviction, does not store data, but has index updates on changes.
         This way you have a fully indexed but not stored data-set, similarly to the difference between stored and indexed attributes Lucene.
         > Why not just
         > maintain a index within each cache so that every
         > entry causes the index to get updated inline (i.e.
         > synchronously within the call putting the data into
         > the cache)?
         >
         You cannot manually maintain an index, because that is not a configurable extension point (it is not documented how an index should be updated manually). You have to rely on Coherence to do it for you upon changes to entries in the owned partitions.
         And since Coherence code does remove index references to evicted or removed data, therefore the index would not know about the non-cached data.
         Or did I misunderstood on how you imagine the indexes to be maintained? Did you envision an index separate from what Coherence has?
         > (You may have to change Coherence to do this.....)
         Changing Coherence was exactly what I was trying to avoid. I tried to come up with things within the specified extension points, and the allowed things, although it might be possible that I still did not manage to remain within the allowed set of operations.
         Of course, if changing Coherence is allowed, allowing an option of filtering index changes to non-eviction events is probably the optimal solution.
         > And I don't think that the write-behind issue would
         > be a problem, as the current state cache of the cache
         > (and it's corresponding index) reflects the future
         > state of the backing store (which accordingly to
         > Coherence's resilience guarantee will definitely
         > occur).
         >
         The index on the second cache in the write-behind scenario would be out-of-synch only if the second cache is updated by invocations to the cache-store of the first cache. If it is updated upon changes to the backing map, then it won't. Obviously if you don't have 2 caches, but only one, it cannot be out-of-synch.
         > So you would have a situation where cache evictions
         > occur regularly but the index just overflows to disk
         > in such a fashion that relevant portions of it can be
         > recalled in an intelligent fashion, leveraging some
         > locality of reference for example.
         >
         I don't really see, how this could be done. AFAIK, all the indexes Coherence has are maintained in memory and does not overflow to disk, but I may be wrong on this, but again, I may have misunderstood what you refer on index handling.
         > a) you leverage locality of reference by using as
         > much keyed data access as possible
         > b) have Coherence do the through-reading
         > c) use database DAO for range querying
         > d) if you were to use Hibernate for (c), you might be
         > able to double dip by using Coherence as an L2 cache.
         > (I don't know if this unecessarily duplicates cached
         > data....)
         >
         > Any thoughts on this?
         a: if you know ids on your own, then this is the optimal solution, provided cache hit rates can be driven high enough. if you have to query for ids, the latency might be too high.
         b: read-through can become suboptimal, since AFAIK, currently the cache store reads all rows one by one, only read-ahead uses loadAll, but I may be wrong on this. Loading from database can be optimized for multiple id loading as well, to be faster than the same via cache store. So it is very important that the cache hit rate be very high for performance-relevant data in case of read-through.
         c: use database dao for complex querying, possibly almost anything more complex than straight top-down queries. make performance tests for both solutions, try to rely on partition affinity, and try to come up with data structures that help with making indexes which can be queried with as few queries as possible, and with not too high index access count.
         d: you cannot query by Coherence on Hibernate second-level cache, as Hibernate second-level caches do not contain structured data, but contain byte[][]s or byte[], holding the column values serialized to it (separately or the same byte[], I don't remember which).
         Best regards,
         Robert

  • How to change the 'Default operating mode' of a mapping on the repository and not from the client

    Hi everybody,
    I am using OWB 11.2.0.3 and under the mapping's configuration property, I have the necessity to change the Run time parameter "Default operating mode" to SET_BASED in almost all my mappings.
    Because I have 745 mappings in which the Default operating mode is different from SET_BASED, instead to open 745 times the 'Configure' and update manually the value, is there a way to update safely these values (with an oracle predefined script) directly on the repository ?
    I know that exists a view called CMPSTRINGPROPERTYVALUE_V based on a table called CMPSCOPrpClasses, but changing this table it's very complicated for me because contains only keys and then I don't know in which way is connected with all the other structures....
    If somebody knows a method more efficient to do these updates on the repository and not from OWB client I will appreciated it!
    Thanks in advance
    Alessandro

    Urgent... help!!! Thanks
    in short, my server log says transaction access mode is "read only", so my calling home.create() always triggers a transaction rollback. How to change the access mode to "read write"?
    Is possible to work out through one of the descriptor files? Or ini settings of the underlying pointbase database? Or any other way around?

  • The selected operation process could not be invoked.

    The selected operation process could not be invoked.
    An exception occured while invoking the webservice operation. Please see logs for more details.
    java.lang.Exception: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: XPath expression failed to execute. An error occurs while processing the XPath expression; the expression is bpws:getVariableData('Variable_1') <= ora:getPreference(dyn_var). The XPath expression failed to execute; the reason was: oracle.xml.parser.v2.XMLNodeList cannot be cast to java.lang.String. Check the detailed root cause described in the exception message text and verify that the XPath query is correct. at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:575) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:381) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:298) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.el.parser.AstValue.invoke(AstValue.java:157) at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283) at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53) at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1259) at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:90) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:94) at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:97) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:90) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:94) at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:91) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:698) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:285) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420) at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.emSDK.license.LicenseFilter.doFilter(LicenseFilter.java:101) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.emas.fwk.MASConnectionFilter.doFilter(MASConnectionFilter.java:41) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.AuditServletFilter.doFilter(AuditServletFilter.java:179) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:203) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.core.app.perf.PerfFilter.doFilter(PerfFilter.java:141) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:542) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) Caused by: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: XPath expression failed to execute. An error occurs while processing the XPath expression; the expression is bpws:getVariableData('Variable_1') <= ora:getPreference(dyn_var). The XPath expression failed to execute; the reason was: oracle.xml.parser.v2.XMLNodeList cannot be cast to java.lang.String. Check the detailed root cause described in the exception message text and verify that the XPath query is correct. at oracle.sysman.emSDK.webservices.wsdlapi.dispatch.DispatchUtil.invoke(DispatchUtil.java:260) at oracle.sysman.emSDK.webservices.wsdlparser.OperationInfoImpl.invokeWithDispatch(OperationInfoImpl.java:985) at oracle.sysman.emas.model.wsmgt.PortName.invokeOperation(PortName.java:729) at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:569) ... 69 more Caused by: javax.xml.ws.soap.SOAPFaultException: XPath expression failed to execute. An error occurs while processing the XPath expression; the expression is bpws:getVariableData('Variable_1') <= ora:getPreference(dyn_var). The XPath expression failed to execute; the reason was: oracle.xml.parser.v2.XMLNodeList cannot be cast to java.lang.String. Check the detailed root cause described in the exception message text and verify that the XPath query is correct. at oracle.j2ee.ws.client.jaxws.DispatchImpl.throwJAXWSSoapFaultException(DispatchImpl.java:955) at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:750) at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:234) at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invoke(OracleDispatchImpl.java:105) at oracle.sysman.emSDK.webservices.wsdlapi.dispatch.DispatchUtil.invoke(DispatchUtil.java:256) ... 72 more

    The selected operation process could not be invoked.
    An exception occured while invoking the webservice operation. Please see logs for more details.
    java.lang.Exception: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: XPath expression failed to execute. An error occurs while processing the XPath expression; the expression is bpws:getVariableData('Variable_1') <= ora:getPreference(dyn_var). The XPath expression failed to execute; the reason was: oracle.xml.parser.v2.XMLNodeList cannot be cast to java.lang.String. Check the detailed root cause described in the exception message text and verify that the XPath query is correct. at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:575) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:381) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:298) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.sun.el.parser.AstValue.invoke(AstValue.java:157) at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283) at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53) at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1259) at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:90) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:94) at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:97) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:90) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:309) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:94) at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:91) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:698) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:285) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:177) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420) at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.emSDK.license.LicenseFilter.doFilter(LicenseFilter.java:101) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.emas.fwk.MASConnectionFilter.doFilter(MASConnectionFilter.java:41) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.AuditServletFilter.doFilter(AuditServletFilter.java:179) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:203) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.core.app.perf.PerfFilter.doFilter(PerfFilter.java:141) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:542) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) Caused by: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: XPath expression failed to execute. An error occurs while processing the XPath expression; the expression is bpws:getVariableData('Variable_1') <= ora:getPreference(dyn_var). The XPath expression failed to execute; the reason was: oracle.xml.parser.v2.XMLNodeList cannot be cast to java.lang.String. Check the detailed root cause described in the exception message text and verify that the XPath query is correct. at oracle.sysman.emSDK.webservices.wsdlapi.dispatch.DispatchUtil.invoke(DispatchUtil.java:260) at oracle.sysman.emSDK.webservices.wsdlparser.OperationInfoImpl.invokeWithDispatch(OperationInfoImpl.java:985) at oracle.sysman.emas.model.wsmgt.PortName.invokeOperation(PortName.java:729) at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:569) ... 69 more Caused by: javax.xml.ws.soap.SOAPFaultException: XPath expression failed to execute. An error occurs while processing the XPath expression; the expression is bpws:getVariableData('Variable_1') <= ora:getPreference(dyn_var). The XPath expression failed to execute; the reason was: oracle.xml.parser.v2.XMLNodeList cannot be cast to java.lang.String. Check the detailed root cause described in the exception message text and verify that the XPath query is correct. at oracle.j2ee.ws.client.jaxws.DispatchImpl.throwJAXWSSoapFaultException(DispatchImpl.java:955) at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:750) at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:234) at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invoke(OracleDispatchImpl.java:105) at oracle.sysman.emSDK.webservices.wsdlapi.dispatch.DispatchUtil.invoke(DispatchUtil.java:256) ... 72 more

  • The requested operation could not be performed because OLE DB provider "MSOLAP" for linked server does not support the required transaction interface.

    I am getting the following error when attempting to INSERT the results of an "EXEC(@MDXQuery) at SSAS LinkedServer":
    The requested operation could not be performed because OLE DB provider "MSOLAP" for linked server does not support the required transaction interface.
    Here is code that illustrates what I am doing:
    DECLARE @MDX varchar(max);
    SET @MDX='
    SELECT
    [Measures].[Extended Service Count]
    } ON COLUMNS,
    NON EMPTY [Organization].[By Manufacturer].[Manufacturer]
    ON ROWS
    FROM (
    SELECT
    {[Organization].[Org Tree].&[2025],[Organization].[Org Tree].&[2040]} ON 0
    FROM [MyCube]
    /* Test 1 */
    EXECUTE(@MDX) at SSASLinkedServer;
    /* Test 2 */
    DECLARE @ResultsB TABLE (
    Manufacturer varchar(255)
    , ExtendedServiceCount float
    INSERT INTO @ResultsB (Manufacturer, ExtendedServiceCount) EXECUTE(@MDX) at SSASLinkedServer;
    Test 1 succeeds, returning expected results, and Test 2 fails returning the error mentioned above.
    Other articles I've found so far don't seem to apply to my case.  I am not creating any explicit transactions in my code.   When I use OPENQUERY, I am able to do the insert just fine, but not when I use EXEC @MDX at LinkedServer.
    Unfortunately in some variations of the query, I run into the 8800 character limit on OPENQUERY, so I need to use this other approach.
    Any ideas?
    -Tab Alleman

    Hi Tab,
    In this case, SQL Server Analysis Services doesn’t support Distributed Transactions by design. Here is a similar thread about this issue for your reference, please see:
    http://social.technet.microsoft.com/Forums/en-US/8b07be45-01b6-49d4-b773-9f441c0e44c9/olaplinked-server-error-msolap-for-linked-server-olaplinked-server-does-not-support-the?forum=sqlanalysisservices
    One workaround is that use SQLCMD to execute the EXEC AT command and saved the results to a file, then import using SSIS.
    If you have any feedback on our support, please click
    here.
    Regards,
    Elvis Long
    TechNet Community Support

  • 2012 R2 Fax Server -- "The Message could not be sent. The wait operation timed out."

    I receive the following error on a newly installed 2012 R2 fax server when sending from the Windows Fax and Scan console:
     "The Message could not be sent.  The wait operation timed out."
    The test fax that fails only contains text that I type into the body.  However, if I add an attachment, the fax is successful.
    Any ideas??

    Hi,
    Would you please let me confirm whether install any third-party application on the Windows Server 2012 R2?
    Please perform a clean boot to eliminate software conflicts and monitor the result. Please also check if you install all necessary updates on the server.
    Meanwhile, please run
    sfc /scannow command to scan all protected system files and check if find issues.
    Please also refer to following article and check if can help you.
    Troubleshooting Your Fax Server
    By the way, there is a similar thread. Please also refer to following thread and check if can help you.
    Windows
    Fax and scan (Windows 8)
    Hope this helps.
    Best regards,
    Justin Gu

  • Can I place an image in the Note section of Contact book . I use a MacBook Pro with Yosemite 10.10 . I am NOT talking about using an image to identify the contact, just an image that contains some information relevant to the contact. I have tr

    I want to place an image in the Note section of my Contact book . I use a MacBook Pro with Yosemite 10.10 . I am NOT talking about using an image to identify the contact, just an image that contains some information relevant to the contact. I have tried copying and pasting, dragging and dropping.

    From reading Vista forums support for SSD is one of the things Vista SP2 and Windows 7 hope (need) to improve upon. I was in a similar discussion once befoe on SSDs:
    http://discussions.apple.com/thread.jspa?messageID=8482110
    http://news.cnet.com/8301-13924_3-10026010-64.html
    http://www.intel.com/design/flash/nand/mainstream/index.htm
    http://www.google.com/search?hl=en&rls=com.microsoft%3Aen-US&q=IntelSSDVista
    I don't think it is EFI issue, but with XP and drivers, lack, and wonder if you can try with Vista?
    http://arstechnica.com/news.ars/post/20080908-intel-tosses-hat-into-ssd-ring-wit h-80gb-launch.html
    That won't solve performance issues, but should work.
    http://www.reghardware.co.uk/2008/07/22/sandiskssd_vistabeef/
    "My guess is that [Samsung and Microsoft] are maybe working on the OS recognizing an SSD with a 4K-byte sector size instead of a hard disk drive with a 512-byte sector size," Wong said.
    Sun is already working with Samsung to bulk up SSD support on the ZFS (Zettabyte File System), which is included in the Solaris OS, and will also be supported in Apple's upcoming Mac OS X 10.6, codenamed Snow Leopard. Sun is adding capabilities to boost the durability and performance of SSDs on ZFS-based operating systems. For example, Sun may add defragmentation capabilities for SSDs, which organizes data in a particular order to enable quicker data access.
    SSDs were not considered ideal for defragmentation because of limited read-and-write capabilities, Wong said. However, Samsung and Sun in July jointly announced an 8G-byte SSD that bumped up durability from 100,000 read-and-write cycles to 500,000. That brings defragmentation in SSDs closer to reality, which could improve its caching and provide quicker access to data. Sun plans to put SSDs into storage products later this year.
    http://www.itworld.com/operating-systems/54115/samsung-microsoft-talks-speed-ssd s-vista

  • Ad hoc query does not contain a list

    Hi,
    We created an infoset using table join (T5U13, PA0001 and T5UEE). But as we run transaction PAAH and choose a query assigned to the new infoset, we are getting a pop up screen that says "Query does not contain a list". The button hitlist does not appear in the screen and when we try to search we get the prompt "No data was selected".
    Thanks in advance!

    Hi,
    I am getting the similar error.waht i have done is as follows.may I know the resolution.
    After creating the Adhoc query using the join table functionality the resulting adhoc query does not results any out put.
    What I have done is :
    1.Created a user group through SQ03
    2.Attched user to My user group
    3.Created an infoset using join table functionality(SQ02).
    4.Saved and generated the infoset
    5.Added the user group to the infoset and than run the ADHOC query.
    The table I have used to join is all PA table (For test pupose)
    Though the purpose of the custom infoset is to join PA,OM and E rec infotypes, for testing purpose I have joined only PA infotypes.
    Result:The adhoc query does not gives any out put instead it says no data could be read.
    Could you please tell what else I need to do so that the custom infosets gives an out put.
    Will greatly appreciate your help.
    Thanks and best regards
    Rajeev

  • VO CONTAINS ALL THE DB ROWS AUTOMATICALLY WITHOUT ANY QUERY EXECUTION

    HI ALL,
    I am getting a strange issue. I have two VO say UserVO and PasswordVO.
    When i run the application i am not using any BC component in HomePg. I click on login and through another read only VO i am authenticating.
    After authentication i am doing getUserVO() and in WATCH i can see fetched row count and row count showing all the rows from DB. This View Object has not been executed before and still it shows all the rows.
    Now when i apply a view criteria into it and execute the query still it contains all the rows. Its not filtering it.
    Also, i have overridden executeQuery and executeQueryForCollection methods and i have put debug points there.
    It comes there only when i am explicitly executing the query after applying view criteria.
    Please let me know if i am doing something wrong.
    Thanks,
    Deepak

    Thanks Timo for a quick reply.
    a) I am using JDEV 11G Release 1 (11.1.1.6.0)
    b) Also i am specify the following two parameters in java options and still logs are not coming up in console:
    -Djbo.debugoutput=console -Djps.app.credential.overwrite.allowed=true
    c) "The framework executes vo in the background using the default query."
    Does that mean framework doesn`t internally call executeQuery to get rows from DB and executes the query some other way.
    As i have break point and its not coming there at all.
    Please advise.
    Thanks,
    Deepak

  • Memeber server in a domain connected with external trust. The agent operation failed, DPM could not communicate with the DPM agent. Error ID 270

    I manually installed the agent on a member server in a domain (domainB) that has an external trust with the domain the DPM 2010 server, mydpmserver.domainA.int,  is in.
    I pointed the agent on myprotectedserver with setdpmserver -dpmservername mydpmserver.domainA.int
    I successfully ran attach-productionserver.ps1 in DPM Management Shell.
    When I click refresh in DPM 2010 Administrator Console/Management/Agents I get error id: 270
    The agent operation failed on myprotectedserver.domainB.int because DPM could not communicate with the DPM protection agent. The computer may be protected by another DPM server, or the protection agent may have been uninstalled on the protected computer.
    If myprotectedserver.domainB.int is a workgroup server, the password for the DPM user account could have been changed or may have expired.
    I can ping myprotectedserver.domainB.int from mydpmserver.domainA.int
    DPM 2010 backup of the domain_controller.domainB.int works fine.
    The application log on myprotectedserver.domainB.int does not show any DPMRA related event logged.
    The firewall on myprotectedserver is off.
    Computers in domainA and domainB use their own networks connected through a router.
    from mydpmserver
    net view \\myprotectedserver.domainB.int /all - successfull
    sc \\myprotectedserver.domainB.int query  OpenSCManager FAILED 5, Access is denied
    wmic /node:myprotectedserver.domainB.int OS list brief Error 0x80070005, Access is denied
    from domaincontroller.domainB.int:
    sc \\myprotectedserver.domainB.int query  successfull
    wmic /node:myprotectedserver.domainB.int OS list successfull
    Any suggestions on how can I fix this?

    Hi
    I know this is old but are you still having a problem?

Maybe you are looking for

  • Cant figure out the problem

    import javax.swing.*; import javax.swing.event.*; import java.awt.*; import java.awt.event.*; public class myProject extends JFrame implements ActionListener{          JButton search=new JButton("Search");         public DefaultListModel df=new Defau

  • Printing problem with my web pages

    Hi all- I noticed a funny problem with one of my web pages. When I go to print, it only prints one page length of a webpage that should be two pages long (assuming you choose the shrink width to fit one page wide option in your print command). I post

  • Messages in search results won't open and can't be found

    I run a local search in the search box on the top right of the email screen. Three messages are found. I click on any of the three messages, and the message list screen appears, but the message is not listed. Is there any way to determine where these

  • Do I Need High Speed HDMI for 1080p

    My Appletv works great and I am so happy with HBOGO but I don't think I am getting 1080p or even 720 while watching.  I have an HDMI cable from the ATV to my AV receiver but it is a plain hdmi vs a high speed hdmi.  I do have a high speed cable runni

  • IPod touch blacks

    hi i need some help because i compared my friends iphone to my touch. and his iphone is like dark dark black on the screen and my touch is lighter. i wanted to know if this is how the touch is? anybody having this problem.