Home > Ask the Oracle Experts > (Archive) SQL and PL/SQL Questions & Answers > Read, process and write a text file to the database
Ask The Oracle Expert: Questions & Answers
EMAIL THIS

Read, process and write a text file to the database

Azim Fahmi EXPERT RESPONSE FROM: Azim Fahmi

Pose a Question
Other Oracle Categories
Meet all Oracle Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 29 April 2005
I want to read a csv/text file, process it and write to database file. What is the best of way doing it?

>
EXPERT RESPONSE
There is an Oracle built UTL_FILE package that allows PL/SQL program unit to interact (read and write) with the file system. The file system must be located on the same machine as the server or accessible through some sort of drive mapping.There are security and privilege issues that need to be considered. First of all the operating system user (more than likely Oracle) that owns all Oracle Processes must have read and write privileges on the directory your csv file resides in. Secondly the parameter in init<dB_SID>.ora file must have the UTL_FILE_DIR parameter set to include the directory where the csv file resides. An alternate method will be to use wild card character to make all directory fair target for UTL_FILE package.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
(Archive) SQL and PL/SQL
ORA-01654 even though maxextents defined as unlimited
Concatenating a null character affecting performance
Generating a 10 character alphanumeric sequence
Working with InterDev and DreamWeaver
Line placement in an EMESSAGE
Searching for stored reservation dates in a database
Specifying a column as NULL
Write a SQL script with optional arguments
Error message while trying to write a Pl/SQL block
Why do many DBMS push their own programming languages?

Oracle PL/SQL
Oracle's free SQL Developer adds database migration tool
Confused about Oracle certification exams
ORA-01422 error when procedure returns more than one row
Calling procedure inside another procedure in anonymous block
How to import comma-delimited text file to Oracle table
Oracle updates Microsoft developer tools
PLS-00103 errors
PL/SQL do's and don't's: Five questions with Steven Feuerstein
Definition of force view
ORA-04082: NEW or OLD references not allowed in table level triggers

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
PL/SQL  (SearchOracle.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Oracle White Papers: Fusion Middleware
HomeNewsTopicsTipsAsk the ExpertsMultimediaWhite PapersProductsBlogs
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2003 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts