DataPump: Export von Linux nach Windows

Problem:

Hat man eine heterogene Systemlandschaft und möchte von einem Oracle unter Linux einen DataPump-Export auf eine Windows-Freigabe durchführen, so werden auf dem Windows-Share zwar sowohl Dump-, als auch Log-Datei erstellt, allerdings bricht der expdp-Befehl sehr schnell ab und liefert in der Ausgabe den Fehler: ORA-39006: internal error und auch der Inhalt des DataPump-Logs sieht nicht wesentlich besser aus:

;;;
Export: Release 11.2.0.2.0 - Production on Fri Mar 4 13:58:30 2011

Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
;;;
Connected to: Oracle Database 11g Release 11.2.0.2.0 - 64bit Production
ORA-39097: Data Pump job encountered unexpected error -31643
ORA-39065: unexpected master process exception in FILE
ORA-31643: unable to close dump file "/backup/server/datapump/instance/schema.dmp"
ORA-19510: failed to set size of 1 blocks for file "/backup/server/datapump/instance/schema.dmp" (block size=4096)
ORA-27045: unable to close the file
Linux-x86_64 Error: 5: Input/output error
Additional information: 4

Lösung:

Die Windows-Freigabe muß unter Linux mit der Option directio gemountet werden:

Linux:> mount.cifs //WINSERVER/SHARE /mnt/WINSERVER -o directio,username=WINUSER,domain=WINDOMAIN,password=WINPASSWORD