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 > Loading BLOB data remotely

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-09-09, 14:12
debayan debayan is offline
Registered User
 
Join Date: Sep 2007
Posts: 23
Loading BLOB data remotely

Hi all,

I am facing some problem loading lob data remotely into a database. I am running the following query from my test server where the database is catalogged:

CONNECT TO MAIN_DB user test using test_pwd;

Database Connection Information

Database server = DB2/SUN64 8.2.0
SQL authorization ID = TEST
Local database alias = MAIN_DB

LOAD CLIENT FROM C:\BOSS\scripts\audit_tables\data\BOSS.IOD_IMGDATA _AUDIT.ixf OF IXF LOBS FROM C:\BOSS\scripts\audit_tables\data\lobs\ MODIFIED BY lobsinfile INSERT INTO BOSS.IOD_IMGDATA_audit NONRECOVERABLE

SQL3025N A parameter specifying a filename or path is not valid.

Whereas the following query works just fine:

LOAD CLIENT FROM C:\BOSS\scripts\audit_tables\data\ACTIVITY.MASTER_ AUDIT.ixf OF IXF INSERT INTO ACTIVITY.MASTER_audit NONRECOVERABLE

SQL3109N The utility is beginning to load data from file

"C:\BOSS\scripts\audit_tables\data\ACTIVITY.MASTER _AUDIT.ixf".

Number of rows read = 2
Number of rows skipped = 0
Number of rows loaded = 2
Number of rows rejected = 0
Number of rows deleted = 0
Number of rows committed = 2

I think the lobpath is causing the problem. Any suggestion is greatly appreciated.
Reply With Quote
  #2 (permalink)  
Old 11-09-09, 15:40
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
LOB files must reside on the server - this is clearly stated in the manual.
Reply With Quote
  #3 (permalink)  
Old 11-09-09, 16:58
debayan debayan is offline
Registered User
 
Join Date: Sep 2007
Posts: 23
Thanks a lot. This worked. Now I have a different problem to cater to (ftp the lob files) and the overhead. Anyways, thanks a lot for your help.
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