"Copy a file to DB server from a remote machine using plsql+java" [message #597273] |
Wed, 02 October 2013 08:42 |
Amine
Messages: 376 Registered: March 2010
|
Senior Member |
|
|
Hi all,
We want to copy a file from a remote machine to the DB server.
copy \\<IP_ADRESS>\SHARED_FOLDER\some_file.sql d:\copied_file.sql
I've used Java and a wrapped it into a PL/SQL procedure so I can do :
exec run_os_command(p_command => 'copy \\<IP_ADRESS>\SHARED_FOLDER\some_file.sql d:\copied_file.sql');
The file was not copied.
I have mapped \\<IP_ADRESS>\SHARED_FOLDER\ to x:\ for example and issued :
exec run_os_command(p_command => 'copy x:\some_file.sql d:\copied_file.sql');
The file was not copied.
But when I issued from the OS prompt
copy x:\some_file.sql d:\copied_file.sql then the file is copied.
What can I add to the PL/SQL procedure so it wil work ?
Thanks in advance,
Amine
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|