My Oracle Support Banner

UTL_FILE.FCOPY Creates Empty File in and DB version (Doc ID 1324406.1)

Last updated on MAY 04, 2018

Applies to:

PL/SQL - Version to [Release 10.2]
PL/SQL - Version to [Release 12.1]
HP-UX Itanium


UTL_FILE.FCOPY produces empty or zero-byte file in and on HPUX-Itanium platform.

utl_file.fcopy('TEST_DIR', 'test.txt', 'TEST_DIR', 'dump.txt');

PL/SQL procedure successfully completed.

Displaying the file size shows the main file (test.txt) is of size 12 and the new file (dump.txt) is 0 bytes in size.

SQL> !ls -lart
total 128
drwxrwxrwx 1056 root rootgrp 57344 Apr 29 15:23 ..
-rw-r--r-- 1 irefresh refresh 12 Apr 29 16:16 test.txt
drwxrwxrwx 2 embde embde 4096 Apr 29 16:16 .
-rw-r--r-- 1 irefresh refresh 0 Apr 29 16:16 dump.txt


Database is upgraded/patched to


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.