Skip to Main Content
  • Questions
  • How to copy the csv files from the shared path to HP-Unix server Data base directory

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question.

Asked: July 29, 2020 - 12:14 pm UTC

Last updated: August 05, 2020 - 3:13 am UTC

Version: 9i

Viewed 1000+ times

You Asked

Hi Sir,

I'm using the Oracle 9i database in the HP-UNIX system.
The directory name is "XX_DATA"
Shared network path "\\mkees01\public\Details.csv"

May you please help me by providing the code for below scenario.

From the Shared network path file - Details.csv how to copy to the oracle database directory?

Regards,
Sankar

and Connor said...

Sorry - isn't this just

  UTL_FILE.FCOPY(src_location  => 'MY_DIR',
                 src_filename  => 'Details.csv',
                 dest_location => 'MY_OTHER_DIR',
                 dest_filename => 'Details.csv');


and you need to ensure the oracle account has access to the share/mapped drive ec

Is this answer out of date? If it is, please let us know via a Comment

More to Explore

PL/SQL demos

Check out more PL/SQL tutorials on our LiveSQL tool.

PL/SQL docs

PL/SQL reference manual from the Oracle documentation library