Getting error "Column is not indexed " when executing query on ORACLE 10g

Hi all,
When executing the below query im getting the error "ORA-20000:Column is not indexed"
query:
select xmlelement("nexml:result",xmlattributes('http://namespaces.nextance.com/nex/xml' as "xmlns:nexml"),xmlelement("nexml:value",count(*))).getClobVal()
from "permission"
where ( ((contains(object_value,'(searchDocument) inpath(/permission/action)') > 0)) and ((existsNode(object_value,'/permission[resource/resourcekey/@type[. = "document"]]') = 1)) and ((contains(object_value,'(GeneralUser) inpath(/permission/principal/@name)') > 0)) and ((existsNode(object_value,'/permission[principal/@type[. = "group"]]') = 1)) and ((existsNode(object_value,'/permission[type[. = "allow"]]') = 1)) and ((contains(object_value,'(nexip) inpath(/permission/resource/resourcekey/field/@value)') > 0) or (contains(object_value,'(Corporate) inpath(/permission/resource/resourcekey/field/@value)') > 0) or (contains(object_value,'(ProcurementAgreement) inpath(/permission/resource/resourcekey/field/@value)') > 0) or (contains(object_value,'(Procurement) inpath(/permission/resource/resourcekey/field/@value)') > 0) or (contains(object_value,'(SalesAgreement) inpath(/permission/resource/resourcekey/field/@value)') > 0)) )
Then after checking some forum, i replaced "contains" with "ora:contains" and executed the query. Now im not getting the first error but got a new error "invalid relational operator"
So please help me in resolving the errors?
Thanks in advance.

Anil kumar wrote:
Hi,
Thanks for your reply. Could you please explain your solution in detail?Hi,
I just have a try...
create table t (id int,my_lob clob)
begin
insert into t values(101,'Oracle redwood shores USA');
insert into t values (102,'HP palo alto USA');
insert into t values(103,'Capgemini  FRANCE');;
end;
create index my_idx on t(my_lob) indextype is ctxsys.context
select *
from t
where contains(my_lob,'USA',1)>0
Output
ID      MY_LOB
101     Oracle redwood shores USA
102     HP palo alto USA Hope it helps,
CKLP

Similar Messages

  • I get error "audio format not compatable" when downloading music from the itunes store

    I get error "audio format not compatable" when syncing ipod classic.  Music purchased from itunes store.

    If your country's iTunes Store allows you to redownload purchased tracks, I'd delete your current copy of the track and try redownloading a fresh one. See the following document for instructions:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Otherwise, I'd report the problem to the iTunes Store.
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the item that is not playing properly. If you can't see "Report a Problem" next to the item, click the "Report a problem" button. Now click the "Report a Problem" link next to the item.

  • Java.lang.StringIndexOutOfBoundsException when executing query on Oracle 9i

    SQL Deverloper Build 1467
    Windows XP
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    I have the following query being executed in SQL Worksheet.
    select * from address
    where address_id in (1, 2, 3, .... 1000, 1001);
    If I have <= 1000 expressions, it executes but if it has > 1000, the query does not return this error "ORA-01795: maximum number of expressions in a list is 1000". When I ran this it in console, it gave me this error. In oracle 10G it works fine.
    java.lang.StringIndexOutOfBoundsException: String index out of range: 16058
    at java.lang.String.substring(String.java:1765)
    at oracle.dbtools.raptor.scriptrunner.SQL.run(SQL.java:73)
    at oracle.dbtools.raptor.scriptrunner.ScriptRunner.run(ScriptRunner.java:116)
    at oracle.dbtools.raptor.scriptrunner.ScriptRunner.run(ScriptRunner.java:186)
    I think this is a bug in the 9i module.
    -Nags

    Anil kumar wrote:
    Hi,
    Thanks for your reply. Could you please explain your solution in detail?Hi,
    I just have a try...
    create table t (id int,my_lob clob)
    begin
    insert into t values(101,'Oracle redwood shores USA');
    insert into t values (102,'HP palo alto USA');
    insert into t values(103,'Capgemini  FRANCE');;
    end;
    create index my_idx on t(my_lob) indextype is ctxsys.context
    select *
    from t
    where contains(my_lob,'USA',1)>0
    Output
    ID      MY_LOB
    101     Oracle redwood shores USA
    102     HP palo alto USA Hope it helps,
    CKLP

  • Error: columns are not equal when writeback data from Essbase to Oracle

    I got an error when writeback Budget data from Essbase to Oracle that: The number of columns returned by script [14] is less than the source data columns exposed [15] while my returned columns from script is 15
    My report script:
    <Sym
    {MISSINGTEXT ""}
    { SUPMISSINGROWS }
    //{SUPPAGEHEADING}
    {SUPBRACKETS}
    {SUPFEED}
    {SUPCOMMAS}
    { TABDELIMIT }
    { NAMESON }
    { ROWREPEAT }
    { NOINDENTGEN }
    {DECIMAL 0}
    //<COLUMN ("Version")
    <ROW ("Account","Sector","Resident / Non-Resident","HSP_Rates","Year","Profit_Center","Period","SubAccount","Currency","Branch","Scenario","Elements","Spare","Version")
    <IDESCENDANTS "Account"
    "S_NA"
    "R_0"
    "HSP_InputValue"
    "FY11"
    "Jan" "Feb" "Mar" "Apr" "May""Jun" "Jul" "Aug" "Sep" "Oct" "Nov" "Dec"
    <IDESCENDANTS "Profit_Center"
    "T_00"
    "Local"
    "P_682"
    "B_01"
    "Budget"
    "Amount"
    "E_0000"
    "Approved"
    *

    the solution to uncomment -> //{SUPPAGEHEADING}

  • Keep getting error message appication not found when trying to use Firefox, recently had lightning strike neighborhood box.

    also will not load automatically anymore since lost power few days ago.

    Same issue to with Windows XP SP3 x86 with Java Runtime Enviornment 1.5.0_15
    J2SE Enviornment 5.0 Update 15
    Java 6 Update 17

  • Virtual Key Figures its not populated when execute query

    Hi All
    I did a BADI for populate a Virtual Key Figure, I follow the instructions of link
    Link:[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60e34f63-f44c-2c10-488e-c89b04e0ca7c?quicklink=index&overridelayout=true]
    In addition I add the code section of data declarated on example of: CL_EXM_IM_RSR_OLAP_BADI section define: IF_EX_RSR_OLAP_BADI~DEFINE, only information that said:
      DATA: l_s_chanm   TYPE rrke_s_chanm,
            l_kyfnm     TYPE rsd_kyfnm.
      FIELD-SYMBOLS:
            <l_s_chanm> TYPE rrke_s_chanm.
    I test the query on RSRT and the virtual Key Figure is "0.00" this look like if the virtual key figure is not populated.
    I did other things like:
    Set a Break Point on COMPUTE section of my BADI, I saw that the value is assigned, but I don't know how I can continue reviewing the pass of this value to result of query.
    I generate again the query on RSRT.
    My code is:
    IF_EX_RSR_OLAP_BADI~DEFINE
    method IF_EX_RSR_OLAP_BADI~DEFINE.
      data: L_S_CHANM   type RRKE_S_CHANM,
            L_KYFNM     type RSD_KYFNM.
      field-symbols:
            <L_S_CHANM> type RRKE_S_CHANM.
      case I_S_RKB1D-INFOCUBE.
        when 'ZGTO_OB2'.
          append 'ZVIRTKF' to C_T_KYFNM.
      endcase.
    endmethod. 
    IF_EX_RSR_OLAP_BADI~COMPUTE
    method IF_EX_RSR_OLAP_BADI~COMPUTE.
      field-symbols <FS_ZVIRTKF> type any.
      P_KYF_ZVIRTKF = 16.
      assign component P_KYF_ZVIRTKF of structure C_S_DATA
      to <FS_ZVIRTKF>.
      <FS_ZVIRTKF> = 10 .
    endmethod.
    I will appreciate your recommendations, Thanks in advanced.
    Al

    Thank you very much Sanganya
    I saw this:
    I put a break point on P_KYF_ZVIRTKF = 16., then I saw that P_KYF_ZVIRTKF obtain value 16.
    Then on sentence: assign component P_KYF_ZVIRTKF of structure C_S_DATA
    to <FS_ZVIRTKF> , when the system pass this line, I review the sy-subrc and is equal 4, as I understood the ASSIGN sentence did not be complete, the value shoul be 0.
    Then when the system try to run the sentence: <FS_ZVIRTKF> = 10  the system send an Execution error that say:  GETWA_NOT_ASSIGNED...
      Error analysis
        You attempted to access an unassigned field symbol
        (data segment 32780).
        This error may occur if
        - You address a typed field symbol before it has been set with
          ASSIGN
        - You address a field symbol that pointed to the line of an
          internal table that was deleted
        - You address a field symbol that was previously reset using
          UNASSIGN or that pointed to a local field that no
          longer exists
        - You address a global function interface, although the
          respective function module is not active - that is, is
          not in the list of active calls. The list of active calls
          can be taken from this short dump.
    Exactly the line selected with error is:
    >>>>    <fs_zvirtkf> = '10.0'.
    I will appreciate your help
    Thank you
    Al

  • I keep getting result code -43 not found when trying to load certain instruments. Any idea why

    I keep getting error code -43 not found when trying to load certain instruments. Any ideas?

    Errors 3000-3999 (3004, 3013, 3014, 3018, 3164, 3194, and so on): Error codes in the 3000 range generally mean that iTunes cannot contact the update server (gs.apple.com) on ports 80 or 443.
    Update to the latest version of iTunes.
    Verify the computer's date and time are accurate.
    Check that your security or firewall software is not interfering with ports 80 or 443, or with the server gs.apple.com.
    Follow Troubleshooting security software. Often, uninstalling third-party security software will resolve these errors.
    An entry in your hosts file may be redirecting requests to gs.apple.com (see "Unable to contact the iOS software update server gs.apple.com" above).
    Internet proxy settings can cause this issue. If you are using a proxy, try without using one.
    Test restoring while connected to a known-good network.

  • When I try to save a photo, I get error message Could not complete your request because of a program error.  What's wrong?

    I edit a photo and when I click Save As, I get error message "Could not complete your request because of a program error."    I exit Elements, try again, same error. 
    In past I had this problem but it resolved when rebooted PC.  This time, PC reboot does not help.
    I cannot save anything i do in elements!!
    What's wrong?  Any suggestions how to fix this?   Anyone know what the program error is

    Please mention your PSE version and underlying OS.
    Also, it would be of great help in resolving the issue if you can upload a snapshot of error message.
    Regards
    Kishan

  • On mac yosemite, when trying to install my own brushes, I get error message: "Could not load the brushes "blahblah.abr" because the file is not compatible with this version of PS" (PS CC 2014)

    Need help-
    On my mac with yosemite, when trying to install my own brushes, I get error message: "Could not load the brushes "blahblah.abr" because the file is not compatible with this version of PS" (PS CC 2014) ????

    Thank you station_two but I did install them in my
    applications>adobe>presets>brushes and still I get this error message......
    On Tue, Dec 2, 2014 at 6:20 PM, station_two <[email protected]>

  • When installing Adobe Presenter, get error message plattform not compatible.

    When installing Adobe Presenter, get error message plattform not compatible.

    Check the tech specs to see if your system meets the minimum requirements for the software.

  • I am getting a message Internal Error Instacast keys not defined when I open one of the local tv news apps on my iPad. What do I need to do to fix it?

    I am getting an error message "Internal error Instacast Keys not defined" when I open a news app from one of my local tv stations. What is causing this?

    Hello, MommaLloyd24. 
    Thank you for visiting Apple Support Communities.
    Here are the steps I would recommend going through as they should resolve the issue.
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Cheers,
    Jason H.

  • I keep getting Error Code 4002 in iTunes when I try to update my iTunes Match.  I have turned off iTunes Match, then reinstalled it, but that does not seem to work.  I also get another Error Code (4010) sometimes.  Can someone offer advice?

    I keep getting Error Code 4002 in iTuens when  try to update my iTunes Match.  I have turned off Match, then reconnected, but the code keeps coming.  So does Error Code 4010 at times.  Can someone help?

    iTunes store, App Store, iTunes Match and various other services have been down for the past several hours. Apple's System Status page at http://www.apple.com/support/systemstatus/ now shows them back up but they are STILL NOT up for me or many other users. The error codes 4000 series refer to connection errors, I've gotten several from 4001-4010 all day. We're kind of at the mercy of Apple at this point. It would be nice if they would give us some notification about their problems since we are paying for their service.

  • HT4993 getting error message could not activate cellular data network when trying to access the internet without using wifi.  what do i need to do?  i have already restore the phone.

    getting error message could not activate cellular data network when trying to access the internet without using wifi.  what do i need to do?  i have already restore the phone.

    contact your phone carrier as they handle cellular network.

  • When I click on check for update I get error, iTunes could not check for an update to the carrier settings for your iPhone. an unknown error occurred 1630

    when I click on check for update I get error, iTunes could not check for an update to the carrier settings for your iPhone. an unknown error occurred 1630
    Make sure your network setting are correct and your network connection is active or try again latter.

    update your itunes to 10.5.2 and error is not showing up anymore..

  • I have created a slide show with pictures and music in Iphoto and when I try export it I get Error You do not have sufficient permission for this operation.

    I have created a slide show with pictures and music in Iphoto and when I try export it I get Error You do not have sufficient permission for this operation.  Try to export to an external HD attached, all help would be gratefully received 

    Have you ever successfully saved anything to that external drive? My first two thoughts are that the drive isn't formatted for the Mac or that you don't have rights to save to the drive.

Maybe you are looking for

  • Which configuration is better: higher GHz and lower RAM or lower GHz and higher RAM?

    I want to buy a new iMac. If all other factors are the same, including price, which configuration is better? 21.5" iMac (late 2012) $1699 3.1GHz Intel Core i7 Quad-Core 8GB of 1600Hz DDR3 RAM --vs-- 21.5" iMac (late 2012) $1699 2.9GHz Intel Core i5 Q

  • No Audio Pref in /Library/Preferences/Audio

    Hello I have no sound in iChat and can not change the settings in Sound Pref Pane. I read the tips about deleting the files in /Library/Preferences/Audio My problem is, they don't get built anew. Any idea?

  • How to execute my procedure automatically every second

    dear all i made a procedure that simply insert a record in a table . i need to execute this procedure automatiaclly every one second. how can i achive this. please help

  • Alternate Access Mapping

    Hi all, I have create a web application and inside I have got a site. The port used is 34000. When I use http://server:34000 everything works fine. I added an Internal URL, using a public name: http://www.hotthings.org . When I try this link I get th

  • Create production order in APO

    Hi SAP experts!! I am looking for your help. I set the conversion indicator in APO to convert a Planner order, however, when I save it, the order is not  converted in R/3 system and I found  a queue in CQ monitor that says "Error when processing oper