Can't index bfile field

I have a file /tmp/SEA1.txt in my server that contains;
SEA1 COVERA ALL BB02 200101 17024.00
SEA1 COVERA ALL BB03 200101 12614.00
SEA1 COVERA ALL BB04 200101 15204.00
I performed flollow procedures in SQL*PLUS:
CREATE OR REPLACE DIRECTORY TMP_DIR AS '/tmp';
CREATE TABLE "BFILE_TEST"("BFILE_ID" NUMBER NOT NULL, "TEXT" BFILE, PRIMARY KEY("BFILE_ID"));
INSERT INTO "BFILE_TEST" VALUES(1, BFILENAME('TMP_DIR', 'SEA1.txt'));
set serveroutput on
run follow PL/SQL to read bfile:
declare
Lob_loc BFILE;
Buffer RAW(255);
Amount BINARY_INTEGER := 255;
Position INTEGER := 1;
BEGIN
/* Select the LOB: */
SELECT text INTO Lob_loc
FROM bfile_test WHERE BFILE_ID = 1;
/* Opening the BFILE: */
DBMS_LOB.FILEOPEN (Lob_loc, DBMS_LOB.LOB_READONLY);
LOOP
DBMS_LOB.READ (Lob_loc, Amount, Position, Buffer);
/* Display the buffer contents: */
DBMS_OUTPUT.PUT_LINE(utl_raw.cast_to_varchar2(Buffer));
Position := Position + Amount;
END LOOP;
/* Closing the BFILE: */
DBMS_LOB.FILECLOSE (Lob_loc);
EXCEPTION
WHEN NO_DATA_FOUND THEN
DBMS_OUTPUT.PUT_LINE('End of data');
END;
I got:
SEA1 COVERA ALL BB02 200101 17024.00
SEA1 COVERA ALL BB03 200101 12614.00
SEA1 COVERA ALL BB04 20010
1 15204.00
drop index bfile_index;
create index bfile_index on bfile_test(text) indextype is ctxsys.context;
select score(1) title from bfile_test where contains(text,'SEA_',1)>0;
I got:
no rows selected
I should get:
TITLE
100
Question:
Why did I get 'no rows selected'?
I did check the DR$BFILE_INDEX$I table. It is empty. Should it be?
The CTX_INDEX_ERRORS says
AAAZVxAAXAAAAmqAAA DRG-50857: oracle error in drstldef
Any idae what I did wrong?
By the way, I am running ORACLE 8.1.7, OS is LINUX.
Any info is great appreciated.
null

Anytime you index bfiles, READ on all directories used must be granted to CTXSYS.

Similar Messages

  • How can I have two fields with the same name if it makes sense?

    Hello, folks :)
    I have a pretty hard time figuring out how I can have two text fields with the same binding name.
    The whole problem is that when I need two fields with the same binding name they are still differnent coz they have the same name but differnt indices.
    I should make a form filled at runtime by merging a pdf form file and an fdf file data file. And I have no choice to do it differently. And my form file needs some data like customerName, companyName twice in one form. But there's only one possible buinding name indexed zero.
    How can I create a field with absolutely the same name or is it just impossible due to possible name conflicts? And is there a workaround to this problem? I just need one piece of data repeated in different places.
    Thanks for your replies :)
    P.S. if u think that the problem is not clear enough let me know. I'll supply you with more details. But the general process can not be changed.
    One pdf should be mergred with an fdf with as the result of their merge a new filled and flattened form. I have no control over fdfs their are generated by Oracle and I can not fill the form using XML files coz this process should be integrated in a working application.

    I just thought about a really ugly workaround with a server-side script adding values to fdf files but it's a bit of work and tests and personally i think it's a bad idea :-(

  • SOAP Error When Referencing Indexed Picklist Fields

    You may receive the following error, or something similar, when trying to access the "Indexed Picklist" fields via webservices.
    <siebelf:errormsg>Method 'SetFieldValue' of business component 'Opportunity Copy No Sales Process' (integration component 'Opportunity') for record with search specification '[Name] = "Hay man"' returned the following error:"The value entered in field Indexed Pick 1 of buscomp Opportunity Copy No Sales Process does not match any value in the bounded pick list Occam Indexed Custom Opty 1.(SBL-DAT-00225)"(SBL-EAI-04375)</siebelf:errormsg>
    This error can be caused by searching for a picklist value that doesn't exist. In many cases, the picklist values are valid, but the developer is accessing the wrong picklist. This is a common mistake because the user interface, and WSDL files are a little different. Indexed Picklist 1 in the user interface is really IndexedPick0 in the WSDL definition file, not IndexedPick1 like many people would think.
    Indexed Picklist 1 = IndexedPick0
    Indexed Picklist 2 = IndexedPick1
    Indexed Picklist 3 = IndexedPick2
    Indexed Picklist 4 = IndexedPick3
    Indexed Picklist 5 = IndexedPick4
    Indexed Picklist 6 = IndexedPick5
    Below are the tests I ran when testing this issue, both SOAP requests and responses.
    ==========================================================================================================================================
    The value "Will" is a valid value for the indexed picklist 1 in the admin screen.... I receive the error because I should be looking in IndexedPick0, not IndexedPick1.
    <?xml version="1.0" encoding="UTF-8" standalone="no"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body>
    <OpportunityWS_OpportunityUpdate_Input xmlns="urn:crmondemand/ws/opportunity/10/2004">
    <ListOfOpportunity>
    <Opportunity>
    <OpportunityName>Hay man</OpportunityName>
    <IndexedPick1>Will</IndexedPick1>
    </Opportunity>
    </ListOfOpportunity>
    </OpportunityWS_OpportunityUpdate_Input>
    </soap:Body>
    </soap:Envelope>
    <?xml version="1.0" encoding="UTF-8" ?>
    - <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <SOAP-ENV:Body>
    - <SOAP-ENV:Fault>
    <faultcode>SOAP-ENV:Server</faultcode>
    <faultstring>Method 'SetFieldValue' of business component 'Opportunity Copy No Sales Process' (integration component 'Opportunity') for record with search specification '[Name] = "Hay man"' returned the following error:"The value entered in field Indexed Pick 1 of buscomp Opportunity Copy No Sales Process does not match any value in the bounded pick list Occam Indexed Custom Opty 1.(SBL-DAT-00225)"(SBL-EAI-04375)</faultstring>
    - <detail>
    - <siebelf:errorstack xmlns:siebelf="http://www.siebel.com/ws/fault">
    - <siebelf:error>
    <siebelf:errorsymbol />
    <siebelf:errormsg>Method 'SetFieldValue' of business component 'Opportunity Copy No Sales Process' (integration component 'Opportunity') for record with search specification '[Name] = "Hay man"' returned the following error:"The value entered in field Indexed Pick 1 of buscomp Opportunity Copy No Sales Process does not match any value in the bounded pick list Occam Indexed Custom Opty 1.(SBL-DAT-00225)"(SBL-EAI-04375)</siebelf:errormsg>
    </siebelf:error>
    </siebelf:errorstack>
    </detail>
    </SOAP-ENV:Fault>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    ==========================================================================================================================================
    Correct example and good response.
    <?xml version="1.0" encoding="UTF-8" standalone="no"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body>
    <OpportunityWS_OpportunityUpdate_Input xmlns="urn:crmondemand/ws/opportunity/10/2004">
    <ListOfOpportunity>
    <Opportunity>
    <OpportunityName>Hay man</OpportunityName>
    <IndexedPick0>Will</IndexedPick0>
    </Opportunity>
    </ListOfOpportunity>
    </OpportunityWS_OpportunityUpdate_Input>
    </soap:Body>
    </soap:Envelope>
    <?xml version="1.0" encoding="UTF-8" ?>
    - <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    - <SOAP-ENV:Body>
    - <ns:OpportunityWS_OpportunityUpdate_Output xmlns:ns="urn:crmondemand/ws/opportunity/10/2004">
    - <ListOfOpportunity xmlns="urn:/crmondemand/xml/opportunity">
    - <Opportunity>
    <OpportunityId>1-UVW382</OpportunityId>
    <AccountId>1-SILNWP</AccountId>
    <CreatedDate>12/07/2006 08:58:52</CreatedDate>
    <CreatedBy>Will Braithwaite, 12/07/2006 08:58:52</CreatedBy>
    <ExternalSystemId />
    <IntegrationId>1-UVW382</IntegrationId>
    <ModifiedDate>07/13/2007 09:45:56</ModifiedDate>
    <ModifiedById>1-S79WT5</ModifiedById>
    <ModifiedBy>Will Braithwaite, 07/13/2007 09:45:56</ModifiedBy>
    <CreatedById>1-S79WT5</CreatedById>
    </Opportunity>
    </ListOfOpportunity>
    </ns:OpportunityWS_OpportunityUpdate_Output>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

    Post Author: ayla1209
    CA Forum: Data Connectivity and SQL
    I'm having the same error - did you ever get a solution?

  • Why not index every field in a database

    Hello,
    I hope this is not to much of a newbie question. We have a database that is being used by an application. We do not know which fields are queried on, the application allows for any/all field(s) to be searched on.
    Obviously, we can know which fields a particular method is searching on, but there is no requirement for the application developers to keep us up to date on particular query parameters as they add them.
    This is a 10g, soon to be 11g, database. Most of the fields are integer with less than 2 digits.
    My question is, why not simply index every field, or at least every small integer field?
    Thanks,
    Sammer

    user613816 wrote:
    Hello,
    I hope this is not to much of a newbie question. We have a database that is being used by an application. We do not know which fields are queried on, the application allows for any/all field(s) to be searched on.
    Obviously, we can know which fields a particular method is searching on, but there is no requirement for the application developers to keep us up to date on particular query parameters as they add them.
    This is a 10g, soon to be 11g, database. Most of the fields are integer with less than 2 digits.
    My question is, why not simply index every field, or at least every small integer field?
    Thanks,
    SammerIn addition to the unnecessary overhead, there are other considerations that affect whether Oracle will use an index. Just because it is there doesn't mean it will or should be used.
    Think about this:
    You have a table with a particular field, and an index on that field. You want to add up all the values of that field. Do you think it would be faster for oracle to just read all of those rows in the table and add them up, all of the rows in the index and add them up, or read the index, go find the row in the table, read the index, get another random row in the table...
    Now, what if Oracle can read more data at a time if it is getting all the data?
    What if you don't want the data from every row in the table? Are you going to create an index for every combination of columns?
    What if Oracle stores two digit integers no differently than 4 digit?
    What if 99.99% of the values are 0? 100%?
    How does Oracle decide the best way to get the data?
    These are all questions you can look up online. I would strongly suggest starting with the Oracle Concepts manual for the soon to be version. Once you have done that, you may see you don't have to apologize about newbie questions as long as people see you are willing to put some work into letting them help you.
    Some people claim there is no such thing as a stupid question. I think that is just pabulum to keep people from being scared to ask questions when they ought to. The stupid question is the one you ought to have known better before you asked. So your question wasn't a stupid question, but any others you ask now that you know about documentation and online searching may very well be.

  • MySQL - can't see database fields

    I've set up a really simple database with names and addresses
    in it. I want to pull out records based on the State. When I set up
    my recordset, in the "Columns:" field, it says "No columns found."
    What did I do wrong in setting up my database. When I go look at my
    database, I can see all the fields. Thanks in advance.

    I actually found the problem. It was a problem with how I had
    the index set on my database. Thanks for your offer to help.

  • Can not see two fields in Crystal 2008 Developer explorer/designer view

    I am currently developing crystal 2008 reports against the salesforce.com database using version 12.0.0.683 CR Developer Full version. I am using an updated driver that was provided in July or Aug 08 in order to view self referencing fields. The problem is that when I try and report against one of the tables (lead history) I cannot view two of the fields (New Value and Old Value)? I can see these two field (New Value and Old Value) in the database expert as the last two fields in the actual table, but the two fields are missing when I go into the explorer/designer view. In Salesforce, these two fields can not be filtered on, but I can export all the values in this table using Salesforece Apex data loader.

    Please re-post if this is still an issue to the OnDemand Forum or purchase a case and have a dedicated support engineer work with you directly

  • While generating a crystal report can we edit database fiels in field explorer (at middle can we edit database fields)

    while generating a crystal report can we edit database fiels in field explorer (at middle can we edit database fields)

    Wrong forum to post the question, try to post the question in crystal reports community.
    Its not possible to edit the database fields while creating the reports, its only used to call the rows of values in it. Can you explain me in detail what are you actually looking for .
    --SumanT

  • How can we insert a field when it is null and not present in database?

    I am working on a report in CR XI..i have strucked ata point where i am unable to find solution..my report has fields like Financial supply and physical supply..as a froup...but both are not displaying on all pages as there are no values to be displayed in them..even though how can i display both fields in all pages ..no matter what the figures are but i need these both fields to be displayed..plz help me out?

    Â Â Â Regards
    Â Â Â Sunil
    I have tried ur formula but unable to get the solution...
    as there are already the same fields with existing records..all i want is how to get the field where the values doesnt exist....i.e..fin supply and phy supply exists in one zone and doesnt have values in other zone...so huv to insist the physical field into the table?

  • I can not insert a field in ANY report . . .

    Post Author: Chass
    CA Forum: General
    I've searched around a bit about this. I can't find anything about anyone who had the same problem.
    I was reporting along and suddenly CR v8.5 wouldn't let me insert a field anymore. I can't insert a field on a new or old report from the field exporer. I drag the field to the area of the report that I want to drop it and it stays a black circle with a line through it. It won't allow me to insert any field in any report.
    I tested this on my coworkers computer and his is working fine. Same version, same report, same field.
    What would cause my install of CR to stop allowing insertion of fields?
    Thanks in advance . . .
    Chass
    ct

    Post Author: Chass
    CA Forum: General
    For anyone else that runs into this issue. I searched heavily and came up with nothing.
    I decided to uninstall and then reinstall the application and that fixed the problem.
    I still don't know the original cause . . .
    Chass
    ct

  • How can I add a field to a Repeating Frame in the body of a 9i Report

    How can I add a field to a Repeating Frame in the body of an Oracle 9i Report whose source is in a higher group?
    I want to change an Oracle 9i report. The report has no header or trailer but only a body. The body has the parent frame fields & a repeating frame with four fields, A, B, C & D. They all seem to be in one group. I want to add another field E to the repeating frame whose source is from the 'header'.
    I added the field & created a boiler plate & then added the new field, E to the original group A, B, C & D. In the Property Inspector for the field, I pointed the source to the source column in the main query. However, when I run the report, I receive the error "Invalid body size". Some notes on Metalink indicate that this could be due to margins being out of the printable area.
    Moreover, after making the changes & after having unsuccessfully run the report, when I try to open the Page Layout for the report, I get no details.
    Thanks,

    Hi,
    i also got same query can u pls tell me elaborately, if u can can u pls send some code.
    Thanks & Regards
    Jagadeeshwar.B

  • How can i transfer a field value in the main report to its sub-report?

    <p><font face="Arial" size="2">How can i transfer a field value in the main report to its sub-report?</font></p><p><font face="Arial" size="2">Please eloberate with example if possible!</font></p><p><font face="Arial" size="2">Thanks...</font></p><p> </p>

    <p>You can do a couple of things - one would be to pass the information using the data linking expert.  Right click on the subreport, choose &#39;Change Subreport Links&#39; and select the field(s) you are wanting to pass to the subreport.  CRW will build parameters and a record selection formula for you in the subreport, and if that&#39;s what you want, then great.  But you can also remove the selection formula from the subreport and work with the parameter fields in the subreport however you would like.</p><p>Alternatively, you can look to passing Shared variables back and forth from the main and subreport.  this link talks about the method to do this: http://diamond.businessobjects.com/node/251</p><p> </p>

  • Can we hide the field in Shopping Cart of SRM

    Hi..
    Can we hide the field in Shopping Cart of SRM??
    I have to hide some of the fields from SRM shopping cart screen. is it possible to hide the fields??
    Please suggest me
    Thanks.
    Regards,
    Manoj Tiwari

    Hy,
    For screen variants, just go to transaction SHD0.
    The only screen variants available in SRM 4.0 are:
    Item data overview in an invoice without purchase order reference: BBP_IV_NON_PO
    Item data overview in the invoice with purchase order reference: BBP_IV
    Item data overview in the confirmation: BBP_CF
    Item data overview in the confirmation for time recording: BBP_CF_TIMEREC
    Item data overview in the purchase order: BBP_PO;
    Item data overview for contracts: BBP_CTR_ITEMLIST
    Item data overview for selection of contracts: BBP_CTR_ITEM_SELLIST
    Search results for entering an invoice and/or confirmation: BBP_SEARCH_PO
    Search results for entering a purchase order: BBP_SEARCH_SC
    Search results for displaying/processing an invoice: BBP_CHANGE_IV
    Search results for displaying/processing a confirmation: BBP_CHANGE_CF
    Search results for entering/displaying/processing/status of a shopping cart: BBP_SC;
    Worklist for Sourcing: BBP_SOCO_WL
    Work area in Sourcing: BBP_SOCO_GA
    This is very light, and most of the SRM project have to make Templates, or ABAP screens repairs, to Hide/Show fields.
    Regards.
    Vadim

  • How can I format a field in the form creator?

    How can I format a field in the form creator? It's putting the same text in all the fields within a table. I want each field within the table to have different text. As soon as you click out of the table, all the text is the same.
    I even changed the fields from a text box to a drop-down list so a person can make their selection, which will be a quantity from 0-9. There are two of these such fields. You make your selection in each, click off the table and both fields show whatever I selected in field 1. The original Qty I selected in the bottom field was a 5 but it changed it to whatever is in the top field on it's own. I've added a screen shot.

    This behaviors usually happens when you create the fields but  a copy paste command from one of the fields. The copy paste command assumes that your intentions is to maintain a copy of the field in two separate locations (e.i, a form field  "company name" printed in each and every page of a multi-page form document.
    Go to the properties fields of each field and make sure  to assign unique form field  names.

  • Trouble with calculating fields. Can't select (check) fields. Also can't figure out what's wrong with a division field (percent) that I created. Keep getting the pop up that format of the field doesn't allow blah blah blah... Help!

    Trouble with calculating fields. Can't select (check) fields. Also can't figure out what's wrong with a division field (percent) that I created. Keep getting the pop up that format of the field doesn't allow blah blah blah... Help!

    1. Use the mouse to select the field and then press the space bar.
    2. A null string is the same as zero. What is the result for division by zero?

  • Name of the table where can get the two fields Valid-From and Valid-to for

    Hi gurus
    I want name of the table where I can get the two fields Valid-From and Valid-To and their relation ship with the header table in BOM
    Regards
    Kaisar

    You can only get the Valid from date from the table STKO.
    To get the valid to date, you have to take one day less than the valid-from date of the next record for the same BOM.
    Alternatively use the Function module:
    CSAP_MAT_BOM_READ
    It will give both valid from and valid to dates in the tables parameter: T_STKO
    Regards,
    Ravi
    Edited by: Ravi Kanth Talagana on Jul 2, 2008 4:37 PM

Maybe you are looking for