If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > How Can I read text archive?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-04-09, 08:01
cewa67 cewa67 is offline
Registered User
 
Join Date: Nov 2009
Posts: 2
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?
Reply With Quote
  #2 (permalink)  
Old 11-04-09, 08:23
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
How is this a DB2 issue?

Andy
Reply With Quote
  #3 (permalink)  
Old 11-04-09, 08:30
cewa67 cewa67 is offline
Registered User
 
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.
Reply With Quote
  #4 (permalink)  
Old 11-04-09, 09:19
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
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.
Reply With Quote
  #5 (permalink)  
Old 11-04-09, 09:19
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Three questions.

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

Andy
Reply With Quote
  #6 (permalink)  
Old 11-05-09, 11:37
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
4) Who wrote the stored procedure?
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #7 (permalink)  
Old 11-05-09, 11:44
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
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.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On