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 > LOAD data with remote files into al local DB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-05-03, 09:47
c155950 c155950 is offline
Registered User
 
Join Date: Sep 2003
Posts: 8
Question LOAD data with remote files into al local DB

Hi

I'd like to LOAD data into a local Database but the IXF-files I use are on a fileserver. (on drive G)

I use that command: LOAD FROM g:\filename.ixf OF IXF MESSAGES C:\temp\load.msg REPLACE INTO tablename

Then I receive the following error: SQL2036N The path for the file or device "g:\filename.ixf" is not valid
(the path is valid for shure!)

If I use IMPORT instead of LOAD, all work fine!
DB2 version is 7.1.1

How can I use LOAD in this case?

Thanks for your help
Reto
Reply With Quote
  #2 (permalink)  
Old 11-05-03, 09:56
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Check out the CLIENT option on the load command. It specifies that the data to be loaded resides on a remotely connected client. Command Reference manual.
Reply With Quote
  #3 (permalink)  
Old 11-05-03, 10:13
c155950 c155950 is offline
Registered User
 
Join Date: Sep 2003
Posts: 8
I tried that before, there isn't a difference in this case. I want to load data to a local database, only the ixf files are remote!

I use the client option, when I have to load data to a remote database. But the files are then local, where I submit the load command.

Reto
Reply With Quote
  #4 (permalink)  
Old 11-05-03, 11:24
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
Sorry about that.

From the Command Reference for Load command:

FROM filename/pipename/device/cursorname
Specifies the file, pipe, device, or cursor referring to an SQL statement
that contains the data being loaded. If the input source is a file, pipe,
or device, it must reside on the database partition where the database
resides, unless the CLIENT option is specified.
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