Home » Server Options » Text & interMedia » BFile content index And Network Share (10g, Linux - Windows)
BFile content index And Network Share [message #356146] Wed, 29 October 2008 13:59 Go to previous message
redonisc
Messages: 20
Registered: March 2008
Location: Guatemala, C.A.
Junior Member
I'm creating a index from a directory and i'm indexing the content files(docs, pdfs, xls) in a context index with:
CREATE TABLE my_doc (
   id NUMBER,
   file_name VARCHAR2(255),
   upload_date VARCHAR2(10),
   filesize VARCHAR2(20),
   mime VARCHAR2(50),
   content BFILE,
 CONSTRAINT doc_pk PRIMARY KEY (id)
);
CREATE OR REPLACE DIRECTORY documents AS '\\192.168.1.16\Share1';
GRANT READ ON DIRECTORY documents TO ctxsys;

The problem here is that the DB Os is Linux and the share is in a Windows PC how do you define a DIRECTORY in the scenario i've not found a resource on this(NFS-Samba).

The rest of the index is created ok with:
CREATE OR REPLACE PROCEDURE put_file
 (
  p_file_name  IN  my_doc.file_name%TYPE,
  p_upload_date IN my_doc.upload_date%TYPE,
  p_filesize IN my_doc.filesize%TYPE,
  p_mime IN my_doc.mime%TYPE
) AS
   index_name varchar2(20) := 'my_doc_idx';
 BEGIN
   INSERT INTO my_doc (id, file_name, upload_date,
   filesize, mime, content)
   VALUES (my_doc_seq.NEXTVAL, p_file_name, p_upload_date,
   p_filesize, p_mime,
   BFILENAME('DOKUMENTE',p_file_name));
   COMMIT;
END;

exec put_file('test.doc', '10.10.2005', '100', 'doc');


When i get the context errors:
SELECT err_index_name, err_timestamp,err_text FROM ctx_user_index_errors ORDER BY err_timestamp;

i get:

DRG-50857: oracle error in drstldef
ORA-22285: non-existent directory or file for FILEEXISTS operation


Thanks for your support/help.

[Updated on: Wed, 29 October 2008 15:29]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: xml search + single quote handling (merged)
Next Topic: File_DataStore Performance.
Goto Forum:
  


Current Time: Sat Apr 20 08:49:51 CDT 2024