I've encountered a strange error with loading delimited files from a
Samba (SMB) network drive, has anyone else seen this before?
(Platform: WinXP Pro, UDB PE 8015, level 02060106, SAMPLE db)
db2 load from M:\org1.del of del replace into org
SQL3109N The utility is beginning to load data from file "M:\org1.del".
SQL2036N The path for the file or device "M:\org1.del" is not valid.
db2diag.log:
2004-07-27-17.59.37.156000 Instance:DB2 Node:000
PID:1080(db2syscs.exe) TID:2228 Appid:none
database utilities sqluMCCheckDevType Probe:10
Media controller -- invalid device path: M:\org1.del
The Samba drives are served from an AIX host, and seem to work fine
otherwise. I created the data file a few moments before, using an export
command and it completed fine. I can also read from this drive with the
import command, and it processes the records without problem.
C:\>net use
Status Lokal Remote Netzwerk
-----------------------------------------------------------------
OK M: \\spsmbp\data_tmp Microsoft Windows-Netzwerk
A db2trace shows the following:
17741 data DB2 oper system services sqloFileAttrib cei
(3.3.15.191.2.2)
pid 2480 tid 2052 cpid -1 node 0 sec 0 nsec 4229608 probe 2
bytes 11
4D3A5C6F 7267312E 64656C M:\org1.del
17744 exit DB2 oper system services sqloFileAttrib cei (2.3.15.191.2)
pid 2480 tid 2052 cpid -1 node 0 sec 0 nsec 4229757
rc = 0x870F0011 = -2029060079 = SQLO_PATH
17745 data DB2 database utilities sqluMCCheckDevType fnc
(3.3.21.1275.0.10)
pid 2480 tid 2052 cpid -1 node 0 sec 0 nsec 4229768 probe 10
bytes 52
4D656469 6120636F 6E74726F 6C6C6572 Media controller
202D2D20 696E7661 6C696420 64657669 -- invalid devi
63652070 6174683A 204D3A5C 6F726731 ce path: M:\org1
2E64656C .del
Seems like the Media controller didn't like the answer returned by the
sqloFileAttrib function, but why? (SQLO_PATH?) I didn't find any
documented limitations for Load using network drives, so I am wondering
if the Samba server could be at fault.
The share definition in smb.conf seems normal, although Oplocks=no is
set. Would Load need byte-range locking on the input file? But not Import ??
Thanks for any feedback...