Results 1 to 7 of 7
  1. #1
    Join Date
    Nov 2009
    Posts
    2

    Unanswered: How Can I read text archive?

    I need to read text archive and I use:
    ....
    v_directory VARCHAR(40) := '/dsxxx/ProjXxx/bfa/Arc';
    ....
    begin
    v_archive := utl_file.fopen (v_directory, v_archive_name, 'r');
    ....

    But I receive the message "Invalid Path"...

    What's happen?

  2. #2
    Join Date
    Jan 2003
    Posts
    4,292
    Provided Answers: 5
    How is this a DB2 issue?

    Andy

  3. #3
    Join Date
    Nov 2009
    Posts
    2
    It's a stored procedure in DB2 Database and I don't know if I need modify the Database configuration.

  4. #4
    Join Date
    Aug 2001
    Location
    UK
    Posts
    4,650
    Is your stored procedure fenced or unfenced ? If not fenced, then the instance owner must have access to the path/file

    If fenced, do you have a fenced userid? Your DBA should be able to tell this ..
    To identify the fenced-id, either of the following ways will help:
    a) If you have access, check for the contents of the file <instance home dir>/ctrl/.fencedID
    b)
    db2_ps | grep -i db2fmp
    The owner of this this processes is the fenced id

    The fenced id must have access to the path in question.

    HTH

    Sathyaram
    Visit the new-look IDUG Website , register to gain access to the excellent content.

  5. #5
    Join Date
    Jan 2003
    Posts
    4,292
    Provided Answers: 5
    Three questions.

    1) What DB2 version and Fixpack>
    2) What OS?
    3) What is the SP trying to do?

    Andy

  6. #6
    Join Date
    Jan 2007
    Location
    Jena, Germany
    Posts
    2,721
    4) Who wrote the stored procedure?
    Knut Stolze
    IBM DB2 Analytics Accelerator
    IBM Germany Research & Development

  7. #7
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    Quote Originally Posted by stolze View Post
    4) Who wrote the stored procedure?
    IBM did. It's the "Oracle compatibility vector" stuff; get used to it, guys.

    To cewa67: as in Oracle, you can't reference an OS directory by its name; you have to create a DIRECTORY object first and reference that. You can find details in either Oracle or DB2 manual.
    ---
    "It does not work" is not a valid problem statement.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •